text
stringlengths
15
59.8k
meta
dict
Q: $.Post() cross-domain request works in chrome console but not in html page request I'm trying to send a $.post() cross-domain request. This is what I'm doing: $.post( "http://mysite.com/call.aspx/record", { Enroll : enroll, Item : item, usu : user, version : version, video : flv64String }, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/18900711", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Smarty loop count I am new to smarty concepts. I have used section loop in my tpl page to show the user data, in this page i need the section count. For example: {section name=i loop=$getFriends start=0 step=1} {/section} I need to check the section count for the array values($getFriends) to display some messages...
{ "language": "en", "url": "https://stackoverflow.com/questions/5509769", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to extract json api through go to extract stargazers_count of a repo? stargazers_count of https://api.github.com/repos/openebs/openebs using go language by extracting it through json A: Here is an example (completely neglecting error handling): request, _ := http.Get("https://api.github.com/repos/openebs/openeb...
{ "language": "en", "url": "https://stackoverflow.com/questions/49468309", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-5" }
Q: EMR spark job from aws-cli I am trying to run an spark job on EMR using the aws cli. What I want is to have the server startup, run the job, and terminate. I am able to do it as a two step process (first fire up the server, then run the job), but when I send one command I get an error. error: Error: Cannot load main...
{ "language": "en", "url": "https://stackoverflow.com/questions/43745431", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Django Filter timestamp data GROUP BY day, week, month, year I have an django(DRF) app in which I storing periodic timeseries data based on API response. Here is my model.py # Model to store the Alexa API Data class Alexa(models.Model): created_at = models.DateTimeField(auto_now_add=True) extra = jsonfield....
{ "language": "en", "url": "https://stackoverflow.com/questions/60236869", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What is the fastest way to compare two strings in C? For clarity I'm only talking about null terminated strings. I'm familiar with the standard way of doing string comparisons in C with the usage of strcmp. But I feel like it's slow and inefficient. I'm not necessarily looking for the easiest method but the most eff...
{ "language": "en", "url": "https://stackoverflow.com/questions/41420339", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Unlocking the condition variable mutex twice? I'm looking at the following snippets: #include <stdio.h> #include <string.h> #include <stdlib.h> #include <pthread.h> pthread_mutex_t mtx = PTHREAD_MUTEX_INITIALIZER; pthread_cond_t cvar; char buf[25]; void*thread_f(void *); int main(){ pthread_t thr; pthrea...
{ "language": "en", "url": "https://stackoverflow.com/questions/72450466", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: bash if variable set by function I have limited experience with BASH and I am looking for some guidance about how to proceed so please bear with me. I am trying to change the command prompt when I am inside a git repo, which I can do using this post I found on google, but I also would like to add color depending on ...
{ "language": "en", "url": "https://stackoverflow.com/questions/33514629", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Oracle: how to check either two polygon are overlapping or not I have measured a land area (plot) and captured its 4 corner's GPS co-ordinates using a GPS device. Now I have two Questions * *How to save this is Oracle Database. (it seems answer of first point. is it?) *After saving it I wanna check whether any...
{ "language": "en", "url": "https://stackoverflow.com/questions/23564595", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: javascript find matching variables between two nested arrays I have two nested arrays. arr1 = [["image1","shirt", "collared",40],["image3","shirt", "buttoned",40]] arr2 = [["image1","blue"],["image2","red"]] The desired output is : If the image names (image) match, I want to return the color from the second array t...
{ "language": "en", "url": "https://stackoverflow.com/questions/54559457", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Windows screensaver from HTML/JS I've an html page without any external includes with some inline CSS3 animations and JS timers. Is it possible to convert a simple html file to a screensaver file, which can be further used as a screensaver on my windows and mac desktops? I mean a real screensaver, which boots once d...
{ "language": "en", "url": "https://stackoverflow.com/questions/21431800", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Checkboxes not working in WiX generated windows installer I've used WiXEdit in conjunction with Wix to reverse engineer an MSI installation in order to move my main solution up to VS2013 from VS2010. The error Im getting is that when the MSI is run, the checkboxes and text box I've placed in a dialog act as if they...
{ "language": "en", "url": "https://stackoverflow.com/questions/28716084", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Android Annotations @AfterViews called 3 times I'm using Android Annotations and my method annotated with @AfterViews is called 3 times. I debugged the generated class and i figure that these 3 methods are invoked but i dont know why. @Override public void setContentView(int layoutResID) { super.setContentView(l...
{ "language": "en", "url": "https://stackoverflow.com/questions/15115877", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: sort values a data frame with duplicates values I have a dataframe with a format like this: d = {'col1': ['PC', 'PO', 'PC', 'XY', 'XY', 'AB', 'AB', 'PC', 'PO'], 'col2': [1,2,3,4,5,6,7,8,9]} df = pd.DataFrame(data=d) df.sort_values(by = 'col1') This gives me the result like this: I want to sort the values based ...
{ "language": "en", "url": "https://stackoverflow.com/questions/66853210", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: arduino yun to parse.com starter project not working I'm trying to run the arduino starter project from parse.com and like other people i have found the object id blank Parse.com Arduino Yun SDK Quickstart tutorial not working in the serial monitor i get this response Parse Starter Project Response for saving a Tes...
{ "language": "en", "url": "https://stackoverflow.com/questions/32006551", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Invoking a controller method without having a route defined for it I have several routes, and do not want to add another due to the difficulty in setting permissions, etc. I have a controller method, which isn't invoked on any route. Is there any way I can do this in my blade template? My controller method is as fol...
{ "language": "en", "url": "https://stackoverflow.com/questions/46079245", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to prevent a page from resubmitting? in grails 2.2.0 When once form is submitted successfully.... but When I click on "BACK" button and trying submit same form its gives me an error Source: <g:form action="addData" name="addValues" controller="emp" method="Post"> </g:form> Controller Source:- def editProfile (...
{ "language": "en", "url": "https://stackoverflow.com/questions/18373361", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Backbone Undefined is not a function error I'm learning backbone and I'm trying to execute this sample code to get the feel. http://backbonetutorials.com/what-is-a-view/ My code: <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>hello-backbonejs</title> </head> <body> <script src="...
{ "language": "en", "url": "https://stackoverflow.com/questions/25829955", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Why is infinite loop needed when using threading and a queue in Python I'm trying to understand how to use threading and I came across this nice example at http://www.ibm.com/developerworks/aix/library/au-threadingpython/ #!/usr/bin/env python import Queue import threading import urllib2 ...
{ "language": "en", "url": "https://stackoverflow.com/questions/14493915", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Azure Function ignoring https.request I have an azure function with this line of code. var myReq = https.request(options, function(res) { context.log('STATUS: ' + res.statusCode); context.log('HEADERS: ' + JSON.stringify(res.headers)); body += res.statusCode res....
{ "language": "en", "url": "https://stackoverflow.com/questions/56022566", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to run regasm.exe from a C++ program (.NET 4) I need to register a .NET COM dll from a C++ program that is using it. For .NET versions older then .NET 4 this is explained in How to run regasm.exe from a C++ program?. Following is the minimal code (no checks) that provides the path to an older version of the CLR....
{ "language": "en", "url": "https://stackoverflow.com/questions/23155041", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Unable to understand where argv[1] and arg [2] command are pointing in this program Here is someone's program, which i need for my project to collect data. I'm unable to understand where is the command #define IMAGE argv[1] #define IFS argv[2] pointing to and what are the values being defined in the IMAGE and IFS. T...
{ "language": "en", "url": "https://stackoverflow.com/questions/20172294", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How get list of days in a week that exist in some date range (Javascript) Hello I need to define existing days in some date range. I don't wont to make loop from start to end dates and use like here http://www.w3schools.com/jsref/jsref_getday.asp Is it possible to calculate it some how ? A: function getDays(earlier...
{ "language": "en", "url": "https://stackoverflow.com/questions/14496310", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: mgwt / gwtphonegap advices, feedback, tips I have to develop an application on Android, iOS and Windows Phone by using Phonegap. I would like to know if someone has already used mgwt / gwtphonegap and have your feedback / advices on these technologies, if you have encountered some blocking issues for example. I have...
{ "language": "en", "url": "https://stackoverflow.com/questions/16303070", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: If two random numbers generated at exactly same time using Math.random(), would they be same or different? I want to predict the random number generated with Math.random() function. I studied an article that the algorithm behind random number generator function takes the time in mili seconds an input, and generate a...
{ "language": "en", "url": "https://stackoverflow.com/questions/75356403", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Warning: Error: dyld: lazy symbol binding failed: Symbol not found: _objc_autoreleasePoolPush I'm getting an error when imagemin is run on png : Warning: Error: dyld: lazy symbol binding failed: Symbol not found: _objc_autoreleasePoolPush i'm on a macbook pro 10.6.8 I installed grunt today along with the plugin's An...
{ "language": "en", "url": "https://stackoverflow.com/questions/26642685", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to use org.apache.logging.log4j.jul.LogManager in an eclipse-rcp application? I am trying to use the log4j2 LogManager in an eclipse rcp application. I have -Djava.util.logging.manager=org.apache.logging.log4j.jul.LogManager set as start parameter. Starting the rcp application from within my eclipse IDE every...
{ "language": "en", "url": "https://stackoverflow.com/questions/43759123", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Creating HK2 modules I'm trying to leverage the Hundred Kilobyte Kernel (HK2) framework, however I can't find any tutorials or working examples of it. I have installed Maven, as it is required, but I can't find the archetypes to work with. I'm working with Eclipse, and I have only found this Netbeans guide but even ...
{ "language": "en", "url": "https://stackoverflow.com/questions/14680734", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Android loadLabel giving very laggy/slow performance, any solutions? I'm trying to create a launcher app in which I fetch all app names with loadLabel, but it's taking almost 3 second to load the names, and is very slow!!! I tried removing that text and now it works very fast! But I want app labels, Can we use any a...
{ "language": "en", "url": "https://stackoverflow.com/questions/30633396", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Capturing IR Data using VB.NET Just found an old IR reciever (Microsoft eHome Infared Transceiver) and i'm trying to write an application that can use data it captures... Any examples or jumping off points for this are appreciated. A: Looks like it's a USB HID device. As such, you should be able to use Win32 API to...
{ "language": "en", "url": "https://stackoverflow.com/questions/719804", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: PHP displaying arrays having duplicate with color=red I have a array that i want to check if has duplicates using PHP $i=array('One','Two','Two','Three','Four','Five','Five','Six'); I was able to achieve it by using below function function array_not_unique($input) { $duplicates=array(); $processed=a...
{ "language": "en", "url": "https://stackoverflow.com/questions/45812736", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Abbreviating numbers in Android, locale sensitive In my Android project, I am hoping to find a way to abbreviate numbers that is sensitive to various locales. If the number is less than 1000, it is to remain as is; otherwise, I would like the number divided by the largest possible power of 1000 and rounded to two de...
{ "language": "en", "url": "https://stackoverflow.com/questions/32361142", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Play audio when app is not in foreground or app is inactive I do not want any code but want to get reference that how can we play audio in background in multitasking devices when application is running in background not in foreground... Please help me to solve this question. Thanks in advance.. A: There is develope...
{ "language": "en", "url": "https://stackoverflow.com/questions/7358079", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Regex: Match string from set of characters, but need to have exactly X count of a specific character I have a very specific regex match and I can't seem to figure it out. I need to find full strings matches for /^[aple]+$/i but MUST match exactly two "p's" and exactly one of the other characters. Any other character...
{ "language": "en", "url": "https://stackoverflow.com/questions/65415066", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how to disable addressbar without using windows.open in javascript or jquery or other way Hi I want to disable address bar as I don't want that user can edit anything in to the URL or modify the url. So basically I'm emailing link to them and by clicking they can complete require task and that'why I want to stop th...
{ "language": "en", "url": "https://stackoverflow.com/questions/34388720", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: smooth scrolling of imageview I have added the images to scrollview dynamically. Following is the code: -(void)displayimages { for (int i=0; i<[featuredarray count]; i++) { NSString *image=[[featuredarray objectAtIndex:i]objectForKey:@"img"]; if (i==0) { webview=[[UIImageView alloc]i...
{ "language": "en", "url": "https://stackoverflow.com/questions/17336450", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Runtime Error 1004 / Error 438 when getting the Text property of a copied button, setting the property works though I've inserted a large number of form controll buttons (with the text "") into an excel worksheet by copy'n'pasting (from another workbook). These buttons are connected to this macro (which is located...
{ "language": "en", "url": "https://stackoverflow.com/questions/58695841", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: iOS swift pointer CGPoint startPoint1; CGPoint startPoint2; CGPoint startPoint3; CGPoint startPoint4; - (void)Method { CGPoint* startPoint = NULL; if (panGesture.view == ...) { startPoint = &startPoint1; } else if (panGesture.view == ...) { startPoint = &startPoint2; } if (panGes...
{ "language": "en", "url": "https://stackoverflow.com/questions/43336203", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Laravel 4 NotFoundHttpException [2014-04-28 12:34:46] production.ERROR: exception 'Symfony\Component\HttpKernel\Exception\NotFoundHttpException' in C:\wamp\www\ppdb\vendor\laravel\framework\src\Illuminate\Routing\RouteCollection.php:140 Stack trace: #0 C:\wamp\www\ppdb\vendor\laravel\framework\src\Illuminate\Routi...
{ "language": "en", "url": "https://stackoverflow.com/questions/23341756", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Change file system of Eclipse for procedure/support of "New Web dynamic project" I want to change file system of Eclipse for change "support" or "User interface" (UI) of New Dynamic WEB Project. I have Windows 7 but I am interested also on Linux. Should be easy change file system in Linux and not in Windows. * *W...
{ "language": "en", "url": "https://stackoverflow.com/questions/30888201", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Using Django REST Framework with sessions-based CSRF I am using Django + Django REST Framework in an environment where I cannot use cookie-based CSRF tokens; therefore I must run with CSRF_USE_SESSIONS = True. The DRF web UI, however, depends on this cookie for all interactions. It appears this is set by reading the...
{ "language": "en", "url": "https://stackoverflow.com/questions/52461537", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Print vowels from the vector I need to execute the vowels from the LETTERS R build-in vector "A", "E", etc. > LETTERS [1] "A" "B" "C" "D" "E" "F" "G" "H" "I" "J" "K" "L" "M" "N" "O" "P" "Q" "R" "S" "T" "U" "V" "W" "X" [25] "Y" "Z" Maybe, someone knows how to do it with if() or other functions. Thank you i...
{ "language": "en", "url": "https://stackoverflow.com/questions/64456929", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Convert number into amount of space I have a number and want it to generate to a string with corresponding space For Example: var NumberOfSpace = 3; // This will result in a string with 3 empty space // the result will be " " var space = convertToSpace(NumberOfSpace); A: You can simply use the String.prototype....
{ "language": "en", "url": "https://stackoverflow.com/questions/38939105", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: webkit framework iphone i am not able to add webkit framework in my application. Getting error which says no such framework is available. A: The WebKit framework is not available on iPhone - it's only for Macs. The nearest you can get is adding a UIWebView to your app, which gives you a WebKit-based HTML window.
{ "language": "en", "url": "https://stackoverflow.com/questions/4537914", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: SQLite Trigger issue - "No such column" I have a sqlite database with a table named Achievements, it stores whether certain achievements have been met in a simple quiz I am building (iphone project to learn objective-c). The table structure is: ID Name Completed ============================= 1 Fi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7616161", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Google Amp Contact form error when submitting Anyone can help me work out in using the AMP Contact form? I am doing a subscribe form using Mailchimp and SendEngine and I embedded the form to my HTML page. Here is the screenshot of the error: A: This happens when you try to submit to a domain different than your A...
{ "language": "en", "url": "https://stackoverflow.com/questions/47167885", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to return the id of a mui datagrid row from an onClick event I'm trying to use a material-ui datagrid that's being populated by a sql database to be able to edit what's inside of the database, I want that to be done via a form instead of simply editing the rows and cells individually. I want to pass the id of th...
{ "language": "en", "url": "https://stackoverflow.com/questions/74210704", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: make table out of several files and combine into one matrix table I have these files (https://github.com/learnseq/RNAseqcollection.git) that I want to merge(combine) the second column of each into one table with reference name. I have two issues: how to enforce column conversion from factor to another type (because ...
{ "language": "en", "url": "https://stackoverflow.com/questions/64547554", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Detect if a fs writable stream is full I'm opening a writable stream to a device (e.g: /dev/disk2) with fs.createWriteStream(). Assuming I don't know the device size in advance, how could I correctly detect if the device can't receive more data (e.g: the device doesn't have any more space)? If I simulate such scenar...
{ "language": "en", "url": "https://stackoverflow.com/questions/38510821", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Does passing a value type in an "out" parameter cause the variable to be boxed? I'm aware that boxing and unboxing are relatively expensive in terms of performance. What I'm wondering is: Does passing a value type to a method's out parameter cause boxing/unboxing of the variable (and thus a performance hit)? Can th...
{ "language": "en", "url": "https://stackoverflow.com/questions/4807086", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: Test Custom Gradle plugin after Evaluate I'm developing a Gradle custom plugin and I'm having issues on how to test it. The plugin creates an extension to receive configuration and after evaluation (project.afterEvaluate {) creates a tasks with the received configuration, those values are @Input on tasks. Following ...
{ "language": "en", "url": "https://stackoverflow.com/questions/60989927", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Socket programming: Struct sockaddr VS struct sockaddr_in I have seen the question similar question below: struct sockaddr_un v/s sockaddr - C(Linux) But I am still very unclear about what the difference is between sockaddr_in and sockaddr, every socket method/function I.e bind, connect, seems to use sockaddr and no...
{ "language": "en", "url": "https://stackoverflow.com/questions/29649348", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Call function on Main Module I have a VB.NET script that creates mail accounts using smartermail webservice, i know nothing of VB.Net but i have a little knowledge of programming. I created a new project on Visual Studio 2012 and know i need to call the function that creates the accounts on the main module to run it...
{ "language": "pt", "url": "https://stackoverflow.com/questions/17884097", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Jquery mobile theme on dynamic pages My theme is not being carried out on the dynamic pages that are created in the code I have below. on the first menu page it works then all other pages have the default theme not the one I have set in siteData.theme. How can I set this? var siteData = build; $(this).find('...
{ "language": "en", "url": "https://stackoverflow.com/questions/16304225", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to insert array object property value into HTML? I wanted to make a simple carousel using DOM manipulation, I don't know if I can do this or not in Angular, but the idea is I created an array of objects with properties that I want to pass to the HTML using interpolation, and I don't know how to do it yet. Here's...
{ "language": "en", "url": "https://stackoverflow.com/questions/56001760", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Error occurred during initialization of VM java/lang/NoClassDefFoundError: java/lang/Object in Redhat I am using Redhat 6. I am in strange problem. I was working with java 1.6. I updated my system with yum updated automatically openjdk 1.8 got install. I removed the package fro UI. Now when I typed java -version. I ...
{ "language": "en", "url": "https://stackoverflow.com/questions/32580306", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Count how many arguments passed as positional If I have a function def foo(x, y): pass how can I tell, from inside the function, whether y was passed positionally or with its keyword? I'd like to have something like def foo(x, y): if passed_positionally(y): print('y was passed positionally!') el...
{ "language": "en", "url": "https://stackoverflow.com/questions/67639234", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "41" }
Q: iOS app localization I want to localize my app. Should I create a new app in itunesconnect for each country or there is a way to automatically detect the country where user is? Actually my app is game based on Unity3d - is it possible to do it on Unity3d? A: Before Unity starts write these lines to pass the current...
{ "language": "en", "url": "https://stackoverflow.com/questions/12279361", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: EF 4 - Lazy Loading Without Proxies I´ve read that proxies are used when wee need to use Lazy Loading and Change Tracking. In other words, to use Lazy Loading I must enable proxies. So far so good. the point is that I can use the code bellow to setup the context to not use a proxy and even yet use lazy loading. ctx...
{ "language": "en", "url": "https://stackoverflow.com/questions/9688966", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: Custombox and modal using JS I have a modal using custombox that works using a button : <html> <head> <link href="assets/plugins/custombox/dist/custombox.min.css" rel="stylesheet"> <link href="assets/css/bootstrap.min.css" rel="stylesheet" type="text/css" /> <link href="assets/css/core.cs...
{ "language": "en", "url": "https://stackoverflow.com/questions/38317649", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Detecting when right mouse button was clicked only My table has 4 columns, and I only want column 1 to be allowed to be clicked. Also, this code also allows the LEFT mouse button to be used, I only want the RIGHT button. private void jTable1MouseClicked(java.awt.event.MouseEvent evt) { // TODO add your handl...
{ "language": "en", "url": "https://stackoverflow.com/questions/13148315", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Laravel 5.1 AJAX Response always causes a connection reset I have a problem with a Laravel AJAX response. The request is GET not POST This is the API URL: http://example.com/app/public/index.php/api/userdata and I never receive an AJAX response. In my Chrome browser I get the following error net::ERR_CONNECTION_...
{ "language": "en", "url": "https://stackoverflow.com/questions/37872474", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: 2D fused Lasso with Matlab CVX I wrote a 2D fused lasso code here. [m n] = size(circle); cvx_begin variable theta(m, n); minimize( norm(circle-theta, 'fro')); subject to sum(sum(abs(theta(:,1:n-1)-theta(:,2:n)))) == 0; sum(sum(abs(theta(1:m-1,:)-theta(2:m,:)))) == 0; cvx_end Weirdly, the...
{ "language": "en", "url": "https://stackoverflow.com/questions/39409116", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: ActionController::UnknownFormat in HelpController#about as a Ruby newbie I am still getting to grips with the language. I have created a broadcast controller for a simple database that is already being used in production. However, I am getting the above mentioned error. Below is the code I have used: show.html.erb <...
{ "language": "en", "url": "https://stackoverflow.com/questions/45635251", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to check if the same letter is used more than once in a word (hangman project, javascript) I have almost finished the javascript logic for my personal hangman project i am creating. One of the final issues i am having is getting the program to recognize if the same letter is used in the "chosen word". For exampl...
{ "language": "en", "url": "https://stackoverflow.com/questions/60623828", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Accessing data from a List using jsp I have a bean that has the follwing: public DeptLibraryEntry(int id, String type, String name, String info, Boolean avail){ this.id = id; this.type = type; this.name = name; this.info = info; this.avail = avail; this.log = new ArrayList<Log>(); } and anot...
{ "language": "en", "url": "https://stackoverflow.com/questions/26876828", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to change row names based off input from different dataframe Say I have df1 that contains names in column 1 and numerical values in the other columns, and I have df2 that contains the same set of names in column 2 and a unique corresponding identifier in column 1. The order of the names in the dfs don't match so...
{ "language": "en", "url": "https://stackoverflow.com/questions/73708740", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: need help in mvvmcross windows phone 8 fluent binding with conversion I'm Little stuck in getting the fluent binding/conversion to Work. I have the following to work set.Bind(TextBackStartColor).For(v => v.Text).To(vm => vm.TextBackStartColor).TwoWay() but when I try to add a WithConversion, I need some help in how...
{ "language": "en", "url": "https://stackoverflow.com/questions/22402797", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to to solve the responsiveness of mouseover and mouseout I am sliding a div whenever there is a mouse over event and sliding it back(hiding) when there is mouse out event. If I do too fast mouse out and mouse over, the div keeps oscillating. How do I fix this problem? $(document).ready(function() { $("#in")....
{ "language": "en", "url": "https://stackoverflow.com/questions/11487396", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Empty Object ID for first DrEdit Doc in PHP Google API Drive SDK Example Ive worked through several errors to get this far with the Google API Drive PHP DREdit example, and attempted the setup on this. The OAuth2 appears to connect ok, and loading the DrEdit demo page. However on first save the doc has no ID, and t...
{ "language": "en", "url": "https://stackoverflow.com/questions/26084958", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: COUNT DISTINCT / nunique within groups I want to count the number of distinct tuples within each group: df = pd.DataFrame({'a': ['A', 'A', 'A', 'A', 'B', 'B', 'B', 'B'], 'b': [1, 2, 1, 2, 1, 2, 1, 2], 'c': [1, 1, 2, 2, 2, 1, 2, 1]}) counts = count_distinct(df, by='a', columns=['b', 'c']) ...
{ "language": "en", "url": "https://stackoverflow.com/questions/39323071", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: I defined an templated class. Can I see the (source) code that occurs after it is instantiated? C++ I defined an templated class. I'd like to see source code that results when the class is instantiated. For example, imagine I have a class like std::vector from the standard library: template <typename T> class Vecto...
{ "language": "en", "url": "https://stackoverflow.com/questions/25703952", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Is it safe to have various Perl installations on one machine share a cpan_home? I have a dated system perl 5.8.8 on a Linux machine and installed a 5.12.4 from ActiveState. Both perl's cpan_home is ~root/.cpan. I was about to change the new perl's cpan_home, but then I realized I didn't know whether I really have to...
{ "language": "en", "url": "https://stackoverflow.com/questions/9281536", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Get object property stored in listview from another page wpf This is my class : class Discussion { public String name {get; set;} public String discussionId { get; set; } public List<Message> liste {get; set;} public Discussion(String name, String discussionId) { this.name = name; ...
{ "language": "en", "url": "https://stackoverflow.com/questions/29929955", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Oracle SQL - Return rows with a value based on multiple values in a second field I need to return the rows that contain the employee names (in one field) who are only classified as Managers (not as Workers, or as Managers and Workers). Managers and Workers values are in a second field. So it might look like this: +...
{ "language": "en", "url": "https://stackoverflow.com/questions/53033361", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: The improper use of a GetX has been detected when using RxList I have created an observable list and then storing data in the list from the api as below class FeedsController extends GetxController { final Rx<List<Stories>> _stories = Rx<List<Stories>>([]); @override void onInit() { super.onInit(); ge...
{ "language": "en", "url": "https://stackoverflow.com/questions/75420580", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to define out of class functions for a class specialized using std::enable_if I have a specialization of a class called graph which is enabled only if the input is a particular type. I am not able to define out of class definitions for the functions inside that class. This question os different from some other q...
{ "language": "en", "url": "https://stackoverflow.com/questions/57735235", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Async compression c# i have this code string dirName = "C:\\temp"; if (Directory.Exists(dirName)) { Console.WriteLine(); Console.WriteLine("Файлы:"); string[] files = Directory.GetFiles(dirName); foreach (string s in files) { ...
{ "language": "en", "url": "https://stackoverflow.com/questions/55181238", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: String comparison after transfer through TCP socket in C I am sending a file through TCP, and have the server sending a message containing "END_OF_MESSAGE" to alert the client that they have received the whole file and can close the socket. The file is being sent, and the client receives the "END_OF_MESSAGE" string,...
{ "language": "en", "url": "https://stackoverflow.com/questions/43308285", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: check ienumerable for any elements I need to check if list has any elements, and the way I'm doing it is with Any(): public static string ToQuotedString(this IEnumerable list) { if (!list.Any()) { return string.Empty; } var output = string.Empty; foreach ...
{ "language": "en", "url": "https://stackoverflow.com/questions/52894880", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: weird problem with select count from multiple tables (with joins) I'm having an odd problem with the following query, it works all correct, the count part in it gets me the number of comments on a given 'hintout' I'm trying to add a similar count that gets the number of 'votes' for each hintout, the below is the que...
{ "language": "en", "url": "https://stackoverflow.com/questions/5883311", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Azure Search: Frequency of calling indexer For an Azure Search service, I am looking to get updates reflected closest to real-time. I can execute it via REST API using a logic app with recurrence. If I invoke the logic app very frequently(ever 3 seconds). Is there a catch to this approach? * *can the indexer get ...
{ "language": "en", "url": "https://stackoverflow.com/questions/45638153", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to test/mock API with JUnit Mockito in Kotlin I am trying to wrote a Unit test in my Android application using kotlin. getPosts() get list of POSTS from https://jsonplaceholder.typicode.com/posts I want to test this function comparing the count or any other way you suggest. I am pretty new to this so any suggest...
{ "language": "en", "url": "https://stackoverflow.com/questions/57454299", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Redirect subdomain to main domain except specific URLs - Nginx I have a main domain as follows and am using Nginix server Main domain : https://website.com/ Sub domain : https://admin.website.com/ If anyone accesses https://admin.website.com/ It needs to redirect to https://website.com/ - I have found the following ...
{ "language": "en", "url": "https://stackoverflow.com/questions/69070933", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: openshift jersey not working I am trying to execute a simple example of Jersey using openshift however i am running into a snag. I get error below: 2014/06/12 13:06:44,060 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/]] (ServerService Thread Pool -- 65) JBWEB000289: Servlet jersey-serlv...
{ "language": "en", "url": "https://stackoverflow.com/questions/24190273", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Rails render form + jQuery problem I have a little mistake about jQuery with a render form. I have link_to_add_fields to add nested render. The problem is when i add field, my jQuery stop working. I have no error, nothing just my jquery stop working. Here is my code from helper and jquery def link_to_remove_fields(n...
{ "language": "en", "url": "https://stackoverflow.com/questions/7251525", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Putting Python Output into .xlxs File The following code runs and does what it's supposed to do but I'm having trouble using the XlxsWriter module in Python in order to get some of the results into a .xlxs file. The goal is for the output to contain information from the function block_trial where it tracks each bloc...
{ "language": "en", "url": "https://stackoverflow.com/questions/30388693", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Stop file download dialog from showing in Firefox/Chrome I have an MVC3 app and users can upload files and then view or download them whenever they want. The following code works as expected in IE (my popup window appears and the file in rendered inside of it) but in Firefox i get the open with/save file dialog box ...
{ "language": "en", "url": "https://stackoverflow.com/questions/10933747", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: std::cin and std;:getline not working together in cpp I'm new to cpp, it's been 2 weeks since i stared learning. Today this weird bug or what it is called, causing my code to run weird way and not working as expected, thing is if I use only std::cin code runs perfectly fine but things got shaky when I add std::getli...
{ "language": "en", "url": "https://stackoverflow.com/questions/70679364", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how to deploy django under a suburl behind nginx I have a django application running on http://localhost:12345 . I'd like user to access it via url http://my.server.com/myapp . I use nginx to reverse proxy to it like the following: ... ... server_name my.server.com; location /myapp { rewrite /myapp(.*) $1 break;...
{ "language": "en", "url": "https://stackoverflow.com/questions/8133063", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "30" }
Q: Does Anyone Know a Fix for MongoDB Timeout Exceptions? I've been getting MongoDB Timeout Exceptions a lot more frequently lately. I code a discord bot that relies on it for most guild-based functions, and yesterday it hasn't been able to log into MongoDB at all using the Java driver. Just for a general overview of i...
{ "language": "en", "url": "https://stackoverflow.com/questions/61965043", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to export Kotlin functions to Javascript with correct name I'm trying to export Kotlin functions to Javascript. The problem is, functions which require arguments are renamed after Kotlin2JS operation, here's an example: Kotlin source: fun withParam(args: String) { println("JavaScript generated through Kotlin...
{ "language": "en", "url": "https://stackoverflow.com/questions/46190782", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Server side script in C# return different time from what server clock is displaying I am facing typical issue.My dedicated server clock showing 11 Am and datetime function in asp.net script returns 4pm time. Please help how to resolve the issue.I need the function to return the server clock time.I dont know if its c...
{ "language": "en", "url": "https://stackoverflow.com/questions/10454213", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to make WndProc inline? Is it possible, and if so, how to make WndProc inline? That is, I would like to process Windows messages WM_... within WinMain, so as to avoid seemingly needless function calls. Thank you. A: You cannot inline a window procedure. This is by design. You can easily see the architectural li...
{ "language": "en", "url": "https://stackoverflow.com/questions/59934042", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-3" }
Q: Web Scraping CSS Selectors With Beautiful Soup 4 I am trying to print only the high impact news from the given currency. When I include the worsedata == True conditional in the if statement the code prints nothing. When I only include the currency conditional in the if statement it prints all USD news regardless o...
{ "language": "en", "url": "https://stackoverflow.com/questions/59745017", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Dropping a table created by df.to_sql() I have a flask application with a background process I have spawned away from the GUI. I have a db session created in association with the Flask app. Because I want to have the freedom to write tables to the db that are not necessarily to be referenced by GUI code, I am not ...
{ "language": "en", "url": "https://stackoverflow.com/questions/64598060", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Memory reduction I am not a programmer but am facing a programming problem. I need to reduce the memory consumption of a Python code. One option is to reduce the variable precision. In this regard: * *Identify Floating points (as I think the data types are assigned on the fly)? *Python uses 64-bit or 32-bit floa...
{ "language": "en", "url": "https://stackoverflow.com/questions/8511166", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to implement ASN1 decoding in Java Spring? I need to decode ASN1 strings from a complex sequence but I just cannot figure out how this whole thing works. I'd like to do something like decoder = ASN1Library.initWithSequence(sequenceString); ParseObject obj = decoder.decodeString(asn1String); I have tried a few l...
{ "language": "en", "url": "https://stackoverflow.com/questions/51944660", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Kill app completely from service class I have an audio streaming app playing in backgroundand also a foreground service which should control media player from the background. There is aCLOSE` button in the foreground which is expected to kill the app completely when clicked. However, the methods i have used to accom...
{ "language": "en", "url": "https://stackoverflow.com/questions/49205025", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I get my flutter firebase user to also create their stripe account I am creating a mobile marketplace however, I don't know how to allow my user who has created an account with firebase also create a stripe account and having that connect to my app so that when they create a listing for a product, they can re...
{ "language": "en", "url": "https://stackoverflow.com/questions/69421476", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }