id stringlengths 5 11 | text stringlengths 0 146k | title stringclasses 1
value |
|---|---|---|
doc_32200 |
A: If that is your only requirement, finding the div tags from a specified public URL, then you can just do that in the background.html page with XHR as you said.
Something like this:
var xhr = new XMLHTTPRequest();
...
xhr.send(null);
var query = xhr.responseXML.querySelectorAll('div');
console.log('You have found ' ... | |
doc_32201 | It looks like it should work, but when it gets to the "If currentVal.equals(prevVal) = False Then", it his a runtime error 424, 'Object required'.
It's been forever since I did any VB, and that was VP6.
Sheets("Sheet1").Select
Range("I1").Select
Dim data() As String
Dim currentVal, prevVal As String
Dim output As Str... | |
doc_32202 | 0 1 2 3 ............ 1041 1042 1043
0 32.5 19.4 66.6 91.4 55.5 10.4 77.2
1 13.3 85.3 22.4 65.8 23.4 90.2 14.5
2 22.4 91.7 57.1 23.5 58.2 81.5 46.7
3 75.7 47.1 91.4 45.2 89.7 38.... | |
doc_32203 | host-001.servers.company.com desc='Production Web Cache' env='Prod' patch_round='Beta' dc='Main' rhel_v='7.6' primary='admin@company.com' secondary='manager@company.com'
I need to extract certain attributes from the text column, e.g. extract desc='Production Web Cache', and get its value Production Web Cache. I want t... | |
doc_32204 |
id
description
items
123
Women clothing
T-shirt & Bottom & Top
124
sports items
badminton racket
125
gadgets
iphone & airpod & charging
I want to split the column items value to a new row for each one item like this:
id
description
items
123
Women clothing
T-shirt
123
Women clothing
Bottom
1... | |
doc_32205 | ||
doc_32206 | Maybe is only a problem about TIdSMTP, that it can't connect with a smtps server, but i didn't found another component for send mail with delphi 7.
My code is this one:
unit Unit1;
interface
uses
inifiles, Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, IdMessage, IdBaseCompon... | |
doc_32207 | I have a scenario, where I need to register a same type of filter bean twice for different url patterns. Say IAMFilterBean1 of type IAMFilterBean was built with one auth key for internal user identifications. And IAMFilterBean2 of same type IAMFilterBean was built with different auth key for external user identificatio... | |
doc_32208 | public class ImagesController : ApiController
{
private HttpContent GetPngBitmap(Stream stream)
{
var pngBitmapEncoder = new PngBitmapEncoder();
pngBitmapEncoder.Save(stream);
stream.Seek(0, SeekOrigin.Begin);
return new StreamContent(stream);
}
// GET api/images
pub... | |
doc_32209 |
*
*connect to mysqldb and get DB handle,open a cursor, execute a delete statement,commit and then close the cursor.
*Again using the DB handle above, iam performing a "select" statement one some different table using the cursor way as described above.
I was able to delete few records using Step1, but step2 select... | |
doc_32210 | Setup Information
Let's say my master's IP address is 10.1.2.3
Here's what I've checked so far:
*
*I've restarted redis on both the master and slave... but anytime I run INFO REPLICATION on the slave it shows the link as "down"
*Ran netstat -lnp on both the master and slave. Here's the output from the master:
m... | |
doc_32211 | import Data.Char
isIn :: (Eq a) => [a] -> [a] -> Bool
needle `isIn` haystack = any (needle `isPrefixOf` ) (tails haystack)
encode :: Int -> String -> String
encode offset msg = map (\c -> chr $ ord c + offset) msg
main :: IO()
main =
if "arts" `isIn` "artsisgood" then
putStrLn "is in"
else
... | |
doc_32212 |
A: You either use private APIs, which will cause your app to be rejected from the App Store
or you write your own tab bar control.
A: Try This in your app deletegate.m file
[[UITabBar appearance] setSelectedImageTintColor:[UIColor redColor]];
| |
doc_32213 | CREATE TABLE cs_readwrite.cs_rw_test (
part_id bigint,
s_id bigint,
begin_ts bigint,
end_ts bigint,
blob_data blob,
PRIMARY KEY (part_id, s_id, begin_ts, end_ts)
) WITH CLUSTERING ORDER BY (s_id ASC, begin_ts DESC, end_ts DESC)
When I insert 1 million row per client, with 8 kb blob per row and ... | |
doc_32214 | but Case by Mac
Press command+w end of the program
use method
public void startKeyPressed(java.awt.event.KeyEvent evt){
System.out.println(evt.getKeyCode());
if(evt.isControlDown()&&evt.getKeyCode()==87)
{
System.exit(0);
}
but
public void startKeyPressed(java.awt.event.KeyEvent evt){
... | |
doc_32215 | i wanna pass the string ('admin') or other string that i want to function 'RoleTolen', using my route.
function verifyToken
function verifyToken(req, res, next) {
// Get auth header value
const bearerHeader = req.headers["authorization"];
// Check if bearer is undefined
if (typeof bearerHeader !== "undefined")... | |
doc_32216 | what's the point of being reactive here?
as I know the reactive style is useful when we have a continues data flow, is it possible that we could have something like this in angular httpClient?
for example, send one request to the server and get multiple responses continuously from the server.
Also, I found that ob... | |
doc_32217 |
var canvas = new fabric.Canvas("c");
fabric.util.addListener(canvas.upperCanvasEl, "dblclick", function (e) {
var _canvas = canvas;
var _mouse = _canvas.getPointer(e);
var _active = _canvas.getActiveObject();
if (e.target) {
var _targets = _canvas.getObjects().filter(function (_obj) {
... | |
doc_32218 | My question is: how to store large matrix in matlab? Specifically, I'm using a 64-bit linux OS, and I need to store a 5-6 GB matrix.
A: I am not an expert in this, but as I understand it the most simple solution would be to get more RAM. However, you could try to check the available memory at the time of the error w... | |
doc_32219 | Following code works, but all I see is black image for a screen shot.
<?php
$im = imagegrabscreen();
imagepng($im, "myscreenshot.png");
imagedestroy($im);
?>
UPDATE:
My IIS server is actually running on Windows 8. I just looked through the Services list and I did not find IIS Admin manager running, but on Windows 7 I ... | |
doc_32220 | WebClient wc = new WebClient();
NameValueCollection PostData = new NameValueCollection();
PostData["access_token"] = ACCESSTOKEN;
PostData["name"] = "Test M";
PostData["description"] = "Test M";
PostData["message"] = "Test M";
PostData["link"] = "http://www.yettoknow.com";
byte[] response = wc.UploadValues("https://gr... | |
doc_32221 | The data source is a google search for "bing sucks"
I call the method with
loadXMLDoc('http://ajax.googleapis.com/ajax/services/search/web?v=1.0&q=Bing%20sucks')
It works in InternetExplorer, but it doesn't work with Firefox/Chrome.
If I load just a file from the local domain (test.txt) , then it works.
What am I doi... | |
doc_32222 | <GetSendStatisticsResponse xmlns="http://ses.amazonaws.com/doc/2010-12-01/">
<GetSendStatisticsResult>
<SendDataPoints>
<member>
<DeliveryAttempts>69</DeliveryAttempts>
<Timestamp>2011-09-12T01:00:00Z</Timestamp>
<Rejects>0</Rejects>
<Bounces>0</Bounces>
<Complaints>0</Complaints>
</member>
<m... | |
doc_32223 | I am trying to read from a csv file and insert data into a database with python.
This is my code, and I don't understand why it's not working
import mysql.connector
import csv
import pandas as pd
with open(r'files\files1.csv') as csv_file:
csvfile = csv.reader(csv_file, delimiter=';')
allvalues=[]
for row ... | |
doc_32224 | Traceback (most recent call last):
File "/home/isus/Dokumenti/WET/SynthText-python3/synthgen.py", line 669, in render_text
regions['homography_inv'][ireg])
File "/home/isus/Dokumenti/WET/SynthText-python3/synthgen.py", line 506, in place_text
render_res = self.text_renderer.render_sample(font,collision_mask... | |
doc_32225 | # Example data:
df <- data.frame(matrix(nrow = 57, ncol = 6)) %>%
mutate(
X1 = round(rnorm(n = 57, mean = 0, sd = 1), 1),
X2 = round(rnorm(n = 57, mean = 0, sd = 1), 1),
X3 = round(rnorm(n = 57, mean = 0, sd = 1), 1),
X4 = round(rnorm(n = 57, mean = 0, sd = 1), 1),
X5 = round(rnorm(n = 57, mean =... | |
doc_32226 | I try to predict images.
My model looks like this:
model = Sequential()
model.add(Conv2D(32, (3, 3), activation='relu', input_shape=(50, 50, 1)))
model.add(MaxPooling2D((2, 2)))
model.add(Conv2D(64, (3, 3), activation='relu'))
model.add(MaxPooling2D((2, 2)))
model.add(Conv2D(64, (3, 3), activation='relu'))
model.add(Fl... | |
doc_32227 | ||
doc_32228 | The problem is, if I wrap the spans in the <a>, which I need because these warped words are my links, all the styling (positioning most importantly) just vanishes...If I remove the wrapper from the spans, the style goes back to normal and it looks warped etc..
I've written the jsfiddle here for my problem, http://jsf... | |
doc_32229 | http://{buildServer}/httpAuth/action.html?add2Queue={buildTypeId}
But this http request hasn't any response message, so I can not know whether this build is running or in build queue.
Does any body know how to get that information by REST API?
A: Well, you can see the list of supported requests and names of parameter... | |
doc_32230 | import pysox
tfm = sox.Transformer()
tfm.build('./abc/1.raw', './abc/2.flac')
This is the error I'm getting:
"sox.core.SoxError: Stdout:
Stderr: sox FAIL formats: bad input format for file `./abc/1.raw': sampling rate was not specified"
How can I build the function to include a sampling rate and complete the transfor... | |
doc_32231 | I am aware that JBoss EAP 6.1 is JPA 2.0 compliant so I decided to force JBoss to use JPA version and implementation from within my application
What I was trying to do was to exclude the JPA subsystem using jboss-deployment-structure.xml but what I found was that even if I comment out JPA extension and JPA subsystem fr... | |
doc_32232 | AppController.php
class AppController extends Controller
{
public function initialize()
{
$this->loadComponent('Flash');
$this->loadComponent('Auth', [
'authorize' => ['Controller'],
'loginRedirect' => [
'controller' => 'Users',
'action' ... | |
doc_32233 | my file init.rb that's calling the Radio class:
require_relative 'classes/radio'
fm_radio = Radio.fm
fm_radio.volume = 10
puts fm_radio.status
#volume: 10 band: fm frequency: 88.0
fm_radio.freq = 99.0
puts fm_radio.status
#volume: 10 band: true frequency: 99.0
puts fm_radio.band
# true
my file radio.rb that contains ... | |
doc_32234 | if (tok[0] == "read" && length == 2)
{
try
{
StreamReader tr = new StreamReader(@"C:\Users\Public\"+tok[1]+".txt");
while (!tr.EndOfStream)
{
Console.WriteLine(tr.ReadLine());
}
}
catch
{
Console.WriteLine("No such text file.\n");
}
Prompt();
}
If I knew what to search for to fi... | |
doc_32235 | I have a fairly straightforward project structure:
├── bin
├── build ... | |
doc_32236 | var UserSchema = new Schema({
username: {type: String, required: true},
location: {type: [Number], required: true}, // [Long, Lat]
created_at: {type: Date, default: Date.now},
updated_at: {type: Date, default: Date.now}
});
Now on that schema I want to perform a query that will find all the users withi... | |
doc_32237 |
This works very well when I serve everything on the ApiGateway domain, no Auth errors or such, but when I try to serve/access it via the cloudfront I can load the react app, via the default behaviour, but when the react app calls the API endpoints I get a IncompleteSignatureException.
I tried forwarding the Host head... | |
doc_32238 | I'm trying to run a Python script once a day at 8AM. the first program argument is the path to the pyenv virtualenv binary, the second is to my Python script.
Is there a method of verifying what I have gotten right or wrong in this .plist file? launchctl is not obvious with the errors it returns, it's just:
Invalid Pr... | |
doc_32239 | Question:
Is there an alternative transaction handling which works with the .net core framework? I have tried to use Castle.Transactions as an alternative, which is also not supported at the moment.
A: Just wanted to leave a comment here in case anybody wandered by this post while researching this issue. I ran into th... | |
doc_32240 | This is my pushnotfication handler code but it doesnt set the sound or icon. Any help is appreciated
void ApplicationUI::pushNotificationHandler(bb::network::PushPayload &pushPayload)
{
qDebug() << "Received push pushNotificationHandler";
PushHistoryItem pushHistoryItem(pushPayload.id());
if (m_pushNotifi... | |
doc_32241 | This is the script I am using.
EnemieMove Script
//References PlayerController Script
if (playerControllerScript.enemieDeath == true)
{
goblinCollider.enabled = !goblinCollider.enabled;
enemieAnimator.SetBool("IsDead", true);
Debug.Log("Collider.enabled = " + gobl... | |
doc_32242 | I am using Eclipse Juno for Java EE, and have confirmed the following installs:
When I update software, there are no more updates available. When I go to the repository for Egit, or JGit for that matter, eclipse tells me the plugins are already installed.
Window > Preferences > Team contains no Git item, only CVS and ... | |
doc_32243 | However, I've noticed that in most repositories, those commits that were part of the pull request aren't in the history.
For example, if there are three commits in a branch, commit A, commit B, and commit C, and you submit a successful pull request, the history looks like :
Merge pull request #1 from some_branch
commi... | |
doc_32244 |
*
*In local, when I run solution, it is showing developer mode and when I try to run for direction, it is show error message in Javascript Console : 'Directions Service: You must enable Billing on the Google Cloud Project at https://console.cloud.google.com/project/_/billing/enable Learn more at https://developers.g... | |
doc_32245 | I have two 2D arrays, one has a random variable populating its "second dimension" from a pool of letter from A to D and the other contains the possible combination, such as:
random 2D list note that the 2nd dimension i.e 'A', 'B', 'C' is randomly populated.
ran = [[51,'A'],[52,'D'],[53,'C'],[54,'B']]
lookup 2D list wi... | |
doc_32246 | How do I escape searchBase, searchMask, scontrols?
try {
do {
NamingEnumeration<SearchResult> answer = null;
try {
answer = ctx.search(searchBase, searchMask, scontrols);
printSearchEnumeration(answer);
if (maxSize == 0)
exceedLimit = false;
else {
if (list.size() >= maxSize)
A: You can't use ... | |
doc_32247 | mysql --user=root --password= erpint -B -e "select * from user_info;" | sed "s/'/\'/;s/\t/\",\"/g;s/^/\"/;s/$/\"/;s/\n//g" > /home/mayuri/detail.csv
mutt -s "Mutt attach" srini@erpint.com -a /home/mayuri/detail.csv < /home/mayuri/detail.csv
A: using bash,
to check if file exist :
#generate you file ....
... | |
doc_32248 | But when I start file copying ToolStripStatusLabel1 becames invisible and ToolStripProgressBar becames visible.
like this:
ToolStripStatusLabel1.Visible = False
ToolStripProgressBar1.Visible = True
Problem is that in this condition I cant get that ProgressBar take all the space of StatusBar not with increasing it's wi... | |
doc_32249 | Here are the credentials im using:
MAIL_DRIVER=smtp
MAIL_HOST=mywebsite.com
MAIL_PORT=465
MAIL_USERNAME=
MAIL_PASSWORD=
MAIL_ENCRYPTION=ssl
A: For sending emails natively from your own server similar to mail() function use sendmail as driver
MAIL_DRIVER=sendmail
MAIL_HOST=mywebsite.com
MAIL_PORT=465
MAIL_USERNAME=
M... | |
doc_32250 | https://www.oshyn.com/blogs/2017/01/apple-pay-development
I'm doing this on Windows and I've installed safari browser just for testing.
The documentation says Safari supports Applepay.js but my code is not working on the Safari browser.
I tried to show the alert only if Apple Pay JS API is available in the browser, b... | |
doc_32251 | #include <stdio.h>
#include <stdlib.h>
void cpyarray (void* dst, void* src, size_t memsize, size_t size) {
for (size_t i = 0; i < size; i++) {
*(((char*) dst) + i*memsize) = *(((char*) src) + i*memsize);
}
}
int main () {
size_t N = 10;
double* v1 = (double *) malloc(N * sizeof(double));
... | |
doc_32252 | So, I am looking for workaround.
I found that I can use WebSocket to invoke a Lambda function.
My Question is:
If Websocket connects to the Lambda function and the function completes its task in 50 secs and returns a response, will the Lambda function be running ever??
Or Suppose 5 Users invoke the Lambda function usin... | |
doc_32253 | <Product>
<Products>
<ProductID>9</ProductID>
<ProductName>Mishi Kobe Niku</ProductName>
<UnitPrice>97.0000</UnitPrice>
</Products>
<Products>
<ProductID>29</ProductID>
<ProductName>Thüringer Rostbratwurst</ProductName>
<UnitPrice>123.7900</UnitPrice>
</Products>
<Products>
<Produc... | |
doc_32254 | var property = 'email';
var NewScript=document.createElement('script');
NewScript.src="/js/test.js?property="+property;
document.body.appendChild(NewScript);
The code work fine because call (or insert) the file "test.js" my problem is that I also want to send a variable to "test.js" to use it there, I dont know how t... | |
doc_32255 | if (rotation == 1) //This is picture1
{
}
else if (rotation == 2) //This is picture2
{
}
all the way up to:
else if (rotation == 36) //This is picture36
{
}
Is there any way figure out what rotation it is with only like 1 or 2 lines of code?
And any who would say check before you ask, i have checked and i found no... | |
doc_32256 | So what are the real benefits? Speed, readability, maintenance,cost?
A: Another thing to consider is that this question would be a good opportunity to demonstrate how you go about making design decisions during the development process. One response I could imagine giving would be turning around and considering what yo... | |
doc_32257 | <gml:coordList>200.0001 400.0001 30.0001 210.0002 410.0002 31.0002 190.0003 401.0003 29.0003 213.0004 402.0004 38.0004</gml:coordList>
y1,x1,z1,y2,x2,z2,y3,x3,z3,y4,x4,z4 = coordList[0:-1].split(' ')
list1 = []
list1.append((z1,y1,x1))
list1.append((z2,y2,x2))
list1.append((z3,y3,x3))
list1.append((z4,y4,x4))
minz ... | |
doc_32258 | This is a simple example.
*
*The link will change the title / description meta tags upon click. You can confirm that using Firebug.
*Click the f|Share button: Facebook still always shows "A title that is available upon page load." and "A description that is available upon page load."
Anybody knows how to fix this... | |
doc_32259 | I usually use time(NOW()) to get time but now its giving me this error:
Fatal error: Call to undefined function NOW()
Do you have any ideia why this is happening?
$id_session= $_SESSION['startView']['session'];
if($_SESSION['startView']['time_end'] <= time())
{
$delete = $pdo->prepare("DELETE FROM ... | |
doc_32260 | <div class="field">
<input type="hidden" value="" name="a" id="a"> <input type="hidden" value="xxxx" name="b" id="b">
<input type="file" value="" name="file1"> <input type="file" value="" name="file2">
<input type="file" value="" name="file3"> <input type="file" value="" name="file4">
<input type="fil... | |
doc_32261 | this is an example according for count column which is the result
How could sort the results of count descending for each level in this code?
For example first level
| |
doc_32262 | When I add the 'authInterceptor' factory function to my home view module. The view isn't loading. But when I delete the factory function it does load.
What am I doing wrong?
Home controller
'use strict';
angular.module('myApp.home', ['ngRoute'])
.factory('authInterceptor', function ($rootScope, $q, $window) {
retur... | |
doc_32263 |
*
*Login
*Register
*Home
I want that when user register or login in my app then he will go the home screen (I have done it) and when He press back button the app will close automatically I have used Willpopscope(Flutter Widget) but it didnt worked. It took me back to my login or register which I opened first.
A... | |
doc_32264 | class MyModelParent(models.Model):
image = models.ImageField(upload_to = "images/" )
def delete(self, *args, **kwargs):
if self.image:
self.image.delete()
super(MyModelParent, self).delete(*args, **kwargs)
class MyModelChild(models.Model):
parent = models.ForeignKey(MyModelParent)
... | |
doc_32265 | set POSIX_path to "/Applications/iPhoto.app"
do shell script "sudo rm -rfv " & quoted form of POSIX_path with administrator privileges
The authentification screen pops up as it should but after authenticating the application just freezes upon executing this command. This problems only occurs in 10.9.
When I set the pe... | |
doc_32266 | from to value sourceID targetID clustid
1 1400 1413 0.6846 3055586 3060697 1
2 323 661 0.5550 1596205 724084 1
3 323 1411 0.6817 724084 3060607 1
4 1413 1411 0.6729 3060697 3060607 1
5 1498 1411 0.6381 3111960 3060607 1
6 1478 1415 0.7423 3062164 3099199 ... | |
doc_32267 | The top of the hierarchy (Card Component) has all of the data needed by all of the hierarchy. I am currently passing the data through the hierarchy using attributes and Input. But something always rubs me the wrong way about that pattern.
I'm thinking about moving this to a service pattern, where I inject a service int... | |
doc_32268 | Basically I want to stop node-media-server completely, restart it later.
const NodeMediaServer = require("node-media-server");
let config = {
logType: 3,
rtmp: {
port: rtmpPort,
chunk_size: 60000,
gop_cache: true,
ping: 60,
ping_timeout: 30,
},
http: {... | |
doc_32269 | Future<void> _startCameraStream() async {
final request = await Permission.camera.request();
if (request.isGranted) {
await BodyDetection.startCameraStream(
onFrameAvailable: _handleCameraImage,
onPoseAvailable: (pose) {
if (!_isDetectingPose) return;
... | |
doc_32270 | HTML/Razor
@Html.ActionLink(" ", "DeleteRecord", new { id = item.JPAppId }, new { @class = "fa fa-trash", id = "myLink" })
JQuery/Ajax
<script type="text/javascript">
$("#myLink").click(function (event) {
event.preventDefault();
$.ajax({
url: 'JPApplications/StudentIndex',
data: { id: $(this).d... | |
doc_32271 | But it is taking 2 clicks, and not only one as it was suposed to take.
.clientes {width:170px;height:27px;background-image:url('../imagens/clients.gif');-webkit-transition:1s;}
.clientes-clicked {width:356px !important;height:154px !important;background-image:url('../imagens/clients-big.png') !important;-webkit-transit... | |
doc_32272 | SELECT ColumnName
FROM Table
WHERE ColumnName LIKE 'A%a' or 'E%a' or 'I%a' or 'O%a' or 'U%a' or
'A%e' or 'E%e' or 'I%e' or 'O%e' or 'U%e'...........etc...........;
But it feels like there has to be a shortcut. I just don't know what it is.
Thank you!!
A: One approach which is a bit more aethestically... | |
doc_32273 | length val $15;
input obs val $ pvalue;
cards;
1 demog 0.8812
2 ae 0.7112
3 dispostion 0.8234
4 exposure 0.7788
;
run;
I would like to get a new dataset with pvalue like 0.8812a, 0.7112b, 0.8234c, 0.7788d.
The real datasets in my hand are pretty long and following with the alphabet letters such as e, f, g, etc. Coul... | |
doc_32274 | import tkinter
from tkinter import *
from tkinter.filedialog import askopenfile
from tkinter.filedialog import askopenfilename
window = tkinter.Tk()
def import_txt():
global import_list
file_name = askopenfilename(filetypes=[("Text files","*.txt")])
import_list = []
with open(file_name, 'r') as f... | |
doc_32275 | Can this be achieved? Appreciating any assistance in this matter.
A: The simplest solution would be to use worksheet formula as suggested in Microsoft support artice kb213889. If you are prepared to assume the deliminator is a ' ' for example and that the column will only contain valid words, in row L you could add a... | |
doc_32276 | Problem Statement: I have to store the line number of the TSV file record in database along with its content.
eg:- SAMPLE TSV FILE
Name Age Tier
Ram 24 3
Sam 12 1
Rose 18 2
Dan 43 3
Mini 10 1
Lily 19 2
How I want it to be stored
text line number
Lily|19|2 6
Dan|43|3 4
Ram|24|... | |
doc_32277 | I used this jquery function but it's not working $("#loadHere").load("001.html")
When I do that I get this error:
XMLHttpRequest cannot load file:///C:/Users/**censored**/Desktop/**censored**/html/00.html. Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https, chrome... | |
doc_32278 | Now I'm going to create a tablet (honeycomb) layout. For that the MainActivity must not extend the TabActivity.
Is there a way (intent filters?) to let a honeycomb (api level >= 11) start another Activity as a lower api level device?
A: The trick is to have three activities. One is the main, and in the main you choose... | |
doc_32279 | const squareList = arr =>
arr
.filter(num => num > 0 && num % parseInt(num) === 0)
.map(num => Math.pow(num, 2));
const squaredIntegers = squareList([4, 5.6, -9.8, 3.14, 42, 6, 8.34, -2]);
console.log(squaredIntegers);
This works correctly, but if i put:
const squareList = arr => {
arr
.fil... | |
doc_32280 | e.g.
millis, col1, col2, num
xxxx, abc, xyz, 24
xxxx, abc, xyz, 24
xxxx, abc, xyz, 24
xxxx, abc, xyz, 24
Can I have a query which can group the millis column by day(that is 24th, 25th, 26th etc.), and give my average of the num col?
e.g. output:
Date avg
2013-11-08 20
2013-11-07 ... | |
doc_32281 | manifest.json:
{
"manifest_version": 2,
"name": "desktopCapture",
"description": "User testing application",
"version": "1.0",
"browser_action": {
"default_icon": "icon.png",
"default_popup": "popup.html"
},
"permissions": [
"desktopCapture"
]
}
popup.js
document.querySelector('#start').... | |
doc_32282 |
here the release of changes
The question is, how can i deploy to PROD (let say only project C - Release 194 and 196), without A, accidentally pushed together to PROD (because it hasnt approve to go to PROD)?
Thank you,
your helps really appreciated
A: In general, if you wish to take a release of anything to a specif... | |
doc_32283 | @Override
protected void onStart() {
super.onStart();
if (mAuth.getCurrentUser() != null) {
mUserDatabase.child("online").setValue("true");
}
}
@Override
protected void onStop() {
super.onStop();
if (mAuth.getCurrentUser() != null) {
mUserDatabase.child("online").setValue("false... | |
doc_32284 | <?php require_once('verbinding.php') ?>
<html>
<head>
<title>Blog Arena 2.0</title>
<link rel="stylesheet" type="text/css" href="css/mooi.css">
</head>
<body>
<!--- navigatie --->
<?php include('./includes/navigatie.php') ?>
<!--- header --->
<?php include('./includes/header.php') ?>
... | |
doc_32285 | We have a table called "items" with an indexed column called type. Type is a tinyint(3), non-null value. The table is admittedly large both vertically and horizontally, and it does have a rather long list of singular indexes.
In many cases, selecting on this table while specifying type in the where field works as you'... | |
doc_32286 | Any help great thanx..
A: Check INSERT OVERWRITE DIRECTORY in language manual
A: You can do something like this:-
INSERT OVERWRITE DIRECTORY directoryLocation select_statement1
Or Hive basically stores data in HDFS. So you can use the hive warehouse location if it's internal table or the corresponding data location... | |
doc_32287 | knitr::opts_chunk$set(echo = TRUE)
library(tidyverse)
library(lubridate)
I bring in the data I am trying to analyze
url_in<-"https://raw.githubusercontent.com/CSSEGISandData/COVID-19/master/csse_covid_19_data/csse_covid_19_time_series/"
file_names<- c("time_series_covid19_confirmed_US.csv",
"time_serie... | |
doc_32288 | Test Company Address
123 Address 1
City, State 55555
When I copy the field directly from SQL through SSMS, it is placing double spaces to signify that it is a line break. Example:
Test Company Address 123 Address 1 City, State 55555
How do I persist these line breaks to add it to a text box within SSRS? This way, w... | |
doc_32289 | When installing it does install the default repos in /etc/yum.repos.d with online mirrors but I want to replace this with our local mirrors.
I ran accross this workflow (from 2012)
It uses the following snippet to iterate over all the media of the current host os and set write out a repo definition.
<% @host.os.media.e... | |
doc_32290 |
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Titulek stránky</title>
</head>
<body>
<h2 style="color:black;"><a href="https://www.youtube.com">YouTube</a> <a href="https://www.google.com/">Google</a></h2>
</body>
</html>
A:... | |
doc_32291 | console.timeline("timeline1");
console.timelineEnd();
I am looking for a way to extract the data from a timeline and post it to a server. Or trigger the browsers 'save timeline data'. I want to collect timeline data from peoples machines while they test a web application.
Is this possible?
Thanks.
A: This data migh... | |
doc_32292 |
A: This is not the prettiest way (I don't PS very well, it's structure, overrides etc.) but look simply into: controllers\admin\AdminProductsController.php.
Near line 150 add new field definition like:
$this->fields_list['custom_field'] = array(
'title' => "Name from lang",
'havingFilter' => fa... | |
doc_32293 | <meta http-equiv="x-ua-compatible" content="IE=7" />
<meta http-equiv="x-ua-compatible" content="IE=8" />
This is not really a perfect solution for various reasons, but it eliminates the problem at least.
ORIGINAL QUESTION:
I realised a couple of months ago that there is a problem with our Silverlight application in... | |
doc_32294 | AJAX is passing the selected date to PHP and it should dynamically update this $select with the data from AJAX and update the query made to teh database. But $_POST['date'] seems to be empty and nothing is happening.
AJAX
$(window).ready(function(event) {
var today = new Date();
var dd = today.getDate();
var mm =... | |
doc_32295 | Solution 1:
NSString *deviceType = [UIDevice currentDevice].model;
This does not work because it gives me just "iPad". I want to know whether it is iPad, iPad 2, new iPad, iPhone 3GS, iPhone4 etc.
Solution 2: Not testing for device type, checking for individual capabilities
This does not apply because I want this dat... | |
doc_32296 | What I'd like to do is after that registration is complete, ask that you add your email.
Should I create a new controller called say setups, or should I create a method called setup under the users_controller?
A: Technically either is fine, I would however just drop them on their show action and prompt them there to ... | |
doc_32297 | When some groups have NA values, dplyr::mutate() can return incorrect results depending on which groups are considered. I didn't find a similar question on StackOverflow after a cursory search, though it may be related to the dplyr issue #1545. Any explanation of this pattern would be much appreciated.
The example belo... | |
doc_32298 | dat1 <- df[c(1:9)]
dat2 <- df[c(10:18)]
df = rbind(dat1,dat2)
I want to do this for 280 columns in the loop in R.
After every 8 columns, the columns are repetitive in 280 columns. After 8 columns they are the same, that's why I want to rbind them.
I am very new to coding. Appreciate any kind of help.
A: You can do ... | |
doc_32299 | How can I use variables from the content.php in my index.php
For instance:
Let´s say I have a variable called $something in my content.php. And I want to use that variable in my index.php
In my index.php:
<head>
$(function Loadcontent() {
$("#content").load("content.php")
});
window.onLoad = Loadcontent();
</head>... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.