text stringlengths 70 452k | dataset stringclasses 2
values |
|---|---|
Microsoft translator nb-NO translates fine, but supported language api call does not list as supported language
I would like to check if a language is supported by Microsoft Translator, before sending the request of to translate text.
I make a call to this api:
http://api.microsofttranslator.com/V2/Http.svc/GetLanguage... | common-pile/stackexchange_filtered |
Disassembly of Visual Studio Intel compiler c++ code
Most of my question is mentioned in the title of this question.
I recently wanted to learn (and play :-) ) with the Intel C++ Compiler, so I downloaded and plugged it into a Visual 2010 c++ (win32 console) project. I am just curious to look on the disassembly.
Most... | common-pile/stackexchange_filtered |
Gridview Sorted Event
I've very small question that drives me mad :)
I've a Gridview (bind from db nothing special there) and I use small function that runs on the griviewrows and sets .Visable to false in case they don't match search criterias. It works fine but when I try to sort the grid view (by clicking on the hea... | common-pile/stackexchange_filtered |
I want to iterate through my priority queue in C#
I am implementing a generic priority queue in C# i used SortedDictionary for the priority keys and Queue for the values.
Now i want to iterate through it with a foreach loop with a condition to skip over queue items with priority 0.
This is my priority queue class
... | common-pile/stackexchange_filtered |
Vertex label to change from id to another column in igraph
I am creating a graph that's taking the id as vertex names. However I want to change the vertex label to another column values. How can I do that?
Columns in df1 are ID, name and I want the vertex labels to be name
My code:
df1:
ID NAME
1 Ada
2 Cora
3 Lo... | common-pile/stackexchange_filtered |
Simplifying array diff code using syntax sugar
Can I simplify this array diff code, using some coffeescript syntax sugar I didn't know about?
first = [{id:1},{id:2},{id:3},{id:4},{id:5}]
second = [{id:3},{id:4},{id:5},{id:6},{id:7}]
first = first.filter (first_element) ->
second = second.filter (second_element) ->
... | common-pile/stackexchange_filtered |
React router 4 renders wrong route?
I run into a slightly problem. I have Root component which contains Switch and two Route. When the user loads the page I want to render the initial <Route path="/" /> This route contains a component with a Route pointing to the gallery I want to show.
When the user clicks on the imag... | common-pile/stackexchange_filtered |
Is selecting from the same server but different database slower than the same database?
I am thinking about 2 possibilities that I want to use in my project. So there are 2 projects, with different databases each. So Project P1, has Database D1, and Table T1. Project P2, has Database D2.
For Project P2, I need to selec... | common-pile/stackexchange_filtered |
Selenium click at text field fails during test, passes single command test
I'm using the selenium plug in, through firefox, i have a test case set up to do a search through some fields, the problem is that when the page loads to the search screen its failing the click at command to the text field. it then fails to edit... | common-pile/stackexchange_filtered |
How to get the Units by day via API - App store connect
Is it possible to get the data from Units download by day or installed via API ? but the problem is hard to find the resources of documentation of it.
this image below is the data I want to have.
https://i.sstatic.net/P3NDF.png
The only problem is that in this re... | common-pile/stackexchange_filtered |
Swift 3.0 Thread Class Target Does not Implement Selector
I declare a property for my thread like so:
let loggingThread = Thread.init(target: self, selector: Selector(("loggingThreadProcess:")), object: nil)
@objc func loggingThreadProcess(object: AnyObject?) {
}
But I am getting the this error:
[NSThread initWithT... | common-pile/stackexchange_filtered |
JQuery not summing the values of a set of input boxes in certain situations
I am using the following function by calling it inside document.Ready() that is defined inside a file called startSript.js file to sum the values of a set of input boxes.
The one example of a call to this function would be: autoSumBySelector('... | common-pile/stackexchange_filtered |
How do I SSH tunnel to a remote server whilst remaining on my machine?
I have a Kubernetes cluster to administer which is in it's own private subnet on AWS. To allow us to administer it, we have a Bastion server on our public subnet. Tunnelling directly through to our cluster is easy. However, we need to have our deplo... | common-pile/stackexchange_filtered |
Arrow is too low
There used to be an arrow showing what section you are in. The earliest design post) shows it pretty clearly in this image under "Questions":
Another more recent example of the correct behavior can be found here.
Actually, this arrow is not completely gone. It's just a little too low now, as you can s... | common-pile/stackexchange_filtered |
Ionic: silently login an "admin" account to Firebase
I'm running an Ionic app on localhost. I need to login an "admin" account to manage some data. I get the attached error when I run following code:
firebase.initializeApp({
apiKey: "****",
authDomain: "****.firebaseapp.com",
databaseURL: "https://***... | common-pile/stackexchange_filtered |
Dynamically adding multiple rows to a datatable
I see similar questions have been asked before but I cannot find the answer I'm after.
My question is, how do I add multiple rows of data at the same time, I have a working example below which will slowly add 1000 rows using the row.add() but I cannot for the life of me w... | common-pile/stackexchange_filtered |
Scala: conforming concrete type to generics with bounds
I've defined a function with generics and I have some trouble understanding the error that the compiler is giving me. The problem can be expressed simply with :
def myfunc[T <: MyClass](param:MyClass):T = param
It gives me this error on param in my the body : Exp... | common-pile/stackexchange_filtered |
Documentation for Proguard
Can anyone point me towards the un-obfuscated version of the Proguard documentation?
I've seen the obfuscated version here: http://proguard.sourceforge.net/#manual/
Too localized?! Because the manual is understandable outside the UK?!
How about http://proguard.sourceforge.net/index.html#man... | common-pile/stackexchange_filtered |
How to Scheduling a Pipeline in Azure Data Factory
I followed the tutorials of MS and created a pipeline to move data from the on premise SQL Tablet to Azure Blob and then there's another pipeline to move the blob data to azure sql table. From the document provided, I need to specify the active period (start time and e... | common-pile/stackexchange_filtered |
how to add formatted string (for multiple filenames etc.) in tchar
Like in win32 C++ we use to use following code if needed to add multiple files as
file_name0.txt, filename1.txt, ...., filename30.txt etc.
char fname[20];
for i = 0 -> 30 {
sprintf(fname, "filename%d.txt", i);
}
How can we do the same with TChar since... | common-pile/stackexchange_filtered |
Non-linear system of two equations (Method of Moments for Generalized Pareto)
In a Method of Moments Estimation problem involving the generalized Pareto Distribution, the following system of 2 non-linear equations arise
\begin{align*}
\bar{X} &= \frac{\alpha \beta}{\alpha - 1}. \\
\frac{1}{n}\sum_{i=1}^{n} X^2_i &= \f... | common-pile/stackexchange_filtered |
How can I see the parameters in intellisense in a spark file?
I've got spark intellisense working but when I open the parameters () of the method I can not see what is supposed to go in there and several of the methods have overloads so I can't see what options I have.
For example !{Html.Hidden()} once I open the () I ... | common-pile/stackexchange_filtered |
Retrieving 2 separate portions of a text in Wordpress
I have a page in Wordpress containing a text with 5 paragraphs. Each paragraph is separated by a <!--more-->.
Now I need to retrieve the first the 2 first paragraphs to display on my front_page.php, each paragraph in a different <section>
What I am using now is the ... | common-pile/stackexchange_filtered |
Can mythological names be trademarked and become associated with an entity (eg. a company)?
Can the names of creatures, deities (gods), locations, etc. be trademarked and become associated with a specific entity (so it receives protection against dilution)?
Simple answer: Nike..
I looked up “Thor” (assuming a movie a... | common-pile/stackexchange_filtered |
Angular 2 - Getting object id from array and displaying data
I currently have a service that gets an array of json objects from a json file which displays a list of leads. Each lead has an id and when a lead within this list is clicked it takes the user to a view that has this id in the url ie ( /lead/156af71250a941ccb... | common-pile/stackexchange_filtered |
Docker AWS access container from Ip
Hey I am trying to access my docker container with my aws public IP I don't know how to achieve this. Right now I have a ec2 container ubuntu 16.04
where I am using a docker image of ubuntu. Where I have installed apache server inside docker image I want to access that using public ... | common-pile/stackexchange_filtered |
Where are the system spellchecking dictionaries?
I would like to use the spellchecking dictionaries bundled with OS X from the command line (hunspell), but can't seem to find them. In /System/Library/Spelling there are only 2 files pl_PL.{aff,dic}, and find / -name '*.dic' revealed nothing.
I know I can dowload diction... | common-pile/stackexchange_filtered |
How bind mouse move to all scale widget?
I am developping a Form generator on TCL TK.
I would bind a mouse move to all Scale widget.
I generate a scale widget:
grid [ttk::scale .frm.fgs_$name -length $length -from -100 -to 100 ] -column 2 -row $row -sticky w
I tried binding that doesn't works:
bind Scale <B1-Motion> ... | common-pile/stackexchange_filtered |
Matlab ODE Solvers Providing Incorrect Solutions
I am having a huge headache dealing with Matlab's ode solvers. Very few (If any at all) want to help me on the Matlab forums because it has been a persistent issue that I have found no solution to in the last 4 months and there is no error message to provide. Essentially... | common-pile/stackexchange_filtered |
How can i maximize an iFrame with jQuery when clicked
Can any one tell me how can I Maximize a iFrame when the Div which has iFrame is clicked?? Say for example i have 3 div which has 3 different iFrame on a single page now if anyone clicks on the 1st div I want to maximize that Div to the whole page of browser showing... | common-pile/stackexchange_filtered |
How do I get gvim/vim to open a file in a path with non-ascii characters?
At first I had this path to one of my files in Windows:
C:\mine\NOTES
I renamed it such that the last part of the path i.e 'NOTES' had the U+2588 FULL BLOCK=solid
before and after it. I inserted the character using the key combination ALT+219(a... | common-pile/stackexchange_filtered |
PHP Pdo Help... can't get pdo fetchall to work for me
Trying to migrate to php pdo... can someone please tell me why on earth this bit of code is not working?
$stmt = $db->prepare("SELECT SUM(aw_score) AS awscoreaw, SUM(hm_score) AS awscoreaw_def FROM nfl_new WHERE away=:away AND date<:date AND Season=:season");
$stmt... | common-pile/stackexchange_filtered |
How to draw a Pascal's triangle?
How to draw a Pascal's triangle, similar to what follows?
Could you show some code that you've tried? Starting from scratch ain't much fun...
| common-pile/stackexchange_filtered |
How can I get HBase to play nicely with sbt's dependency management?
I'm trying to get an sbt project going which uses CDH3's Hadoop and HBase. I'm trying to using a project/build/Project.scala file to declare dependencies on HBase and Hadoop. (I'll admit my grasp of sbt, maven, and ivy is a little weak. Please pardo... | common-pile/stackexchange_filtered |
Merge profile based on 2 property in Apache-Unomi
I am trying to build an customize logic in action for profile merging, can anybody suggest me how to create a rule where I can merge profile based on email and phone-number, as of now I am able to do with only one property value email. you can find the sample rule below... | common-pile/stackexchange_filtered |
POST and GET in the same form created by BeginForm method
How to create a form that has a search function (pull data from the database) AND a submit function (add data to the database) at the same time using the BeginForm() method? I am reviewing the overloads on MSDN and I don't seem to find one.
Code:
@using (Html.Be... | common-pile/stackexchange_filtered |
Popover on hover vue headllessui
I'm trying to implement the popover from headlessui of vue package with hover. I try to use the mouseenter and mouseleave and the other mouse events but nothing change.
Any solution? There is a better solution? i search on internet I cant nothing about this. I search on headlessui githu... | common-pile/stackexchange_filtered |
sending SMS from android & eclipse
I'm trying to send sms from one emulator to another emulator,
I've 3 string, then I'm adding this 3 string to one string & then trying to send an SMS, but its just sending `null'.
private String fm = mSelectedItemExam+" "+mSelectedItemBoard+" "+mSelectedItemYear;
public void Submit(... | common-pile/stackexchange_filtered |
Oracle 12c CLOB data type is not working as expected
I have This Oracle 12c Procedure
CREATE OR REPLACE PROCEDURE LOGINCHECK(SQLQRY IN CLOB)
AS
C INTEGER;
N INTEGER;
RC SYS_REFCURSOR;
stmt clob:= To_Clob('begin ' || sqlqry || '; end;');
BEGIN
C := SYS.DBMS_SQL.OPEN_CURSOR;
SYS.DBMS_SQL.PARSE(C,st... | common-pile/stackexchange_filtered |
Why did my Ubuntu 22.04 LTS reboot during an xorg upgrade?
My Laptop had to upgrade some xorg upgrades recently, and this required a reboot, where during the boot process some stuff was installed. Why was that necessary? I have never experienced this with a linux operating system, only with windows. What was done durin... | common-pile/stackexchange_filtered |
How to add a css reference within a server control?
I've built a custom server control that uses custom CSS. The problem that I have is that I have to set a reference to the css file on each page I use the control.
Can I set this reference inside the control ? So that I could just add the control and not worry about th... | common-pile/stackexchange_filtered |
PHPExcel Downloaded after remaining code execution stops?
I have a problem like when I download excel sheet after remaining code not executing. Please look below mentioned sample code.
$data[]=array('EANCODE'=>6161106690015,'ItemDesc'=>'Electrical hammer mill 15hp'
,'UnitDesc'=>'PIECES','qty'=>10);
... | common-pile/stackexchange_filtered |
Azure VM Core vs vCPU
When comparing two different VM series in Azure, I see that one has Cores and the other one vCPUs. Keeping aside the number of Cores/CPUs, Memory and Processor Type (Intel Xeon E/Platinum etc), what is the advantage of one over the other? I understand that CPU can have multiple cores, but in Azure... | common-pile/stackexchange_filtered |
Angular stripe add card form allow only one enter button submit
I have an angular add stripe card form and it is working fine. However I need to add a funcationality for this card to be submitted with an enter button click if all fields are correct. So I decided to add a keyup.enter functionality that just call the fun... | common-pile/stackexchange_filtered |
Select query returning only one result per product?
I'm working with a MySQL database, where I have to tables. A product-table with unique product and a price-table that contains Several prices for each product.
Today I use the following query, that will return rows for as many different prices present in price-table f... | common-pile/stackexchange_filtered |
Raw socket not picking up ARP requests
I am attempting to write a custom packet sniffer. I am following the following tutorial...
http://www.binarytides.com/packet-sniffer-code-in-c-using-linux-sockets-bsd-part-2/
Doing so, I am unable to pick up an ARP requests packets. I do successfully pick up all other packets incl... | common-pile/stackexchange_filtered |
When will ASP.NET kill a new thread?
I've tried some googling on this subject but i would like to have som more info.
I'm trying to start a new thread inside an ASP.NET app that will take care of some work that takes long time. If I put this in my web.config:
<httpRuntime executionTimeout="5" />
A regular request will... | common-pile/stackexchange_filtered |
handle exceptions in java
Let's suppose we have a situation where one of the record is missing in the books.txt file. How can We handle such a case, so that the program logs a situation to the console and skips it in further processing?
Another situation, we input a wrong category the program should inform the user abo... | common-pile/stackexchange_filtered |
What does -> ? mean at the end of a linux command?
For example
Path to MySQL shared libraries directory:
/usr/local/mysql/lib -> ?
as seen here: http://www.macports.info/MySQL
That tutorial refers to Webmin. Demo installation is here, username and password are demo. See the screen at Servers » MySQL Database Server »... | common-pile/stackexchange_filtered |
Apache Tomcat 7 on windows 2008: how to make two hosts point to same website
I’m new to Apache Tomcat. I have been asked to point new domain name to the existing domain name. E.g. We have https://xyz.abc.com, we want new domain name http://123.abc.com to point to xyz.abc.com. The Apache Tomcat 7 server is installed ... | common-pile/stackexchange_filtered |
JavaFX window resizing when running the application on two different sized screens
I have created a JavaFX window on my laptop using scene builder..however when i try to run the same on a workstation with a larger screen the JavaFX application does not resize itself and is displayed towards the left top of the screen..... | common-pile/stackexchange_filtered |
Non-exhaustive patterns in function buildTree' Haskell
I use function that returns tuples. But when I try to run the function it gives me an exception: Non-exhaustive patterns in function.
buildTree' :: String -> Tree -> (String,Tree)
buildTree' (x:xs) currenttree
|null (x:xs) = ("empty", currenttree)
|isDigit x &... | common-pile/stackexchange_filtered |
Symfony AbstractToken private properties
I'm extending symfony's AbstractToken to fit my own needs. However, AbstactToken declares its properties $user, $roles and $authenticated as private. Furthermore, there is no setRoles()-function, it can only be initialized through the constructor.
This seems to not make sense: ... | common-pile/stackexchange_filtered |
Are passive scanners subset of active scanners?
Assuming:
Passive scanners are those which do not actively send request packets, all they can do is monitor packets (which can be probe replies and beacon frames) which are passing through the interface and analyze followed by some action(s)
Active scanners are those w... | common-pile/stackexchange_filtered |
Get ffmpeg version number
I'm trying to get the version number from ffmpeg in a reliable way, hopefully without parsing a string.
I can parse the output of ffmpeg -version, however i see no guarantee that string won't change in the near future.
$ ffmpeg -version
ffmpeg version 4.3.1 Copyright (c) 2000-2020 the FFmpeg d... | common-pile/stackexchange_filtered |
React Native componentWillMount / componentDidMount not going triggered after pop navigating and navigate again
I am new in React Native ...just want ask nub question, my App wont triggered componentWillMount and componentDidMount when navigate back to other page,
I use react-native-router-flux for navigator
componentW... | common-pile/stackexchange_filtered |
Solr: Localities & solr.ICUCollationField usage?
I'm learning Solr and have become confused trying to figure out ICUCollation, what it does, what it is for and how to use it. From here. I haven't found any good explanation of this online. The doc appear to be saying that I need to use this ICUCollation and implies that... | common-pile/stackexchange_filtered |
SQL filtering by multiple columns with indexes
I'd like to expand a question I posted a while ago:
I'm querying a table for rows in which pairs of columns are in a specific set. For example, consider the following table:
id | f1 | f2
-------------
1 | 'a' | 20
2 | 'b' | 20
3 | 'a' | 30
4 |... | common-pile/stackexchange_filtered |
how to write advanced concat grunt script that find matches in seperate folders?
I need to write an advanced concat script using grunt. here is my boilerplate:
___js
|____dist
| |____vents
| | |____commonEvents.js
| | |____compare.js
|____libs
|____src
| |____events
| | |____carousel.common.js
| | |____compare.js
| | ... | common-pile/stackexchange_filtered |
How to serialize data in C to send in a socket
I have to serialize some data and after send it using socket AF_UNIX.
I have read (here) that I can't create a struct and just send it using a cast (void *). So, I would like to know which is the best method to handle this problem.
Thank you!
Check this question of mine: ... | common-pile/stackexchange_filtered |
Computer shuts down many times between each Windows session
Upgraded from Windows 8.1 to Windows 10 with a clean install, and the following behavior is now happening every time I turn it on :
computer is shut down in Windows
next time it is turned on, it won't show BIOS and lit Num Lock, just a non-blinking cursor
com... | common-pile/stackexchange_filtered |
Using Regex, how do I extract the numbers from this serial code?
I have over 1,000 serial codes I need to enter into a database but they have to be completely numerical for conversion identification purposes. They all look similar to this format but contain different characters/numbers:
d47a3c06-r188-4203-n838-fefd3208... | common-pile/stackexchange_filtered |
What is the proper regular expression to validate pakistani mobile number?
I want to validate pakistani mobile number in my php registration form. I need a regular expression that validate all the pakistani numbers (zong, ufone, telenore, jazz, warid) e.g<PHONE_NUMBER>6 or +923124432876
^((\+92)|(0092))-{0,1}\d{3}-{0,1... | common-pile/stackexchange_filtered |
Putasync 400 Bad Request c# - google APi works
I want to sent a base64pdf, via http put.
Unfortunatly I get the 400 bad request error.
I tried it with the google rest api and there it worked fine.
string finalURL = upURL + pdf.Id + "/signedpdf";
string json = "{ 'base64Pdf' : '" + pdf.Base64Pdf + "' }";
using (var c... | common-pile/stackexchange_filtered |
when im submit data from Jsp to spring contraller @ModelAttribute is empty
When I submit data from Jsp to spring controller @ModelAttribute is empty. Please help me to solve this.
@Controller
@RequestMapping("/mainCategory")
public class MainCategoryController {
@RequestMapping(value = "/test", method = RequestMet... | common-pile/stackexchange_filtered |
Let $a\mid bc $ then prove or disprove $a\mid (a,b)c$
Prove or disprove:
Let $a\mid bc$ then $a\mid (a,b)c$
Here is my approach, but I am not sure if I am doing this correctly or efficiently.
Let $a\mid bc$. It follows that either
$a\mid b$ Proof: $b=ar, a\mid bc => (ar)c = a \rightarrow a(rc)=a \rightarrow a|a(rc)$... | common-pile/stackexchange_filtered |
Understanding Max Pooling
I understand max pooling in CNNs can help decrease the computational load due to downsampling.
Another thing mentioned is that max pooling can help provide a sort of "spatial invariance" for learned features.
So essentially if say the upper left corner of an image has some feature let's say a ... | common-pile/stackexchange_filtered |
EF Transaction max time out not enough
i am using transaction scope with entity framework. I did some configuration for transaction timeout. I don't find error where it is. when i want to do some insert i do that but in loop index:83 i get "Underlying provider cannot open" error. I think transaction has time out.
Trans... | common-pile/stackexchange_filtered |
How Count each vehicle only once in Traffic vehicle counter?
I have been doing the traffic vehicle counter using Python and OpenCV. My current algorithm is counting the number of vehicles per frame. It results in the same vehicle is counting more than once per each frame. Instead, i want the Unique vehicle count in a v... | common-pile/stackexchange_filtered |
Using variable-controlled logging level in Python logger
I want to write a function that will get the requested logging level from the user, i.e. something like:
import logging
logger = logging.getLogger()
def func(log_level: <Type?>):
logger.log_level("everything is bad")
Can this be done?
Just use the log() m... | common-pile/stackexchange_filtered |
How to increase fonts in all UI elements in IntelliJ IDEA?
Is there a possibility to increase/decrease font size in all UI elements throughout the IntelliJ IDEA?
It's possible to override font/size for the UI in Settings | Appearance & Behavior | Appearance | Use custom font (Size):
Editor font is configured in Setti... | common-pile/stackexchange_filtered |
How does a gas emit radiation with temperature when it's particles motion are linear?
Particles in gas move faster with temperature in a linear motion (root mean velocity equation?) right? It explains increase in pressure and effusion proportional to temperature.
Solids emit radiation if their temperature is high enoug... | common-pile/stackexchange_filtered |
using htmlentities with superglobal variables
I'm working on php with a book now. The book said I should be careful using superglobal variables, so it's better to use htmlentities like this.
$came_from = htmlentities($_SERVER['HTTP_REFERER']);
So, I wrote a code like this;
<?php
$came_from=htmlentities($_SERVER['H... | common-pile/stackexchange_filtered |
connect to specific DB on a specific machine in SSMS
I have DB machine M1 (Dev.) hosting databases : DB1 , DB2, DB3 and having another setup for test M2, hosting the databases : DB1, DB2, DB3.
Now had connected to these 2 machines in SSMS. I can switch to the DB on the latter machine that was connected using the bel... | common-pile/stackexchange_filtered |
Combine gtk3 in C with gtkmm in C++
I was looking at converting an existing project slowly from C written in gtk3 to C++. Originally, I started to build up classes and was using extern "C" to move one function over at a time. However, gtk has it's whole GObject system with special things to instantiate and dispose. (Wi... | common-pile/stackexchange_filtered |
Open an Android Studio project in a new desktop
Am using the latest version of Android Studio, so am working on project A but want to open a different project B in a in a new desktop using Windows + Tabs and switching between the desktops using CTRL + WIN + Right Arrow - for quick reusing of code.
Why won't my android ... | common-pile/stackexchange_filtered |
onWheelCapture vs onWheel
Is there any difference between the two? React offers both options and I don't see a huge difference in the way it is triggered.
Here is some code that I was tinkering with
// Add page transition functions here too
onWheelCapture={e=>{
console.log(e);
}}
onWheel={(e)=... | common-pile/stackexchange_filtered |
How get android cpu model name?
I want to learn my phone cpu model name and I tryed to use /proc/cpuinfo and a lot of code but I failed. Can anyone help me?
Do not put irrelevant tags on your question - this has nothing to do with activities or intents. It's unclear why you removed "java" as that presumably is releva... | common-pile/stackexchange_filtered |
Recognize a touch for a UIView that is only created at the moment that touch occurs
I created a "slide view" (a UIView subclass) which animates on screen by dragging it up. The animation and everything else related to the animation works perfectly fine. This question targets only the very first touch on the screen when... | common-pile/stackexchange_filtered |
TouchBegan/TouchEnded with Array
I have 3 arrays of nodes, each array with 5 nodes. The nodes in this example are squares.
I want to move them using touchesBegan and touchesEnded, saving which array the user touched and then the position of the finger when he removes from the screen. I already know how to do that, with... | common-pile/stackexchange_filtered |
PDO Select Statement with MVC
"
im working on a small MVC website and ive run into a small problem. I want to be able to populate the HTML select dropdown with data pulled from my database. Ive the Select statement in my Model class, the standard HTML stuff in my View class and my controller is currently empty as im a ... | common-pile/stackexchange_filtered |
PHP include different php pages depending on results
NEW PLEASE LOOK--- so great news i got it working but its only looking at my first if statement I just need help so if its not TX then it should look at the other ELSEIF statements! Please and thxs!
OLD---I'm passing via HTML form btn to this code and I'm wanting to ... | common-pile/stackexchange_filtered |
React 0.14 error: Module build failed: ReferenceError: [BABEL] .../node_modules/eslint-loader/index.js!/.../main.jsx: Unknown option: base.stage
This is my package.json:
"scripts": {
"test": "echo \"Error: no test specified\n\" && exit 1",
"lint": "npm run lint-js && npm run lint-css",
"lint-js": "echo \"... | common-pile/stackexchange_filtered |
What is the best use of icons in the header? (icons replacing free text)
What is the best use of icons in the header? In my application I am using a number of icons for simple features such as "find friends". "ask a question" etc. This is mainly because I need to keep the header uncluttered and of minimal width to allo... | common-pile/stackexchange_filtered |
Sql update from select error
Update PSSFAAssets
Set PSSFAAssets.ProjectID = xhh_quickscan.ProjectID,
PSSFAAssets.CpnyAssetNo = xhh_quickscan.Barcode,
PSSFAAssets.CustomDate01 = xhh_quickscan.Date1,
PSSFAAssets.CustomDate02 = xhh_quickscan.Date2,
PSSFAAssets.CustomDate03 = xhh_quickscan.Date3,
PSSFA... | common-pile/stackexchange_filtered |
AngularJS - array in $scope re-defined on each $scope.function call
So for my website I am trying to set up some custom functions with AngularJS.
My output is as follows:
<div data-ng-repeat="filter in menu.filters" data-ng-controller="MenuController">
<label>{{filter.title}}</label>
<input type="checkbox" data... | common-pile/stackexchange_filtered |
Swift String Interpolation displaying optional?
When i use the following code and have nameTextField be "Jeffrey" (or any other name)
@IBAction func helloWorldAction(nameTextField: UITextField) {
nameLabel.text = "Hello, \(nameTextField.text)"
}
nameLabel displays... Hello, Optional("Jeffrey")
But, when I change... | common-pile/stackexchange_filtered |
How do I import a CSV file?
I am new to using Python and Pandas and I am trying to import a CSV or text file to an array with quotes in between the issues like
sp500 = ['appl', 'ibm', 'csco']
df = pd.read_csv('C:\\data\\stock.txt', index_col=[0])
df
which gets me:
Out[20]:
Empty DataFrame
Columns: []
Index: [AAPL, ... | common-pile/stackexchange_filtered |
Sampling groups in Pandas
Say I want to do a stratified sample from a dataframe in Pandas so that I get 5% of rows for every value of a given column. How can I do that?
For example, in the dataframe below, I would like to sample 5% of the rows associated with each value of the column Z. Is there any way to sample group... | common-pile/stackexchange_filtered |
Sidekiq generating errors on startup : Error fetching message: Invalid argument - connect(2)
Hi sidekiq / ruby / redis experts :
I am not sure if this issue has to do with sidekiq, or redis, or ruby or even rails for that matter.
We are trying to start sidekiq on our dev server (effectively one step away from prod, so ... | common-pile/stackexchange_filtered |
Divergence of integral
I found in web the following problem:
Let $f,g$ be continuous non-negative decreasing functions on $\mathbb R_{\ge 0}$ such that $$\int_0^\infty f(x)\,dx\to\infty, \int_0^\infty g(x)\,dx\to\infty$$. Define the function $h$ by $h(x)=\min \{f(x),g(x)\},\forall x\in\mathbb R_{\ge 0}$. Prove or disp... | common-pile/stackexchange_filtered |
How to solve $x-\sin x = \dfrac {\pi}{10}$?
Solve $x-\sin x = \dfrac {\pi}{10}$.
I got $1.26$ using Newton Raphson method but Is there any other alternative method?
Since $|1.26 - \sin(1.26) - \pi/10| \ge .006$, it follows $1.26$ is not a solution of the equation. So your question is unclear.
@LeeMosher, What's uncle... | common-pile/stackexchange_filtered |
Get atoms of a Boolean formula in Z3
I was wondering if there is a method to get the atoms of a Boolean formula:
a = Bool('a')
b = Bool('b')
c = Bool('C')
d = Bool('D')
e = Bool('E')
f = Bool('F')
formula = And(Or(a, b), Or(c, d), Or(e, f))
I wonder if something like this exists:
formula.get_atoms() or get_atoms(form... | common-pile/stackexchange_filtered |
Default project in Visual C++ 2008
In Visual C++ 2008 ( Professional Edition )it is impossible to create default project for a .cpp file. Sometimes it is inconvenient. Is there an edition of Visual C++ 2008 which allows it?
Can you clarify what you mean? What is it exactly that you are trying to achieve?
What do you... | common-pile/stackexchange_filtered |
Unable to export Enterprise Build in Xcode 7.1
I am unable to export enterprise build in Xcode 7. I have correct Distribution profile and I have taken enterprise build in Xcode 5.1. But after upgrading to Xcode 7.1 I am unable to take build. Please Help me.
This is what Xcode 7.1 shows
"to save for enterprise deploymen... | common-pile/stackexchange_filtered |
How do I initialise an 'Abstract Entity' CoreDataClass using SwiftyJSON
I have an Abstract Entity called 'User' in my Core Data model. I would like to initialise an instance of this entity without saving it into the database. Therefore I have set it as Abstract Entity.
I would like this entity class to conform to JSONA... | common-pile/stackexchange_filtered |
Simple question about split sequence
Let $0 \rightarrow A \xrightarrow{\psi} B \xrightarrow{\sigma} C \rightarrow 0$ be a short exact sequence of $R$-modules.
If there is a homomorphism $\rho :C \longrightarrow B$ such that $\sigma \circ \rho$ is the identity in $C$, how do you prove that $B=\psi(A)\bigoplus \rho(B)$?... | common-pile/stackexchange_filtered |
spring integration: sftp inbound-channel-adapter The authenticity of host 'x.x.x.x' can't be established
I tried to download files using the following code:
<int-sftp:inbound-channel-adapter id="sftpInbondAdapter"
auto-startup="true" channel="receiveChannel" session-factory="sftpSessionFactory"
local-directory=... | common-pile/stackexchange_filtered |
UIActivityViewController bug in iOS 8
Basically I was forced to check if the iOS version of the device is 8.0 and if it is an iPad to run the following code:
ActivityView.popoverPresentationController.sourceView = view;
ActivityView.popoverPresentationController.sourceRect = CGRectMake(0, 50, 1, 1);
Otherwise the appl... | common-pile/stackexchange_filtered |
Cronjobs Reporting Negative Execution Times?
I'm getting a fairly weird result trying to check the status of my Magento store's cron jobs.
I tried installing both AOE Scheduler and Noovias Cronjob Manager. Both of them give me something like this:
"Scheduler is working. (Last execution: -239 minute(s) ago)"
My only gu... | common-pile/stackexchange_filtered |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.