text stringlengths 74 309k |
|---|
{"title":"WPF Icon for all app windows","tags":["wpf","icons","window"],"question_text":"It is possible to set one Icon so, that it would be used on every window in current app. So that i set it once (not on every window by hand)..?","answer_text":"A good reference on the subject is here\nMSDN\n. States that you have a... |
{"title":"How do I allow assembly (unit testing one) to access internal properties of another assembly?","tags":[".net","unit-testing"],"question_text":"I would like my Core assembly to not expose a certain class and I would still like to be able to test it. How can I do that ?","answer_text":"InternalsVisibleTo\nattri... |
{"title":"get the first key and value pair from a hash table in ruby (wierd results)","tags":["ruby","hash"],"question_text":"Im just starting to learn ruby\nI'm trying to get the first key and value key from a hash table in ruby. I don't know the key values of the hash because it is passed to the method. I cant find a... |
{"title":"CursorLoader not updating after data change","tags":["android","android-contentprovider","android-cursorloader","android-loadermanager"],"question_text":"I have created a small application, trying to understand the functionality of the\n`LoaderManager`\nand\n`CursorLoader`\n-classes.\nI have implemented\n`Loa... |
{"title":"REST API Authorization & Authentication (web + mobile)","tags":["php","api","authentication","rest","authorization"],"question_text":"I've read about oAuth, Amazon REST API, HTTP Basic\/Digest and so on but can't get it all into \"single piece\". This is probably the closest situation -\nCreating an API for m... |
{"title":"How do I perform query filtering in django templates","tags":["python","django","django-templates"],"question_text":"I need to perform a filtered query from within a django template, to get a set of objects equivalent to python code within a view:\n`queryset = Modelclass.objects.filter(somekey=foo)`\nIn my te... |
{"title":"Can gcc output C code after preprocessing?","tags":["c"],"question_text":"I'm using an open source library which seems to have lots of preprocessing directives to support many languages other than C. So that I can study what the library is doing I'd like to see the C code that I'm compiling after preprocessin... |
{"title":"How to install MinGW-w64 and MSYS2?","tags":["cygwin","mingw","msys","mingw-w64","msys2"],"question_text":"I am trying to build some open source library. I need package management system to easily download the dependencies. At first I am using\n`MinGW+MSYS`\n. But the included packages are limited. Someone to... |
{"title":"Trying to check if a file exists in internal storage","tags":["java","android"],"question_text":"The following code is how I am trying to identify if a file exists in the internal storage,\n`MODE_PRIVATE`\n.\n`public boolean isset(String filename){\n FileInputStream fos = null;\n try {\n fos = openFileInput(f... |
{"title":"Getting content\/message from HttpResponseMessage","tags":["c#","windows-8","windows-store-apps"],"question_text":"I'm trying to get content of HttpResponseMessage. It should be:\n`{\"message\":\"Action '' does not exist!\",\"success\":false}`\n, but I don't know, how to get it out of HttpResponseMessage.\n`H... |
{"title":"Create intermediate folders if one doesn't exist","tags":["java","file"],"question_text":"I am trying to create a folder for each username a user logs in as. Currently I have\n`private String destination = \"C:\/Users\/Richard\/printing~subversion\/fileupload\/web\/WEB-INF\/uploaded\/\"; \/\/ main location fo... |
{"title":"Should unit tests be written for getter and setters?","tags":["unit-testing"],"question_text":"Are we supposed to write tests for our getters and setters or is it overkill?","answer_text":"I would say no.\n@Will said you should aim for 100% code coverage, but in my opinion that's a dangerous distraction. You ... |
{"title":"Could a truly random number be generated using pings to psuedo-randomly selected IP addresses?","tags":["algorithm","theory","random"],"question_text":"The question posed came about during a 2nd Year Comp Science lecture while discussing the impossibility of generating numbers in a deterministic computational... |
{"title":"Node Multer unexpected field","tags":["node.js","multer"],"question_text":"I'm working on uploading a file to my app using the multer npm module.\nThe multer function I have defined is to allow a single file uploaded to the file system. Everything works during run time; the issue is after I upload the file I ... |
{"title":"Is it possible to disable the auto-merge option in Visual Studio Team System 2008? If so how?","tags":["tfs","vsts2008","automerge"],"question_text":"I'd like to disable the automatic merge feature when checking in a file to TFS that another developer has worked on so that I always need to merge manually. Is ... |
{"title":"C# Linq Where Date Between 2 Dates","tags":["c#","linq"],"question_text":"I'm trying to get my linq statement to get me all records between two dates, and I'm not quite sure what I need to change to get it to work:\n`(a.Start >= startDate && endDate)`\n`var appointmentNoShow =\n from a in appointments\n from ... |
{"title":"Array functions in jQuery","tags":["javascript","jquery","arrays","function"],"question_text":"I am using jQuery in my web application. I want to use arrays, but I am not able to find out functions for arrays (add, remove or append elements in array) in jQuery. Is there any link related to jQuery array functi... |
{"title":"Invoke gdb to automatically pass arguments to the program being debugged","tags":["shell","gdb"],"question_text":"I'd like to write a script that (under certain conditions) will execute gdb and automatically run some program X with some set of arguments Y. Once the program has finished executing the user shou... |
{"title":"How to create a UITableViewCell with a UISwitch and get the data?","tags":["iphone","uitableview","uiswitch"],"question_text":"I have a simple problem. I created a custom UITableViewCell that includes a UISwitch in Interface Builder.\nQuestion 1: Easier, better way to do it ?\nQuestion 2: When used in an UITa... |
{"title":"\"Assert in junit.framework has been deprecated\" - what use next?","tags":["junit","junit4"],"question_text":"I bump version of\n`junit`\nto 4.11 and get:\n`[WARNING] [deprecation] Assert in junit.framework has been deprecated\n[WARNING] [deprecation] Assert in junit.framework has been deprecated\n....`\nHow... |
{"title":"Unmount the directory which is mounted by sshfs in Mac","tags":["osx","sshfs","umount"],"question_text":"I've installed\n`OSXFUSE`\nin my mac and used\n`sshfs`\nto mount a remote directory. Now I would like to unmount it just but can't find the way. \nMy OS is OSX 10.8 Mountain. \nCan anyone help?","answer_te... |
{"title":"Sorting JSON by values","tags":["jquery","json"],"question_text":"I have a very simple JSON object like the following:\n`{\n \"people\":[\n {\n \"f_name\":\"john\",\n \"l_name\":\"doe\",\n \"sequence\":\"0\",\n \"title\":\"president\",\n \"url\":\"google.com\",\n \"color\":\"333333\"\n },\n {\n \"f_name\":\"m... |
{"title":"How to make an array of arrays in Java","tags":["java","arrays"],"question_text":"This may seem like a noob question, but this is a serious question. Hypothetically, I have 5 string array objects:\n`String[] array1 = new String[];\nString[] array2 = new String[];\nString[] array3 = new String[];\nString[] arr... |
{"title":"What are generics in C#?","tags":["c#","generics"],"question_text":"What are generics in C#, illustrated with a simple example? What are some related articles or websites for this topic?","answer_text":"Generics refers to the technique of writing the code for a class without specifying the data type(s) that t... |
{"title":"Android: How to detect double-tap?","tags":["android","listview","double-click"],"question_text":"hi guys i'm having problems with implementing the double tap. Well i implemented the ongestureListener and i had the gesturedetector, but i'm not sure where is the problem, here is my code:\n`public class home ex... |
{"title":"How do I use popover from Twitter Bootstrap to display an image?","tags":["javascript","twitter-bootstrap","popover"],"question_text":"The canonical example for Twitter Bootstrap's popover feature is sort of a tooltip on steroids with a title.\nHTML:\n`<a href=\"#\" id=\"blob\" class=\"btn large primary\" rel... |
{"title":"tap gesture not recognized on uiimageview","tags":["objective-c","uiimageview","uitapgesturerecognizer","ios6.1"],"question_text":"I added two\n`uiimageview`\ns, one on another\n`subview uiview`\n(\n`imageview1,imageview2`\n). In the first view the top\n`uiimageview`\nis hidden(\n`imageview2`\n) and in the se... |
{"title":"URLConnection Doesn't Follow Redirect","tags":["java","httpurlconnection"],"question_text":"I can't understand why Java's\n`HttpURLConnection`\ndoesn't follow redirect. I use the following code to get\nthis page\n:\n`import java.net.URL;\nimport java.net.HttpURLConnection;\nimport java.io.InputStream;\npublic... |
{"title":"How do I get the different parts of a Flask request's url?","tags":["python","url","flask"],"question_text":"I want to detect if the request came from the\n`localhost:5000`\nor\n`foo.herokuapp.com`\nhost and what path was requested. How do I get this information about a Flask request?","answer_text":"You can ... |
{"title":"String length in Swift 1.2 and Swift 2.0","tags":["ios","string","swift","xcode7","xcode6.3"],"question_text":"In the previous version of Swift, I had the following code.\n`func myfunc(mystr: String) {\n if mystr.utf16Count >= 3 {`\nWith the latest release of Swift 1.2, I now get the following error.\n`'utf16... |
{"title":"Flatten an NSArray","tags":["objective-c","cocoa","nsarray"],"question_text":"I have an array like this:\n`array: (\n (\n \"http:\/\/aaa\/product\/8_1371121323.png\",\n \"http:\/\/aaa\/product\/14_1371123271.png\"\n ),\n (\n \"http:\/\/aaa\/product\/9_1371121377.png\"\n )\n)`\nand I have to create another arr... |
{"title":"Ruby each_with_index offset","tags":["ruby","iteration"],"question_text":"Can I define the offset of the index in the each_with_index loop iterator?\nMy straight forward attempt failed:\n`some_array.each_with_index{|item, index = 1| some_func(item, index) }`\nEdit:\nClarification: I don't want an array offset... |
{"title":"Are private members inherited in C#?","tags":["c#","inheritance","private"],"question_text":"Just seen one tutorial saying that:\n`Class Dog\n{\n private string Name;\n}\nClass SuperDog:Dog\n{\n private string Mood;\n}`\nThen there was an UML displaying that SuperDog will inherit Name as well. I have tried bu... |
{"title":"iOS - UITableView refresh table properly?","tags":["iphone","ios","uitableview"],"question_text":"I have lots of data and lots of rows in my tableView.\nwhen data changes I want to update my visible cells on the screen, I really don't want to use reloadData because it's an expensive call.\nIs it possible to s... |
{"title":"Specifying Tab-Width?","tags":["html","css","xhtml","whitespace"],"question_text":"Is it possible to define the tab-width when whitespace is displayed (say within a <pre> tag or something)? I can't find anything to do this with CSS, but this seems like it would be a pretty common thing to want to do.\nIn my c... |
{"title":"are there dictionaries in javascript like python?","tags":["javascript","python"],"question_text":"i need to make a dictionary in javascript like this\ni dont remember the exact notation, but it was something like:\n`states_dictionary={ CT=[alex,harry], AK=[liza,alex], TX=[fred, harry] ........ }`\nis there s... |
{"title":"Sending Multipart html emails which contain embedded images","tags":["python","email","mime","attachment","multipart"],"question_text":"I've been playing around with the email module in python but I want to be able to know how to embed images which are included in the html.\nSo for example if the body is some... |
{"title":"How to implement a unique index on two columns in rails","tags":["ruby-on-rails","activerecord"],"question_text":"I have a table and I'm trying to add a unique index on two columns. Those columns are also indexed. So my question is if I just can remove the indexes who were just for one column or if I have to ... |
{"title":"How to make Eclipse prompt me for command line arguments","tags":["eclipse"],"question_text":"I know I can configure command line arguments in the Run configuration but I want to run a java file multiple times with different command line arguments. It's a pain to change the Run Configuration every time.\nIs t... |
{"title":"C++11 make_pair with specified template parameters doesn't compile","tags":["c++","templates","g++","c++11","rvalue-reference"],"question_text":"I was just playing around with g++ 4.7 (one of the later snapshots) with -std=c++11 enabled. I tried to compile some of my existing code base and one case that faile... |
{"title":"Is there a lock statement in VB.NET?","tags":["c#","vb.net"],"question_text":"Does VB.NET have the equivalent of C#'s\n`lock`\nstatement?","answer_text":"Yes, the\nSyncLock\nstatement.\nFor example:\n`\/\/ C#\nlock (someLock)\n{\n list.Add(someItem);\n}\n\/\/ VB\nSyncLock someLock\n list.Add(someItem)\nEnd Sy... |
{"title":"Converting List<String> to String[] in Java","tags":["java","type-conversion","data-type-conversion"],"question_text":"How do I convert a list into an array? The following code returns an error.\n`public static void main(String[] args) {\n List<String> strlist = new ArrayList<String>();\n strlist.add(\"sdfs1\... |
{"title":"What are Type hints in Python 3.5","tags":["python","python-3.x","type-hinting"],"question_text":"One of the talked about features in\n`Python 3.5`\nis said to be\n`type hints`\n.\nAn example of\n`type hints`\nis mentioned in this\narticle\nand\nthis\nwhile also mentioning to use type hints responsibly. Can s... |
{"title":"Changing default encoding of Python?","tags":["python","encoding","utf-8","console"],"question_text":"I have many \"can't encode\" and \"can't decode\" problems with\nPython\nwhen I run my applications from the console. But in the\nEclipse\nPyDev\nIDE, the default character encoding is set to\nUTF-8\n, and I'... |
{"title":"Java is NEVER pass-by-reference, right?...right?","tags":["java","pass-by-reference","pass-by-value"],"question_text":"Possible Duplicate:\nIs Java \u00e2\u0080\u009cpass-by-reference\u00e2\u0080\u009d?\nI found an unusual Java method today:\n`private void addShortenedName(ArrayList<String> voiceSetList, Stri... |
{"title":"Android SDK folder taking a lot of disk space. Do we need to keep all of the System Images?","tags":["android","android-studio","sdk","android-sdk-tools","diskspace"],"question_text":"There are a\nlot of system images\npiling up on my disk in the android sdk folder. i hardly use the emulator. May be once in 6... |
{"title":"How to remove class from all elements jquery","tags":["jquery"],"question_text":"I am changing the class of an element with the following\n`$(\"#\"+data.id).addClass(\"highlight\")`\nGiven the list below.\n`<div id=\"menuItems\"> \n <ul id=\"contentLeft\" class=\"edgetoedge\"> \n <li class=\"sep\" \">Shakes a... |
{"title":"Code signing is required for product type 'Application' in SDK 'iOS5.1'","tags":["code-signing","xcode4.3","ipa","ios5"],"question_text":"I am using xCode 4.3.1. After i created a project, i build it and tried to Archive. Then i got an error saying; (This is my first project in xCode 4.3.1)\nCodeSign error: c... |
{"title":"Is there a JSON equivalent of XQuery\/XPath?","tags":["javascript","json","xpath","xquery"],"question_text":"When searching for items in complex JSON arrays and hashes, like:\n`[\n { \"id\": 1, \"name\": \"One\", \"objects\": [\n { \"id\": 1, \"name\": \"Response 1\", \"objects\": [\n \/\/ etc.\n }]\n }\n]`\n... |
{"title":"How do I find the index of an item in a vector?","tags":["clojure"],"question_text":"Any ideas what\n`????`\nshould be? Is there a built in? \nWhat would be the best way to accomplish this task?\n`(def v [\"one\" \"two\" \"three\" \"two\"])\n(defn find-thing [ \"two\" v ]\n (????))\n(find-thing \"two\" v) ; ?... |
{"title":"UITableView cell background color","tags":["iphone"],"question_text":"how to set different background colors for cells in a UITableView \n(specifically rainbow color for seven cells)","answer_text":"Set the\n`backgroundColor`\nproperty:\n`cell.backgroundColor = [UIColor redColor];`\nNote that the backgroundCo... |
{"title":"Problems updating bower to the latest version","tags":["npm","bower","bower-install"],"question_text":"I am using bower\n`$ bower -v\n0.9.2`\nlatest version of bower is 1.x.x\nhttps:\/\/github.com\/bower\/bower\/releases\nI run to update bower to the latest version\n`npm update -g bower`\nthis does not help\n... |
{"title":"How to develop and test an app that sends emails (without filling someone's mailbox with test data)?","tags":["language-agnostic","email","testing","smtp"],"question_text":"I have a lot of apps that send email. Sometimes it's one or two messages at a time. Sometimes it's thousands of messages.\nIn development... |
{"title":"Git: checking out a file from a previous commit and amending it to HEAD","tags":["git","version-control"],"question_text":"I recently committed a file to the HEAD of my branch which has errors in it. I need to do the following things:\nGet that file from one commit previous to HEAD\nCommit that file back into... |
{"title":"UIWebView background color","tags":["ios","uiwebview"],"question_text":"I am loading an HTML string into a UIWebView in order to be able to view rich text. So far, so good. But I have one small problem: in my Nib file, I set the background attribute to green.\nHowever, when it is displayed, the background is ... |
{"title":"Uses of C comma operator","tags":["c++","c","comma-operator"],"question_text":"You see it used in for loop statements, but it's legal syntax anywhere. What uses have you found for it elsewhere, if any?","answer_text":"C language (as well as C++) is historically a mix of two completely different programming st... |
{"title":"Dealloc not being called on ARC app","tags":["ios","ios5","automatic-ref-counting"],"question_text":"I have a UIViewController that is pushed onto a container controller and then popped off, and using the allocations instrument, I can see that the view controller is destroyed afterwards. However, a breakpoint... |
{"title":"GWT: Capturing URL parameters in GET request","tags":["java","gwt"],"question_text":"I need to build a GWT application that will be called by an external application with specific URL parameters.\nFor example:\nhttp:\/\/www.somehost.com\/com.app.client.Order.html?orderId=99999\n.\nHow do I capture the orderId... |
{"title":"\"unexpected token import\" in Nodejs5 and babel?","tags":["node.js","babeljs"],"question_text":"In js file, i used import to instead of require\n`import co from 'co';`\nAnd tried to run it directly by nodejs since it said import is 'shipping features' and support without any runtime flag (\nhttps:\/\/nodejs.... |
{"title":"Is there a throws keyword in C# like in Java?","tags":["c#","java","exception","throw","throws"],"question_text":"Possible Duplicate:\nhow to use Java-style throws keyword in C#?\ni have a function where an exception occurs\nsay for example\n`private void functionName() throws Exception\n{\n \/\/ some code th... |
{"title":"Android: default AppTheme background colors","tags":["android","android-theme","android-styles"],"question_text":"What are the\ndefault background colors\nfor Activities in Android's AppTheme style?\nI'm looking for the hex code, or something that I can reference. It should be one for the LIGHT theme and one ... |
{"title":"PowerShell Array.Add vs +=","tags":["arrays","powershell"],"question_text":"I've found some interesting behaviour in PowerShell Arrays, namely, if I declare an array as:\n`$array = @()`\nAnd then try to add items to it using the\n`$array.Add(\"item\")`\nmethod, I receive the following error:\n`Exception calli... |
{"title":"Mongoose (mongodb) batch insert?","tags":["node.js","mongodb","mongoose"],"question_text":"Does Mongoose v3.6+ support batch inserts now? I've searched for a few minutes but anything matching this query is a couple of years old and the answer was an unequivocal no.\nEdit:\nFor future reference, the answer is ... |
{"title":"What happens in BeginProcessRequest()?","tags":["c#","asp.net","asp.net-mvc-3","newrelic"],"question_text":"We are using NewRelic to provide server-side application traces.\nWe have noticed that some of our applications consistently spend about 100ms in the method\n`System.Web.Mvc.MvcHandler.BeginProcessReque... |
{"title":"How can I make the tabs work normally on XCode 4?","tags":["xcode","xcode4"],"question_text":"XCode finally added tabs but the problem is that they behave very strange. For example they will keep a tab open only if it was opened to a new tab.\nIf you open a file just by clicking in the project tree, XCode wil... |
{"title":"How to test REST API using Chrome's extension \"Advanced Rest Client\"","tags":["rest","google-chrome-extension"],"question_text":"Following the instructions at the link below, I successfully built a REST API for my Django application:\nhttp:\/\/django-rest-framework.org\/tutorial\/quickstart\n.\nI can test i... |
{"title":"Bootstrap control with multiple \"data-toggle\"","tags":["button","twitter-bootstrap","binding"],"question_text":"Is there a way to assign more than one event to a bootstrap control via \"data-toggle\"\nFor example, lets say I want a button that has a \"tooltip\" and a \"button\" toggle assigned \nto it.\nTri... |
{"title":"Are variables declared with let or const not hoisted in ES6?","tags":["javascript","ecmascript-6","hoisting"],"question_text":"I have been playing with ES6 for a while and I noticed that while variables declared with\n`var`\nare hoisted as expected...\n`console.log(typeof name); \/\/ undefined\nvar name = \"J... |
{"title":"Ruby on rails connection problem","tags":["mysql","ruby-on-rails","activerecord"],"question_text":"I have a Ruby on Rails project that I was developing on a hosted server but have decided to work on my local windows machine with.\nTo get started I thought I'd make sure that I could just take my models from th... |
{"title":"Python: Convert list of key-value tuples into dictionary?","tags":["python","list","dictionary"],"question_text":"I have a list that looks like this\n`[(A, 1), (B, 2), (C, 3)]`\nAnd want to turn it into a dictionary that looks like\n`(A: 1, B: 2, C: 3)`\nWhat's the best way to go about this? Thanks.\nEDIT: It... |
{"title":"How to deploy node app that uses grunt to heroku","tags":["node.js","heroku","npm","gruntjs"],"question_text":"I'm using grunt and also grunt plugins like\n`grunt-contrib-copy`\n,\n`grunt-contrib-mincss`\n(that listed as npm dependencies for my application).\nAlso I don't commit\n`npm_modules`\nfolder and\n`p... |
{"title":"Using do block vs brackets {}","tags":["ruby","coding-style"],"question_text":"New to ruby, put on your newbie gloves.\nIs there any difference (obscure or practical) between the following two snippets?\n`my_array = [:uno, :dos, :tres]\nmy_array.each { |item| \n puts item\n}\nmy_array = [:uno, :dos, :tres]\nm... |
{"title":"git gui not working after installing Mountain Lion","tags":["git"],"question_text":"When I ran\n`git gui`\n, I got this:\n`$ git gui\ngit: 'gui' is not a git command. See 'git --help'.\nDid you mean one of these?\n grep\n init\n pull\n push`\nBut I ran other git commands fine, including\n`gitk`\n. How can I f... |
{"title":"Is it possible to specify proxy credentials in your web.config?","tags":["c#","web-services","proxy"],"question_text":"I need to configure a website to access a webservice on another machine, via a proxy. I can configure the website to use a proxy, but I can't find a way of specifying the credentials that the... |
{"title":"Can anyone explain this algorithm for calculating large factorials?","tags":["c++","algorithm","factorial"],"question_text":"i came across the following program for calculating large factorials(numbers as big as 100).. can anyone explain me the basic idea used in this algorithm??\nI need to know just the math... |
{"title":"Can I overload an operator in Objective-C?","tags":["objective-c","operator-overloading"],"question_text":"Is it possible to override operator use in Objective-C?\nFor example\n`myClassInstance + myClassInstance`\ncalls a custom function to add the two.","answer_text":"Operator overloading is not a feature of... |
{"title":"How to remove index.php from URLs?","tags":[".htaccess","magento","url-rewriting","e-commerce"],"question_text":"All of my URLs on my Magento installation require index.php in them, like:\n`http:\/\/example.com\/index.php\/admin\/\nhttp:\/\/example.com\/index.php\/customer\/account\/login\/`\nThe problem is t... |
{"title":"How to convert std::string to LPCWSTR in C++ (Unicode)","tags":["c++","winapi"],"question_text":"I'm looking for a method, or a code snippet for converting std::string to LPCWSTR","answer_text":"Thanks for the link to the MSDN article. This is exactly what I was looking for.\n`std::wstring s2ws(const std::str... |
{"title":"How do I Understand Read Memory Barriers and Volatile","tags":["multithreading","volatile","memory-barriers"],"question_text":"Some languages provide a\n`volatile`\nmodifier that is described as performing a \"read memory barrier\" prior to reading the memory that backs a variable.\nA read memory barrier is c... |
{"title":"Adding a new array element to a JSON object","tags":["javascript","json"],"question_text":"I have a JSON format object I read from a JSON file that I have in a variable called teamJSON, that looks like this:\n`{\"theTeam\":[{\"teamId\":\"1\",\"status\":\"pending\"},{\"teamId\":\"2\",\"status\":\"member\"},{\"... |
{"title":"Difference between DOMContentLoaded and Load events","tags":["javascript","browser"],"question_text":"What is the difference between the DOMContentLoaded and the Load event?","answer_text":"From the\nMozilla Developer Center\n:\nThe DOMContentLoaded event is fired when the document has been\n completely loade... |
{"title":"How to solve javax.net.ssl.SSLHandshakeException Error?","tags":["java","servlets","paypal","vpn","sslhandshakeexception"],"question_text":"I connected with VPN to setup the inventory API to get product list and it works fine. Once I get the result from the web-service and i bind to UI. And also I integrated ... |
{"title":"How to Manually Symbolicate iOS Crash to View Crash Logs","tags":["iphone","ios","ipad","symbolicatecrash","crash-log"],"question_text":"Trying to debug app. The trouble is I cannot find this program.\nsymbolicatecrash.sh\n`sudo cp \/Developer\/Platforms\/iPhoneOS.platform\/Developer\/Library\/Xcode\/Plug-ins... |
{"title":"How to get Real IP from Visitor?","tags":["php","ip"],"question_text":"I'm using this php code to get visitor IP address\n`<?PHP\necho $_SERVER['REMOTE_ADDR'];\n?>`\nBut , I con't get Real IP address from visitors when they are using proxy.\nPlease help me , is there any way to get visitor's IP address.","ans... |
{"title":"Configure Maven to use different JDK for different J2SE versions?","tags":["maven-2"],"question_text":"I want to configure Maven2 to use sun-java6-jdk to build Java SE 1.6 modules, and use openjdk-7 to build Java SE 1.7 modules. Is it possible?\nMaven2 should then auto choose the correct JDK to build differen... |
{"title":"Display UIViewController as Popup in iPhone","tags":["ios","iphone","uiviewcontroller","popup","uialertview"],"question_text":"Since there is no complete, definitive answer to this common recurring question, I'll ask and answer it here.\nOften we need to present a\n`UIViewController`\nsuch that it doesn't cov... |
{"title":"jQuery event.preventDefault() not working in Firefox (JSFiddle included)","tags":["javascript","jquery","firefox","google-chrome","jsfiddle"],"question_text":"This is a kind of similar duplicate to some others here, but I think I'm using\n`event.preventDefault()`\ncorrectly in this case.\nHere's a JSFiddle yo... |
{"title":"Postgresql DISTINCT ON with different ORDER BY","tags":["postgresql","distinct-on"],"question_text":"I want to run query:\n`SELECT DISTINCT ON (address_id) purchases.address_id, purchases.*\nFROM \"purchases\"\nWHERE \"purchases\".\"product_id\" = 1\nORDER BY purchases.purchased_at DESC`\nAnd i'm getting erro... |
{"title":"jQuery changing css class to div","tags":["jquery","css","html"],"question_text":"If I have one div element for example and class 'first' is defined with many css properties. Can I assign css class 'second' which also has many properties differently defined to this same div just on some event without writing ... |
{"title":"Can You Use Arithmetic Operators to Flip Between 0 and 1","tags":["algorithm"],"question_text":"Is there a way without using logic and bitwise operators, just arithmetic operators, to flip between integers with the value 0 and 1?\nie.\n\"variable ?= variable\" will make variable a 1 if it 0 or 0 if it is a on... |
{"title":"iPhone SDK:How do you play video inside a view? Rather than fullscreen","tags":["ios","objective-c","xcode","frameworks","media-player"],"question_text":"I am trying to play video inside a\n`UIView`\n, so my first step was to add a class for that view and start playing a movie in it using this code:\n`- (IBAc... |
{"title":"Preemptive Basic authentication with Apache HttpClient 4","tags":["java","httpclient","basic-authentication","http-basic-authentication"],"question_text":"Is there an easier way to setup the http client for preemptive basic authentication than what described\nhere\n?\nIn previous version (3.x) it used to be a... |
{"title":"How to show all privileges from a user in oracle?","tags":["sql","oracle","rules","privileges"],"question_text":"Can someone please tell me how to show all privileges\/rules from a specific user in the sql-console?","answer_text":"You can try these below views.\n`SELECT * FROM USER_SYS_PRIVS; \nSELECT * FROM ... |
{"title":"How to set inline style for element in HAML","tags":["ruby-on-rails-3","haml"],"question_text":"Here is my code:\n`<div class='some' style='position: absolute; left: 300; top: 300;'>..<\/div>`\nIt parses only\n`style='position: absolute'`\n, and doesn't parse the other styles. How can I achieve this?","answer... |
{"title":"Citing the author of a blockquote using Markdown Syntax","tags":["markdown","cite"],"question_text":"I am using Symphony CMS and it uses Markdown for article writing. I need to do a blockquote of a quote from Benjamin Franklin and would like to have the quote followed by a citation beneath if but right now al... |
{"title":"javascript function leading bang ! syntax","tags":["javascript","syntax"],"question_text":"I've been seeing this syntax on a few libraries now and I'm wondering what the benefit is. (note i'm well aware of closures and what the code is doing, I'm only concerned about the syntactical differences)\n`!function()... |
{"title":"How to insert a block into a node or template in Drupal 7?","tags":["drupal","drupal-theming","drupal-7"],"question_text":"In Drupal 6, it was easy to insert a block into a template with the following code:\n`$block = module_invoke('views', 'block', 'view', 'block_name');\nprint $block['content'];`\nHowever, ... |
{"title":"What are WPF Preview Events?","tags":["wpf","events"],"question_text":"I have been looking for descriptions of events \"Preview*\n*\n\" like every element has events KeyDown and PreviewKeyDown. What is difference (not that one is attached event and one is not, the real conventional difference and programming ... |
{"title":"POSTing JSON to URL via WebClient in C#","tags":["c#","webclient"],"question_text":"I have some JavaScript code that I need to convert to C#. My JavaScript code POSTs some JSON to a web service that's been created. This JavaScript code works fine and looks like the following:\n`var vm = { k: \"1\", a: \"2\", ... |
{"title":"what is .netrwhist?","tags":["vim","netrw"],"question_text":"When I edit files in my\n`~\/.vim`\n, the\n`.netrwhist`\nfile would mysteriously be changed, too.\nIt's content:\n`let g:netrw_dirhistmax =10\nlet g:netrw_dirhist_cnt =6\n...and so on...`\nWhat does this file do? Is it important?","answer_text":"net... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.