text stringlengths 74 309k |
|---|
{"title":"What does ON UPDATE RESTRICT do?","tags":["mysql","database","database-design"],"question_text":"`...\nuser_id INTEGER NOT NULL, \nCONSTRAINT fk_user_meta FOREIGN KEY (user_id)\n REFERENCES users (id) ON DELETE CASCADE ON UPDATE RESTRICT`\nI know from\nhere\nthat ON DELETE CASCADE means that if I delete a row... |
{"title":"Override target in makefile to add more commands?","tags":["makefile"],"question_text":"At work we use a common makefile that other makefiles include (via the include statement) and it has a generic \"clean\" target that kills some common files. I want to add on to that target in my new makefile so I can dele... |
{"title":"Achieving white opacity effect in html\/css","tags":["html","css","opacity"],"question_text":"is there a way to achieve this effect in a cross-browser compatible way without having to prepare separated images?\nBasically the frame on which text lays has a white overlay of 50% opacity.. I would like a solution... |
{"title":"Recursively add files by pattern","tags":["git","glob","filepattern"],"question_text":"How do I recursively add files by a pattern (or glob) located in different directories?\nFor example, I'd like to add\n`A\/B\/C\/foo.java`\nand\n`D\/E\/F\/bar.java`\n(and several other java files) with one command:\n`git ad... |
{"title":"How to understand this crash log","tags":["objective-c","osx","cocoa","crash-reports","symbolicatecrash"],"question_text":"I got (in ITC) below presented crash report for my first Mac App Store app.\nUsing knowledge founded on Stackoverflow I tried to symbolicate this log, but (using atos and otool) I was onl... |
{"title":"PHP encoding with DOMDocument","tags":["php","dom","character-encoding"],"question_text":"`<tag>\n\u00d0\u0090\u00d0\u00bb\u00d0\u00b5\u00d0\u00ba\u00d1\u0081 \u00d0\u009c\n<\/tag>`\nWhen I try to get the content of the following code using DOMDocument functions, it returns something like:\n`\u00c3\u0090\u00c... |
{"title":"How can a connection started with NSURLConnection while in the foreground be continued in the background?","tags":["ios"],"question_text":"I have been searching for literally weeks to try to find an answer, or an example of how to do this.\nAll the examples\/tutorials for NSURLConnection show it starting in t... |
{"title":"Facebook Open Graph Error - Inferred Property","tags":["facebook","opengraph"],"question_text":"I'm trying to implement Facebook's OpenGRaph protocol on my product pages.\nOn each page i have this above the head section:\n`<html xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\" xmlns:og=\"http:\/\/ogp.me\/ns#\" xmln... |
{"title":"Merging two collections in MongoDB","tags":["mongodb","mapreduce"],"question_text":"I've been trying to use MapReduce in MongoDB to do what I think is a simple procedure. I don't know if this is the right approach, of if I should even be using MapReduce. I googled what keywords I thought of and tried to hit t... |
{"title":"Android-How to close progress dialog when back button is pressed","tags":["android"],"question_text":"How to close progress dialog when back button is pressed ?","answer_text":"A much better way.\n`ProgressDialog dialog = new ProgressDialog(this);\n dialog.setCancelable(true);\n dialog.setOnCancelListener(new... |
{"title":"using setInterval in angularjs factory","tags":["javascript","angularjs","javascript-framework"],"question_text":"I was trying the code given in angularjs docs (given here:\nhttp:\/\/jsfiddle.net\/zGqB8\/\n)\nIt just implements a time factory and uses $timeout to update the time object after each second.\n`an... |
{"title":"Can obj.GetType().IsInterface be true?","tags":["c#","reflection"],"question_text":"While doing something almost completely irrelevant, a question popped into my head:\nCan an expression of the form\n`obj.GetType().IsInterface`\never be true in a codebase consisting exclusively of C# code?\nI suspect the answ... |
{"title":"C++ Socket Server - Unable to saturate CPU","tags":["c++","linux","multithreading","scalability","boost-asio"],"question_text":"I've developed a mini HTTP server in C++, using boost::asio, and now I'm load testing it with multiple clients and I've been unable to get close to saturating the CPU. I'm testing on... |
{"title":"How to put wildcard entry into \/etc\/hosts?","tags":["hosts"],"question_text":"I recently wanted to point all subdomains for a test domain, let's say example.com to the localhost. Is there a way to point all requests on *.example.com to resolve to 127.0.0.1","answer_text":"It happens that\n`\/etc\/hosts`\nfi... |
{"title":"Caused by: java.security.UnrecoverableKeyException: Cannot recover key","tags":["java","ssl","ssl-certificate","jks"],"question_text":"I am supplied with a jks keystore named ABCC_client.store. When I import this keystore to cacerts and try connecting it says No such Algorithm error. PFA the stacktrace\n`Caus... |
{"title":"TypeError: \u00e2\u0080\u0098DoesNotExist\u00e2\u0080\u0099 object is not callable","tags":["python","django"],"question_text":"It's not always this code chunk but this is the most recent. It seems to be random, any thoughts?\n`try:\n u = User.objects.get(email__iexact=useremail)\nexcept User.DoesNotExist:\n ... |
{"title":"GoLang: Access struct property by name","tags":["go","go-reflect"],"question_text":"Here is a simple go program that is not working :\n`package main\nimport \"fmt\"\ntype Vertex struct {\n X int\n Y int\n}\nfunc main() {\n v := Vertex{1, 2}\n fmt.Println(getProperty(&v, \"X\"))\n}\nfunc getProperty(v *Vertex,... |
{"title":"ajax \"loading\" icon with UpdatePanel postbacks","tags":["c#","asp.net","ajax","updatepanel","postback"],"question_text":"I have a form that is being dynamically built depending on user selection using Ajax (built in .NET Ajax with UpdatePanel).\nhow can I insert a \"standard\" ajax loading icon (maybe have ... |
{"title":"Fiddler can easily decode responses - how to make this automatic?","tags":["fiddler"],"question_text":"In Fiddler I have many responses which I like to view raw. For each one Fiddler says \"Response is encoded and may need to be decoded before inspection. Click here to transform.\"\nI want not only the curren... |
{"title":".htaccess redirect - automatically add www. if no subdomain exists","tags":[".htaccess","mod-rewrite","redirect","web","subdomains"],"question_text":"I have reviewed other posts but cannot find one that fully addresses my needs.\nI need any www. added automatically to my domain ONLY IF a subdomain is not alre... |
{"title":"Does Entity Framework 6 support .NET 4.0?","tags":[".net-4.0","entity-framework-6"],"question_text":"I believe Entity Framework 6 is intended for .NET 4.5. I'm wanting to use it for a Visual Studio 2010 project, so .NET 4.5 isn't available.\nDoes it support .NET 4.0 and hence Visual Studio 2010?","answer_text... |
{"title":"Where can I get the old, free version of Anjlab's SQL Profiler?","tags":["sql","sql-server","profiling","profiler"],"question_text":"Note: Although this question probably does not fit in with SO's usual programming questions, out of StackOverflow, ServerFault, SuperUser and Programmer's Exchange, only SO has ... |
{"title":"Injecting dependent services when unit testing AngularJS services","tags":["javascript","unit-testing","angularjs","jasmine","karma-runner"],"question_text":"I'm testing service A, but service A depends on service B (i.e. service B is injected into service A).\nI've seen\nthis question\nbut my case is a bit d... |
{"title":"The specified type member is not supported in LINQ to Entities. Only initializers, entity members, and entity navigation properties are supported","tags":["entity-framework-4","linq-to-entities"],"question_text":"`var result =\n (from bd in context.tblBasicDetails\n from pd in context.tblPersonalDetails.Where... |
{"title":"Dynamically enable or disable RequiredFieldValidator based on value of DropDownList","tags":["asp.net","validation","requiredfieldvalidator"],"question_text":"I have an ASP.NET form with three text inputs, one each for \"Work Phone\", \"Home Phone\" and \"Cell Phone\". Each of these text inputs has a Required... |
{"title":"EditText inside ListView will not stay focused","tags":["android","listview","focus","android-edittext"],"question_text":"I have an\n`EditText`\ninside each row of a\n`ListView`\n. For some reason, when I tap the EditText, it briefly gains focus but then immediately loses it.\nI have tried these things:\n`lis... |
{"title":"Difference between oracle DATE and TIMESTAMP","tags":["oracle","jdbc","oracle11g"],"question_text":"What are the difference between Oracle DATE and TIMESTAMP type?\nBoth have date and time component?\nAlso what is corresponding type in Java for these date types?","answer_text":"DATE and TIMESTAMP have the sam... |
{"title":"Check whether activity is active","tags":["android"],"question_text":"I'm having a problem with a listener in a certain activity.\nThe problem is that this listener contains an alert.show(); which can be called after we try to push a new activity (which then gives an exception).\ne.g.: I'm listening in activi... |
{"title":"Using Bootstrap for Angular and Material design for Angular together","tags":["angularjs","twitter-bootstrap","angular-ui-bootstrap","angular-material"],"question_text":"I'm working on a project with this\ntemplate\n.\nThe template is written using AngularJs and Bootstrap-UI (bootstrap for angular) and I woul... |
{"title":"AngularJS ngOptions sort array","tags":["angularjs","ng-options"],"question_text":"I have been trying to use\n`ng-options`\nto display an array of fonts in a select sorted alphabetically by the value of the items in the array.\nHTML\n`<select ng-options=\"font for font in webfonts | orderBy:'font'\" name=\"fo... |
{"title":"Nodejs Child Process: write to stdin from an already initialised process","tags":["node.js","stdin","phantomjs","external-process","child-process"],"question_text":"I am trying to spawn an external process\n`phantomjs`\nusing node's\n`child_process`\nand then send information to that process after it was init... |
{"title":"Abstract classes vs. interfaces vs. mixins","tags":["oop","interface","terminology","abstract-class","mixins"],"question_text":"Could someone please explain to me the differences between\nabstract classes\n,\ninterfaces\n, and\nmixins\n? I've used each before in my code but I don't know the technical differen... |
{"title":"Adding CIFilter to CALayer under Mavericks?","tags":["osx","cocoa","core-animation","osx-mavericks"],"question_text":"so this is the standard way of adding filter to a layer:\n`NSView *view = self.window.contentView;\nview.wantsLayer = YES;\nCATextLayer *textLayer = [CATextLayer layer];\ntextLayer.frame = CGR... |
{"title":"How to write if condition in #ifdef. for Staging. in objective-c","tags":["objective-c","preprocessor-directive"],"question_text":"I need to add one more condition inside this call\nStaging\n..\nhow to do it in this condition.\n`#ifdef MYAPP_PRODUCTION\n buildMode = @\"Production\";\n #else\n #ifdef MYAPP_REL... |
{"title":"Get size of file on disk","tags":["c#",".net","filesize"],"question_text":"`var length = new System.IO.FileInfo(path).Length;`\nThis gives the logical size of the file, not the size on the disk.\nI wish to get the size of a file on the disk in C# (preferably without\ninterop\n) as would be reported by Windows... |
{"title":"Mocking member variables of a class using Mockito","tags":["java","mocking","mockito"],"question_text":"I am a newbie to development and to unit tests in particular . \nI guess my requirement is pretty simple, but I am keen to know others thoughts on this.\nSuppose I have two classes like so -\n`public class ... |
{"title":"Get a PHP object property that is a number","tags":["php","json","object","properties"],"question_text":"I'm trying to get a property from JSON data decoded into a PHP object. It's just a YouTube data API request that returns a video object that has a content object liks so;\n`[content] => stdClass Object\n (... |
{"title":"python: NameError\u00ef\u00bc\u009aglobal name '...\u00e2\u0080\u0098 is not defined","tags":["python","nameerror","global-namespace"],"question_text":"in my code, I have:\n`class A:\n def a():\n ......\n def b():\n a()\n ......\n b()`\nThen the compiler will say \"NameError: global name a() is not defined.\"... |
{"title":"iPhone In-App Purchase Store Kit error -1003 \"Cannot connect to iTunes Store\"","tags":["ios","iphone","in-app-purchase","storekit"],"question_text":"I've been working on adding in-app purchases and was able to create and test in-app purchases using Store Kit (yay!). During testing, I exercised my app in a w... |
{"title":"Does an unused import declaration eat memory, in Java?","tags":["java","performance","import"],"question_text":"Does an unused import like so -\nimport android.widget.RelativeLayout;\neat memory?\nJust want to know about how much or just is it valuable?\nMaybe this is stupid question, but I haven't found answ... |
{"title":"Erratic seed behavior with rbinom(prob=0.5) in R","tags":["r","random"],"question_text":"I have found what I would consider erratic behavior (but for which I hope there is a simple explanation) in\n`R`\n's use of seeds in conjunction with\n`rbinom()`\nwhen\n`prob=0.5`\nis used. General idea: To me, if I set t... |
{"title":"Apply CSS to popover in Bootstrap","tags":["html","css","twitter-bootstrap","popover"],"question_text":"I want to apply custom CSS to the title and content of a popover in Bootstrap, however, it seems that my CSS is being ignored.\nFor example:\nhttp:\/\/jsfiddle.net\/Mx4Ez\/\n`<div class=\"pop-div\">\n <a id... |
{"title":"How can I set the scrolling position of an UIScrollView?","tags":["iphone","cocoa-touch","uikit","uiscrollview"],"question_text":"I've seen the setContentOffset:animated: method. Is that going to scroll to a specific position, or what does that \"offset\" mean?","answer_text":"Yes. From the\nApple documentati... |
{"title":"iPhone: NSHTTPCookie is not saved across app restarts","tags":["iphone","cookies"],"question_text":"In my iPhone app, I want to be able to reuse the same server-side session when my app restarts. A session on the server is identified by a cookie, which is sent on each request. When I restart the app, that coo... |
{"title":"how to insert a (BOOL *) into NSMutableDictionary","tags":["ios","nsmutabledictionary"],"question_text":"I am trying to save a boolean database value into a map as follows -\n`[recentTags setValue:[NSNumber numberWithBool:[aMessage isSet]] forKey:[aMessage tagName]];`\nIt gives me an error saying \"Incompatib... |
{"title":"Truncate text containing HTML, ignoring tags","tags":["php","html","string","markup"],"question_text":"I want to truncate some text (loaded from a database or text file), but it contains HTML so as a result the tags are included and less text will be returned. This can then result in tags not being closed, or... |
{"title":"PHP $_FILES['tmp_name']","tags":["php"],"question_text":"I am trying to upload a doc file from a form and send it to email. I am using\n`$_FILES['file']['tmp_name'];`\nThe problem is, it is returning a randomly generated file name. So, when it reaches the inbox, the filename is phpvwRGKN.dat (filename is rand... |
{"title":"ADB push multiple files with the same extension with a single command","tags":["android","push","adb"],"question_text":"I want to push some files of the same type (\n`.img`\n) to the\n`\/sdcard`\npartition of the phone with a single command. But the wildcard does not work:\n`adb push *.img \/sdcard\/`\nIs the... |
{"title":"Random order & pagination Elasticsearch","tags":["random","pagination","elasticsearch"],"question_text":"In\nthis issue\nis a feature request for ordering with optional seed allowing for recreation of random order.\nI need to be able to paginate random ordered results. \nHow could this be be done with Elastic... |
{"title":"Why can't you declare a variable inside the expression portion of a do while loop?","tags":["c++","declaration","do-while"],"question_text":"The following syntax is valid:\n`while (int i = get_data())\n{\n}`\nBut the following is not:\n`do\n{\n} while (int i = get_data());`\nWe can see why via the draft stand... |
{"title":"Passing Data in Swift","tags":["model-view-controller","swift","ios8","xcode6"],"question_text":"I have been looking for an answer for this, but have only found answers for segues.\nI have\n`viewController1`\nwith a button that segues to\n`viewController2`\n. There is no code for this, I set it up through Int... |
{"title":"object.valid? returns false but object.errors.full_messages is empty","tags":["ruby-on-rails","ruby","validation","activerecord","save"],"question_text":"I'm confuse about objects that I can't save, simplified model is\n`class Subscription < ActiveRecord::base\n belongs_to :user, :class_name => \"User\", :for... |
{"title":"How to perform load testing for website using JMeter","tags":["testing","jmeter","performance-testing","load-testing"],"question_text":"I want to create a script in JMeter that simulates e.g. 100 users accessing our site over a period of 3-4 minutes.\nWe need to test whether our application can allow 25.000 u... |
{"title":"Access-control-allow-origin with multiple domains","tags":["c#","asp.net","iis","web-config","cors"],"question_text":"In my web.config I would like to specify more than one domain for the access-control-allow-origin directive. I don't want to use *. I've tried this syntax:\n`<add name=\"Access-Control-Allow-O... |
{"title":"Any good regular expression creator software or online tools to create Regular expressions","tags":["regex"],"question_text":"Does anyone have any good link to a website or a good tool to create regular expressions rather than break your head to create one. The tool should be able to create regular expression... |
{"title":"How to round down to nearest integer in MySQL?","tags":["mysql","sql","rounding"],"question_text":"How would I round down to the nearest integer in MySQL?\nExample:\n`12345.7344 rounds to 12345`\nmysql's\n`round()`\nfunction rounds up.\nI don't know how long the values nor the decimal places will be, could be... |
{"title":"Access store from component","tags":["ember.js","ember-data"],"question_text":"i have a component and when user click on component it add some value to store,i try to use this way but i get an error :\n`OlapApp.MeasureListItemComponent = Ember.Component.extend({\n tagName: 'li',\n isDisabled: false,\n attribu... |
{"title":"Heroku Error R14 (Memory quota exceeded): How do I solve this?","tags":["ruby-on-rails","ruby-on-rails-3","memory","heroku","memory-management"],"question_text":"I have a Rails 3.1 app on Heroku. I am seeing a lot of these errors:\nError R14 (Memory quota exceeded)\nTypically the preceding log entry is showin... |
{"title":"Pandas: find column whose name contains a specific string","tags":["string","python-3.x","pandas","find"],"question_text":"So, I have a dataframe with column names, and I want to find the one that contains a certain string, but does not exactly match it. I'm searching for\n`'spike'`\nin column names like\n`'s... |
{"title":"Confusion about Message Bus \/ Command Dispatcher patterns","tags":["design-patterns","event-handling","distributed-system","message-bus"],"question_text":"Recently I've been reading a lot about distributed messaging and associated patterns. I used some of them supported by the tools like for exemple\nNServic... |
{"title":"SSE2 option in Visual C++ (x64)","tags":["c++","visual-studio-2008","optimization","64bit","sse2"],"question_text":"I've added x64 configuration to my C++ project to compile 64-bit version of my app. Everything looks fine, but compiler gives the following warning:\n``cl : Command line warning D9002 : ignoring... |
{"title":"How to insert special characters like & and < into JSF components' value attribute ?","tags":["jsf","xhtml","facelets"],"question_text":"How to insert special characters like\n`&`\nand\n`<`\ninto JSF components\n`value`\nattribute ?\nFor example: I want something like this:\n`<h:outputText value=\"Tom & Jerry... |
{"title":"Android Animation - Flip","tags":["android","animation","flip"],"question_text":"I need to create an animation - Flip a view and show another one.\nThe width of currently shown view is decreased slowly to zero and after that the width of the view-to-be-shown must be increased from zero.\nDuring this time, the... |
{"title":"How do I call a SQL Server stored procedure from PowerShell?","tags":["sql-server","powershell"],"question_text":"I have a large CSV file and I want to execute a stored procedure for each line.\nWhat is the best way to execute a stored procedure from PowerShell?","answer_text":"This answer was pulled from\nht... |
{"title":"What characters are allowed in the HTML Name attribute inside input tag?","tags":["html","html-form","web-standards","html-input"],"question_text":"I have a PHP script that will generate\n`<input>`\ns dynamically, so I was wondering if I needed to filter any characters in the\n`name`\nattribute.\nI know that ... |
{"title":"Android: Bitmap to Byte Array and back: SkImageDecoder::Factory returned null","tags":["java","android","bitmap","bytearray","android-imageview"],"question_text":"The goal is to convert a\n`Bitmap`\nto a\n`byte []`\n, pass it between activities in a\n`Bundle`\nof data, then reconvert it back to a\n`Bitmap`\na... |
{"title":"Profile a rails controller action","tags":["ruby-on-rails","ruby"],"question_text":"What is the best way to profile a controller action in Ruby on Rails. Currently I am using the brute-force method of throwing in\n`puts Time.now`\ncalls between what I think will be a bottleneck. But that feels really, really ... |
{"title":"Difference between web server, web container and application server","tags":["java-ee","webserver","application-server","web-container"],"question_text":"Please tell me the Difference between web server, web container and application server.","answer_text":"Your question is similar to below:\nWhat is the diff... |
{"title":"Making a multi-player game playable over a network or on the internet","tags":["java","network-programming"],"question_text":"Hi I've written a multi-player game in Java and I was wondering what I need to learn and\/or what I should use in order to make the game playable over a network or on the internet by m... |
{"title":"Choosing the right API Level for my android application","tags":["android","api","target","level"],"question_text":"I currently have a application targeted at android 2.3 (api level 10), but went thinking that\nprobably\npeople using android 2.1\/2.2 or older won't even be able to see the application in the m... |
{"title":"jQuery Clone table row","tags":["jquery","clone"],"question_text":"I have a table with an Add button on the end. When you click this button I want a new table row to be created underneath the current one. I also want the input fields on this row to be blank. I am trying to do this using .clone() but it clones... |
{"title":"Understanding the ngRepeat 'track by' expression","tags":["javascript","angularjs","angularjs-ng-repeat"],"question_text":"I'm having difficulties understanding how the\ntrack by\nexpression of ng-repeat in angularjs works. The documentation is very scarce:\nhttp:\/\/docs.angularjs.org\/api\/ng\/directive\/ng... |
{"title":"Unit of Measure Conversion Library","tags":["javascript"],"question_text":"What is the best\/most elegant way to abstract out the conversion of units of measures in the client, based on a user-preferred unit of measure setting?\nFor example, let's say user A's preferred unit of measure is \"metric\", while us... |
{"title":"Youtube Related Videos using Youtube V3 API","tags":["youtube-api"],"question_text":"I need the API URL for Youtube Related Videos using the Youtube V3 API. \nBut I couldn't find the direct API call, like it is in Version 2. Did I miss something?\nhttps:\/\/developers.google.com\/youtube\/v3\/docs\/","answer_... |
{"title":"Convert an image to grayscale","tags":["c#","image-processing","bitmap","grayscale"],"question_text":"Is there a way to convert an image to grayscale 16 pixels per bit format, rather than setting each of the r,g and b components to luminance. I currently have a bmp from file.\n`Bitmap c = new Bitmap(\"filenam... |
{"title":"How to remove an installed package in Emacs (ver 24+)?","tags":["emacs24"],"question_text":"I'd like to remove several packages that I've installed. When I invoke\n`package-list-packages`\n, I notice that there is a '\n`d`\n' (mark for deletion) command and an '\n`x`\n' (execute). However, it seems like this ... |
{"title":"Efficiency on a 64-bit platform: pointer vs 32-bit array indexing","tags":["c++","arrays","performance","pointers"],"question_text":"In one of his keynote, Andrei Alexandrescu, suggests that, on a 64-bit platform, using 32-bit array indexing is faster than using raw pointer:\nPage 16:\nhttp:\/\/www.slideshare... |
{"title":"css vertically centering a fixed positioning div","tags":["css"],"question_text":"I have the following HTML for a sort-of lightbox project.\n`<div id=\"lightbox\">\n <img id=\"image\" src=\"\" \/>\n<\/div>`\nthat is using the following CSS:\n`#lightbox{\ndisplay:none;\nposition:fixed;\nwidth:100%;\ntext-align... |
{"title":"Cannot convert 'this' pointer from 'const Line' to 'Line &' explanation?","tags":["c++","compiler-errors"],"question_text":"This method:\n`bool Point::Intersects(const Line& line) const {\n return (line.ContainsPoint(*this, false));\n}`\ncauses this error: cannot convert 'this' pointer from 'const Line' to 'L... |
{"title":"How to convert TryCast in c#?","tags":["c#","asp.net"],"question_text":"how to convert following vb code in to c#\n`Dim request As HttpWebRequest = TryCast(WebRequest.Create(address), HttpWebRequest)`\ni tried it using AS operator in c# but its not working.\nThank You in advance.","answer_text":"You can cast ... |
{"title":"creating a DialogPreference from XML","tags":["android","xml","preference"],"question_text":"I have been attempting to use an\n`android.preference.DialogPreference`\ninflated from XML, but the documentation seems to be missing some essential bits, and I cannot find a working example anywhere. My XML now looks... |
{"title":"Regex for keyboard mashing","tags":["python","regex","fraud-prevention"],"question_text":"When signing up for new accounts, web apps often ask for the answer to a 'security question', i.e. Dog's name, etc.\nI'd like to go through our database and look for instances where users just mashed the keyboard instead... |
{"title":"The correct way to initialize a dynamic pointer to a multidimensional array?","tags":["c++","pointers","dynamic","c++11","multidimensional-array"],"question_text":"I've been having bad luck with with dynamic pointers when I range them to 2 dimensions and higher. For example I want a pointer to a 2D array. I k... |
{"title":"How to replace first occurrence of string in Java","tags":["java","string","replace"],"question_text":"I want to replace first occurrence of String in the following.\n`String test = \"see Comments, this is for some test, help us\"`\n**If test contains the input as follows it should not replace\nSee Comments, ... |
{"title":"Language Level Java 8 (Retrolambda) on AndroidStudio 4+?","tags":["android","lambda","android-studio"],"question_text":"So, someone backported Lambdas for Java 8 back to Java 6, and 7. Apparently it also works for Android. The project is called\nRetrolambda\n. I wanted to play around with this on AndroidStudi... |
{"title":"Use of undeclared type 'UIImage' in Swift","tags":["ios","uiimage","swift","cgfloat","swift-playground"],"question_text":"On using this function in swift and i am getting compiler error.\nFunction is:\n`class func imageWithImage (imageToResize : UIImage, scaledToSize newSize : CGSize) {\n return imageToResize... |
{"title":"How to add items to array in nodejs","tags":["javascript","node.js"],"question_text":"How do I iterate through an existing array and add the items to a new array.\n`var array = [];\nforEach( calendars, function (item, index) {\n array[] = item.id\n}, done );\nfunction done(){\n console.log(array);\n}`\nThe ab... |
{"title":"Preventing Brute Force Logins on Websites","tags":["security","login","brute-force"],"question_text":"As a response to the recent\nTwitter hijackings\nand\nJeff's post on Dictionary Attacks\n, what is the best way to secure your website against brute force login attacks?\nJeff's post suggests putting in an in... |
{"title":"How do I get the current hour using Cocoa?","tags":["objective-c","cocoa"],"question_text":"How do I get the current hour in Cocoa using Objective-C?","answer_text":"To start off, you should read\nDates and Times Programming Topics for Cocoa\n. That will give you a good understanding of using the various date... |
{"title":"remove an empty string from array of strings - JQuery","tags":["jquery","arrays"],"question_text":"I have an array\n`[\"Lorem\", \"\", \"ipsum\"]`\n. I would like to remove the empty string from this array and get\n`[\"Lorem\", \"ipsum\"]`\n.\nIs there any way to do this without using the loop and traversing ... |
{"title":"jQuery Cookie path","tags":["javascript","jquery","cookies"],"question_text":"I use the jQuery cookie plugin for storing cookies, with the following code I can save a Cookie for 7 days, but it only saves it for the page its created on. I want the cookie to be available for the whole website.\n`$.cookie('baske... |
{"title":"ASP.NET MVC - Adding querystring \"length=\" to ActionLinks?","tags":["asp.net-mvc","query-string"],"question_text":"I have a few ActionLinks that when rendered are getting a length key\/value added that appears to indicate the number of characters of the controller name. How can this be removed?","answer_tex... |
{"title":"The Difference Between a DataGrid and a GridView in ASP.NET?","tags":["asp.net"],"question_text":"I've been doing ASP.NET development for a little while now, and I've used both the GridView and the DataGrid controls before for various things, but I never could find a really good reason to use one or the other... |
{"title":"Creating a SoftKeyboard with Multiple\/Alternate characters per key","tags":["android","android-softkeyboard","soft-keyboard"],"question_text":"I've followed the examples on\ndeveloper.android.com\nregarding\nInput Methods\nand played with the\nSoftKeyboard\nsample application. These together give more than e... |
{"title":"C#: Comparing with null","tags":["c#",null],"question_text":"Are these equivalent:\n`if (null==myobject)\n{\n\/\/do something \n}`\nand\n`if (myobject==null)\n{\n\/\/do something \n}`\nor will they produce different code?","answer_text":"In the 99% case this code is equivalent.\nThe one exception is when the ... |
{"title":"How to copy contents from a directory and not symbolic link?","tags":["linux"],"question_text":"on a directory\n`cp -rvf dir .`\ncopies the symbolic links and not actual contents.\nsrc is copied to\n`module\/hal\/`\n`.\n|-- comm\n| `-- alchemist.c\n|-- module\n| `-- hal\n| `-- src\n| `-- comm -> ..\/comm\n`--... |
{"title":"Why are banking passwords so weak?","tags":["passwords","onlinebanking"],"question_text":"Out of interest and because it infuriates me, I was wondering if SOmebody here might happen to work for a bank or otherwise know the answer to this.\nI've used a few online banking sites (UK and N.America) and they unive... |
{"title":"Extension project templates not appearing in Xcode 6","tags":["ios","xcode","ios8","ios-app-extension"],"question_text":"I'm not sure if I am the only one experiencing this program, but I have tried searching and have not been able to find anyone in my current situation. I downloaded Xcode 6 beta and was inte... |
{"title":"Calling another different view from the controller using ASP.NET MVC 4","tags":["asp.net-mvc","asp.net-mvc-4"],"question_text":"I have a view (Index.cshtml) with a submit button. When the submit button is clicked, it calls an action (Action01) within the controller (TestController.cs) so at the end of the act... |
{"title":"Android ArrayAdapter.Add method not working","tags":["android","arrays","add","adapter","android-2.2-froyo"],"question_text":"The ArrayAdapter.add() method is not working for me. I am using Eclipse Helios 3.6 with ADT Plugin, Target Source is a Froyo 2.2 emulator and 2.2 HTC Evo 4g. Here is my java class\n`im... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.