text
stringlengths
74
309k
{"title":"How can I embed django csrf token straight into HTML?","tags":["django","csrf","django-csrf"],"question_text":"within my django app I am storing strings of html in the db that will then be displayed on the users' home pages as \"messages\". Some of these messages contain forms, but not being written in the te...
{"title":"Interface Builder and Xcode integration not working","tags":["xcode","interface-builder","rpc"],"question_text":"After having installed the iPhone SDK 3.1.2, Interface Builder is not in sync with Xcode anymore. The light indicator at the bottom of the XIB window is grey. IB doesn't see any files from the Xcod...
{"title":"Highcharts Series - want to show\/hide all EXCEPT selected series (reversal of default logic)","tags":["highcharts"],"question_text":"By default Highcharts allows you to click on a data series set to hide it \/ unhide it.\nA much more useful approach would be to do the reverse logic - ie to show only the sele...
{"title":"How does one create an enthusiastic development team?","tags":["development-environment"],"question_text":"If you have a room full of capable developers, what can be done to encourage those developers to become excited and enthusiastic about software and software development?\nNo gimmicks, but a genuine move ...
{"title":"Notification to restore a task rather than a specific activity?","tags":["android","android-activity","notifications"],"question_text":"I have a foreground service that keeps a connection open with the server as long as the user is logged into the application. This is so that the connection is kept alive and ...
{"title":"What do the different columns (of letters) mean for the svn merge output?","tags":["svn","documentation","merge"],"question_text":"The output of SVN merge has 4 columns of letters listed before the file name. I understand the meaning of the letters (mostly) but I can't find any information on the\nmeanings of...
{"title":"ASP.NET Web API returns 404 for PUT only on some servers","tags":["iis-7.5","asp.net-mvc-4","asp.net-web-api"],"question_text":"(cross post from Server Fault. I realised afterwards that I probably should have asked on stackoverflow first)\nOk, I have been racking my brain and the internet for a solution to th...
{"title":"Enable ASP.NET ASMX web service for HTTP POST \/ GET requests","tags":["asp.net","web-services","asmx"],"question_text":"I would like to enable a ASP.NET classic (ASMX) web service for HTTP POST and GET requests. I realise this can be done on a machine or application level by adding ...\n`<webServices>\n <pro...
{"title":"keyboard size returning wrong values?","tags":["objective-c","ios","cocoa-touch"],"question_text":"On iPad, after subscribing to\n`UIKeyboardDidShowNotification`\n`NSDictionary* info = [aNotification userInfo];\nCGSize kbSize = [[info objectForKey:UIKeyboardFrameBeginUserInfoKey] CGRectValue].size;\nNSLog(@\"...
{"title":"default array values","tags":["javascript","arrays"],"question_text":"Is there a way to assign a default values to arrays in javascript?\nex:\n`an array with 24 slots that defaults to 0`","answer_text":"`var a = Array.apply(null, Array(24)).map(function() { return 0 });\n\/\/ or:\nvar a = Array.apply(null, Ar...
{"title":"Trigger event when user scroll to specific element - with jQuery","tags":["javascript","jquery","html","scroll","scrollto"],"question_text":"I have an h1 that is far down a page..\n`<h1 id=\"scroll-to\">TRIGGER EVENT WHEN SCROLLED TO.<\/h1>`\nand I want to trigger an alert when the user scrolls to the h1, or ...
{"title":"WebGL\/GLSL - How does a ShaderToy work?","tags":["javascript","glsl","webgl","shader","pixel-shader"],"question_text":"I've been knocking around Shadertoy -\nhttps:\/\/www.shadertoy.com\/\n- recently, in an effort to learn more about OpenGL and GLSL in particular.\nFrom what I understand so far, the OpenGL u...
{"title":"Why I get 411 Length required error?","tags":["c#",".net","httprequest","http-status-code-411"],"question_text":"This is how I call a service with .NET:\n`var requestedURL = \"https:\/\/accounts.google.com\/o\/oauth2\/token?code=\" + code + \"&client_id=\" + client_id + \"&client_secret=\" + client_secret + \...
{"title":"CSS :after pseudo element not showing up on <img>?","tags":["css","css3","pseudo-element"],"question_text":"I have an image that kind of slides up from the menu when you hover it. Because it's hidden under the menu i want to give the bottom of the image a little bit of deph by adding a dark fade to the bottom...
{"title":"How do I create a facade class with Laravel?","tags":["php","laravel","facade"],"question_text":"I'm having a little problem with creating a facade model class with Laravel. I have followed\nhttp:\/\/laravel.com\/docs\/facades\nbut I guess I'm missing something.\nI have created a folder in\n`app\/models`\ncal...
{"title":"Sorting dropdown list using Javascript","tags":["javascript","list","sorting","drop-down-menu"],"question_text":"i want to sort the drop down items using javascript,can anyone tell me how to do this.","answer_text":"You could use jQuery and something like this:\n`$(\"#id\").html($(\"#id option\").sort(functio...
{"title":"How can I show a viewbag as html?","tags":["c#","asp.net","asp.net-mvc-3","viewbag"],"question_text":"OK, quite new to ASP.Net MVC, so I'm sorry if this is a silly question, but how do I go about showing the values of a ViewBag as HTML. For Example, if ViewBag.SomeMessage contains the following text:\n`<h3>Te...
{"title":"How to debug \"Vagrant cannot forward the specified ports on this VM\" message","tags":["vagrant"],"question_text":"I'm trying to start a Vagrant instance and getting the following message:\n`Vagrant cannot forward the specified ports on this VM, since they\nwould collide with another VirtualBox virtual machi...
{"title":"Inserting new attribute to a document using MongoDB ( Python )","tags":["python","mongodb"],"question_text":"I'm new with MOngoDB ( coming from CouchDB ) and I am having issues with adding new attributes to my documents in MongDB using the MonDB python driver.\nFor example, I have the following document:\n`{\...
{"title":"Multiple group by and Sum LINQ","tags":["c#","linq"],"question_text":"I have a products sales table that looks like this:\n`saleDate prod qty\n10\/22\/09 soap 10\n09\/22\/09 pills 05\n09\/25\/09 soap 06\n09\/25\/09 pills 15`\nI need to make the SUM of each MONTH so the final table would look like this:\n`sale...
{"title":"VS2010 web deploy the connection string argument cannot be null or empty","tags":["visual-studio-2010","visual-studio","iis-7","connection-string","webdeploy"],"question_text":"Having problems deploying a website to an windows 2008 r2 server running IIS7. I have previously deployed another site to this server...
{"title":"Java constants file","tags":["java","android","constants"],"question_text":"I'm developing an Android application and I'm very new on Java and Android.\nI want to create some constants to use in some activities. Where can I define these constants?\nThanks.","answer_text":"It's considered bad practice in java,...
{"title":"DotNetNuke 7 skinning tutorial","tags":["c#","asp.net","webforms","dotnetnuke"],"question_text":"I'm looking for a decent tutorial on creating skins for DotNetNuke 7. I've not been able to find anything for the most up to date version of dnn and although I've had some success modifying existing skins, it woul...
{"title":"How to set tab bar item title programatically in objective c?","tags":["objective-c","xcode","uitabbarcontroller","uitabbaritem"],"question_text":"I want to set title to tab item programatically, but it not works. My code is below:\n`- (IBAction)tab1Click:(id)sender {\n myTabBarController = [[UITabBarControll...
{"title":"IIS Session Timeout vs ASP.NET Session Timeout","tags":["asp.net","iis","session","session-timeout"],"question_text":"In IIS 6 (and other versions too afaik), there is a Session Timeout setting in Properties -> Home Directory Tab -> Configuration button -> Options tab. Looks like this:\nAnd in the ASP.NET web...
{"title":"JavaScript Array rotate()","tags":["javascript","arrays","rotation"],"question_text":"I was wondering what was the most efficient way to rotate a\nJavaScript\narray.\nI came up with this solution, where a positive\n`n`\nrotates the array to the right, and a negative\n`n`\nto the left (\n`-length < n < length`...
{"title":"Should PUT and DELETE be used in forms?","tags":["html","http","rest","cross-browser"],"question_text":"Assuming my web application has full support of PUT and DELETE on the server side, should I make use of them?\nBasically my question is how many browsers support this:\n`<form method=\"PUT\">`\nor\n`<form m...
{"title":"Is it possible to detect Android app uninstall?","tags":["android","uninstall","detect","android-c2dm"],"question_text":"My app is using Google's C2DM (push notification) to notify users about new activity from friends. Once they install the app i register the device with C2DM servers and store user's phone n...
{"title":"system.data.sqlite .net 4","tags":[".net","sqlite"],"question_text":"Is there a .Net 4 version of System.Data.SQLite?\nAt the moment I get this error:\nMixed mode assembly is built against version 'v2.0.50727' of the runtime and cannot be loaded in the 4.0 runtime without additional configuration information....
{"title":".increment vs += 1","tags":["ruby-on-rails","ruby","increment"],"question_text":"I have a Picture model that contains a variable for a view count (integer).\nThe view count is incremented by +1 every time someone views the Picture object.\nIn getting this done, what is the difference between\n`@picture.view_c...
{"title":"Bash - variable variables","tags":["bash","variables"],"question_text":"I have the variable\n`$foo=\"something\"`\nand would like to use:\n`bar=\"foo\"; echo $($bar)`\nto get \"something\" echoed.","answer_text":"In bash, you can use ${!variable} to use variable variables.\n`foo=\"something\"\nbar=\"foo\"\nec...
{"title":"creating a user in Active Directory: A device attached to the system is not functioning","tags":["c#","active-directory","asp.net-3.5"],"question_text":"Consider this code attempting to create an Active Directory account. It's generating an exception here with a certain set of data. It's not clear right now w...
{"title":"How can I insert an image into a RichTextBox?","tags":["c#","vb.net","image","richtextbox","rtf"],"question_text":"Most of the examples I see say to put it on the clipboard and use paste, but that doesn't seem to be very good because it overwrites the clipboard.\nI did see\none method\nthat manually put the i...
{"title":"How to use the Singleton pattern in an Android project?","tags":["java","android","singleton"],"question_text":"I know about Singleton, but I can't use it in an Android project. I am a beginner in Android.\nPlease tell me how & where we can use Singleton in an Android project for Large Data. I have used it fo...
{"title":"Regex to replace values that include part of match in replacement in sublime?","tags":["regex","sublimetext","textmate","oniguruma"],"question_text":"I've come up with this regex that finds all words that start with\n`$`\nand contain\n`_`\nunderscores:\n`\\$(\\w+)_(\\w+)`\nI'm basically searching for variable...
{"title":"What is the difference between Early and Late Binding?","tags":["binding","dynamic-binding","static-binding"],"question_text":"What is the difference between early and late binding?","answer_text":"The short answer is that early (or static) binding refers to compile time binding and late (or dynamic) binding ...
{"title":"Why dec 31 2010 returns 1 as week of year?","tags":["java","calendar","jodatime","week-number"],"question_text":"For instance:\n`Calendar c = Calendar.getInstance();\nDateFormat sdf = new SimpleDateFormat(\"dd\/MM\/yyyy\");\nc.setTime( sdf.parse(\"31\/12\/2010\"));\nout.println( c.get( Calendar.WEEK_OF_YEAR )...
{"title":"Near and Far pointers","tags":["c++","c","pointers"],"question_text":"What is difference between our usual pointers(ones which we normally use), near pointers and far pointers and is there a practical usage for near and far pointers in present day C\/C++ systems? Any practical scenario which necessiates use o...
{"title":"Google Spreadsheet: Sum of row n through last row","tags":["excel","google-spreadsheet"],"question_text":"I want to create a TOTAL row at the top of my spreadsheet. In this row, each cell should be the SUM of the values in the column below the TOTAL row.\nSo for example, if the total row is Row 1, cell A1 sho...
{"title":"Android TextView Linkify intercepts with parent View gestures","tags":["android","gesture","linkify"],"question_text":"The problem is that if i Linkify the textView the underliyng ScrollView don't listen the sweep Gestures I've setted.Is there a way to have Linkify without messing with the underliyng view's g...
{"title":"Custom layouts, Sublime text 2","tags":["sublimetext2","sublimetext"],"question_text":"I've been working with a 2 column system so far but feel I'm needing a third and that 3 spread across the screen doesn't give much of a view without adjusting the width every time.\nIt's there a way to get the grid layout b...
{"title":"Why global.asax Application_Error method does not catch exceptions thrown by ASMX service?","tags":["asp.net","error-handling","asmx"],"question_text":"And how to fix it. I'd like to log every thrown exception for maintenance purpose.","answer_text":"This is a known issue in .Net - Application_Error never fir...
{"title":"WPF: How to make a button background transparent","tags":["wpf","button","wpf-controls","background"],"question_text":"I want to know how to set a wpf button background to transparent.\nthank you","answer_text":"`<Button Background=\"Transparent\"\/>`","question_code":[],"answer_code":["<Button Background=\"T...
{"title":"remove css class in code behind","tags":["c#","asp.net","css"],"question_text":"I have this control\n`<asp:Label ID=\"lblName\" runat=\"server\" Text=\"My Name\" CssClass=\"required regular\" \/>`\nI want to remove the\n`required`\nclass from code behind, how can I do that?","answer_text":"You can replace \"r...
{"title":"Create A Blank Html Space On The Fly Javascript","tags":["javascript"],"question_text":"How do I create a blank space on the fly using javascript? \nThe following is not working for me..\n`var blank = document.createElement(\"&nbsp;\");\ndiv.appendChild(blank);`","answer_text":"Try using this:\n`myElement.app...
{"title":"Facebook Web App development error","tags":["javascript","jquery","facebook","google-chrome"],"question_text":"I keep getting the following error on the debug console on chrome\n`[blocked] The page at https:\/\/myURL\/canvas ran insecure content from http:\/\/ajax.googleapis.com\/ajax\/libs\/jqueryui\/1.7.1\/...
{"title":"How to get a CGPoint from a tapped location?","tags":["ios","xcode","ipad","touch","cgpoint"],"question_text":"I'm working on a graphing calculator app for the iPad, and I wanted to add a feature where a user can tap an area in the graph view to make a text box pop up displaying the coordinate of the point th...
{"title":"libgdx: Rotate a texture when drawing it with spritebatch","tags":["rotation","libgdx","textures"],"question_text":"Im trying to rotate textures when I draw them. I figured it would make more sense to do this than to rotate the images 90 degrees in paint.net and save them in different files. I looked thought ...
{"title":"Java 8: Where is TriFunction (and kin) in java.util.function? Or what is the alternative?","tags":["java","lambda","java-8"],"question_text":"I see java.util.function.BiFunction, so I can do this:\n`BiFunction<Integer, Integer, Integer> f = (x, y) -> { return 0; };`\nWhat if that is not good enough and I need...
{"title":"How to use less css with django?","tags":["python","django","less"],"question_text":"I'm using twitter bootstrap and django. I've got my dependencies handled with a pip requirements file.\nI've got 2 questions:\nHow can I use less while I'm developing so it'll get compiled when I edit one of my less files?\nH...
{"title":"mySQL dateTime range Query Issue","tags":["mysql","datetime"],"question_text":"I have a quick question. I'm have a db an audit Table with a datetime column in it. (i.e 2012-03-27 00:00:00) and I'm building a mySQL query to return a set of rows if the date is in between the two dates I'm giving it.\nso far my ...
{"title":"In Vim, How to find out what a key combination does","tags":["vim"],"question_text":"I accidently press a shorcut key\nand I know that vim has done something but I don't know what\nHow can i find out what that shortcut key does ?\nthanks","answer_text":"There are two potential sources for information. First o...
{"title":"Accessing factory defined in another module in angularjs","tags":["javascript","angularjs","dependency-injection","module"],"question_text":"Can we call the factory functions defined in one module from another module? If so, how?\nLet's say my first module is defined in\n`moduleOne.js`\nfile as:\n`var myModul...
{"title":"Get class name from file","tags":["php","reflection"],"question_text":"I have a php file which contains only one class. how can I know what class is there by knowing the filename? I know I can do something with regexp matching but is there a standard php way? (the file is already included in the page that is ...
{"title":"Getting URL parameter in java and extract a specific text from that URL","tags":["java","url","text-extraction"],"question_text":"I have a URL and I need to get the value of v from this URL.\nHere is my URL:\nhttp:\/\/www.youtube.com\/watch?v=_RCIP6OrQrE\nAny useful and fruitful help is highly appreciated..",...
{"title":"How can Google Chrome isolate tabs into seperate processes while looking like a single application?","tags":["architecture","browser","google-chrome","multiprocess"],"question_text":"We have been told that Google Chrome runs each tab in a separate process. Therefore a crash in one tab would not cause problems...
{"title":"Mmh, who are you PRIu64?","tags":["c","macros","printf"],"question_text":"I am new to C and I am confronted with:\n`#include <stdio.h>\n#include <inttypes.h>\nint main(void)\n{\n uint64_t foo = 10;\n printf(\"foo is equal to %\" PRIu64 \"!\\n\", foo);\n return 0;\n}`\nAnd it works! I don't understand why? Can...
{"title":"Rubocop Linelength: How to ignore lines with comments?","tags":["ruby","rubocop"],"question_text":"Using a Rails 4 app I would like Rubocop to ignore lines with comments (just a comment or some code with an end of line comment) when checking if a line is to long. Is there a way to do this?","answer_text":"The...
{"title":"SVG draggable using JQuery and Jquery-svg","tags":["jquery","jquery-ui","svg"],"question_text":"I have an HTML 5 page where I load an svg circle. When I click on the circle I create another small circle where I click. I want to be able to drag the second circle but cant seem to do it with jquery-ui .draggable...
{"title":"After update - Error:Failed to find: com.google.android.gms:play-services:5.2.8","tags":["android","gradle","android-studio","google-play-services","build.gradle"],"question_text":"Gradle project sync failed.\nAfter update the android SDK i got this error:\nError:Failed to find: com.google.android.gms:play-se...
{"title":"Get a form action\/url with jquery","tags":["jquery","forms","asp.net-mvc-2"],"question_text":"How do I get the action url from a form with jquery?","answer_text":"Get the form, ask for the\n`action`\nattribute:\n`$( '#myForm' ).attr( 'action' );`","question_code":[],"answer_code":["$( '#myForm' ).attr( 'acti...
{"title":"How to load all the images from one of my folder into my web page, using Jquery\/Javascript","tags":["javascript","jquery","html","image"],"question_text":"I have a folder named \"images\" in the same directory as my .js file. I want to load all the images from \"images\" folder into my html page using Jquery...
{"title":"Implementations of Emoji (Emoticon) View\/Keyboard Layouts","tags":["android","android-softkeyboard","emoji","emoticons"],"question_text":"I am trying to figure out how the emoji (emoticon) selections are implemented on the\n`Facebook`\napp and the Google\n`Hangouts`\napp. I looked into the\n`SoftKeyboard`\nD...
{"title":"How to get mongo command results in to a flat file","tags":["mongodb","mongodb-java","mongodb-query"],"question_text":"How do I export the results of a MongoDB command to a flat file\nFor example, If I am to get\n`db.collectionname.find()`\ninto a flat file.\nI tried\n`db.collectionname.find() >> \"test.txt\"...
{"title":"Optimize PDF files (with Ghostscript or other)","tags":["linux","pdf","debian","ghostscript"],"question_text":"Is Ghostscript the best option if you want to optimize a PDF file and reduce the file size?\nI need to store alot of PDF files and therefore I need to optimize and reduce the file size as much as pos...
{"title":"How to boolean && two visibility converters","tags":["wpf","data-binding","converter"],"question_text":"I have two separate converters for visibility, one based on whether a field has been updated and one based on whether a field is allowed to be seen. I use the updatedField one for each text item on my page ...
{"title":"Iterate over two arrays","tags":["ios","swift","apple"],"question_text":"I am new to Swift. I have been doing Java programming. I have a scenario to code for in Swift.\nThe following code is in Java. I need to code in Swift for the following scenario\n`\/\/ With String array - strArr1\nString strArr1[] = {\"S...
{"title":"Validating check boxes in HTML","tags":["html","css","html5","checkbox","radio-button"],"question_text":"I have a form there are 4 options (they may be check boxes or radio).\nI want to select multiple options but one is compulsory.\nI know it is possible in JS\/jQuery but I want a HTML\/CSS base solution.","...
{"title":"GridView RowCommand event not firing","tags":["c#","asp.net","gridview"],"question_text":"I have a GridView that looks something like this:\n`<asp:GridView \n ID=\"GridView1\"\n AllowPaging=\"true\"\n OnRowCommand=\"RowCommand\"\n OnPageIndexChanging=\"gridView_PageIndexChanging\"\n Runat=\"server\">\n <Colum...
{"title":"In Python, how do you find the index of the first value greater than a threshold in a sorted list?","tags":["python","algorithm","search","bisection"],"question_text":"In Python, how do you find the index of the first value greater than a threshold in a sorted list?\nI can think of several ways of doing this ...
{"title":"Adding line breaks in ipython","tags":["python","ipython"],"question_text":"If introduce a for loop in iPython, or any multi-line command, how do I go back and add lines to it? I ran this:\n`for row in table.find_all('tr'):\n cells = row.find_all('td')\n for c,cell in enumerate(cells):\n print c,\":\",cell.ge...
{"title":"Win32 API to enumerate dll export functions?","tags":["c++","windows","winapi","dll"],"question_text":"I found similar questions but no answer to what I am looking for. So here goes:\nFor a native Win32 dll, is there a Win32 API to enumerate its export function names?","answer_text":"`dumpbin \/exports`\nis p...
{"title":"Write a password protected Zip file in Java","tags":["java","encryption","zip"],"question_text":"I need to zip and password-protect a file. Is there a good (free) library for this?\nThis needs to be opened by a third party, so the password protection needs to work with standard tools.","answer_text":"You can ...
{"title":"Keyboard.Focus does not work on text box in WPF","tags":["c#","wpf","xaml","textbox","focus"],"question_text":"I am banging my head on what looks like such a simple problem to fix in wpf but i have yet to discover why i can't get my app to behave according to my plan.\nI have a small search box that pops-up i...
{"title":"Change ActionBar Tabs background color","tags":["android","android-actionbar","android-ui"],"question_text":"Is there a way to change the background color of the tab bar in the ActionBar without changing it in the one line version?\nTo clarify what I want: In portrait mode the ActionBar is split in two lines,...
{"title":"How to use p4merge as the merge\/diff tool for Mercurial?","tags":["osx","configuration","mercurial","perforce","p4merge"],"question_text":"Does anyone know how to setup\nMercurial\nto use\np4merge\nas the merge\/diff tool on OS X 10.5?","answer_text":"Place this into your\n`~\/.hgrc`\n(or, optionally, your\n...
{"title":"Table border color in CSS with border collapse","tags":["css","table","border"],"question_text":"I want to put a line above some field in a table, to indicate that it is a sum of the above values. However, the table already has borders by default.\nHere is an example: I have a table with borders collapsed. I ...
{"title":"How to I undo the vendor\/gems bundle install","tags":["ruby-on-rails","ruby-on-rails-3","rvm","bundle","bundler"],"question_text":"I ran\n`bundle install vendor\/gems`\nand all the gems got saved to the gems directory as expected but when i delete them like\n`rm -rf vendor\/gems\nrails s\n Could not find rak...
{"title":"Adding css rules with text method to style element does not work in IE","tags":["jquery","internet-explorer"],"question_text":"It works fine in Firefox and Chrome, but does not work in IE8. Here is the html structure:\n`<!DOCTYPE html>\n<html>\n <head>\n <meta http-equiv=\"Content-Type\" content=\"text\/html;...
{"title":"Google Cloud Messaging - GCM - SERVICE_NOT_AVAILABLE","tags":["android","google-cloud-messaging","service-not-available"],"question_text":"I am trying, to implement the new GCM, I am following Google\nget stated\n:\nhttp:\/\/developer.android.com\/guide\/google\/gcm\/gs.html\nI getting stuck at getting my dev...
{"title":"Removing control characters from a string in python","tags":["python","string","python-3.x"],"question_text":"I currently have the following code\n`def removeControlCharacters(line):\n i = 0\n for c in line:\n if (c < chr(32)):\n line = line[:i - 1] + line[i+1:]\n i += 1\n return line`\nThis is just does not ...
{"title":"Download File inside WebView","tags":["android","webview","download","attachment"],"question_text":"I have a webview in my Android Application. When user goes to webview and click a link to download a file nothing happens.\n`URL = \"my url\";\nmWebView = (WebView) findViewById(R.id.webview);\nmWebView.setWebV...
{"title":"Bash : if condition - check if element is present in array","tags":["bash","shell","if-statement","condition","conditional-statements"],"question_text":"I was wondering if there is an efficient way to check if an element is present within an array in Bash? I am looking for something similar to python that you...
{"title":"How can I build a json string in javascript\/jquery?","tags":["javascript","json"],"question_text":"I would like to build a json string programmatically. The end product should be something like:\n`var myParamsJson = {first_name: \"Bob\", last_name: \"Smith\" };`\nHowever I would like to do it one parameter a...
{"title":"How to get the scrapy failure URLs?","tags":["python","web-scraping","report","scrapy"],"question_text":"I'm a newbie of scrapy and it's amazing crawler framework i have known!\nIn my project, I sent more than 90, 000 requests, but there are some of them failed. \nI set the log level to be INFO, and i just ca...
{"title":"XCode 4.3 - Uninstall XCode 4.2","tags":["xcode4.2"],"question_text":"Initially launching XCode 4.3, I was given an option to uninstall Xcode 4.2. I didn't uninstall the first time and I'm having trouble locating that option within Xcode 4.3. How do I find this option again?\nInstead of doing the uninstall ma...
{"title":"How to get the size of a Winforms Form titlebar height?","tags":["c#",".net","winforms"],"question_text":"So if it's toolwindow or a minimizable form, I want to be able to get its height programmatically.\nIs this possible? If so how?","answer_text":"You can determine titlebar height for both tool-windows and...
{"title":"Support of \\K in regex","tags":["regex"],"question_text":"The\n`\\K`\nescape sequence resets the beginning of the match to the current position in\nthe token list (this only affects what is reported as the full match).\nWhat environments\/languages\/versions support\n`\\K`\n(keep) in its regular expression e...
{"title":"Node.js build system in Sublime Text 2","tags":["javascript","node.js","sublimetext2"],"question_text":"I justed started learning JavaScript. While doing that, I got tired of embedding my JavaScript code into an HTML document in order to run it in the browser. I thought it would be nice to just run my scripts...
{"title":"Code Golf: Triforce","tags":["language-agnostic","code-golf","rosetta-stone"],"question_text":"This is inspired by\/taken from this thread:\nhttp:\/\/www.allegro.cc\/forums\/thread\/603383\nThe Problem\nAssume the user gives you a numeric input ranging from 1 to 7. Input should be taken from the console, argu...
{"title":"What are the advantages of delegates?","tags":["c#",".net","delegates"],"question_text":"What are the benefits\/advantages of using delegates? Can anyone provide any simple examples?","answer_text":"They're a great way of encapsulating a piece of code. For instance, when you attach an event handler to the but...
{"title":"How do I access an element of a control template from within code-behind","tags":["wpf","syntax","user-controls","code-behind"],"question_text":"I'm trying to access a user control which is inside the control template of a content control. Specifically:\n`<ContentControl x:Name=\"MyList\" >\n <ContentControl....
{"title":"React-js ignores label's 'for' attribute","tags":["javascript","reactjs"],"question_text":"I know that for 'class' we must use className, but how do i get react to preserve 'for' attribute?\nThe following:\n`<label for=\"recipient-name\" className=\"control-label\">Recipient:<\/label>`\nis rendered as:\n`<lab...
{"title":"Open source Android libraries? Reusable Views, ViewGroups, Adapters etc?","tags":["android","open-source","android-widget","android-ui","library-project"],"question_text":"Here's what I really want: a site collecting re-usable components for Android.\nI have found various\nsmall\nlists\n, the biggest being th...
{"title":"cols, colgroups and css :hover psuedoclass","tags":["css","xhtml","html-table","col"],"question_text":"I'm trying to create a table to display an individual's BMI.\nAs part of this, I'd like, on :hover, for the\n`<tr>`\nand\n`<col>`\n(or\n`<colgroup>`\n) to be highlighted also, in order for the intersection t...
{"title":"How to increase consistency of Android geofence enter\/exit notifications?","tags":["android","android-maps-v2","android-geofence"],"question_text":"I am using the built in geofence APIs (play services) and have been having mixed results. It looks like after setting a geofence, the notifications for entering\...
{"title":"Wordpress wp-admin redirects me to a different domain","tags":["wordpress","login","redirect"],"question_text":"I go to\n`mysite.net\/wp-admin.`\nOnce I type in my username and pass word it redirects me to a blank page with address of\n`mysite.co.uk\/wp-login.php?redirect_to=http%3A%2F%2Fmysite.net%2Fwp-admin...
{"title":"Why is COBOL still a preferred language in the business world?","tags":["cobol"],"question_text":"Even though we have languages like\n`C++, Java, Python`\netc., why is\n`COBOL`\nstill a preferred language in the business world?\nEDIT\n:\nWhy was it so popular?\nSorry for not creating a separate thread for thi...
{"title":"How do I increase memory on Tomcat 7 when running as a Windows Service?","tags":["java","windows","tomcat","tomcat7"],"question_text":"I am trying to run Tomcat 7 as a Windows Service (XP and Windows 7).\nI see places to set the -Xmx and -Xms jvm args in catalina.bat, but I'm not sure how to do it when using ...
{"title":"Using LINQ to split items within a list","tags":["c#","linq"],"question_text":"I want to separate each item in a list, but also within each item, split the item if it contains\n`:`\neg.\n`string[] names = {\"Peter:John:Connor\",\"Paul\",\"Mary:Blythe\"};\nname.Dump();`\nWill show:\n`Peter:John:Connor\nPaul\nM...