text stringlengths 74 309k |
|---|
{"title":"Circle loading animation","tags":["html","css","css3","svg","css-shapes"],"question_text":"I'm trying to create Apple's OS X circle loading animation.\nWhat I have tried so far:\n`.animation-wrapper {\r\n width: 200px;\r\n height: 200px;\r\n border: 1px solid black;\r\n border-radius: 50%;\r\n position: relat... |
{"title":"Writing image to local server","tags":["node.js","http-get"],"question_text":"Update\nThe accepted answer was good for last year but today I would use the package everyone else uses:\nhttps:\/\/github.com\/mikeal\/request\nOriginal\nI'm trying to grab google's logo and save it to my server with node.js.\nThis... |
{"title":"Jquery Smooth Scroll To DIV - Using ID value from Link","tags":["javascript","jquery","html","parsing"],"question_text":"So i'm having some issues with my JQuery which is suppose to scroll to particular divs.\nHTML\n`<div id=\"searchbycharacter\">\n <a class=\"searchbychar\" href=\"#\" id=\"#0-9\" onclick=\"r... |
{"title":"Set default value for DateTime in optional parameter","tags":["c#","datetime","default","optional-parameters"],"question_text":"How can I set default value for DateTime in optional parameter?\n`public SomeClassInit(Guid docId, DateTime addedOn = DateTime.Now???)\n{\n \/\/Init codes here\n}`","answer_text":"Th... |
{"title":"C# - Get a list of files excluding those that are hidden","tags":["c#",".net","file"],"question_text":"`Directory.GetFiles()`\nreturns all files, even those that are marked as hidden. Is there a way to get a list of files that excludes hidden files?","answer_text":"This should work for you:\n`DirectoryInfo di... |
{"title":"How to highlight ImageView when focused or clicked?","tags":["android","focus","imageview","highlight"],"question_text":"A good example of this is either on the Twitter launch screen (the screen with the large icons that is seen when the application is first launch) or even just look at the application tray w... |
{"title":"Standard way to embed version into python package?","tags":["python","string","package"],"question_text":"Is there a standard way to associate version string with a python package in such way that I could do the following?\n`import foo\nprint foo.version`\nI would imagine there's some way to retrieve that dat... |
{"title":"How to get diff working like git-diff?","tags":["git","diff","git-diff"],"question_text":"I like the output formatting of git-diff. The color options and the +\/- representation of changes between lines is significantly easier to read (IMHO) than the standard GNU diff.\nI see that I can run git diff on two fi... |
{"title":"Isn't \"const\" redundant when passing by value?","tags":["c++","const","pass-by-value"],"question_text":"I was reading my C++ book (Deitel) when I came across a function to calculate the volume of a cube. The code is the following:\n`double cube (const double side){\n return side * side * side;\n}`\nThe expl... |
{"title":"Default value for Required fields in Entity Framework migrations?","tags":["c#","asp.net-mvc","entity-framework","ef-code-first"],"question_text":"I've added\n`[Required]`\ndata annotation to one of my models in\nASP.NET MVC application\n. After creating a migration, running\n`update-database`\nresuilts in th... |
{"title":"catch specific HTTP error in python","tags":["python","http","urllib2","urllib"],"question_text":"I want to catch a specific http error and not any one of the entire family..\nwhat I was trying to do is --\n`import urllib2\ntry:\n urllib2.urlopen(\"some url\")\nexcept urllib2.HTTPError:\n <whatever>`\nbut wha... |
{"title":"How do I get mogenerator to recognize the proper type for Transformable attributes?","tags":["core-data","transformation","mogenerator","transformable"],"question_text":"I have a Core Data model with a single transformable attribute. I also have this attribute use a custom NSValueTransformer, setup in the mod... |
{"title":"How do I make an Event in the Usercontrol and Have it Handeled in the Main Form?","tags":["c#","winforms","user-controls","event-handling"],"question_text":"I have a custom usercontrol and I want to do something relatively simple.\nWhen ever a numeric up down in that usercontrol's value changes, have the main... |
{"title":"Is it a good idea to index datetime field in mysql?","tags":["mysql","indexing"],"question_text":"I am working on designing a large database. In my application I will have many rows for example I currently have one table with 4 million records. Most of my queries use datetime clause to select data. Is it a go... |
{"title":"Best way to handle Integer overflow in C#?","tags":["c#",".net","integer","overflow"],"question_text":"Handling integer overflow is a common task, but what's the best way to handle it in C#? Is there some syntactic sugar to make it simpler than with other languages? Or is this really the best way?\n`int x = f... |
{"title":"JaCoCo SonarQube incompatible version 1007","tags":["sonarqube","jacoco"],"question_text":"I'm using SonarQube for code quality control and suddenly builds that would otherwise pass can't be analyzed and fails.\n[INFO] [00:00:03.630] Analysing \/mySuperProject\/target\/jacoco.exec ->\n java.io.IOException: In... |
{"title":"Can't add server to a moved workspace","tags":["eclipse","tomcat","java-ee","workspace"],"question_text":"I have this workspace downloaded off the web and I try running it on a tomcat server from a fresh installation of Eclipse Ganymede. This particular project came with its own workspace.\nWhen I select Tomc... |
{"title":"$timeout not defined error in AngularJS app","tags":["javascript","angularjs"],"question_text":"I have the following code:\n`app.factory('Position', ['$timeout', function() {\n var position = {\n latitude: 44,\n longitude: 26\n };\n console.log(\"Timeout started\");\n $timeout(function() {\n position.latitude... |
{"title":"Lock statement vs Monitor.Enter method","tags":["c#","command-line-interface","garbage-collection"],"question_text":"I suppose that this is an interesting code example.\nWe have a class -- let's call it\nTest\n-- with a\nFinalize\nmethod. In the\nMain\nmethod there are two code blocks where I am using a lock ... |
{"title":"Eclipse gives \u00e2\u0080\u009cJava was started but returned exit code 13\u00e2\u0080\u009d","tags":["java","eclipse","jvm"],"question_text":"All hell broke loose after i uninstalled my java 6 and installed java 7 (both jdk and jre). On opening eclipse it gave the error that \"No JVM found at.....\". So, i e... |
{"title":"Converting HTML to plain text in PHP for e-mail","tags":["php","html","email","plaintext"],"question_text":"I use\nTinyMCE\nto allow minimal formatting of text within my site. From the HTML that's produced, I'd like to convert it to plain text for e-mail. I've been using a class called\nhtml2text\n, but it's ... |
{"title":"malloc for struct and pointer in C","tags":["c","memory-management"],"question_text":"Suppose I want to define a structure representing length of the vector and its values as:\n`struct Vector{\n double* x;\n int n;\n};`\nNow, suppose I want to define a vector y and allocate memory for it.\n`struct Vector *y =... |
{"title":"How to erase characters printed in console","tags":["node.js"],"question_text":"I've been searching how to do it in other languages and I've found that I have to use the special character \\b to remove the last character. (\nhow-do-i-erase-printed-characters-in-a-console-applicationlinux\n)\nThis doesn't work... |
{"title":"setting maxlength of textbox with javascript or jQuery","tags":["javascript","jquery","input","textbox"],"question_text":"I want to change the maxlength of a textbox with javascript or JQuery: I tried the following but it didn't seem to help:\n`var a = document.getElementsByTagName('input');\nfor(var i=0; i<a... |
{"title":"How to get current controller and action from inside Child action?","tags":["asp.net-mvc","asp.net-mvc-routing"],"question_text":"I have a portion of my view that is rendered via RenderAction calling a child action. How can I get the Parent controller and Action from inside this Child Action.\nWhen I use..\n`... |
{"title":"Best way to generate xml?","tags":["python","xml","api"],"question_text":"I'm creating an web api and need a good way to very quickly generate some well formatted xml. I cannot find any good way of doing this in python.\nNote: Some libraries look promising but either lack documentation or only output to files... |
{"title":"Windows Azure or Amazon EC2 for ASP.NET MVC Development?","tags":[".net","asp.net","azure","amazon-ec2","cloud"],"question_text":"If you want to build enterprise ASP.NET MVC applications that use MSSQL databases is it better to use Windows Azure or Amazon EC2?\nI didn't find any satisfying answers.\nSo what a... |
{"title":"associative array versus object in javascript","tags":["javascript"],"question_text":"In my script there is a need to create a hash table, i searched in google for this. Most of the folks are recommending JavaScript object for this purpose. Problem is, some of the keys in the hash table have \".\" in them. I ... |
{"title":"How to login to facebook in Xamarin.Forms","tags":["xamarin","xamarin.forms"],"question_text":"I want to make a Xamarin.Forms project, targeting iOs, Android and Windows Phone.\nMy app needs to authenticate users, using Facebook.\nShould I implement login for each platform independently, or use a manual flow?... |
{"title":"Redirect to dynamic URL in Spring MVC","tags":["spring","redirect","spring-mvc"],"question_text":"I want my Spring MVC application to redirect to a dynamic URL (submitted by the user). So if I have code like this,\n`@RequestMapping(\"\/redirectToSite\")\nprotected ModelAndView redirect(\n @RequestParam(\"redi... |
{"title":"Why does List<T>.ForEach allow its list to be modified?","tags":["c#","list","foreach"],"question_text":"If I use:\n`var strings = new List<string> { \"sample\" };\nforeach (string s in strings)\n{\n Console.WriteLine(s);\n strings.Add(s + \"!\");\n}`\nthe\n`Add`\nin the\n`foreach`\nthrows an InvalidOperation... |
{"title":"What does #self.included(base) do in Ruby on Rails' Restful Authentication?","tags":["ruby-on-rails","restful-authentication"],"question_text":"I thought we would do\n`helper_method :current_user, :logged_in?, :authorized?`\nto make these controller methods available for use as helper methods in views. But in... |
{"title":"Devise Secret Key was not set","tags":["ruby-on-rails","devise"],"question_text":"I am developing a Rails 4 app using the Active Admin gem for the administration back end. Active Admin in turn uses Devise for user authentication. Now, when I try to deploy the app using\n`capistrano`\non the VPS server, I get ... |
{"title":"Why is List<T> not thread-safe?","tags":[".net","generics","thread-safety"],"question_text":"from this site:\nhttp:\/\/crfdesign.net\/programming\/top-10-differences-between-java-and-c\nUnfortunately, List<> is not\n thread-safe (C#\u00e2\u0080\u0099s ArrayList and Java\u00e2\u0080\u0099s\n Vector are thread-... |
{"title":"How to open Console window in Eclipse?","tags":["eclipse","console"],"question_text":"I accidentally closed the Console window in Eclipse, and now I can't see the result of my code being run.\nHow do you open it again?","answer_text":"From the menu bar, Window \u2192 Show View \u2192 Console. Alternately, use... |
{"title":"MySQL - How to get EXACT difference of hours between two dates","tags":["sql","mysql"],"question_text":"I'll illustrate what I would like to get in the following example:\n`'2010-09-01 03:00:00' - '2010-09-01 00:10:00'`\nUsing\n`TIMEDIFF()`\n, we get 2 as a result. This means, it's not considering the 50 minu... |
{"title":"When is it a good idea to store passwords in clear text?","tags":["asp.net","asp.net-membership"],"question_text":"I am working on an application that is targetted at non technical users. I expect a large number of support calls regarding lost passwords and inability to login.\nI am using ASP.NET membership p... |
{"title":"Check for Ajax request in Code Igniter","tags":["php","ajax","codeigniter"],"question_text":"I'm in a PHP script and I want to check whether the request is an Ajax request. (basically so as NOT to allow direct script access, other than Ajax call that is...)\nSo, I'm defining\n`IS_AJAX`\nsomewhere in the main\... |
{"title":"Which iomanip manipulators are 'sticky'?","tags":["c++","c++-faq"],"question_text":"I recently had a problem creating a stringstream due to the fact that I incorrectly assumed std::setw() would affect the stringstream for every insertion, until I changed it explicitly. However, it is always unset after the in... |
{"title":"What makes Ruby slow?","tags":["ruby","performance","garbage-collection","dynamic-languages"],"question_text":"Ruby is slow at certain things. But what parts of it are the most problematic?\nHow much does the garbage collector affect performance? I know I've had times when running the garbage collector alone ... |
{"title":"Slow updating of composer dependencies, despite --prefer-dist flag","tags":["php","symfony2","composer-php"],"question_text":"Why does it take up to two minutes for my composer dependencies to update - even when there have been no changes?\nA\nheavily upvoted answer\nsuggests adding the\n`--prefer-dist`\nflag... |
{"title":"Is it possible to 'watch' attributes' changes","tags":["angularjs","angularjs-directive"],"question_text":"Is it possible to \"watch\" for ui changes on the directive? \nsomething like that:\n`.directive('vValidation', function() {\n return function(scope, element, attrs) {\n element.$watch(function() {\n if ... |
{"title":"How to tackle daylight savings using Timezone in java","tags":["java","date","calendar","timezone"],"question_text":"I have to print the EST time in my java application. I had set the timezone to EST using\n`Calendar cal = Calendar.getInstance(TimeZone.getTimeZone(\"EST\"));`\nBut when the daylight savings is... |
{"title":"Multiple TypeFace in single TextView","tags":["java","android"],"question_text":"I want to set the first character on\n`TextView`\nwith a\n`TypeFace`\nand the second character with a different Type face and so on.\nI read this example:\n`Spannable str = (Spannable) textView.getText();\nstr.setSpan(new StyleSp... |
{"title":"Colour points in a plot differently depending on a vector of values","tags":["r","colors","plot","gradient"],"question_text":"I'm plotting the plot below using R's plot function. It is a plot of a vector 'shiftTime' of shift in time. I have another vector 'intensity' of the intensity values ranging from ~3 to... |
{"title":"IEnumerable<char> to string","tags":["c#",".net"],"question_text":"I've never stumbled across this before, but I have now and am surprised that I can't find a really easy way to convert an\n`IEnumerable<char>`\nto a\n`string`\n.\nThe best way I can think of is\n`string str = new string(myEnumerable.ToArray())... |
{"title":"How to create a number picker dialog?","tags":["android","android-ui","android-dialog","numberpicker"],"question_text":"I want to be able to create a Dialog that allows the user to pick a number from a specified range.\nI know that there are existing widgets(like those from quietlycoding and the one by SimonV... |
{"title":"what is a `Scheduler` in RxJS","tags":["rxjs"],"question_text":"I'v seen the term\nScheduler\nvery frequently in the documentation.\nBut, what does this term mean? I even don't know how to use a so called\n`Scheduler`\n. The official documentation didn't tell me what a\n`Scheduler`\nexactly is. Is this just a... |
{"title":"Restart ADB from Android Studio","tags":["android","eclipse","android-studio","adb"],"question_text":"I previously developed on Eclipse and just migrated to Android Studio.\nEverything works fine, it's better and faster.\nI work on real device, and Android Studio recognizes it without issue.\nBut when I disco... |
{"title":"Get rid of space underneath inline-block image","tags":["html","css","layout"],"question_text":"How do I get rid of the space between the bottom of the image and the wrapper, while keeping the image as inline-block? Why is this happening?\nhttp:\/\/jsfiddle.net\/dJVxb\/2\/\nHTML:\n`<div id=\"wrapper\">\n<img ... |
{"title":"Is it possible for UIStackView to scroll?","tags":["ios","uiscrollview","ios9"],"question_text":"Let's say I have added more views in UIStackView which can be displayed, how I can make the\n`UIStackView`\nto scroll?","answer_text":"In case anyone is looking for a solution\nwithout code\n, I created an example... |
{"title":"Java - How to find the redirected url of a url?","tags":["java","url","http-headers"],"question_text":"I am accessing web pages through java as follows:\n`URLConnection con = url.openConnection();`\nBut in some cases, a url redirects to another url. So I want to know the url to which the previous url redirect... |
{"title":"What would be a \"Hello, World!\" example for \"std::ref\"?","tags":["c++","c++11","std","ref"],"question_text":"Can somebody give a simple example which demonstrates the functionality of\n`std::ref`\n? I mean an example in which some other constructs (like tuples, or data type templates) are used\nonly if\ni... |
{"title":"Safely override C++ virtual functions","tags":["c++","override","virtual-functions"],"question_text":"I have a base class with a virtual function and I want to override that function in a derived class. Is there some way to make the compiler check if the function I declared in the derived class actually overr... |
{"title":"How to force R to use a specified factor level as reference in a regression?","tags":["r","regression","linear-regression","lm"],"question_text":"Somehow I can\u00c2\u00b4t find it in my notes... nor do find the obivous on the net. How can I tell R to use a certain level as reference if I use dummy explanator... |
{"title":"How to do multiple arguments to map function where one remains the same in python?","tags":["python"],"question_text":"Lets say we have a function add as follows\n`def add(x, y):\n return x + y`\nwe want to apply map function for an array\n`map(add, [1, 2, 3], 2)`\nThe semantics are I want to add 2 to the eve... |
{"title":"Invoke NotifyIcon's Context Menu","tags":["c#","winforms","notifyicon"],"question_text":"I want to have it such that left clicking on the NotifyIcon also causes the context menu (set with the ContextMenuStrip property) to open as well. How would I achieve this? Do I have to handle Click and figure out the pos... |
{"title":"ILMerge hangs on merge","tags":[".net","ilmerge"],"question_text":"I am using ILMerge to combine 9 .NET DLL's written in C# .NET 4. The problem is ILMerge gets stuck, no error message or anything.\nThe log shows that ILMerge merges all the assemblies correctly, then sets out to write the target assembly. It r... |
{"title":"Get the current time in C","tags":["c","time","time-t","localtime"],"question_text":"I want to get the current time of my system. For that I'm using the following code in C:\n`time_t now;\nstruct tm *mytime = localtime(&now); \nif ( strftime(buffer, sizeof buffer, \"%X\", mytime) )\n{\n printf(\"time1 = \\\"%... |
{"title":"Apply Material Design Touch Ripple to ImageButton?","tags":["android","xml","android-5.0-lollipop","imagebutton","material-design"],"question_text":"I have an imagebutton that doesn't respond with a touch animation when it is clicked because it is a static image unlike regular buttons on lollipop which come w... |
{"title":"Is C++ an Object Oriented language?","tags":["c++","oop"],"question_text":"I have always heard that C++ is not Object Oriented but rather \"C with Classes\". So, when I mentioned to an interviewer that C++ was not really object oriented, he asked me why I didn't consider it an OO language. I haven't done any ... |
{"title":"how to add an existing framework in Xcode 5","tags":["xcode","frameworks"],"question_text":"I'm trying to add the AdColony.h frameWork after downloading it, but I can't find it in Xcode 5. I was able to do it in the last version, but can't find it in this one.","answer_text":"Click on your project in the Proj... |
{"title":"Allowing the \"Enter\" key to press the submit button, as opposed to only using MouseClick","tags":["java","swing","keylistener"],"question_text":"I'm learning Swing class now and everything about it. I've got this toy program I've been putting together that prompts for a name and then presents a JOptionPane ... |
{"title":"Worker Role vs Web Job","tags":["azure","azure-worker-roles","azure-webjobs"],"question_text":"From what I understand both run small repeatable tasks in the cloud.\nWhat reasons and in what situations might I want to choose one over the other?","answer_text":"Some basic information:\nWebJobs\nare good for lig... |
{"title":"Get Option value or throw an exception","tags":["scala"],"question_text":"Given an Option, what is the idiomatic way to get its value or throw an exception trying?\n`def foo() : String = {\n val x : Option[String] = ...\n x.getOrException()\n}`","answer_text":"A\n`throw`\n\"statement\" is really an expression... |
{"title":"How to get milliseconds from LocalDateTime in Java 8","tags":["java","datetime","java-8","milliseconds","java-time"],"question_text":"I am wondering if there is a way to get current milliseconds since 1-1-1970 (epoch) using the new\n`LocalDate`\n,\n`LocalTime`\nor\n`LocalDateTime`\nclasses of Java 8.\nThe kno... |
{"title":"Where to Download java-ee.jar?","tags":["java-ee","jar"],"question_text":"Where does the Jar file come from? I expected it to be either a part of the JDK or Eclipse. That expectation proved to be wrong.","answer_text":"Sun\/Oracle is providing a\njava-ee.jar\n- which contains only the Java EE APIs and does no... |
{"title":"How to check if an element of a list is a list (in Python)?","tags":["python"],"question_text":"If we have the following list:\n`list = ['UMM', 'Uma', ['Ulaster','Ulter']]`\nIf I need to find out if an element in the list is itself a list, what can I replace\naValidList\nin the following code with?\n`for e in... |
{"title":"what is the difference between const_iterator and iterator?","tags":["c++","iterator"],"question_text":"What is difference between these two regarding implementation inside STL.\nwhat is the difference regarding performance?\nI guess when it is read only, we prefer const_iterator. right?\nThank you.","answer_... |
{"title":"Issue reading HTTP request body from a JSON POST in PHP","tags":["php","json","post","http-post"],"question_text":"I'm writing a script that is registered as an endpoint for a webhook. I know that it's successfully registered because I'm writing the header of every request to my server logs. Here's a sample:\... |
{"title":"Reduce the Xcode Simulator (Retina 4 inch)","tags":["ios","xcode","ios-simulator","retina-display"],"question_text":"I'm using macbook Air and using the iphone Simulator. I changed it to Retina 4 inch, and the screen of the simulator become so big! is there a way to reduce the size?","answer_text":"You can sc... |
{"title":"Combine iBeacon bluetooth low energy with Android 4.3","tags":["android","ios7","bluetooth-lowenergy","ibeacon","ibeacon-android"],"question_text":"I'm looking for a way to detect iBeacon (iOS 7.0 feature) from an Android device. I read the Android documentation, where it seem that the iBeacon is some kind of... |
{"title":"whats the shortcut of switching between different perspectives in eclipse","tags":["eclipse","debugging","shortcut","perspective"],"question_text":"I have PyDev, Java, and CDT installed on my Eclipse, and sometimes I need to switch between different perspectives;\nDebug\nto\nPydev\n, for example. Does Eclipse... |
{"title":"continue processing php after sending http response","tags":["php","http","response"],"question_text":"My script is called by server. From server i'll receive ID_OF_MESSAGE and TEXT_OF_MESSAGE.\nIn my script i'll handle incomming text and generate response with params: ANSWER_TO_ID and RESPONSE_MESSAGE.\nThe ... |
{"title":"Can I add a debug script to NPM?","tags":["node.js","npm"],"question_text":"I have edited my package.json to customize the \"start\" script so it adds the --debug flag to node:\n`\"scripts\": {\n \"start\": \"node --debug server.js\"\n }`\nIs there a way of adding new scripts for example a debug script that w... |
{"title":"Omniauth-facebook keeps reporting invalid_credentials","tags":["ruby-on-rails","facebook","omniauth"],"question_text":"I am trying to implement omniauth-facebook as described in Railscast #360 and have run into quite a roadblock. When I click on the signin link, I get the desired popup asking me to input my f... |
{"title":"How do I remove the old history from a git repository?","tags":["git","git-filter-branch"],"question_text":"I'm afraid I couldn't find anything quite like this particular scenario.\nI have a git repository with a lot of history: 500+ branches, 500+ tags, going back to mid-2007. It contains ~19,500 commits. We... |
{"title":"Why does PHP have a $ sign in front of variables?","tags":["php","programming-languages","syntax"],"question_text":"In PHP and some other scripting languages have the\n`$var`\nsyntax while Java and other languages we can do just\n`var`\n.\nIs there any theory behind it? Does it help them to parse. If not why ... |
{"title":"IntegrityError duplicate key value violates unique constraint - django\/postgres","tags":["django","postgresql","duplicates","unique-constraint","database-integrity"],"question_text":"I'm following up in regards to a\nquestion that I asked earlier\nin which I sought to seek a conversion from a goofy\/poorly w... |
{"title":"What's the best practice for naming Swift files that add extensions to existing objects?","tags":["objective-c","swift"],"question_text":"It's possible to add extensions to existing Swift object types using extensions, as described in the\nlanguage specification\n.\nAs a result, it's possible to create extens... |
{"title":"Comparing HTTP and FTP for transferring files","tags":["http","ftp","network-programming","file-transfer"],"question_text":"What are the advantages (or limitations) of one over the other for transferring files over the Internet?\n(I am aware of secure forms of both protocols. I'd like to hear comparisons thro... |
{"title":"How to make an immutable object in Python?","tags":["python","python-3.x","immutability"],"question_text":"Although I have never needed this, it just struck me that making an immutable object in Python could be slightly tricky. You can't just override\n`__setattr__`\n, because then you can't even set attribut... |
{"title":"Entity Framework Code Only error: the model backing the context has changed since the database was created","tags":["c#",".net","entity-framework","entity-framework-4"],"question_text":"I created a \"Code Only\" POCO for use against an existing database using Entity Framework 4 and the CTP4. When I run a quer... |
{"title":"SQL Server datetime LIKE select?","tags":["sql-server","sql-like"],"question_text":"in MySQL\n`select * from record where register_date like '2009-10-10%'`\nWhat is the syntax in SQL Server?\nThank you.","answer_text":"You could use the DATEPART() function\n`SELECT * FROM record \nWHERE (DATEPART(yy, register... |
{"title":"Could not load file or assembly 'Microsoft.Owin.Security.Cookies' or one of its dependencies.","tags":["azure"],"question_text":"I have a fresh MVC5 project made from Visual Studio 2013, which works fine when I try to launch it locally. However, when I publish to my Azure website, I get this front page:\nCoul... |
{"title":"How to structure Redux components\/containers","tags":["javascript","reactjs","reactjs-flux","redux-framework","redux"],"question_text":"I\u00e2\u0080\u0099m using redux and I\u00e2\u0080\u0099m not sure about how to organize my components, I think the best is to keep them in folders with the name of the main... |
{"title":"How to parse a JSON Input stream","tags":["java","android","json"],"question_text":"I am using java to call a url that returns a JSON object:\n`url = new URL(\"my URl\");\nurlInputStream = url.openConnection().getInputStream();`\nHow can I convert the response into string form and parse it?","answer_text":"I ... |
{"title":"The specified LINQ expression contains references to queries that are associated with different contexts","tags":["entity-framework"],"question_text":"I am getting this error while querying a linq using two tables from two different edmx files. The query runs as,\n`var query = (from a in db1.Table1\n join b i... |
{"title":"GLYPHICONS - bootstrap icon font hex value","tags":["css","twitter-bootstrap","fonts","twitter-bootstrap-2"],"question_text":"i want using\n`GLYPHICONS`\nicon font and i need hex value of the each icon, i don't see any page about it on bootstrap website and\n`GLYPHICONS`\nwebsite,so how to embed that into pro... |
{"title":"difference between fork and branch on github","tags":["github","branch","git-branch","git-fork"],"question_text":"If I fork a project that's hosted on github. Do I fork all the branches? How do I know which branch my fork is based on? In other words which branch will be downloaded to my PC?","answer_text":"Th... |
{"title":"Jenkins\/Hudson - accessing the current build number?","tags":["continuous-integration","hudson","jenkins","hudson-plugins"],"question_text":"I have a report file I'm generating, and I would like to be able to add the current build number to that file within a Jenkins job. Is there an environment variable or ... |
{"title":"What does the ic_launcher-web.png in my project root do?","tags":["android","eclipse","icons","project"],"question_text":"Unbelievably enough, I couldn't find an answer when Googling for this very basic question!\nI noticed that since I upgraded from Eclipse Helios to Eclipse Juno and updated the Android SDK,... |
{"title":"Read Specific Columns from csv file with Python csv","tags":["python","csv"],"question_text":"I'm trying to parse through a csv file and extract the data from only specific columns.\nExample csv:\n`ID | Name | Address | City | State | Zip | Phone | OPEID | IPEDS |\n10 | C... | 130 W.. | Mo.. | AL... | 3.. | 3... |
{"title":"How to open a jQuery Mobile Dialog from javascript?","tags":["ajax","post","dialog","popup","jquery-mobile"],"question_text":"I have a dialog page and am trying to open it and display results from an AJAX POST.\nHere is my jQuery success event:\n`success: function(resp) { \n $(\"#dialog\").dialog();\n $(\"#te... |
{"title":"PostgreSQL wrong converting from timestamp without time zone to timestamp with time zone","tags":["postgresql","timezone"],"question_text":"I faced with the following issue this morning:\n`select '2011-12-30 00:30:00'::timestamp without time zone AT TIME ZONE 'EST5EDT';`\nreturns me\n`2011-12-30 05:30:00+00`\... |
{"title":"javascript optional arguments in function","tags":["javascript"],"question_text":"I have a typical javascript function with some parameters\n`my_function = function(content, options) { action }`\nif I call the function as such :\n`my_function (options)`\nthe argument \"options\" is passed as \"content\"\nhow ... |
{"title":"What's the difference between boolean and Boolean in Java?","tags":["java","gwt","boolean"],"question_text":"I would like to understand the difference between the\n`Boolean`\nand\n`boolean`\ntypes in Java, specifically as they relate to GWT.\nI know that methods are not supported but I want more info if it is... |
{"title":"Is there a Node OAuth Server Implementation","tags":["node.js","oauth"],"question_text":"I only found the oauth client library for nodejs. Does anybody know where I can find a server implementation?\nThanks,\nHao.","answer_text":"I've just released\nOAuthorize\n, which is a suite of middleware for implementin... |
{"title":"Silverlight 3: ListBox DataTemplate HorizontalAlignment","tags":["silverlight","listbox","datatemplate","controltemplate"],"question_text":"I have a ListBox with it's ItemTemplate bound to a DataTemplate. My problem is I cannot get the elements in the template to stretch to the full width of the ListBox.\n`<L... |
{"title":"Browse orphaned commits in Git","tags":["git"],"question_text":"My git repository has somehow gone wonky - I loaded up msysgit this morning and instead of the branch name being shown after the current directory, it says \"((ref: re...))\", 'git status' reports everything as a new file, 'git log' and 'git refl... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.