text stringlengths 64 89.7k | meta dict |
|---|---|
Q:
Generating multi-level JSON
I have an array of Objects, each containing a Location and a Links array of indeterminate length. How can I create a multilevel JSON object with loops?
The end JSON should look like
item1: [
{ "location": [
{"latitude": value, "longitude": value, "stopNum": value, "fileName": v... | {
"pile_set_name": "StackExchange"
} |
Q:
Compile error for QT 5.2.1; expected unqualified-id before 'delete'
I'm trying to compile QT 5.2.1 for an older Linux distro (Suse Linux Enterprise 11) and after a while I receive the error below:
In file included from qxcbxsettings.cpp:46:0:
/usr/include/X11/extensions/XIproto.h:1825:17:
error: expected un... | {
"pile_set_name": "StackExchange"
} |
Q:
writing a CoffeeScript Class
I have the following simple CoffeeScript Class:
class Country
constructor: (@val) ->
console.log @val
foreign: ->
@val isnt "United States"
domestic: ->
not foreign()
I have this simple class to determine some logic for a select drop down.
Here is h... | {
"pile_set_name": "StackExchange"
} |
Q:
JS creating divs with a for loop inside container
I am trying to create a number of divs inside a container, but i cant figure out how to nest the created ones within the main container. Is it also possible or better to create the container before in the html?
JS
function createDiv(numberOfDivs) {
var i = 0;
... | {
"pile_set_name": "StackExchange"
} |
Q:
COLLECT_SET() in Hive, keep duplicates?
Is there a way to keep the duplicates in a collected set in Hive, or simulate the sort of aggregate collection that Hive provides using some other method? I want to aggregate all of the items in a column that have the same key into an array, with duplicates.
I.E.:
hash_id | ... | {
"pile_set_name": "StackExchange"
} |
Q:
In which case PHP sort function returns FALSE?
PHP sort() function and other functions from this family returns
true on success or false on failure. In which case sort function returns false? What is possible source of failure?
Example:
$array = [1, 5, 22, 8, 3, 3];
$returnValue = sort($array);
var_dump($returnVa... | {
"pile_set_name": "StackExchange"
} |
Q:
Example of a deterministic algorithm?
Good evening I was wondering if someone could please provide me with a simple pseudocode example of a deterministic algorithm... I will greatly appreciate it and surely give you points!!. thanks
A:
To me, "deterministic" could mean many things:
Given the same input, produc... | {
"pile_set_name": "StackExchange"
} |
Q:
android find custom view by attribute
I'm working with a layout, that hosts many custom views. Each custom view has "myname:num" attribute, that holds unique number value.
Question: how can I find a view by "num" attribute? Normally I would use findViewById() method, but since the "android:id" can't be a number, I... | {
"pile_set_name": "StackExchange"
} |
Q:
Food Timing: Keeping Bacon Warm While Cooking With Bacon Fat Made from Said Bacon
The Situation:
Guy decides he wants to make bacon and potato cubes (I can't think of a better term) for breakfast.
Guy wants to cook potatoes in bacon fat
Guy cooks bacon and places bacon on paper towels to dry off
Guy cooks potatoe... | {
"pile_set_name": "StackExchange"
} |
Q:
Why this implementations have different results?
Hi i need to generate some hash / checksum from same text in c# and ts/js
i found some solution here on stackoverflow but have some issue
so my js
private getStableHash(s, hashlength) {
let hash = 0;
const bytes = this.string2Bin(s);
for (let i = 0; i < bytes.leng... | {
"pile_set_name": "StackExchange"
} |
Q:
How to increase webview height dynamically in android
Can anybody tell me how to increase the webview height dynamically in android? My webview content will come some time less and sometimes I have to show webview full layout.
Thanks
A:
use this code
android:layout_height="wrap_content"
then you find web view h... | {
"pile_set_name": "StackExchange"
} |
Q:
Prevent IndexedDb from growing exponentially in chrome
I wanted to try IndexedDB, to see if it is fit for my purpose.
Doing some testing, I noticed, that its grow rate seems to be exponentially with every insert.
(Only tested in google chrome version 31.0.1650.63 (Offizieller Build 238485) m / Windows by now)
My C... | {
"pile_set_name": "StackExchange"
} |
Q:
${\rm Aut}(G)$ is cyclic $\implies G$ is abelian
I would appreciate if you could please express your opinion about my proof. I'm not yet very good with automorphisms, so I'm trying to make sure my proofs are OK.
Proof:
Since ${\rm Aut}(G)$ is cyclic, ${\rm Aut}(G)$ is abelian. Thus for any elements $\phi, \psi \in... | {
"pile_set_name": "StackExchange"
} |
Q:
Akka Stream test flow when Supervision.Resume implemented
I recently implemented an akka-stream flow which parse some json messages, validate the presence of a given key (destination_region) and pass to the next stage a case class containing the original message and the destination_region string.
I implemented a c... | {
"pile_set_name": "StackExchange"
} |
Q:
java- how to logically process n-levels of for loops where n is a variable
In a java program, I am getting some data with each value being assigned a name-
Each data item has a 'level' which is a numeric value.
For level 1, there are 'n' number of values--
the data items have names
1-1, 1-2, 1-3.....1-n.
Now, l... | {
"pile_set_name": "StackExchange"
} |
Q:
How to setup Eclipse to connect to a mobile device (generate crash logs regarding android/ios app crashes)
I've searched online about getting crash logs from android and/or ios devices but could not find anything. I am testing an external app atm and have solid steps to reproduce a crash. Though, I can get a crash... | {
"pile_set_name": "StackExchange"
} |
Q:
MVVM: Use DataGrid CheckBox IsChecked property to control the neighboring TextBox's TextDecorations
I need to accomplish the following without breaking MVVM (no code-behind/events). I have a DataGrid with a CheckBox column and a TextBox column. If the checkbox is checked, I'd like to change the TextBox's TextDec... | {
"pile_set_name": "StackExchange"
} |
Q:
c# Generics help - how to pass params to new T()
Possible Duplicate:
Create instance of generic type?
How can I pass a param to a generic contstructor?
public class Payment<T> where T: HostFunctionContext, IClaimPayment, new()
{
public IResultEntity Display(MyUser user, string claim, int? cert)
{
... | {
"pile_set_name": "StackExchange"
} |
Q:
Are reflections in higher dimensions commutative?
If $~r_1, r_2 ,\cdots, r_t~$ are a sequence of reflections about $~x_1=\frac{1}{2},\cdots,x_n=\frac{1}{2}~$ respectively in n dimensions does the sequence of reflections matter?
A:
Absolutely! The order matters.
In $\Bbb{R}^n$ the orthogonal reflection $s_{ij}$ w... | {
"pile_set_name": "StackExchange"
} |
Q:
Can't access form values in a $modalInstance
I'm opening a $modalInstance in which user has to choose an option from radio inputs (values loaded dynamically) and return chosen value.
I have this function to open the $modalInstance:
$scope.openAddFriendGroup = function () {
var addFriendGroupModal = $modal.open({... | {
"pile_set_name": "StackExchange"
} |
Q:
How to unpack the contents of a JavaScript file?
You know how those packed js files look like, right?
eval(function(p,a,c,k,e,d){ ... } ('obfuscated-string'.split('|'),0,{}))
It just so happens to be that i have to tweak some large legacy code that looks like that and I want to find a way to turn this into a more... | {
"pile_set_name": "StackExchange"
} |
Q:
NSXMLParser iPhone Question
I have an XMLParser class which uses NSXMLParser (event-driven) This is being called by an external class (MyVC.m), passing the web service API URL each time.
Here is my question; I have 2 options to parse
If I pass URL as http://xyz.com/sub1/ I get a complete XML file and then will ha... | {
"pile_set_name": "StackExchange"
} |
Q:
Unable to get each element from variable "coin" to dictionary as key
How do I get dictionary from variable coin which I have define in my code. There are 32 elements in variable coin but I'm getting only one key and value which is TUSD in last line.
import requests
import json
r=requests.get('https://koinex.in/a... | {
"pile_set_name": "StackExchange"
} |
Q:
issue KeyStroking in mac OS X vs windows
public void keyStrokeActions(){
screen.setFocusable(true);
screen.getInputMap().put(KeyStroke.getKeyStroke("pressed SPACE"),"attackAction");
screen.getActionMap().put("attackAction",attackAction);
screen.getInputMap().put(KeyStroke.getKe... | {
"pile_set_name": "StackExchange"
} |
Q:
One column (boolean) defines the other (boolean) but not vice versa
Let's assume life is not only existent on earth but there are also other living things in the universe. I have a table that shows all kinds of species of the whole world
+----+---------------+-------+-------+
| id | name | green | forgn |... | {
"pile_set_name": "StackExchange"
} |
Q:
Prohibiting an IP range from going out to the Internet in Red Hat/CentOS Linux
I have a VPN, and my server frequently sends data to a private IP address that routes over the VPN. When the OpenVPN gets established or dies, it enables/disables the routes.
I want to null-route that private IP range from going out ov... | {
"pile_set_name": "StackExchange"
} |
Q:
Changing malloc to new operator
I am changing a path planning code from C to C++. The code dynamically allocates the states in map. I don't clearly understand the difference between new and malloc. I get an error for following snippet of code.
typedef struct cell
{
int x,y;
struct cell *n[5];
}cell_t;
typ... | {
"pile_set_name": "StackExchange"
} |
Q:
How to set monday as first day of week in SQL Server
I am running SQL Server 2008 on a machine with regional settings that have Monday as the first day of the week. If I create a computed column in a table to compute the day of week for a date field then I get 2 for a Monday date instead of 1.
Is there some proper... | {
"pile_set_name": "StackExchange"
} |
Q:
unable to receive UDP broadcast in Xamarin.Forms app
I created a test Xamarin.Forms project, tabbed app, with support for iOS, Android, and UWP. The app with the boilerplate starter code builds and and runs correctly on all 3 platforms.
Am trying to test receiving UDP broadcast in the app. The UDP broadcast is b... | {
"pile_set_name": "StackExchange"
} |
Q:
WindowsIdentity.Impersonate in ASP.NET randomly "Invalid token for impersonation - it cannot be duplicated"
I have an ASP.NET app that requires users to sign in with their domain accounts using Basic Authentication. The user can make a selection, then press a button.
At some point after pressing the button is this... | {
"pile_set_name": "StackExchange"
} |
Q:
What's the best method for forcing cache expiration in ASP.NET?
Suppose I have an ASP.NET application running across several web servers behind a load balancer:
Can I:
Force OutputCache (Page and/or Control level) to expire globally?
Force Data Cache (i.e. Cache.Insert) to expire?
Monitor ASP.NET caching usage (k... | {
"pile_set_name": "StackExchange"
} |
Q:
Best Practices for installing PHP5 and MySQL5 on Red Hat Enterprise Linux 4
On an existing iPlanet webserver, we now have to install PHP5 and MySQL 5 on Red Hat Enterprise Linux 4. Are there any recommended guides or best practices for safely installing these 2 tools and hardening them from hackers on this public... | {
"pile_set_name": "StackExchange"
} |
Q:
Update a table after inserting records with an Inner Join
I insert into TableA using a Select/Inner Join from TableB and TableC.
Insert into TableA (C,S,M,C100)
SELECT C,S,M,group_concat(CID) FROM TableB
INNER JOIN TableC
ON TableB.CID= TableC.CID and P>=100 group by C,S,M
Now I need to update those records in t... | {
"pile_set_name": "StackExchange"
} |
Q:
Do I need to run AudioServicesCreateSystemSoundID in Thread
I'm using AudioServicesCreateSystemSoundID to play sound, it works fine except I'm not sure if I need to run it on a thread block or, by itself it run on it's own thread.
I'm just afraid it might make my application not responsive if it's run on main thre... | {
"pile_set_name": "StackExchange"
} |
Q:
Is there any particular technique to shoot down your opponent during Flash bomb in Counter Strike?
How are some players able to precisely shoot opposite team players during a Flash Bomb blast? Normally, it is impossible to see anything in the close proximity. But, it bemuses me that some players can manage to shoo... | {
"pile_set_name": "StackExchange"
} |
Q:
Exchange data across Cloud Foundry orgs
Our Pivotal Cloud Foundry installation is separated into several organizations (orgs). I am looking for a way to exchange data between apps running in separate orgs via services like Redis or RabbitMQ.
a) What would be the proper way to create a "shared" service instance of ... | {
"pile_set_name": "StackExchange"
} |
Q:
For Loop Doesn't Work Without printf
I have two questions.
I wanted to write a function that solves an equation:
int equation() {
int n, r, s;
printf("\nEnter the value of N: ");
scanf("%d", &n);
printf("Enter the value of R: ");
scanf("%d", &r);
printf("Enter the value of S: ");
sc... | {
"pile_set_name": "StackExchange"
} |
Q:
Using a system icon in a UIButton, in a UIToolbar?
I am trying to have a button, in a toolbar, use a system icon, by modifying its appearance in the XCode 7 interface builder. If I do this at the toolbar item level, then this just becomes a regular UIButtonBarItem, removing the button underneath. This means it won... | {
"pile_set_name": "StackExchange"
} |
Q:
Rails - RSpec NoMethodError: undefined method
I'm trying to test a very simple method that takes in 2 numbers and uses them to work out a percentage. However, when I try and run the tests it fails with the following error:
NoMethodError: undefined method `pct' for Scorable:Module
./spec/models/concerns/scorable_sp... | {
"pile_set_name": "StackExchange"
} |
Q:
The specified argument is outside the range of valid values - C#
I keep getting this error:
The specified argument is outside the range of valid values.
When I run this code in C#:
string sourceURL = "http://192.168.1.253/nphMotionJpeg?Resolution=320x240&Quality=Standard";
byte[] buffer = ne... | {
"pile_set_name": "StackExchange"
} |
Q:
Is there any reliable jQuery multiselect that is searchable AND has clickable optgroups?
I've been using the jquery multiselect with the enableClickableOptGroups: true option enabled and its fine. However it does not allow me to search though the values.
Tried Select2. That is searchable and has optgroups, but unf... | {
"pile_set_name": "StackExchange"
} |
Q:
Why won't my Cocos2d test app fire "touchesBegan" events?
In my app delegate, I made sure I have the line:
[glView setMultipleTouchEnabled: YES];
And I have a simple layer meant only to figure out how multi touch works. The .mm file looks like:
#import "TestLayer.h"
@implementation TestLayer
-(id) init
{
... | {
"pile_set_name": "StackExchange"
} |
Q:
Replace elements in numpy matrix by taking average of neighboring elements
I am trying to replace values in a numpy matrix which are below a certain threshold with the average of the values of matrix cells which are near the concerned cells (i.e. the ones with values below the threshold.
As an example, let's consi... | {
"pile_set_name": "StackExchange"
} |
Q:
installing GoogleMaps module in python
I installed GoogleMaps module via pip
pip install GoogleMaps
above command installed module in /usr/lib/python2.6/site-packages
but when I try load it gives me following error
>>> from googlemaps import GoogleMaps
Traceback (most recent call last):
File "<stdin>",... | {
"pile_set_name": "StackExchange"
} |
Q:
WebBrowser and BackgroundWorker VB
Can a WebBrowser.DocumentCompleted event executes the BackgroundWorker.RunWorkerAsync() correctly? Because my program doesn't seem to execute the codes under BackgroundWorker.
Code:
Dim Status As String = ""
Private Sub WebBrowser1_DocumentCompleted(sender As Object, e As WebBrow... | {
"pile_set_name": "StackExchange"
} |
Q:
Missing bluetooth applet on 16.04
I once messed up with rfkill command, which cause my bluetooth applet to disappear. Re-enable from system setting doesn't seem to work, it will stay disappear.
This question is similar to Bluetooth indicator disappears on turning off bluetooth, but this workaround appear to be wor... | {
"pile_set_name": "StackExchange"
} |
Q:
Storing values of second 's as comma separated just before deletion
I have a table having 2 <td>'s one is having a checkbox and other having a value:
My table as follows:
<table border="1" id="table_sundry">
<tr>
<td><input type="checkbox" id="chk_1"></td>
<td id="val1">a</td>
</tr>
... | {
"pile_set_name": "StackExchange"
} |
Q:
Google sheets query - Cartesian join between two ranges
How can we achieve the following join between two ranges on Google Spreadsheet using the query function?
Range 1
Model Style
Nissan Coupe
Nissan Truck
Honda Sedan
Honda Hatchback
Toyata Truck
Honda Coupe
Range 2
Style Engine
Coupe 1200... | {
"pile_set_name": "StackExchange"
} |
Q:
Set Cruise Controls build number to start at a certain value for renamed project?
I have a project that uses CruiseControl.NET, and as a versioning scheme we have 3.0.[ccnetbuild].[svnrevision]. CCNetBuild is the internal build number cruise control uses to keep track of how many builds of a project it has done. N... | {
"pile_set_name": "StackExchange"
} |
Q:
output and input dictionary
Hi I want to save a dictionary to csv, then input it. However on both output and input, I met some issues.
For output I tried: (D_FINAL is the dictionary)
f = open("D_FINAL.csv", "w")
writer = csv.writer(f)
for k, v in D_FINAL.items():
writer.writerow([k, v])
f.close
It works fine ... | {
"pile_set_name": "StackExchange"
} |
Q:
Alter each for-loop in a function to have error handling executed automatically after each failed iteration
This question follows from catch errors within generator and continue afterwards
I have about 50 similar (but different) functions which try to extract URLs and such from websites. Because each website is di... | {
"pile_set_name": "StackExchange"
} |
Q:
What to use as session id in application insights
I am considering adding some support in our app-backend to enable users and sessions to enable the analytics features in application insights.
As far as my understanding goes, i need to annotate the telemetry I send with user id and a session id.
For user id we ha... | {
"pile_set_name": "StackExchange"
} |
Q:
Switching Differential Equation in NDSolve
I am trying to solve the following system of differential equations using NDSolve:
$\dot{z}_t=.5(1-z_t)$
$\dot{y}_t=.05y_t+z_t-x_t$
subject to the following constraint:
$-y_t-z_t\le0$
where $z_t$ essentially follows a predetermined path, and $x_t=0.75$ until the constrain... | {
"pile_set_name": "StackExchange"
} |
Q:
Linear Layout:How to fill the whole width of screen?
I've following layout file, which creates linear layout inside the relative layout.
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_wi... | {
"pile_set_name": "StackExchange"
} |
Q:
factory floor simulation
I would like to create a simulation of a factory floor, and I am looking for ideas on how to do this. My thoughts so far are:
• A factory is a made up of a bunch of processes, some of these processes are in series and some are in parallel. Each process would communicate with it's upstrea... | {
"pile_set_name": "StackExchange"
} |
Q:
Ruby WIN32OLE excel chart seriescollection values
I am trying to change the values of an Excel (actually PowerPoint) chart.
I tried doing this by passing an array but it doesn't seem to work.
Although as mentioned on this page it should work...: http://msdn.microsoft.com/en-us/library/office/ff746833.aspx
So how d... | {
"pile_set_name": "StackExchange"
} |
Q:
Where was Hermione's time turner after the Prisoner of Azkaban?
In Harry Potter, Hermione's Time turner saves the day in the Prisoner of Azkaban.
But then we don't see it in the rest of the series.
Where did it go?
A:
She returned it.
Hermione Granger got one from Professor McGonagall to attend more classes in ... | {
"pile_set_name": "StackExchange"
} |
Q:
Apply multiple filters based on user input (VBA)
I want to ask the user:
Which field/column to apply filters to?
How many filters are to be applied?
I want to take those n filters as input and apply them to the field of that column.
Refer these images:
Before applying filters,
After applying filters to Column A... | {
"pile_set_name": "StackExchange"
} |
Q:
I am having problems running the command bundle exec guard init rspec
I am going through the railstutorial.org book.
I am receiving this error:
$ bundle exec guard init rspec
c:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/guard-2.0.3/lib/guard/interactor.rb:1:in
require': cannot load such file -- pry (LoadError)
... | {
"pile_set_name": "StackExchange"
} |
Q:
jquery validate .resetForm() not clearing form, validation messages firing on manual reset
Ive got several buttons, passing different params to the same function. That function will eventually do lots of client side processing but first it needs to validate. Validation is working fine, but upon success, I need t... | {
"pile_set_name": "StackExchange"
} |
Q:
send key strokes to a window in vb.net while it is still minimized
I used to know vb6 and I need to make a quick application. I hope someone can help me with how to send keys to a minimized window in vb.net
thanks
A:
Normally you can send keys with the SendMessage API function, but I'm not sure if it would be af... | {
"pile_set_name": "StackExchange"
} |
Q:
returning the ArrayList cast to List vs no casting
What is the difference, if any, between the two:
@ModelAttribute(value = "attendanceStatuses")
public List<Code> getAttendanceStatusCodes() {
List<Code> attendanceStatuses= new ArrayList<Code>(
cacheService.getValidCodesOfCodeGroup(CODE_GROUP));
retu... | {
"pile_set_name": "StackExchange"
} |
Q:
Reactor: function creating Monos to Flux
Basically, I'm making a queue processor in Spring Boot and want to use Reactor for async. I've made a function needs to loop forever as it's the one that pulls from the queue then marks the item as processed.
here's the blocking version that works Subscribe returns a Mono
... | {
"pile_set_name": "StackExchange"
} |
Q:
convert BufferedImage to JPG byte array
I'm working on a processing platform for images and my server is currently accepting images as byte arrays from the client using pythons PIL.Image methods. I'm also currently using Java as a front end to grab image frames from video with the FrameGrab utility and returning t... | {
"pile_set_name": "StackExchange"
} |
Q:
MFC App loading dialog from another DLL
We have a very big MFC application that have 16 projects in the solution. Each project is a DLL. Four(4) of these projects are what we call "Network". In each network, there is a dialog that we will call X. This dialog is VERY different in each of the network but the name of... | {
"pile_set_name": "StackExchange"
} |
Q:
Powershell v2 :: Load a COM Interop DLL
I have this DataLink DLL on my system - Interop.MSDASC.dll I am trying to load the same from Powershell like this -
[Reflection.Assembly]::LoadFile("C:\Interop.MSDASC.dll") | out-null
But, I get the following error -
Exception calling "LoadFile" with "1" argument(s): "Cou... | {
"pile_set_name": "StackExchange"
} |
Q:
CF query remove empty string results for total sum
I am trying to fix my query so that my total sum column will equal the correct number. I tried changing this line <cfset columnSum = ArraySum(allLocCode['locationCount'])> to <cfset columnSum = ArraySum(trim(allLocCode['locationCount']))> But it through an error. ... | {
"pile_set_name": "StackExchange"
} |
Q:
File for xi:include does not exist because parser is looking from project root
I currently have an xml resource file that has XML inclusions.
stream = Main.class.getResourceAsStream("resource/Resource.xml");
within the xml file:
<?xml version="1.0" encoding="UTF-8"?>
<root xmlns="http://www.w3.org/1999/xhtml"
... | {
"pile_set_name": "StackExchange"
} |
Q:
Nested quantifiers in English translation
I'm having a hard time grasping how to express english statements with quantifiers; specifically when trying to show "exactly 1" or "exactly 2" or etc. The introduction of numerous variables throws me off guard.
Let $F(x, y)$ be the statement: "$x$ can fool $y$", where the... | {
"pile_set_name": "StackExchange"
} |
Q:
How to merge many MDBs?
I have many MDBs files with the same structure and two tables each.
Is there any way how to merge this bases in huge one?
I try to use special utilit "Simple MDB Merge", but it doesn't see mdb files on my computer...
A:
You can open up one of the MDBs, and import tables into it from all t... | {
"pile_set_name": "StackExchange"
} |
Q:
How to make jquery mobile custom theme generated with themeroller work?
I created a custom jquery theme on jquery themeroller and downloaded it, as the instructions said, I have included the following line on the head part of the html file, should I also tranfer the css file to my server? if so should it be all fi... | {
"pile_set_name": "StackExchange"
} |
Q:
Find the value of $a \in R$ such that $\langle x_n \rangle$ converges to a positive real number when $x_n=\frac{1}{3}\frac{4}{6}...\frac{3n-2}{3n}n^a$
Find the value of $a \in \mathbb{R}$ such that $\langle x_n \rangle$ converges to a positive real number when $x_n=\dfrac{1}{3}\dfrac{4}{6}\cdots\dfrac{3n-2}{3n}n^a... | {
"pile_set_name": "StackExchange"
} |
Q:
Get mean of values for each tuple in a list in the format (string, value) in Python
I have a list of tuples like: (A, 1), (B, 2), (C, 3), (A, 9), (B, 8).
How to get the mean of each value referred to the first element of the tuples, not knowing the number of occurences of the first element of tuples?
I want someth... | {
"pile_set_name": "StackExchange"
} |
Q:
Passing a var from one Extended function to another
I am having trouble passing the url of $.PhotoUpdater.doUpdate(url) to do the doUpdate function.
Firefox returns this error :
useless setTimeout call (missing quotes around argument?)
[Break on this error] timer = setTimeout($.PhotoUpdater.doUpdate(url), 5000)
... | {
"pile_set_name": "StackExchange"
} |
Q:
compare 2 parameters with 1 coloumn while passing parameters in SQL Server 2008
i have to pass two parameters (month var-char(2),year var char(4)),but these two parameters pointing towards one coloumn 'Myear'(values will be like this '03/14') now after passing parameters then i should compare with the coloumn 'Mye... | {
"pile_set_name": "StackExchange"
} |
Q:
Count the list items times of occurances
Let's assume I have the following list
names = ['tan','2','alp','3','tan','4','alp','3','tan','1']
the odd indexed elements are some values and even indexed elements are their number of occurrences (so alp happened 3+3 = 6 times for example)
I am trying to make code to do t... | {
"pile_set_name": "StackExchange"
} |
Q:
web scraping to csv file getting only the first row
I am trying to get a bunch of tables from Wikipedia,this is my code
from urllib import urlopen
from bs4 import BeautifulSoup
import csv
url="https://en.wikipedia.org/wiki/List_of_colors:_A%E2%80%93F"
html=urlopen(url)
soup=BeautifulSoup(html,'html.parser')
table=... | {
"pile_set_name": "StackExchange"
} |
Q:
Switching tab using conemu GuiMacro Tab() function does not work
I have the following conemu GuiMacro's defined
<F9> - Tab(3)
<F10> - Tab(2)
When I press the keys, I see the previous/next tab being highlighted in the tab bar, but the highlighted tab is not being activated - i.e. keyboard input remains in the c... | {
"pile_set_name": "StackExchange"
} |
Q:
How to prove whether $x^{2}+y^{2}+1$ is irreducible over $\mathbb{C}$ or not?
Let's consider a 2-variable polynomial $f(x, y)= x^{2}+y^{2}+1$. It can be established that it's irreducible over $\mathbb{R}$.
For example, if it's irreducible over $\mathbb{R}$ as a polynomial of two variables, then if we assume $y=1$... | {
"pile_set_name": "StackExchange"
} |
Q:
How can I add 40 weeks to the current date I get from the date picker
I have this code, I want to add 40 weeks to the date I get from the date Picker and get the new date after the 40 weeks (280 days) has been added to the date from the date picker.
Code:
public class MainActivity extends AppCompatActivity {
... | {
"pile_set_name": "StackExchange"
} |
Q:
"I've been doing this (for) a week" -- When do you leave out the 'for' when talking about duration, and when do you not?
The other day I heard someone say:
They've been going out a week; I mean, that's not (a) serious (relationship).
I wondered if she was speaking correctly, which is presumable, since she wa... | {
"pile_set_name": "StackExchange"
} |
Q:
Batch file to find all images and copy to a folder
Not even sure if this is possible, but I'd figured i'd give it a try.
So here's my problem. I need to search multiple big hard drives (1TB and bigger) for all images and move them to one folder. My issue i'm having is no matter what language I try to write this i... | {
"pile_set_name": "StackExchange"
} |
Q:
java.lang.ClassCastException: org.bouncycastle to error while creating wallet using web3j
I am using web3j to create account.
String walletFileName = WalletUtils.generateFullNewWalletFile("
<password>",new File("some/path"));
But getting this error:
java.lang.ClassCastException: org.bouncycastle.jce.provider.JCEE... | {
"pile_set_name": "StackExchange"
} |
Q:
Rally Rest Api C# ToolKit
I am trying to use the C# toolkit for RallyRest API. I want to display the number of user stories for each release, and the number of tasks by a team. The hierarchical requirement request doesn't return all the data.
Moreover, how can I filter the data based on a particular release and t... | {
"pile_set_name": "StackExchange"
} |
Q:
spring controller could not retrive a data from $http angular
I have a $http function in angular and a controller, but the controller do not retrieve data send from angular, in the log print
Skip CORS processing: response already contains
"Access-Control-Allow-Origin" header
I have configurate my filter in we... | {
"pile_set_name": "StackExchange"
} |
Q:
Example of non-interference in Java 8
According to this question, we can modify the source and it's not called interference:
you can modify the stream elements themselves and it should not be called as "interference".
According to this question, the code
List<String> list = new ArrayList<>();
list.add("test");... | {
"pile_set_name": "StackExchange"
} |
Q:
Unable to approve user registrations via email link
Since the latest update of Joomla I can no longer approve a user via the link in the registration approval email.
As of 3.8.13, Joomla is securing the process on approving an user after an email notification by requesting the administrator, who is going to app... | {
"pile_set_name": "StackExchange"
} |
Q:
Android HTTP exception
I am using following code to log in to Dropbox, but it throws an exception.
Code:
HttpClient client = new DefaultHttpClient();
HttpPost post = new HttpPost("https://www.dropbox.com/login");
// set values you'd like to send
List pairs = new ArrayList();
pairs.add(new Basi... | {
"pile_set_name": "StackExchange"
} |
Q:
Why isn't this working? It doesn't even call the onClick
<script type="text/javascript">
$("a.filef").click(function(e){
alert('hi, it works');
return false;
});
</script>
<a class="filef" href="" rel="1">A</a>
<a class="filef" href="" rel="2">V</a>
A:
You need to make sure the elements exist first. Tr... | {
"pile_set_name": "StackExchange"
} |
Q:
How to get all elements whose id contains a particular substring?
I'm building a chat with firebase realtime database.
Let's say user1 has uid1 and user2 has uid2, their chatId will be uid1_uid2 (ordered asc).
So the database chat/ looks like this:
chat {
uid1_uid2: [message, message...],
uid4_uid2:[message, m... | {
"pile_set_name": "StackExchange"
} |
Q:
Is there an add-on to auto compress files while uploading into Plone?
Is there any add-on which will activate while uploading files into the Plone site automatically? It should compress the files and then upload into the files. These can be image files like CAD drawings or any other types. Irrespective of the file... | {
"pile_set_name": "StackExchange"
} |
Q:
Convert Uploaded Files To .pdf
I'm reviewing a spec. that calls for all files uploaded via a file field to be automatically converted to PDF format. I have two questions:
Is this wise? Files would be uploaded by anonymous customers. Allowed file extensions (.doc, .xls, .png, .jpg, etc) would be provided as per... | {
"pile_set_name": "StackExchange"
} |
Q:
How can i display in a archive page a number of post i want
How can i display in a archive themplate ( post type) page a number of post,
Let say i want to display a number of 20 post....in archive page, under i want to display the pages...
Please look here :
http://cinema.trancelevel.com/trailer/aventuri/page/2/
I... | {
"pile_set_name": "StackExchange"
} |
Q:
How to handle puppeteer exception on synchronous execution
I am trying to achieve a synchronous call:
puppeteer.launch().then(browser => {
let html = `
<!DOCTYPE html>
<html>
<body>
<div>
Hello
</div>
... | {
"pile_set_name": "StackExchange"
} |
Q:
Double "1/3" as ConverterParameter
I have to convrt a double to other using a converter and a parameter:
This is my XAML stub:
Converter={StaticResource ToOtherDoubleConverter}, ConverterParameter=-1/2
this is the converter:
[ValueConversion(typeof(double), typeof(double))]
public class DoubleToOtherDoubleConvert... | {
"pile_set_name": "StackExchange"
} |
Q:
make tr visible depending on username all other unvisible
i have a table containing messages that are clickable links with the following structure:
<tr><td>#</td><td><a href='messages/". $file .".php'>$file</a></</td></tr>
...
$file always has this kind of structure as document name:
Date of submission [2014-02-1... | {
"pile_set_name": "StackExchange"
} |
Q:
Execute PHP script server side
Yesterday I created a script which is working fine, but only with an opened Web Browser which isn't that what I wanted. What I want is that the script runs all the time, even with closed Web Browser.
Could not upload a Picture, so its a short sketch:
(lookup.php) -> pass var data1 -... | {
"pile_set_name": "StackExchange"
} |
Q:
Slick2D get image x and y
Ok, so i have a car that you can drive around in my game. It's basically an Image that drives around on a background, a and d turns it, w and s drives back and forth. But i want to make some borders on the screen edges so it doesnt just keep driving out into nothing, but to do that i thin... | {
"pile_set_name": "StackExchange"
} |
Q:
Which derivative to use for an integral?
Does anyone know of a rule to tell which derivative to use when faced with an integral like this? (C is any constant, eg. 2400 or 4, etc).
$$\int \:\frac{C}{x}\mathrm{d}x$$
I know that $\ln(x) = \int\frac{1}{x}\mathrm{d}x$ so then $\int \:\frac{C}{x}\mathrm{d}x$ could equal... | {
"pile_set_name": "StackExchange"
} |
Q:
Processing dependent elements that are in the wrong order
The following PHP example code only works if the "bar" elements come before the "foo" elements. If they are in the wrong order, I will get a "call to a member function on a non-object" error.
$data = array();
foreach($elems as $e) {
if($e['type'] == "foo"... | {
"pile_set_name": "StackExchange"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.