text stringlengths 74 309k |
|---|
{"title":"Make String first letter capital in java","tags":["java","string","capitalize"],"question_text":"As of now I'm using this code to make my first letter in a string capital\n`String output = input.substring(0, 1).toUpperCase() + input.substring(1);`\nThis seems very dirty to me ..is there any direct or elegant ... |
{"title":"ORDER BY date and time BEFORE GROUP BY name in mysql","tags":["mysql","sorting","order","group"],"question_text":"i have a table like this:\n`name date time\ntom | 2011-07-04 | 01:09:52\ntom | 2011-07-04 | 01:09:52\nmad | 2011-07-04 | 02:10:53\nmad | 2009-06-03 | 00:01:01`\ni want oldest name first:\n`SELECT ... |
{"title":"What's the difference between HTML 'hidden' and 'aria-hidden' attributes?","tags":["html5","wai-aria"],"question_text":"I have been seeing and the aria attribute all over while working with Angular Material. Extra points if someone can explain to me like I'm five what the aria prefix means, but most important... |
{"title":"iframe size with CSS on iOS","tags":["ios","css","mobile","iframe","resize"],"question_text":"There's an iframe, which basically has more content than fits into the frame. The sizing of the frame is based on the browser screen size and lets the overflow scroll, which works perfectly on all browsers, except fo... |
{"title":"How to import local image using knitr for markdown","tags":["html","image","markdown","figure","knitr"],"question_text":"I have an externally created png image in a local directory that I'd like to import to a report using knitr. The ultimate target filetype is html. I have no trouble getting my own figures t... |
{"title":"Code-golf: Output multiplication table to the Console","tags":["language-agnostic","code-golf","rosetta-stone"],"question_text":"I recently pointed a student doing work experience to an article about dumping a multiplication table to the console. It used a nested for loop and multiplied the step value of each... |
{"title":"Java Class Loaders","tags":["java","classloader","dynamic-class-loaders"],"question_text":"Can anyone point me a good resource or explain me about the concept behind Class Loaders? I found the following resource on class loaders\nhttp:\/\/www.onjava.com\/lpt\/a\/5586\nbut still no help. The following question... |
{"title":"Should I use JSON or AJAX for response data?","tags":["javascript","jquery","xml","ajax","json"],"question_text":"Why JSON? I have done some tests today, and the request time for both JSON, or a normal AJAX request was the same. In the \"normal request\" I have returned the complete text+html tags, in the JSO... |
{"title":"How do I convert a file's format from Unicode to ASCII using Python?","tags":["python","unicode","encoding","file","ascii"],"question_text":"I use a 3rd party tool that outputs a file in Unicode format. However, I prefer it to be in ASCII. The tool does not have settings to change the file format.\nWhat is th... |
{"title":"bootstrap 3 border-radius less mixin gone","tags":["twitter-bootstrap-3"],"question_text":"Bootstrap's\n`.border-radius()`\nmixin is\nno longer there\nin version 3.\nI am working on converting my codebase and thought of this omission as rather strange. Has\n`.border-radius`\nbeen replaced by some other mixin?... |
{"title":"Which type safety would have lost, had Generics supported the sub-typing?","tags":["java","generics"],"question_text":"Consider the snippet:\n`Number[] numbers = {1, 2.3, 4.5f, 6000000000000000000L};`\nIt's perfectly okay to do the above,\n`Number`\nis an abstract class.\nGoing ahead,\n`List<Long> listLong = ... |
{"title":"How to reset to default button BackColor?","tags":[".net","winforms","visual-studio","button","backcolor"],"question_text":"I was experimenting with different options for the button background color and ended up changing the\n`BackColor`\nproperty in the Appearance category. I then changed it back to what it ... |
{"title":"Windows 7 progress bar in taskbar in C#?","tags":["c#","windows-7","progress-bar"],"question_text":"If you've noticed in the Windows 7 beta, if you copy files or other system actions, the windows explorer icon in the taskbar will fill up with a green progress bar equivalent to the progress bar on the form. Is... |
{"title":"Cocoa or Objective-C?","tags":["objective-c","iphone","cocoa","cocoa-touch"],"question_text":"In regards to iPhone development, how do you now when your using a Cocoa vs pure Objective-C objects. For example, the following are Objective-C:\nNSTimer\nNSString\nint, float\nNSMutableArray\nBut these are Cocoa:\n... |
{"title":"Change child view controller","tags":["ios","view","controller","parent-child"],"question_text":"I have a view controller that when I press a button a child view controller appear. This works perfectly but I want to change this child view controller for other one if I press the button next that is inside of t... |
{"title":"Rails: Preserving GET query string parameters in link_to","tags":["ruby-on-rails","parameters","routing","helpers"],"question_text":"I have a typical search facility in my app which returns a list of results that can be paginated, sorted, viewed with a different records_per_page value, etc. Each of these opti... |
{"title":"How do I detect a Lock This Computer command from a WPF application?","tags":["c#","wpf","desktop","locking"],"question_text":"Would prefer an answer in C#, .Net 3.5 using WPF (Windows Forms also okay)\nI have an application that is essentially a toolbar window or tray icon. It needs to detect if a user locks... |
{"title":"In Vim, why doesn't my mouse work past the 220th column?","tags":["vim"],"question_text":"I tend to maximize a terminal to one screen, and vertically split several windows in Vim. Everything works fine for the first few windows on the left, but clicking past about the 220th column in the terminal doesn't work... |
{"title":"Change color of text within a WinForms RichTextBox","tags":["c#","winforms","richtextbox"],"question_text":"I have a RichTextBox that I write a string to every time I click a Form button. Each string begins with the string \"Long\" or \"Short\" and ends with a newline. Each time I add a string, it appends to ... |
{"title":"OpenCV: how to rotate IplImage?","tags":["image-manipulation","opencv"],"question_text":"I need to rotate an image by very small angle, like 1-5 degrees. Does\nOpenCV\nprovide simple way of doing that? From reading docs i can assume that\ngetAffineTransform()\nshould be involved, but there is no direct exampl... |
{"title":"How to set a custom keystore for debugging in eclipse for android","tags":["java","android","apk","code-signing","android-keystore"],"question_text":"I have a custom keystore that I use for signing my apk. now I want to use the same keystore for debugging. when I go to eclipse->windows->preferences->android->... |
{"title":"How can I derefence symbolic links in bash?","tags":["bash","symlink"],"question_text":"How can I take any given path in\n`bash`\nand convert it to it's canonical form, dereferencing any symbolic links that may be contained within the path?\nFor example:\n`~$ mkdir \/tmp\/symtest\n~$ cd \/tmp\/symtest\/\n\/tm... |
{"title":"How are live tiles made in Windows 8?","tags":["c#","xaml","windows-8","live-tile"],"question_text":"I've searched the samples, the developer site, the getting started and the enhancing\nbla bla bla\npages.\nEven using some search queries on Google, I can't seem any information on live tiles in Windows 8.\nHo... |
{"title":"AFNetworking HTTP delete use body instead of URL","tags":["ios","cocoa-touch","afnetworking","afnetworking-2"],"question_text":"I'm trying to send a\nHTTP DELETE\nrequest to a\nRESTful Django web service\nfrom my iOS app.\nI use AFNetworking 2.0 (2.4).\nAfter analysing the\n`AFHTTPREquestOperation`\nin the su... |
{"title":"Getting default value for java primitive types","tags":["java","reflection","guava"],"question_text":"I have a java primitive type at hand:\n`Class c = int.class; \/\/ or long.class, or boolean.class`\nI'd like to get a 'default value' for this class - specifically the value is assigned to fields of this type... |
{"title":"Rails 3.1: Better way to expose an engine's helper within the client app","tags":["ruby-on-rails","ruby-on-rails-3.1","rails-engines","helpers","view-helpers"],"question_text":"I have found a few articles addressing the issue of helpers within an engine not being accessible to the consuming (parent) applicati... |
{"title":"Escaping values in Rails (similar to mysql_real_escape_string())","tags":["ruby-on-rails"],"question_text":"I know about prepared statements, but if I'm using raw SQL, does ActiveRecord have a way to manually escape values?\nSomething like this would be nice:\n`self.escape(\"O'Malley\") # O\\'Malley`","answer... |
{"title":"CADisplayLink OpenGL rendering breaks UIScrollView behaviour","tags":["iphone","opengl-es"],"question_text":"There are a few similar questions out there on SO (links at end), but none of them has allowed me to fix my problem, so here goes:\nI'm using OpenGL rendering to make an image tiling and caching librar... |
{"title":"XSLT - How to select XML Attribute by Attribute?","tags":["xml","xslt","xpath","xml-attribute"],"question_text":"this is the structure of my source xml:\n`<root>\n<DataSet Value=\"A\">\n<Data Value1=\"1\" Value2=\"anythingA1\" \/>\n<Data Value1=\"2\" Value2=\"anythingA2\" \/>\n<Data Value1=\"3\" Value2=\"anyt... |
{"title":"Code Wrap IntelliJ?","tags":["intellij-idea","code-formatting"],"question_text":"How would be possible to assign a shortcut for word wrap like as sublime text do? i.e. if the code line is too long it should be automatically break to the next line.\nwikipedia.org.org\/Word_wrap","answer_text":"I think\n\"soft ... |
{"title":"Changing the button text color when selected","tags":["iphone","objective-c","cocoa-touch","ios","uibutton"],"question_text":"I have a custom button and I am setting the different image when it is highlighted. Now, I want to change the color of the text on the button when button is highlighted. Is it possible... |
{"title":"Why does Rails 3 with Mysql2 Gem ActiveRecord::Base.connection.execute(sql) return Array not Hash?","tags":["ruby-on-rails-3","gem","mysql2"],"question_text":"I'm in the process of upgrading an application to Rails 3. I've decided to go with the mysql2 gem. There's some legacy code in the app that makes calls... |
{"title":"Django: ImproperlyConfigured: The SECRET_KEY setting must not be empty","tags":["python","django","settings"],"question_text":"I am trying to set up multiple setting files (development, production, ..) that include some base settings. Cannot succeed though. When I try to run\n`.\/manage.py runserver`\nI am ge... |
{"title":"C\/C++ efficient bit array","tags":["c++","c","arrays","bit"],"question_text":"Can you recommend efficient\/clean way to manipulate arbitrary length bit array?\nright now I am using regular int\/char bitmask, but those are not very clean when array length is greater than datatype length.\n`std vector<bool>`\n... |
{"title":"Can I use Moq to verify that a mocked method was called with specific values in a complex parameter?","tags":["c#","unit-testing","parameters","moq"],"question_text":"So assume I am mocking the following class:\n`public class ClassAParams\n{\n public int RequestedId { get; set; }\n public string SomeValue { g... |
{"title":"how to avoid jQuery UI draggable from also triggering click event","tags":["jquery","jquery-ui"],"question_text":"A have a large div (a map) that is draggable via jQuery UI draggable. The div has child divs which are clickable.\nMy problem is that if you drag the map, on mouse up, the click event is fired on ... |
{"title":"How do i get items in shopping cart using models? (Magento)","tags":["magento"],"question_text":"Is there any code with which i could fetch items added to the shopping cart and their count from magento using any models or helpers?","answer_text":"To get your cart object (in session) :\n`$quote = Mage::getSing... |
{"title":"IIS SMTP - The server response was: 5.7.1 Unable to relay for outgoing address, Still not working","tags":["iis","smtp"],"question_text":"I have read\nMailbox unavailable. The server response was: 5.7.1 Unable to relay for abc@xyz.com\nand all of the answers. I have added my IP address via\nIIS-->Default SMTP... |
{"title":"What is the fastest webserver solution with the lowest memory footprint?","tags":["webserver"],"question_text":"I need a webserver to serve up very simple POST\/GET requests as JSON. I don't need MVC, Rails, Django. I need something that takes up very little memory, preferrably around 5K per reqeust. The webs... |
{"title":"String.split() *not* on regular expression?","tags":["java","regex"],"question_text":"Since\n`String.split()`\nworks with regular expressions, this snippet:\n`String s = \"str?str?argh\";\ns.split(\"r?\");`\n... yields:\n`[, s, t, , ?, s, t, , ?, a, , g, h]`\nWhat's the most elegant way to split this String o... |
{"title":"How to determine if a linked list has a cycle using only two memory locations","tags":["algorithm","loops","linked-list","cycle"],"question_text":"Does anyone know of an algorithm to find if a linked list loops on itself using only two variables to traverse the list. Say you have a linked list of objects, it ... |
{"title":"Could I ever want to access the address zero?","tags":["c++","c","memory","pointers"],"question_text":"The constant 0 is used as the null pointer in C and C++. But as in the question\n\"Pointer to a specific fixed address\n\"\nthere seems to be some possible use of assigning fixed addresses. Is there ever any... |
{"title":"Disabling Spinner in android","tags":["android","spinner"],"question_text":"I'm having problems when using\n`android:enabled=\"false\"`\n, it's not\ndisabling\nthe\ncomponent\nin the case it's a\n`spinner`\n. Don't know if it's relevant, but it belongs to a layout that's part of a\n`viewflipper`\n.\nAny hints... |
{"title":"git: ignoring a file which *is* version controlled","tags":["git"],"question_text":"A\n`.gitignore`\nfile allows to ignore files from version controlling them at all.\nWe have a different situation: we want to place in the repository some configuration files, that need to be changed on per-machine basis (db a... |
{"title":"Navigation drawer Items not registering click event","tags":["android","android-listview","onclick","navigation-drawer"],"question_text":"I am struggling to get the Navigation drawer items to register and start and intent for a new activity.\nThe drawer opens fine and is displayed correctly but nothing happen... |
{"title":"Nested Select linq query","tags":["c#","linq"],"question_text":"Trying to work out a linq query and was wondering if you guys could help.\nI have a list of objects\n`foo`\nand each\n`foo`\nobject has a list of\n`bar`\n. bar has an active date and a numeric value. for example\n`foo\n bar -> 01\/02\/05, 10000\n... |
{"title":"Why does Dijkstra's algorithm use decrease-key?","tags":["algorithm","data-structures","priority-queue","graph-algorithm","dijkstra"],"question_text":"Dijkstra's algorithm was taught to me was as follows\n`while pqueue is not empty:\n distance, node = pqueue.delete_min()\n if node has been visited:\n continue... |
{"title":"jQuery .click() is triggering when selecting\/highlighting text","tags":["javascript","jquery","javascript-events"],"question_text":"I have a\n`<div>`\nwith a bunch of text in it. This\n`<div>`\nalso has a\n`.click()`\nevent on it using jQuery.\nThe problem I'm having is that the\n`.click()`\nis being trigger... |
{"title":"Is it possible to iterate over arguments in variadic macros?","tags":["c","foreach","c99","c-preprocessor","variadic"],"question_text":"I was wondering if it is possible to iterate over arguments passed to a variadic macro in C99 or using any GCC extensions ?\nFor e.g. is it possible to write a generic macro ... |
{"title":"Android: Using ObjectAnimator to translate a View with fractional values of the View's dimension","tags":["android","animation"],"question_text":"It appears that the old view animations (\n`translate`\n,\n`scale`\n, and so on) are no longer accepted by the\n`AnimationInflater`\n, at least as of ICS. I read it... |
{"title":"Bootstrap full-width text-input within inline-form","tags":["html","css","twitter-bootstrap-3"],"question_text":"I am struggling to create a textbox that fits the entire width of my\ncontainer\narea.\n`<div class=\"row\">\n <div class=\"col-md-12\">\n <form class=\"form-inline\" role=\"form\"> \n <input type=... |
{"title":"Why clicking on checkbox does not add the attribute checked='checked'","tags":["javascript","jquery","html","javascript-events","jquery-selectors"],"question_text":"When I click a checkbox, why does checked attribute is not getting added?. You can see the code here\nhttp:\/\/jsfiddle.net\/FCrSg\/","answer_tex... |
{"title":"Converting a ASP.NET MVC 3 Project to MVC 4","tags":["asp.net-mvc","asp.net-mvc-3","asp.net-mvc-4"],"question_text":"What steps should I take to safely upgrade an existing ASP.NET MVC 3 project to the latest ASP.NET MVC 4\nDeveloper Preview\n?","answer_text":"The major change is to upgrade the relevant refere... |
{"title":"Protect yourself against Dos attacks","tags":["webserver","protection","denial-of-service"],"question_text":"This might be something more suited for Serverfault, but many webdevelopers who come only here will probably benefit from possible answers to this question.\nThe question is: How do you effectively pro... |
{"title":"When to use CouchDB vs RDBMS","tags":["database","couchdb","rdbms"],"question_text":"I am looking at CouchDB, which has a number of appealing features over relational databases including:\nintuitive REST\/HTTP interface\neasy replication\ndata stored as documents, rather than normalised tables\nI appreciate t... |
{"title":"Html.ActionLink with a specified HTML id?","tags":["css","asp.net-mvc","asp.net-mvc-2","html-helper","actionlink"],"question_text":"I'd like to give the like generated with an\n`Html.ActionLink`\nan HTML id so I can change the CSS depending on where I am. I have a\n`MasterPage`\nwith a set of links and I'd li... |
{"title":"Difference between IEnumerable and IEnumerable<T>?","tags":["c#","ienumerable","generics","ilist","icollection"],"question_text":"What is the difference between\n`IEnumerable`\nand\n`IEnumerable<T>`\n?\nI've seen many framework classes implementing both these interfaces, therefore I would like to know what ad... |
{"title":"Are C++ Templates just Macros in disguise?","tags":["c++","templates","macros"],"question_text":"I've been programming in C++ for a few years, and I've used STL quite a bit and have created my own template classes a few times to see how it's done.\nNow I'm trying to integrate templates deeper into my OO desig... |
{"title":"How to unpair or delete paired bluetooth device programmatically on android?","tags":["android","bluetooth","arduino"],"question_text":"The project is to use my android phone to connect with my arduino devices. but how can I unpair the paired ones. I see it seems the paired list is stored where bluetoothadapt... |
{"title":"How to create a 2 way map in java","tags":["java","data-structures"],"question_text":"I need a data structure to store string-int value pairs in an 1:1 relationship, and being able too look up from either way their counterpart.\nI wrote a class with a Hashtable and a String array and stored the data 2 times a... |
{"title":"How to construct a WebSocket URI relative to the page URI?","tags":["websocket","uri","relative-path"],"question_text":"I want to construct a WebSocket URI relative to the page URI at the browser side. Say, in my case convert HTTP URIs like\n`http:\/\/example.com:8000\/path\nhttps:\/\/example.com:8000\/path`\... |
{"title":"Is negative index for operator[] well defined?","tags":["c++","operator-overloading","language-lawyer"],"question_text":"I know it would be very bad coding-style, but the following code runs perfectly on my machine. But is the behavior well defined? Portable?\n`int main()\n{\n int *p = new int[3];\n int *q = ... |
{"title":"Laravel 4 No tests found in TestCase","tags":["phpunit","ignore","testcase"],"question_text":"I'm having some problems with phpunit. When I execute a test, phpunit give me these warnings:\n1) Warning\n No tests found in class \"Illuminate\\Foundation\\Testing\\TestCase\".\n2) Warning\n No tests found in class... |
{"title":"Run migrations from rails console","tags":["ruby-on-rails","ruby-on-rails-3.1"],"question_text":"Is there a way to run rake commands for db:migrate and db:rollback on the console?\nIt sucks to wait for the rails environment to load!","answer_text":"This will allow you to migrate without reloading the whole ra... |
{"title":"Why should you delete using an HTTP POST or DELETE, rather than GET?","tags":["asp.net-mvc","http","http-delete"],"question_text":"I have been working through Microsoft's ASP.NET MVC tutorials, ending up at this page\nhttp:\/\/www.asp.net\/learn\/mvc\/tutorial-32-cs.aspx\nThe following statement is made towar... |
{"title":"ListView: setItemChecked only works with standard ArrayAdapter - does NOT work when using customized ArrayAdapter?","tags":["android","listview","android-arrayadapter"],"question_text":"This is really weird.\nWhen I use the standard ArrayAdapter for a ListView calling setItemChecked works OK\nBut when using a... |
{"title":"Issue updating Ruby on Mac with Xcode 4.3.1","tags":["ruby","xcode","osx-lion","rvm"],"question_text":"I'm using RVM to install it and it gives me this error:\n`The provided compiler '\/usr\/bin\/gcc' is LLVM based, it is not yet fully supported by ruby and gems, please read `rvm requirements`.`\nI'm on Lion ... |
{"title":"Tomcat 7 - Maven Plugin?","tags":["maven-2","maven-plugin","tomcat7"],"question_text":"I just wanted to double-check, has anyone found or is working on a Tomcat 7 plugin? If not, is anyone interested in helping me get it up and running?\nI want another quick alternative to Glassfish, JBoss AS 6.0 is a bit hea... |
{"title":"How does one change color in markdown cells ipython\/jupyter notebook?","tags":["ipython","markdown","ipython-notebook","jupyter-notebook"],"question_text":"I'm only looking to format a specific string within a cell. I change that cell's format to \"Markdown\" but I'm not sure how to\nchange text color of a s... |
{"title":"Rails Active Record find(:all, :order => ) issue","tags":["ruby-on-rails","ruby","activerecord"],"question_text":"I seem to be unable to use the ActiveRecord::Base.find option :order for more than one column at a time.\nFor example, I have a \"Show\" model with date and attending columns.\nIf I run the follow... |
{"title":"Database project deploy fails in Visual Studio 2013","tags":["visual-studio-2013","ssdt","sql-server-2014"],"question_text":"I have a database project in a solution which will not deploy from Visual Studio 2013. It fails with an error message\n`\"Unable to connect to target server\"`\n.\nThe same project, whe... |
{"title":"Why does emacs create temporary symbolic links for modified files?","tags":["emacs"],"question_text":"When I modify a buffer, Emacs automatically creates a temporary symlink in the same directory as the file being edited (e.g. foo.c):\n`.#foo.c -> user@host.12345:1296583136`\nwhere '12345' is Emacs' PID (I do... |
{"title":"How to generate signature and keys in Codeigniter RSA library","tags":["php","codeigniter","encryption","rsa"],"question_text":"I am doing some encryption and decryption in php using codeigniter framework. I am using this library\nhttps:\/\/github.com\/Dirktheman\/rsa-codeigniter-library\n.What I want to do i... |
{"title":"HTML5 Canvas Vector Graphics?","tags":["html5","canvas","vector-graphics"],"question_text":"Please tell me what libraries for drawing and handling of vector graphics within HTML5 Canvas do you know?\nThank you!!!","answer_text":"There are a few options. I haven't used either of these libraries, but from what ... |
{"title":"How can I determine which exceptions can be thrown by a given method?","tags":["c#","exception","error-handling"],"question_text":"My question is really the same as this one\n\"Finding out what exceptions a method might throw in C#\"\n. However, I would really like to know if anyone knows of a way to determin... |
{"title":"Obtain file path of C# save dialog box","tags":["c#","dialog"],"question_text":"I've got a save dialog box which pops up when i press a button. However i dont want to save a file at that point, i want to take the name and place it in the text box next to the button, for the name to be used later.\nCan anybody... |
{"title":"SQL Server vs. NoSQL","tags":["sql-server-2008","nosql"],"question_text":"So I have a website that could eventually get some pretty high traffic. My DB implementation is in SQL Server 2008 at the moment. I really only have 2 tables and a few stored procs. Most of the DB could be re-designed to work without jo... |
{"title":"Get from AnyObject(NSString) to String","tags":["ios","nsstring","swift"],"question_text":"I am reading a plist key (NSArray with n NSDictionaries):\n`let regionsToMonitor = NSBundle.mainBundle().infoDictionary[\"Regions\"] as Array<Dictionary<String,AnyObject>>`\nnow I iterate over it:\n`for regionToMonitor ... |
{"title":"IntentRecieverLeakedException, Are you missing a call to unregisterReceiver() ? in android","tags":["android","android-intent"],"question_text":"I'm trying the following sms example from:\nhttp:\/\/mobiforge.com\/developing\/story\/sms-messaging-android\nbut I'm getting the following exception if I try to sen... |
{"title":"Java 8 - omitting tedious collect method","tags":["java","java-8","java-stream"],"question_text":"Java 8 stream api is very nice feature and I absolutely like it. One thing that get's on my nerves is that 90% of the time I want to have input as a collection and output as collections. The consequence is I have... |
{"title":"How to get the large picture from feed with graph api?","tags":["facebook-graph-api"],"question_text":"When loading the Facebook feeds from one page, if a picture exist in the feed, I want to display the large picture.\nHow can I get with the\n`graph API`\n? The picture link in the feed is not the large one.\... |
{"title":"What are the common use cases for __IPHONE_OS_VERSION_MAX_ALLOWED?","tags":["ios","cocoa-touch"],"question_text":"What are the situations in which you would use the __IPHONE_OS_VERSION_MAX_ALLOWED check? What about __IPHONE_OS_VERSION_MIN_REQUIRED?","answer_text":"It's important to understand that these are\n... |
{"title":"How to search a string in another string?","tags":["java","string"],"question_text":"Possible Duplicate:\nHow to see if a substring exists inside another string in Java 1.4\nHow would I search for a string in another string?\nThis is an example of what I'm talking about:\n`String word = \"cat\";\nString text ... |
{"title":"Sum all columns with a wildcard name search using Python Pandas","tags":["python","wildcard","pandas"],"question_text":"I have a dataframe in python pandas with several columns taken from a CSV file.\nFor instance, data =:\n`Day P1S1 P1S2 P1S3 P2S1 P2S2 P2S3\n1 1 2 2 3 1 2\n2 2 2 3 5 4 2`\nAnd what I need is ... |
{"title":"C++11 When clearing shared_ptr, should I use reset or set to nullptr?","tags":["c++","c++11","shared-ptr","reset","nullptr"],"question_text":"I have a question about C++11 best practices. When clearing a shared_ptr, should I use the\n`reset()`\nfunction with no parameter, or should I set the\n`shared_ptr`\nto... |
{"title":"Encode \/ decode URLs","tags":["url","escaping","go"],"question_text":"What's the recommended way of encoding and decoding entire URLs in Go? I am aware of the methods\n`url.QueryEscape`\nand\n`url.QueryUnescape`\n, but they don't seem to be exactly what I am looking for. Specifically I am looking for methods... |
{"title":"How can I send a Firebase Cloud Messaging notification without use the Firebase Console?","tags":["php","android","api","firebase","firebase-cloud-messaging"],"question_text":"I'm starting with the new Google service for the notifications,\n`Firebase Cloud Messaging`\n. Thanks to this code\nhttps:\/\/github.c... |
{"title":"Entity Framework 4.1 code first approach: how to define length of properties","tags":["mapping","ef-code-first","entity-framework-4.1"],"question_text":"As the title implies:\nhow is it possible to tell Entity Framework 4.1 in code first approach, that i do want some properties (in particular of type string) ... |
{"title":"Check if an array of objects have a key value using underscore","tags":["javascript","functional-programming","underscore.js"],"question_text":"How can check if an array of objects have a key value using underscore.\nExample:\n`var objects = [\n {id:1, name:'foo'},\n {id:2, name:'bar'}\n]\ncheck(objects, {nam... |
{"title":"Is there a .mocha file where I can specify defaults such as --no-colors?","tags":["node.js","configuration","config","mocha","dotfiles"],"question_text":"I'd like to set some defaults for mocha without having to type them each time. Does mocha look for a config file \/ dotfile anywhere, as jshint looks for\n`... |
{"title":"Since Xcode 8 and iOS10, views are not sized properly on viewDidLayoutSubviews","tags":["ios","autolayout","ios10","xcode8"],"question_text":"It seems that with Xcode 8, on\n`viewDidLoad`\n, all viewcontroller subviews have the same size of 1000x1000. Strange thing, but okay,\n`viewDidLoad`\nhas never been th... |
{"title":"Find all columns of a certain type in all tables in a SQL Server database","tags":["sql","sql-server-2008"],"question_text":"How can I find all columns of a certain type (for example\n`NTEXT`\n) in all tables in a SQL Server database?\nI am looking for a SQL query.","answer_text":"You can use following query ... |
{"title":"How do I Change the FontFamily on a ContentPresenter?","tags":["wpf","xaml","contentpresenter","fontfamily"],"question_text":"I have a custom template for an expander that is close to the code below. I had to change some of the code to take out custom classes, brushes, etc..\n`<Style TargetType=\"{x:Type Expa... |
{"title":"C# Remove special characters","tags":["c#","special-characters"],"question_text":"I want to remove all special characters from a string. Allowed characters are A-Z (uppercase or lowercase), numbers (0-9), underscore (_), white space ( ), pecentage(%) or the dot sign (.).\nI have tried this:\n`StringBuilder sb... |
{"title":"Preferred method for viewing code generated by Template Haskell","tags":["haskell","ghc","pretty-print","template-haskell"],"question_text":"As you know, Template Haskell is used to generate various kinds of AST splices programmatically at compile-time.\nHowever, a splice can often be very opaque, and it is o... |
{"title":"Add numbers to the beginning of every line in a file","tags":["bash"],"question_text":"How can I add numbers to the beginning of every line in a file?\nE.g.:\nThis is\nthe text\nfrom the file.\nBecomes:\n000000001 This is\n000000002 the text\n000000003 from the file.","answer_text":"Don't use cat or any other... |
{"title":"Where are the local, global, static, auto, register, extern, const, volatile variables are stored?","tags":["objective-c","c","variables"],"question_text":"Where are the local, global, static, auto, register, extern, const, volatile variables stored?","answer_text":"local\nvariables can be stored either on th... |
{"title":"@font-face works in IE8 but not IE9","tags":["css","internet-explorer","font-face","embedded-fonts"],"question_text":"As described above, I have issues with @font-face not displaying in IE9 although it displays fine in every other browser including IE8 and under. Additionally, when viewing locally on my compu... |
{"title":"What is the best way to deal with the NSDateFormatter locale \"feature\"?","tags":["ios","objective-c","iphone","locale","nsdateformatter"],"question_text":"It seems that\n`NSDateFormatter`\nhas a \"feature\" that bites you unexpectedly: If you do a simple \"fixed\" format operation such as:\n`NSDateFormatter... |
{"title":"Removing or replacing a stylesheet (a <link>) with JavaScript\/jQuery","tags":["javascript","jquery","css"],"question_text":"How can I do this?\nI tried\n`$('link[title=\"mystyle\"]').remove();`\nand although the element is removed, the styles are still applied to the current page (in both Opera and Firefox).... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.