text stringlengths 74 309k |
|---|
{"title":"The breakpoint will not currently be hit. A different version of script file has been loaded by debugged process","tags":["javascript","visual-studio-2012"],"question_text":"I have strange behavior in VS 2012 with JavaScript as if it were caching old version. It appears to not load the latest changes made to ... |
{"title":"What's the best way to migrate a Django DB from SQLite to MySQL?","tags":["mysql","database","django","sqlite","migration"],"question_text":"I need to migrate my db from sqlite to mysql, and the various tools\/scripts out there are too many for me to easily spot the safest and most elegant solution.\nThis see... |
{"title":"Laravel 5 - How to access image uploaded in storage within View?","tags":["laravel"],"question_text":"I have got user's avatars uploaded in Laravel storage. How can I access them and render them in a view?\nThe server is pointing all requests to\n`\/public`\n, so how can I show them if they are in the\n`\/sto... |
{"title":"Django Tutorial: Generic Views. Attribute Error","tags":["python","django","django-generic-views"],"question_text":"I'm at the last part of\nthis\ntutorial.\n`from django.conf.urls import patterns, include, url\nfrom django.views.generic import DetailView, ListView\nfrom polls.models import Poll\nurlpatterns ... |
{"title":"SQL query, if value is null then return 1","tags":["tsql",null,"ssms"],"question_text":"I have a query that is reutning the exchage rate value set up in our system. Not every order will have an exchange rate (currate.currentrate) so it is returning null values. Can I get it to return 1 instead of null. Someth... |
{"title":"This is the .htaccess code in WordPress. Can someone explain how it works?","tags":["php","apache","wordpress",".htaccess"],"question_text":"This is the .htaccess code for permalinks in WordPress. I don't understand how this works. Can someone explain?\n`<IfModule mod_rewrite.c>\nRewriteEngine On\nRewriteBase... |
{"title":"How to print the value of a Tensor object in TensorFlow?","tags":["python","tensorflow"],"question_text":"I have been using the introductory example of matrix multiplication in TensorFlow.\n`matrix1 = tf.constant([[3., 3.]])\nmatrix2 = tf.constant([[2.],[2.]])\nproduct = tf.matmul(matrix1, matrix2)`\nAnd when... |
{"title":"Git doesn't work after upgrading Mac OS X El Capitain","tags":["git","osx","osx-elcapitan"],"question_text":"Git doesn't work after upgrading Mac OS X El Capitain.\nI have this error when I'm doing a git command:\n`xcrun: error: invalid active developer path (\/Library\/Developer\/CommandLineTools), missing x... |
{"title":"Maximum size of a method in Java 7 and 8","tags":["java","java-7","java-8"],"question_text":"I know that a method cannot be larger than 64\u00a0KB with Java. The limitation causes us problems with generated code from a\nJavaCC\ngrammar. We had problems with Java 6 and were able to fix this by changing the gra... |
{"title":"Checking if a channel has a ready-to-read value, using Go","tags":["go","channel"],"question_text":"How do I check if a channel has a value for me to read?\nI don't want to block when reading a channel. I want to see if it has a value. If it does have one, I'll read it. If it doesn't have one (yet), I'll do s... |
{"title":"Unloading the Assembly loaded with Assembly.LoadFrom()","tags":["c#","garbage-collection","load","gettype"],"question_text":"I need to check the time amount to run GetTypes() after loading the dll.\nThe code is as follows.\n`Assembly assem = Assembly.LoadFrom(file);\nsw = Stopwatch.StartNew();\nvar types1 = a... |
{"title":"Recursively batch process files with pngquant","tags":["image","terminal","png","batch-processing"],"question_text":"I have a lot of images that I would like to process with pngquant. They are organized in a pretty deep directory structure, so it is very time-consuming to manually\n`cd`\ninto every directory ... |
{"title":"Convert file path to file url[NSUrl]","tags":["ios","objective-c","filepath","nsurl"],"question_text":"I'm try to file upload operation using\n`AFNetworking`\nmulti-part form data. I'm getting following error. I could find out what is error.\n`[NSURL URLWithString:filePath]`\nAlso used\n`[[NSURL URLWithString... |
{"title":"How to find the last occurrence of an item in a Python list","tags":["python","list","last-occurrence"],"question_text":"Say I have this list:\n`li = [\"a\", \"b\", \"a\", \"c\", \"x\", \"d\", \"a\", \"6\"]`\nAs far as help showed me, there is not a builtin function that returns the last occurrence of a strin... |
{"title":"How to make <input type=\"date\"> supported on all browsers? Any alternatives?","tags":["javascript","jquery","html","html5","jquery-ui"],"question_text":"I'm working with HTML5 elements input attributes and only Google Chrome supports the date, time attributes. I tried\nModernizr\nbut I can't understand on h... |
{"title":"What is the difference between pickle and shelve?","tags":["python","object","pickle","shelve","object-serialization"],"question_text":"I am learning about object serialization for the first time. I tried reading and 'googling' for differences in the modules pickle and shelve but I am not sure I understand it... |
{"title":"How to create custom labels for issues on github?","tags":["github","issue-tracking"],"question_text":"I've noticed that some organizations on github have different labels that they can apply to issues.\nFor example, one organization that I am a part of allows any of these labels to be applied:\nHowever, on m... |
{"title":"\"Testing Class Equality\" in Objective-c","tags":["iphone","objective-c","ios"],"question_text":"I am having problem understanding this part of \"Testing Class Equality\" which is defined in apple guide.\nIn a dynamically-created subclass, the class method is typically overridden such that the subclass masqu... |
{"title":"How atomic are GHC's thunks?","tags":["multithreading","haskell","lazy-evaluation","ghc","thunk"],"question_text":"How does GHC handle thunks that are accessed by multiple threads (either explicit threads, or the internal ones that evaluate sparks)? Can it happen that multiple threads evaluate the same thunk,... |
{"title":"JavaScript console log in Magento","tags":["javascript","magento","console","logging","conflict"],"question_text":"I have a custom phtml pages in Magento. As far I know Magento uses jQuery and prototype libraries.\nFor example\n, if I need external jQuery\/jQueryUI, I need to use\n`.noConflict()`\nBut if I wa... |
{"title":"Can int value be assigned to id type + Objective c","tags":["objective-c"],"question_text":"I want to know if this assignment is correct\n`id var = 9;`\nWill var be assigned the value 9 or do we have to wrap in some wrapper class like NSNumber?","answer_text":"9 is an integer literal, which is not an object.\... |
{"title":"Media Query Styles Not Overriding Original Styles","tags":["css3","media-queries"],"question_text":"I'm attempting to use some media queries for a website I'm building. The problem I'm having however, is while the media query styles are actually being applied, they're being overridden. I can't for the life of... |
{"title":"Using a Material-based Dialog Theme with AppCompat","tags":["android","themes","appcompat","material-design","material-theme"],"question_text":"I have an activity in my Manifest I used to style with a Dialog Theme. I can not find how to replace this in\n`AppCompat`\nlibrary.\n`<activity\n android:name=\".Logi... |
{"title":"To use or not to use SSL? Why use SSL always?","tags":["ssl","https","security"],"question_text":"The argument for using SSL is to prevent some malicious user who has gone through the pains of snooping your traffic being able to read your traffic. So while it may make sense if you are using an unsecured wirel... |
{"title":"Override home and back button is case a boolean is true","tags":["android","button","override","back-button"],"question_text":"I was wondering if I can override the action of the back and home button is some cases. Normally these buttons should just react like they always do, but in a case some setting is tru... |
{"title":"Java's Collections.shuffle is doing what?","tags":["java","collections","shuffle"],"question_text":"I recently found myself needing to be sure my list wasn't in order. Hibernate was nice enough to return it in perfect order. Silly hibernate, not reading my mind.\nI looked at my Java API and it tells me its sh... |
{"title":"Bash for loop with wildcards and hidden files","tags":["bash","loops","scripting","wildcard"],"question_text":"Just witting a simple shell script and little confused:\nHere is my script:\n`% for f in $FILES; do echo \"Processing $f file..\"; done`\nThe Command:\n`ls -la | grep bash`\nproduces:\n`% ls -a | gre... |
{"title":"Why should I make the underlying type of an Enum Int32 instead of byte?","tags":["c#",".net","enums"],"question_text":"Given the following enum:\n`public enum Operations_PerHourType : byte\n{\n Holes = 1,\n Pieces = 2,\n Sheets = 3,\n Strips = 4,\n Studs = 5\n}`\nWhen I run the Microsoft code analysis tool, i... |
{"title":"Speeding Up Python","tags":["python","optimization","performance"],"question_text":"This is really two questions, but they are so similar, and to keep it simple, I figured I'd just roll them together:\nFirstly\n: Given an established python project, what are some decent ways to speed it up beyond just plain i... |
{"title":"The transaction log for database 'databasename' is full.","tags":["sql-server"],"question_text":"The transaction log for database '' is full. To find out why space in the log cannot be reused, see the log_reuse_wait_desc column in sys.databases.\nPlease Help me to solve this issue.\nThanks in advance.","answe... |
{"title":"Difference between Ajax, restful\/Rest JSON and JSONP","tags":["ajax","json","rest","jsonp","terminology"],"question_text":"I am just confused with the these terms can anybody please provide\/explain me brief with an example?\nThanks","answer_text":"Ajax\n- \"Asynchronous Javascript and XML\". Ajax loosely de... |
{"title":"iPhone fetch data dictionary from keychain","tags":["iphone","dictionary","keychain","automatic-ref-counting"],"question_text":"So I'm trying to convert an old project to Automatic Reference Counting. I'm trying to use the conversion tool that xCode has but it says to fix a couple things before it can convert... |
{"title":"Getting raw SQL Queries in CodeIgniter 1.7","tags":["php","codeigniter"],"question_text":"I'm trying to debug some code in my first serious CodeIgniter app and I can't seem to find where I can simply get the raw SQL that my ActiveRecord code just generated.\n`$where = 'DAY(`datetime_start`) = '. date('d',$day... |
{"title":"jQuery loading images with complete callback","tags":["jquery","image","load","complete"],"question_text":"I saw\na comment on Ben Nadel's blog\nwhere Stephen Rushing posted a loader, but I can't figure out how I can pass the selectors and parameter..\nI think I also need a completeCallback & errorCallback fu... |
{"title":"How to get last run cron job details in linux?","tags":["linux","unix","cron"],"question_text":"I want to get details of last runned cron job in my machine . Because if the cron is interrupted due to some internal problems . I want to rerun the cron job .\nNote : I didn't have root user privilege .","answer_t... |
{"title":"What does \"Register for COM Interop\" actually do?","tags":["visual-studio","visual-studio-2010","com-interop"],"question_text":"What exactly does the VS project option \"Register for COM interop\" actually do? Because when I build my library with this option enabled I can call CreateObject on my library fro... |
{"title":"Java REST implementation: Jersey vs CXF","tags":["java","web-services","rest","cxf","jersey"],"question_text":"What do you think is the advantages\/disadvantages between this two libraries? Which of these two are best suited for production environment? By the way I will be using JSON instead of XML.\nI also w... |
{"title":"Reverse a string in python without using reversed or [::-1]","tags":["python","string","function","for-loop","reverse"],"question_text":"I came across a strange Codecademy exercise that required a function that would take a string as input and return it in reverse order. The only problem was you could not use... |
{"title":"like '%' does not accept NULL value","tags":["sql",null],"question_text":"I have query that is build from user's inputs ( passed via html form). It looks like (simple example):\n`Select * From [table] Where [table].[column] like '<parameter>'`\nThis parameter may be optional so if user left corresponding inpu... |
{"title":"What is the minUptime","tags":["node.js","daemon","forever"],"question_text":"I am using\nforever\nwith my project. What do these options do:\n`minUptime`\n`spinSleepTime`\nI didn't understand from GitHub page.","answer_text":"Forever's documentation\nexplains each briefly\n:\n`--minUptime Minimum uptime (mil... |
{"title":"F# equivalent of the C# typeof(IEnumerable<>)","tags":["reflection","f#","c#-to-f#"],"question_text":"I have a piece of code where I need to figure out if a given type implements\n`IEnumerable<T>`\n(I don't care about the T)\nI've tried (\n`t:System.Type`\nin case you wonder)\n`let interfaces = t.GetInterface... |
{"title":"Apache is not running from XAMPP Control Panel ( Error: Apache shutdown unexpectedly. This may be due to a blocked port)","tags":["php","apache","server","xampp","port"],"question_text":"I have installed XAMPP (xampp-win32-1.8.2-0-VC9-installer.exe) on Windows 7 successfully. But unfortunately, the following ... |
{"title":"android Zoom-to-Fit All Markers on Google Map v2","tags":["android","google-maps-api-2"],"question_text":"How to zoom in\/out the map view such a way that it cover all markers?\ni am reviewing sample code of gmap V2 given in sdk. It lays on sdk\\extras\\google\\google_play_services\\samples\\maps.\nThanks in ... |
{"title":"C++'s most vexing parse again","tags":["c++","c++11","gotw"],"question_text":"Taken directly from\nhttp:\/\/herbsutter.com\/2013\/05\/09\/gotw-1-solution\/\nWhile\n`widget w();`\nis clear for me, I have no idea how can the below code be a function declaration?\n`\/\/ same problem (gadget and doodad are types)... |
{"title":"How to set bitmap in circular imageview?","tags":["android"],"question_text":"I have 1 circular imageview and I want to place bitmap inside the imageview.\nbut when I set the compressed bitmap image it is always rectangle.\nPlease help me to set bitmap in circular imageview.\nThanks","answer_text":"I am curio... |
{"title":"Setting value for one column of all records in table","tags":["mysql"],"question_text":"I'm trying to clear one column for all records in my table.\nFor example if my table had three columns: id, comment, and likes - I would like to be able to clear the likes column.\n`+---+-------+-----+\n|id |comment|likes|... |
{"title":"MySQL \"Or\" Condition","tags":["php","mysql","select","condition"],"question_text":"Check out this\n`MySQL`\nQuery and then I'll show you what I really want it to do...\n`mysql_query(\"\nSELECT * FROM Drinks WHERE\n email='$Email'\n AND date='$Date_Today'\n OR date='$Date_Yesterday'\n OR date='$Date_TwoDaysA... |
{"title":"AFNetworking 2.0 - unexpected NSURLErrorDomain error -1012","tags":["afnetworking","nsurlerrordomain"],"question_text":"We ran into the following issue with our app that uses\nAFNetworking 2.0\n. \nWhen using\n`AFHTTPRequestOperationManager`\n's GET method, we got an error\n`NSURLErrorDomain code -1012`\n. Th... |
{"title":"Why aren't generic type constraints inheritable\/hierarchically enforced","tags":["c#","inheritance","generic-constraints"],"question_text":"Item class\n`public class Item\n{\n public bool Check(int value) { ... }\n}`\nBase abstract class with generic type constraint\n`public abstract class ClassBase<TItem>\n... |
{"title":"Why does java.util.Properties implement Map<Object,Object> and not Map<String,String>","tags":["java","generics","collections"],"question_text":"The\n`java.util.Properties`\nclass is meant to represent a map where the keys and values are both Strings. This is because\n`Properties`\nobjects are used to read\n`... |
{"title":"How to check for null List in freemarker","tags":["java",null,"freemarker"],"question_text":"Say my java code has\n`List<String> listS =null`\nand i pass this to my template file.\nNow i want to make sure that\n`if list has some data then only do something`\n.\nI have tried\n`<#if listS = null>\nAND\n<#if !li... |
{"title":"Converting a PDF to PNG","tags":["image","pdf","png","imagemagick","ghostscript"],"question_text":"I'm trying to convert a PDF (at least the cover of one, I'm successfully extracting the first page of the PDF with pdftk) to a PNG. I'm using imagemagick to do the converstion:\n`convert cover.pdf cover.png`\nTh... |
{"title":"<c:if test> seems to always evaluate true in JSF2 Facelets","tags":["jsf","jsf-2","jstl","facelets"],"question_text":"I am using JSF2 on Facelets.\nI define an\n`<ui:param>`\nin a page:\n`<ui:composition template=\"\/WEB-INF\/templates\/ui.xhtml\"\n xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\"\n xmlns:f=\"http:... |
{"title":"MessageBox Buttons?","tags":["c#","button","messagebox"],"question_text":"How would I say if the yes button on the messagebox was pressed do this,that and the other? In C#.","answer_text":"Your call to\n`MessageBox.Show`\nneeds to pass\n`MessageBoxButtons.YesNo`\nto get the\nYes\n\/\nNo\nbuttons instead of th... |
{"title":"Django: is there a way to count SQL queries from an unit test?","tags":["django","django-orm","django-testing"],"question_text":"I am trying to find out the number of queries executed by a utility function. I have written a unit test for this function and the function is working well. What I would like to do ... |
{"title":"How to set up default schema name in JPA configuration?","tags":["java","hibernate","spring","configuration","jpa"],"question_text":"I found that in hibernate config file we could set up parameter\n`hibernate.default_schema`\n:\n`<hibernate-configuration> \n <session-factory>\n ...\n <property name=\"hibernat... |
{"title":"Resharper 7.1 Solution Analysis False Errors","tags":["visual-studio","resharper"],"question_text":"In our VS2012 web project we are getting hundreds of errors reported by Resharper, but the software builds and compiles fine.\nHow do I get resharper to correctly identify the fact that the solution is actually... |
{"title":"Using COALESCE to handle NULL values in PostgreSQL","tags":["sql","database","postgresql",null,"coalesce"],"question_text":"I have the following query\n`SELECT DISTINCT \n pt.incentive_marketing, \n pt.incentive_channel, \n pt.incentive_advertising \nFROM test.pricing pt \nWHERE pt.contract_id = 90000 \ngroup... |
{"title":"When to use SELECT ... FOR UPDATE?","tags":["mysql","sql","sql-server","transactions","ansi-sql"],"question_text":"Please help me understand the use-case behind\n`SELECT ... FOR UPDATE`\n.\nQuestion 1\n: Is the following a good example of when\n`SELECT ... FOR UPDATE`\nshould be used?\nGiven:\nrooms[id]\ntags... |
{"title":"redirect in Spring MVC","tags":["java","spring","spring-mvc"],"question_text":"Why can't I get this to work in my Controller\n`@RequestMapping(method = RequestMethod.POST)\npublic String onSubmit(\n Model model,\n @ModelAttribute(\"form\") Form form,\n BindingResult result, HttpServletRequest request)\n throw... |
{"title":"What is the difference between \"copy\" and \"retain\"?","tags":["objective-c","nsstring","copy","retain"],"question_text":"What is the difference between\n`copy`\nand\n`retain`\nfor\n`NSString`\n?\n`- (void)setString:(NSString*)newString\n{\n string = [newString copy];\n}`","answer_text":"In a general settin... |
{"title":"JavaScript: IIF like statement","tags":["javascript","inline","iif"],"question_text":"Coming from VB, JavaScript isn't very easy to get the hang of. Please don't be negative, I've tried and searched loads but with no luck. BTW, I'm creating a dropdown control initialized from a\n`Select`\noption list in JS.\n... |
{"title":"What browsers support `overflow-y`?","tags":["html","css","css3"],"question_text":"From what I understand,\n`overflow-y`\nis a CSS3 selector. But at\nhttp:\/\/www.findmebyip.com\/litmus\n, it doesn't have that selector shown, show I don't know what browsers support it.\nFirst, are\n`overflow-y`\nand\n`overflo... |
{"title":"How to check if input file is empty in JQuery","tags":["javascript","jquery","html"],"question_text":"Brand new to JS.\nI am trying to check if the file input element is empty when submitting the form with jquery\/javascript.\nI have gone through a bunch of solutions and nothing is working for me. I am trying... |
{"title":"SwitchCompat throwing error","tags":["android","appcompat","android-switch"],"question_text":"I am trying to use switchcompat in my fragment. The min supported API is 14 and max is 21. I am trying to apply the material view to switch for all pre lollipop android versions. But when use the below code I get an ... |
{"title":"Using BeautifulSoup to find a HTML tag that contains certain text","tags":["python","regex","beautifulsoup","html-content-extraction"],"question_text":"I'm trying to get the elements in an HTML doc that contain the following pattern of text: #\\S{11}\n`<h2> this is cool #12345678901 <\/h2>`\nSo, the previous ... |
{"title":"return eats exception","tags":["python","exception","return","finally"],"question_text":"I found the following behavior at least\nweird\n:\n`def errors():\n try:\n ErrorErrorError\n finally:\n return 10\nprint errors()\n# prints: 10\n# It should raise: NameError: name 'ErrorErrorError' is not defined`\nThe ex... |
{"title":"How to Read and Write from the Serial Port","tags":["c#","serial-port"],"question_text":"I just start to learn how to send and receive data from my hardware through the C# GUI.\nCan anyone please write a detail how to\nread\ndata from the serial port?","answer_text":"SerialPort (RS-232 Serial COM Port) in C# ... |
{"title":"What requires me to declare \"using namespace std;\"?","tags":["c++","namespaces","include","using","using-directives"],"question_text":"This question may be a duplicate, but I can't find a good answer. Short and simple, what requires me to declare\n`using namespace std;`\nin C++ programs?","answer_text":"Sin... |
{"title":"Are Generators Threadsafe?","tags":["python","multithreading","thread-safety","generator"],"question_text":"I have a multithreaded program where I create a generator function and then pass it to new threads. I want it to be shared\/global in nature so each thread can get the next value from the generator.\nIs... |
{"title":"how to exit a child process - _exit() vs. exit","tags":["c","process","fork"],"question_text":"Consider this code snippet:\n`pid_t cpid = fork();\nif (cpid == -1) {\n perror(\"fork\");\n exit(EXIT_FAILURE);\n}\nif (cpid == 0) { \/\/ in child\n execvp(argv[1], argv + 1);\n perror(\"execvp\");\n _exit(EXIT_FAIL... |
{"title":"How to show the next slide when you click on the image in flexslider","tags":["javascript","jquery","flexslider"],"question_text":"I'm using the\nflexslider\nplugin and i wanted to know if there is an easy way (apart from changing the core of the plugin which is what i am going to do if i don't find an easy a... |
{"title":"How to start a GET\/POST\/PUT\/DELETE request and judge request type in PHP?","tags":["php","request"],"question_text":"I never see how is\n`PUT\/DELETE`\nrequest sent.\nHow to do it in PHP?\nI know how to send a GET\/POST request with curl:\n`$ch = curl_init();\ncurl_setopt($ch, CURLOPT_COOKIEJAR, $cookieFil... |
{"title":"How to maximize Visual Studio panels?","tags":["visual-studio-2010","visual-studio","user-interface"],"question_text":"Is there a way to quickly maximize (and then restore) Visual Studio 2010 panels? For instance, I'd like to temporarily maximize the Output window or unit test results window. In Eclipse, I wo... |
{"title":"How to retrieve unique count of a field using Kibana + Elastic Search","tags":["elasticsearch","logstash","kibana"],"question_text":"Is it possible to query for a distinct\/unique count of a field using Kibana? I am using elastic search as my backend to Kibana.\nIf so, what is the syntax of the query? Heres a... |
{"title":"if (cin >> x) - Why can you use that condition?","tags":["c++","variables","if-statement","cin"],"question_text":"I have been using \"Accelerated C++\" to learn C++ over the summer, and there's a concept which I don't seem to understand properly.\nWhy is\n`int x;\nif (cin >> x){}`\nequivalent to\n`cin >> x;\n... |
{"title":"How can I parse dates and convert time zones in Perl?","tags":["perl","datetime","parsing","date","timezone"],"question_text":"I've used the\nlocaltime\nfunction in Perl to get the current date and time but need to parse in existing dates. I have a GMT date in the following format: \"20090103 12:00\" I'd like... |
{"title":"jQuery - Detecting when a user clicks OUT of an input type Text Field","tags":["jquery"],"question_text":"I want to detecting when a user clicks OUT of an input type Text Field, not in.\nHere's what I have but both events are firing on click inside (focus):\n`<input id=\"title\" val=\"hello\" \/>\n$(\"#title\... |
{"title":"EditText without auto-correction, etc","tags":["android"],"question_text":"My EditText needs to accept input consisting of partial words, names, etc. At least on my HTC Desire, this is difficult since the keyboard wants to suggest and\/or correct some entries (e.g., changes \"gor\" to \"for\"). I tried settin... |
{"title":"Can't install python mysql library on Mac Mavericks","tags":["python","django","osx","osx-mavericks","mysql-python"],"question_text":"It was working like a charm before the update from Mountain Lion.\nAfter the update it is broken and I cannot get the environment up again.\nDoes anybody know how to fix this?\... |
{"title":"auto-width of combobox's content","tags":["c#",".net","winforms","combobox"],"question_text":"is anybody know of a way to make the combobox's content's width to autosize\ni do not mean to combobox itself,\njust\nthe opened content","answer_text":"You can't use it directly.\nDo a trick\nFirst iterate through a... |
{"title":"How can I use Nodejs with Windows 7?","tags":["javascript","html5","node.js","webserver","websocket"],"question_text":"I'm about to became insane looking for it, most of the examples shows only how to run it on linux terminal and just the communication with the server.\nCan someone PLEASE explain to me how I ... |
{"title":"HTML : Is there any way to show images in a textarea?","tags":["html","image","textarea","thumbnails","photo"],"question_text":"So I want to show\n`image thumbnails`\ntoo in the\n`<textarea>`\nalong with text. If you know a javascript solution that's perfect too(if possible in vanilla JS).\nLike this:\n`_____... |
{"title":"INVALID_STATE_ERR: DOM Exception 11","tags":["javascript","ajax","xmlhttprequest"],"question_text":"I'm developing a simple auxiliary class to send requests using XmlHttpRequest (code below). But I cant make it work. At google chrome, for example, I get the error\n`INVALID_STATE_ERR: DOM Exception 11`\nand at... |
{"title":"Cast received object to a List<object> or IEnumerable<object>","tags":["c#",".net"],"question_text":"I'm trying to perform the following cast\n`private void MyMethod(object myObject) \n{ \n if(myObject is IEnumerable) \n {\n List<object> collection = (List<object>)myObject; \n ... do something \n } \n else \n... |
{"title":"php.ini & SMTP= - how do you pass username & password","tags":["php","smtp","email"],"question_text":"`My ISP`\naccount requires that I send a username & password for outbound\n`SMTP`\nmail.\nHow do I get\n`PHP`\nto use this when executing\n`php.mail()?`\nThe\n`php.ini`\nfile only contains entries for the ser... |
{"title":"Disable orientation change rotation animation","tags":["iphone","objective-c","ios","animation","orientation"],"question_text":"I need to disable the animation that plays when the orientation changes. Is this possible? If not, is it possible to speed it up?\nJust to clarify, i don't want to stop the orientati... |
{"title":"How do I iterate over the options of a SelectField in a template?","tags":["django","django-forms","django-templates"],"question_text":"I have a select field in the form and now I need to iterate over options in this field.\n`{{ form.myselect }}`\ngives me this:\n`<select name=\"myselect\" id=\"id_myselect\">... |
{"title":"Confusing error in R: Error in scan(file, what, nmax, sep, dec, quote, skip, nlines, na.strings, : line 1 did not have 42 elements)","tags":["r"],"question_text":"I am new to R. I am trying to read in a \"CSV\" file that is space-space delimited. The file does not have headers. It looks like this\n`Element1 E... |
{"title":"Any good, visual HTML5 Editor or IDE?","tags":["ide","editor","html5","html-editor"],"question_text":"Well it looks like Dreamweaver CS5 will try to smoother the HTML5 thing for a few more years (weeks actually). Seems like the next rung down is right to Notepad!\nAnyone know a good HTML5 editor with a visual... |
{"title":"Capistrano 3 does not restart after deploy","tags":["ruby","capistrano3"],"question_text":"I've recently updated my\ncapistrano\ngem to version 3.1.0, and since then\n`cap production deploy`\npasses fine, but the target\n`deploy:restart`\nis not called.\nMy server is deployed on Ubuntu 12.10 on Amazon EC2.\nW... |
{"title":"Extraction of data from a simple XML file","tags":["xml","bash","sed","awk","grep"],"question_text":"I've a XML file with the contents:\n`<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<job xmlns=\"http:\/\/www.sample.com\/\">programming<\/job>`\nI need a way to extract what is in the\n`<job..>`\n`<\/job>`\ntags... |
{"title":"Open Specific View when Opening App from Notification","tags":["ios","push-notification","viewcontroller"],"question_text":"I have just added push notifications to my app. I'm wanting to have so that when a user opens the app from a notification, it will open a specific view controller and not my rootViewCont... |
{"title":"Elixir - Looping through and adding to map","tags":["enumeration","elixir"],"question_text":"I'm rebuilding something in Elixir from some code I built in C#.\nIt was pretty hacked together, but works perfectly (although not on Linux, hence rebuild).\nEssentially what it did was check some RSS feeds and see if... |
{"title":"How to push unsynced commits to GitHub?","tags":["github"],"question_text":"I have a GitHub source control tool added to my copy of Visual Studio 2013 and when I right click on the solution and make a commit it says created the commit locally. When I try to sync the commit with the server, the sync button is ... |
{"title":"Implicit intent to uninstall application?","tags":["android","android-intent","uninstall"],"question_text":"I am trying to have an onclicklistener call an intent to uninstall an app, by having the intent call the default \"uninstall app\" activity from the applications settings. I have found\nhere\nthat I can... |
{"title":"How can I get Emacs to revert all unchanged buffers when switching branches in git?","tags":["git","emacs","elisp","aquamacs"],"question_text":"Often, when I switch branches in git, if the files are open in emacs, then emacs asks if I want to revert them (as it thinks they've changed on disk) even though the ... |
{"title":"Ant compile doesn't copy the resources","tags":["java","ant"],"question_text":"I created my own build.xml which has:\n`<target name=\"compile\">\n <mkdir dir=\"build\"\/> \n <javac destdir=\"build\"> \n <src path=\"src\"\/> \n <\/javac>\n<\/target>\n<target name=\"build\" depends=\"compile\">\n <mkdir dir=\"d... |
{"title":"Why does SimpleDateFormat parse incorrect date?","tags":["java","scala"],"question_text":"I have date in string format and I want to parse that into util date.\n`var date =\"03\/11\/2013\"`\nI am parsing this as :\n`new SimpleDateFormat(\"MM\/dd\/yyyy\").parse(date)`\nBut the strange thing is that, if I am pa... |
{"title":"NSLayoutConstraints and setting the width\/height of a view dynamically","tags":["objective-c","ios","xcode","nslayoutconstraint"],"question_text":"I have a question about setting the size of a view to which i'm applying some layout constraints.\nHow can I define the size of the view without defining its fram... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.