text stringlengths 74 309k |
|---|
{"title":"Using java map for range searches","tags":["java","maps"],"question_text":"I have a use case where if a number lies between 0-10 it should return 0 and if it lies between 11-20 it should return 1 etc\n`0 => 0-3, (0 and 3 are inclusive)\n1 => 4-15, (4 and 15 are inclusive)\n2 => 16-40, (16 and 40 are inclusive... |
{"title":"Recursive entry to executePendingTransactions","tags":["android","android-listview","android-fragments","forceclose"],"question_text":"I have a MainDrawer to Fragment activity which has a layout for a nav drawer my and my main content where I can load new fragments into. One fragment I load in is calle Statis... |
{"title":"Calculating Median in Ruby","tags":["ruby","median"],"question_text":"How do I calculate the median of an array of numbers using Ruby?\nI am a beginner and within the progress of my learning I am trying to stick to what has already been taught. Thus the other questions that I've found are beyond my scope.\nHe... |
{"title":"Why can't I build a \"hello world\" for glib?","tags":["c","glib"],"question_text":"So here's the world's simplest glib program:\n`#include <glib.h>`\nI try to compile it with\n`gcc test.c`\nand I get:\n`test.c:1:18: error: glib.h: No such file or directory`\nSo I make sure that I have the right packages:\n`#... |
{"title":"HTTP Error 403.14 - Forbidden - MVC 4 with IIS Express","tags":["c#","asp.net-mvc","asp.net-mvc-4","asp.net-mvc-routing"],"question_text":"This seems like a question that has already been asked\/answered many times. Its not.\nDevelopment Environment:\nVS 2012 and MVC 4. I am using the built in IIS Express to ... |
{"title":"How do I pass an extra parameter to Jquery Autocomplete field?","tags":["jquery-ui","jquery","jquery-ui-autocomplete"],"question_text":"I'm using the JQuery Autocomplete in one of my forms.\nThe basic form selects products from my database. This works great, but I'd like to further develop so that only produc... |
{"title":"Docker public registry push fails: Repository does not exist","tags":["docker","docker-registry"],"question_text":"I'm trying to push my docker image up into the public docker registry:\n`$ docker login\nUsername (binarybana): \nWARNING: login credentials saved in \/home\/jknight\/.dockercfg.\nLogin Succeeded... |
{"title":"Open source PDF library for C\/C++ application?","tags":["c++","c","pdf","open-source"],"question_text":"I want to be able to generate PDF ouput from my (native) C++ Windows application. Are there any free\/open source libraries available to do this?\nI looked at the answers to\nthis question\n, but they most... |
{"title":"Python StringIO replacement that works with bytes instead of strings?","tags":["python","unicode","python-2.7","stringio"],"question_text":"Is there any replacement for python\n`StringIO`\nclass, one that will work with\n`bytes`\ninstead of strings?\nIt may not be obvious but if you used StringIO for processi... |
{"title":"How can I remove a whole IndexedDB database from JavaScript?","tags":["javascript","html5","phantomjs","indexeddb"],"question_text":"How can one remove a whole IndexedDB database from JavaScript, as opposed to just an object store? I'm using the\nIndexedDB shim\n, which may use WebSQL as its backend.\nI'd mai... |
{"title":"Should setting an image src to data URL be available immediately?","tags":["javascript","html","image","data-uri"],"question_text":"Consider the following (fragile) JavaScript code:\n`var img = new Image;\nimg.src = \"data:image\/png;base64,...\"; \/\/ Assume valid data\n\/\/ Danger(?) Attempting to use image... |
{"title":"Should the call to the superclass method be the first statement?","tags":["android","speech-recognition","speech-to-text"],"question_text":"The results of a speech recognition can be read in the\n`onActivityResult(int requestCode, int resultCode, Intent data)`\nmethod, as shown in\nthis example\n. This method... |
{"title":"Makefile If-Then Else and Loops","tags":["makefile"],"question_text":"Can someone explain how to use if-then statements and for loops in Makefiles? I can't seem to find any good documentation with examples.","answer_text":"Conditional Forms\nSimple\n`conditional-directive\ntext-if-true\nendif`\nModerately Com... |
{"title":"Best way to write to the console in PowerShell","tags":["powershell"],"question_text":"I am having a little confusion about the various ways to print (echo) to the console. I have seen that there are multiple ways to write output to the console, such as:\n`Write-Host \"Hello world1\"\n\"Hello World2\"\nOut-Ho... |
{"title":"GridView elements changes their place dynamically when scroll screen","tags":["android"],"question_text":"i have a gridview layout, and all items are insert very fine,\nnow if I check on big screen then all work done is fine, because no scrolling is required\nbut if I check on small screen then items are chan... |
{"title":"Difference between Uint8Array and Uint8ClampedArray","tags":["javascript","arrays","memory-management"],"question_text":"What is the difference between\n`Uint8Array`\nand\n`Uint8ClampedArray`\nin JavaScript?\nI understand that\n`Uint8ClampedArray`\nis used with canvas for pixel manipulations. Why is that and ... |
{"title":"jQuery - Getting the text value of a table cell in the same row as a clicked element","tags":["jquery","jquery-selectors"],"question_text":"I click a link in a table cell. I need to get the value of a specific cell within this same table row.\n`<tr>\n <td class=\"one\">this<\/td>\n <td class=\"two\">that<\/td... |
{"title":"Action Bar Home Button not functional with nested PreferenceScreen","tags":["java","android","android-actionbar","sharedpreferences","preferenceactivity"],"question_text":"I found a workaround to actually enable the ActionBar home button on the nested PreferenceScreen... however it doesn't call OnOptionsItemS... |
{"title":"android: How can I implement first time tutorial like Go Launcher in my app?","tags":["android","android-layout"],"question_text":"Go Launcher have a nice first time tutorial. it is very similar to Stock ICS first time run. I want to learn my app to user at first time of launch.how can I implement this Transp... |
{"title":"Notepad++ change text color?","tags":["interface","notepad++","mockups"],"question_text":"I'm using Notepad++ to mock up ISPF screens. I've used StyleConfigurator to select an appropriate font, colored it green, and set a black background.\nHow do I permanently change the color of selected text?\nE.g., if I h... |
{"title":"Authentication failed to bitbucket","tags":["bitbucket","atlassian-sourcetree"],"question_text":"I'm trying to push my project via the https protocol on bitbucket using sourcetree.\nBut I can't connect to bitbucket with my login and password (which work on the website), I have a fatal error : \"Authentication... |
{"title":"How to test custom django-admin commands","tags":["django","testing","django-admin","custom-action"],"question_text":"I created\ncustom django-admin commands\nBut, I don't know how to test it in\nstandard django tests","answer_text":"If you're using some coverage tool it would be good to call it from the code... |
{"title":"Manual Page Break in TCPDF","tags":["pdf","pdf-generation","tcpdf","page-break"],"question_text":"I am using TCPDF to generate the PDF in one of my projects. I simply create a HTML file and give it to the TCPDF to handle the PDF generation. But now I have some HTML where multiple certificates are added one af... |
{"title":"Unbalanced calls to begin\/end appearance transitions for <UINavigationController: 0xa98e050>","tags":["iphone","ios","objective-c","ios6","uinavigationcontroller"],"question_text":"While compiling the code i got\n\"Unbalanced calls to begin\/end appearance transitions for\n`<UINavigationController: 0xa98e050... |
{"title":"How to convert System.currentTimeMillis(); to seconds?","tags":["java","milliseconds"],"question_text":"How to convert\n`System.currentTimeMillis();`\nto seconds?\n`long start6=System.currentTimeMillis();\nSystem.out.println(counter.countPrimes(100000000)+\" for \"+start6);`\nThe console shows me\n`5761455 fo... |
{"title":"How can I generate a diff for a single file between two branches in github","tags":["git","github"],"question_text":"I need to generate a diff for a single file that will show the differences between two versions, which are actually tags in github. I then want to send this diff to someone via email so a githu... |
{"title":"Library function to compose a function with itself n times","tags":["haskell"],"question_text":"Is there a library function available in Haskell to compose a function with itself\nn\ntimes?\nFor example I have this function:\n`func :: a -> a`\nand I want to do this:\n`func . func . func . func . func . func ,... |
{"title":"jQuery getTime function","tags":["jquery","gettime"],"question_text":"is it possible to create a jQuery function so that it gets current date and time? I've been looking around documentation but haven't found anything so far...","answer_text":"@nickf's correct. However, to be a little more precise:\n`\/\/ if ... |
{"title":"how to parse json using groovy","tags":["json","grails","groovy"],"question_text":"I want to parse JSON data which is coming in like:\n`{\n \"212315952136472\": {\n \"id\": \"212315952136472\",\n \"name\": \"Ready\",\n \"picture\": \"http:\/\/profile.ak.fbcdn.net\/hprofile-ak-snc4\/195762_212315952136472_4343... |
{"title":"What kind of loop is for (;;)?","tags":["c","for-loop","kernel","mutex"],"question_text":"Found in torvalds\/linux-2.6.git -> kernel\/mutex.c line 171\nI have tried to find it on Google and such to no avail.\nWhat does\n`for (;;)`\ninstruct?","answer_text":"It literally means \"do nothing, until nothing happe... |
{"title":"input checkbox true or checked or yes","tags":["javascript","html","checkbox","html-input"],"question_text":"I've seen the three implementations of pre-selecting a checkbox. I started off using checked=\"checked\" because I thought it was the \"proper\" way (never did like the \"checked\"=\"yes\" however). I ... |
{"title":"What is wrong with my config? SEVERE: IOException while loading persisted sessions: java.io.EOFException","tags":["java","tomcat"],"question_text":"I have a web program using struts2, spring3 and hibernate 4 running in Tomcat. It can work, but Tomcat reports a\n`java.io.EOFException`\n.\nThe following is the ... |
{"title":"Rails: How do I write tests for a ruby module?","tags":["ruby-on-rails","ruby","unit-testing","testing","module"],"question_text":"I would like to know how to write unit tests for a module that is mixed into a couple of classes but don't quite know how to go about it:\nDo I test the instance methods by writin... |
{"title":"How to remove default chrome style for select Input?","tags":["html","css","html5","css3"],"question_text":"How do I remove the default yellow box border of Selected input and select fields in chrome or any browser like safari?\nI want to customize input with custom box shadow css. How do I remove the default... |
{"title":"Is it possible to use Angular with the Jinja2 template engine?","tags":["python","angularjs","flask","jinja2"],"question_text":"I have a Flask site and I want to use the Angular JavaScript framework. Unfortunately, it seems as if the delimiters overlap.\nHow do I use Angular with Jinja2 if both rely on double... |
{"title":"Can enter() selection be reused after append\/insert?","tags":["d3.js"],"question_text":"I have a scenario where I want to use a data join to append 2 new elements for each data element.\nI was originally doing something like this:\n`var y = d3.selectAll(\"line\")\n .data([123, 456]);\ny.enter().append(\"line... |
{"title":"What is the significance of the ProgramData folder in Windows?","tags":["windows","programdata"],"question_text":"What is the importance of the\n`ProgramData`\nfolder in Windows?\nI have noticed that many installed programs store files in a subdirectory of the\n`ProgramData`\nfolder. Is there are any specific... |
{"title":"How to implement a listener","tags":["android","android-asynctask","listener"],"question_text":"I have a design issue. I need to implement a listener. I saw the following SO question:\nHow to create our own Listener interface in android?\nBut in the link it provides in the answer, author creates a listener wh... |
{"title":"UIScrollView and setContentOffset","tags":["iphone","cocoa-touch","ios","uiscrollview"],"question_text":"My question is about this method:\n`(void)setContentOffset:(CGPoint)contentOffset animated:(BOOL)animated`\nI have read the documentation, but i don't understand what this method is for.\nthanks for your a... |
{"title":"Why can't we pass arrays to function by value?","tags":["c++","arrays","function","arguments"],"question_text":"Apparently, we can pass complex class instances to functions, but why can't we pass arrays to functions?","answer_text":"The origin is historical. The problem is that the rule \"arrays decay into po... |
{"title":"Rails 3 SSL Deprecation","tags":["ruby-on-rails"],"question_text":"I am upgrading an application to Rails 3.0.0 and am wondering if the standard method for adding SSL has changed (I vaguely remember demos indicating the router could now handle SSL, though I'm not sure if it was just for demonstration purposes... |
{"title":"AngularJS - Building a dynamic table based on a json","tags":["javascript","angularjs"],"question_text":"Given a json like this:\n`{\n \"name\": \"john\"\n \"colours\": [{\"id\": 1, \"name\": \"green\"},{\"id\": 2, \"name\": \"blue\"}]\n}`\nand two regular html inputs:\n`<input type=\"text\" name=\"name\" \/>... |
{"title":"Why don't lambda expressions require <functional>, but function<void()> does?","tags":["c++","lambda"],"question_text":"I have some code use lambda expression like it:\n`#include <vector>\n#include <algorithm>\nint main(){\n std::vector<int> vi={3,1};\n std::sort(vi.begin(),vi.end(),[](int x,int y){\n return ... |
{"title":"NPM: The \"ld: library not found for -lgcc_s.10.5\" on On OS X El Capitain?","tags":["node.js","osx","npm","node-gyp"],"question_text":"When I use\n`npm install`\nto install dependencies of\nthis repository\n, I encountered an error like this:\n`> fsevents@0.3.8 install \/Users\/hanfeisun\/Workspace\/vue-webp... |
{"title":"Android - AdView missing required XML attribute 'adSize'","tags":["android","admob"],"question_text":"My head almost exploded today because the entire day I tried to solve the problem with my AdView from AdMob. I'm getting an error mentioned in the title. I googled through 3 pages but nothing. Same error what... |
{"title":"How can I make a horizontal ListView in Android?","tags":["android","listview","gallery"],"question_text":"Possible Duplicate:\nHorizontal ListView in Android?\nLike many things in Android, you wouldn't think this would be such a hard problem but ohhh, by golly, would you be wrong. And, like many things in An... |
{"title":"Crashlytics found an invalid API key","tags":["android","gradle","android-studio","android-gradle","crashlytics"],"question_text":"When I am trying to build project with\n`value`\nof\n`meta-data`\ntag as a string reference, crashlytics fail with following error:\n`Crashlytics found an invalid API key: @string... |
{"title":"Permission Denied error with Django while uploading a file","tags":["django","permissions"],"question_text":"I currently have a simple model defined, with a photoupload feature using\ndjango thumbnails\nplugin.\nbut when i try to upload it gives me the following error:\n`OSError at \/admin\/products\/photo\/a... |
{"title":"Could not find class XXX referenced from method XXX.<YYY>","tags":["android","libgdx"],"question_text":"I'm working on a libGDX project and I have a class called CheerVArachnids that has another inline class which is an event listener. When I run this project on the desktop it works fine. BUT when I run on my... |
{"title":"GZipStream And DeflateStream will not decompress all bytes","tags":["c#","image","compression","zip","bitmap"],"question_text":"I was in need of a way to compress images in .net so i looked into using the .net GZipStream class (or DeflateStream). However i found that decompression was not always successful, s... |
{"title":"Show the password with EditText","tags":["android","android-edittext"],"question_text":"I use an EditText to enter password.\nAnd a CheckBox to show password or not.\nBelow function is the part:\n`public void ShowPassword() {\n if (cb.isChecked()) {\n password.setInputType(InputType.TYPE_TEXT_VARIATION_VISIBL... |
{"title":"How do I remove the warning from a EasyMock.anyObject(List.class) call","tags":["java","generics","warnings","easymock"],"question_text":"Compiler can't stop complaining with this call :\n`EasyMock.anyObject(List.class)`\nI tried to specify list's type\n`EasyMock.anyObject(List<MyType>.class)`\nbut it doesn't... |
{"title":"This class should be public (android.support.v7.internal.widget.ActionBarView.HomeView)","tags":["android","class","public","android-support-library"],"question_text":"I am trying to create a Android Application which uses 3 spinners. I keep getting this error and I can't figure out how to fix it.\nThis class... |
{"title":"Creating an Arraylist of Objects","tags":["java","android","object","arraylist"],"question_text":"So, now I've figured out how to make multiple of the same object correctly, I need to know how to make an array of them, changing depending on how many are needed, because it is pretty much an object, that stores... |
{"title":"Newtonsoft.Json Assembly Conflict","tags":["c#",".net-assembly","paypal-sandbox"],"question_text":"I use Netonsoft.Json in my project. It works fine until I start integrating Paypal SDK in my Project. My code is as below.\n`String AccessToken =\n new PayPal.OAuthTokenCredential(\"\", \"\").GetAccessToken(); -... |
{"title":"Perl Compatible Regular Expression (PCRE) in Python","tags":["python","regex","parsing","pcre"],"question_text":"I have to parse some strings based on PCRE in Python and I've no idea how to do that.\nStrings I want to parse looks like :\n`match mysql m\/^.\\0\\0\\0\\n(4\\.[-.\\w]+)\\0...\\0\/s p\/MySQL\/ i\/$... |
{"title":"Laravel 5.2 validation errors","tags":["laravel","laravel-validation","laravel-5.2"],"question_text":"I have some trouble with validation in Laravel 5.2\nWhen i try validate request in controller like this\n`$this->validate($request, [\n 'title' => 'required',\n 'content.*.rate' => 'required',\n ]);`\nValidat... |
{"title":"What's a Turing machine?","tags":["computer-science","theory","turing-machines","computability"],"question_text":"What is a Turing machine and why do people keep mentioning it? My IBM PC is all I need to do my computation! Why does anyone care about these machines?","answer_text":"The reason that Turing Machi... |
{"title":"Setup() vs SetupGet()","tags":["moq"],"question_text":"What is the difference between the SetupGet() and Setup() methods for MOQ?","answer_text":"Setup() can be used for mocking a method or a property.\nSetupGet() is specifically for mocking the getter of a property. Took a quick peek at the Moq source code a... |
{"title":"#define statements within a namespace","tags":["c++","namespaces"],"question_text":"If I have a #define statement within a namespace as such:\n`namespace MyNamespace\n{\n #define SOME_VALUE 0xDEADBABE\n}`\nAm I correct in saying that the #define statement is not restricted to the namespace?\nIs the following ... |
{"title":"ProgressDialog does not want to update the message","tags":["android","progressdialog"],"question_text":"I just tried to implement a progressdialog and I have some issues to change the text during my long and complex calculations.\n`for (String aString:myStringArray){\n Log.v(TAG, aString);\n mProgressDialog.... |
{"title":"How to manually log out a user with spring security?","tags":["java","spring","java-ee","spring-security"],"question_text":"Probably the answer is simple: How can I manually logout the currently logged in user in spring security?\nIs it sufficient to call:\n`SecurityContextHolder.getContext().getAuthenticatio... |
{"title":"Github flavored Markdown and pygments highlighting in Jekyll","tags":["github","markdown","jekyll","pygments"],"question_text":"I've deployed my Jekyll blog on a VPS. I would now like to add Github-flavored Markdown to it, using Pygments highlighting, but I don't know which files do I have to edit and how.\nS... |
{"title":"Origin http:\/\/localhost is not allowed by Access-Control-Allow-Origin.?","tags":["jquery","ajax","json","api"],"question_text":"i have a problem... i try to get json api in\n\"http:\/\/api.master18.tiket.com\/search\/autocomplete\/hotel?q=mah&token=90d2fad44172390b11527557e6250e50&secretkey=83e2f0484edbd2ad... |
{"title":"JFrame Exit on close Java","tags":["java","jframe"],"question_text":"I don't get how can I employ this code:\n`frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);`\nto close the program with the x button.","answer_text":"You need the line\n`frame.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);`\nBe... |
{"title":"Difference between document.addEventListener and window.addEventListener?","tags":["javascript"],"question_text":"What is the difference between\n`document.addEventListener`\nand\n`window.addEventListener`\nin Javascript?\nWhile using PhoneGap, it has some default JS code that uses\n`document.addEventListener... |
{"title":"Warp Image to Appear in Cylindrical Projection","tags":["image","3d","geometry","computer-vision","cylindrical"],"question_text":"I want to warp a flat image in a way that it appears to be the projection coming from a cylinder.\nI have a flat image like this:\nand I want to show it as something like this in 2... |
{"title":"What happened between March 28th and March 29th, 1976 with the java.util.GregorianCalendar?","tags":["java","scala","date","long-integer","gregorian-calendar"],"question_text":"Trying to use the GregorianCalendar, I got stuck on a singularity while computing the number of days since a particular date.\nIn the... |
{"title":"php date validation","tags":["php","validation","date"],"question_text":"Im trying to to set up a php date validation (MM\/DD\/YYYY) but I'm having issues. Here is a sample of what I got:\n`$date_regex = '%\\A(0[1-9]|1[012])[- \/.](0[1-9]|[12][0-9]|3[01])[- \/.](19|20)\\d\\d\\z%'; \n$test_date = '03\/22\/2010... |
{"title":"Suffix of \"f\" on float value?","tags":["c","floating-point"],"question_text":"I am wondering what the difference is between these two variables in C:\n`float price = 3.00;`\nand\n`float price = 3.00f;`\nThe trailing \"f\"?","answer_text":"`3.00`\nis interpreted as a\n`double`\n, as opposed to\n`3.00f`\nwhic... |
{"title":"cd into directory without having permission","tags":["linux","unix","permissions","directory"],"question_text":"When\n`cd`\ning into one of my directories called\n`openfire`\nthe following error is returned:\n`bash: cd: openfire: Permission denied`\nIs there any way around this?","answer_text":"@user812954's ... |
{"title":"C++ STL: Array vs Vector: Raw element accessing performance","tags":["c++","stl","arrays","vector"],"question_text":"I'm building an interpreter and as I'm aiming for raw speed this time, every clock cycle matters for me in this (raw) case.\nDo you have any experience or information what of the both is faster... |
{"title":"Run javascript script (.js file) in mongodb including another file inside js","tags":["mongodb"],"question_text":"I want to write a long script for inserting and updating mongodb data.\nIs it possible to call external js file that contains the script?\nIs it possible to include another js file from the runnin... |
{"title":"how to call an ASP.NET c# method using javascript","tags":["c#","javascript","asp.net"],"question_text":"Does anyone know how to call a server-side c# method using javascript? What i need to do is to stop imports if Cancel is chosen or to continue importing if ok is chosen. I am using visual studio 2010 and c... |
{"title":"Is there a way to generalize an Apache ANT target?","tags":["java","build-process","build-automation","ant"],"question_text":"We have an Apache ANT script to build our application, then check in the resulting JAR file into version control (VSS in this case). However, now we have a change that requires us to b... |
{"title":"Trying to understand jqgrid for jquery. How do I change the URL for my AJAX call?","tags":["jquery","jqgrid"],"question_text":"I have everything working from the tutorial, replacing it with my data, but it is a hardcoded situation. For example, in the tutorial, which is what I have working, I have:\n`jQuery(d... |
{"title":"How does Grails know to apply a \"layout\" to pages it renders?","tags":["grails","layout"],"question_text":"I've been going through the book \"The Definitive Guide to Grails\" (Rocher\/Brown) and in Chapter 04, this mysterious thing called a \"layout\" just appeared with no explanation. (And there's no \"lay... |
{"title":"Code to loop through all records in MS Access","tags":["ms-access","vba"],"question_text":"I need a code to loop through all the records in a table so I can extract some data. In addition to this, is it also possible to loop through filtered records and, again, extract data? Thanks!","answer_text":"You should... |
{"title":"Adding settings class to a UWP app","tags":["c#","settings","win-universal-app","appsettings","windows-10-universal"],"question_text":"I'm developing a Universal Windows Platform app but there is no Settings template in Visual Studio.\nHow can I implement an easy, strongly typed and observable class that stor... |
{"title":"How to config Single node for Single Cluster (Standalone Cluster) ElasticSearch","tags":["elasticsearch","elastica"],"question_text":"I installed elastic search in my local machine, I want to configure it as the only one single node in the cluster(Standalone Server). it means whenever I create a new index, it... |
{"title":"MySQL create stored procedure syntax with delimiter","tags":["mysql","sql","stored-procedures"],"question_text":"I am trying to create a stored procedure in MySQL using a delimiter like this:\n`use am;\nDELIMITER $$\nCREATE PROCEDURE addfields()\nBEGIN\n DECLARE done INT DEFAULT FALSE;\n DECLARE acc INT(16);\... |
{"title":"Image icon beside the site URL","tags":["web-applications","favicon"],"question_text":"I would like to have information about the icons which are displayed alongside the site URLs on a web browser. Is this some browser specific feature? Where do we specify the icon source, ie, is it in some tag on the web pag... |
{"title":"SVN - How to make an older revision the head revision?","tags":["svn"],"question_text":"One of the files in my current head revision got corrupted. I want to make an older revision of that file the head revision as usually people sync to head revsion in my project. How to do that?","answer_text":"You should r... |
{"title":"Android NDK tutorial\/guide for beginners.","tags":["java","android","android-ndk"],"question_text":"I'm starting with the android NDK. Is there some nice place\/ebook for guiding me?\nThanks","answer_text":"that should get you started:\nhttp:\/\/mindtherobot.com\/blog\/452\/android-beginners-ndk-setup-step-b... |
{"title":"Filter Core Data results by property IN array","tags":["objective-c","cocoa","ios","core-data","nspredicate"],"question_text":"I currently have Core Data successfully returning all of the results for a specific entity titled\n`Event`\n:\n`NSManagedObjectContext *context = [delegate managedObjectContext];\nNSE... |
{"title":"AVCaptureVideoPreviewLayer orientation - need landscape","tags":["ios","orientation","avfoundation","avcapturesession","avcapture"],"question_text":"My app is landscape only. I'm presenting the AVCaptureVideoPreviewLayer like this:\n`self.previewLayer = [[AVCaptureVideoPreviewLayer alloc] initWithSession:sess... |
{"title":"How can I check if file has been downloaded in ansible","tags":["ansible","ansible-playbook"],"question_text":"I am downloading the file with\n`wget`\nfrom ansible.\n`- name: Download Solr\n shell: chdir={{project_root}}\/solr wget http:\/\/mirror.mel.bkb.net.au\/pub\/apache\/lucene\/solr\/4.7.0\/solr-4.7.0.z... |
{"title":"How to set the android property layout_alignParentBottom to a button dynamically","tags":["android","dynamic","button"],"question_text":"I have a dynamic layout and I have a button. How can I set the property\n`layout_alignParentBottom`\nto that button so that it would appear in the bottom of my relative layo... |
{"title":"JavaScript I18n (internationalization) frameworks\/libraries for client-side use?","tags":["javascript","internationalization","backbone.js","requirejs"],"question_text":"We are currently creating a JavaScript application with backbone.js,\nand we need it translated or at least to support internationalization... |
{"title":"jQuery Ajax returning 404 Error, but correct Response","tags":["jquery","ajax","wordpress"],"question_text":"I'm posting some data to a PHP script via jQuery AJAX, and everything executes correctly, but it returns a 404 error. In my Firebug console the response from the PHP script is correct. I don't understa... |
{"title":"Definition of a Balanced Tree","tags":["tree"],"question_text":"I am just wondering if someone might be able to clarify the definition of a balanced tree for me. I have that \"a tree is balanced of each sub-tree is balanced and the height of the two sub-trees differ by at most one.\nI apologize if this is a d... |
{"title":"Why is jQuery Validation adding noValidate attribute?","tags":["jquery","jquery-validate"],"question_text":"I'm currently using:\n`<script src=\"\/\/code.jquery.com\/jquery-1.10.2.min.js\"><\/script>\n<script src=\"\/\/code.jquery.com\/ui\/1.10.4\/jquery-ui.js\"><\/script>\n<script src=\"..\/js\/bootStrap\/js... |
{"title":"How to get Git 1.8 in Cygwin?","tags":["git","cygwin"],"question_text":"According to\nhttp:\/\/cygwin.com\/packages\/git\/\nthe latest available Cygwin package is 1.7.9-1.\nI would like to update git to at least 1.8.0.\nCan I do this?","answer_text":"cygwinports\nhas many new versions of various tools\nAt the... |
{"title":"Padding bars remain when scrolling GridView","tags":["android"],"question_text":"I have this\n`GridView`\n(see screenshot) that contains items that all need about 12 dip spacing. However, when I set padding on the\n`GridView`\n, it seems that I can't scroll across this paddingm which I do want to do. How do I... |
{"title":"How to kill a running SELECT statement","tags":["sql","oracle","session","select","oracle10g"],"question_text":"How can I stop a running SELECT statement by killing the session?\nThe command is continuously giving me output based on the SELECT statement, I want to stop it in between.","answer_text":"As you ke... |
{"title":"Problem sending JSON object succesfully to asp.net WebMethod, using jQuery","tags":["asp.net","javascript","jquery","ajax","json"],"question_text":"I've been working on this for 3 hours and have given up.\ni am simply trying to send data to an asp.net web method, using jQuery.\nThe data is basically a bunch o... |
{"title":"PHP: Split a string in to an array foreach char","tags":["php","arrays","split","passwords","validation"],"question_text":"I am making a method so your password needs at least one captial and one symbol or number.\nI was thinking of splitting the string in to lose chars and then use preggmatch to count if it ... |
{"title":"How to hide status bar in UIImagepickercontroller?","tags":["ios","objective-c","iphone","ios7","statusbar"],"question_text":"I am new to iOS development. I am trying to hide status bar in\n`UIImagePickerController`\n. Whenever I click on \"Take photo\", status bar appears. It doesn't hide. I want status bar ... |
{"title":"Deep clone utility recomendation","tags":["java","clone"],"question_text":"Is there any utility for deep cloning for java collections:\nArrays\nLists\nMaps\nNOTE: prefer some solution without usage of serialization, but with use of Object.clone() method. I can be sure that my custom object will implement clon... |
{"title":"Chef, override attributes not applying to recipe","tags":["attributes","override","chef","role","chef-recipe"],"question_text":"This is the cookbook I downloaded:\nhttps:\/\/github.com\/edelight\/chef-mongodb\nI installed Chef server, Chef workstation, and have a testnode ready to bootstrap.\nA role I created... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.