text stringlengths 74 309k |
|---|
{"title":"How to delete and replace last line in the terminal using bash?","tags":["bash","replace","terminal","line"],"question_text":"I want to implement a progress bar showing elapsed seconds in bash. For this, I need to erase the last line shown on the screen (command \"clear\" erases all the screen, but I need to ... |
{"title":"How to show Snackbar at top of the screen","tags":["android","android-snackbar"],"question_text":"As the Android documentation says\nSnackbars provide lightweight feedback about an operation. They show a brief message at the bottom of the screen on mobile and lower left on larger devices.\nIs there any altern... |
{"title":"Why do people use tarballs?","tags":["linux","package","archive"],"question_text":"As a primarily Windows developer, perhaps I'm missing something cultural in the Linux community, but it has always confused me when downloading something that the files are first put into a .tar archive, then zipped. Why the tw... |
{"title":"PreferenceFragmentCompat requires preferenceTheme to be set","tags":["android","android-fragments","android-support-library","preferencefragment","preference-v7"],"question_text":"With the new PreferenceFragmentCompat from the v7 Preference Support Library:\nhttp:\/\/developer.android.com\/tools\/support-libr... |
{"title":"String \"true\" and \"false\" to boolean","tags":["jquery","ruby-on-rails","ruby","ruby-on-rails-3"],"question_text":"I have a Rails application and I'm using jQuery to query my search view in the background. There are fields\n`q`\n(search term),\n`start_date`\n,\n`end_date`\nand\n`internal`\n. The\n`internal... |
{"title":"How do I add a simple jQuery script to WordPress?","tags":["jquery","wordpress"],"question_text":"I read the Codex and a few blog posts about using jQuery in WordPress, and its very frustrating. I've got as far as loading jQuery in\n`functions.php`\nfile, but all of the guides out there are crappy because the... |
{"title":"Sql: How to properly check if a record exists","tags":["sql","optimization","query-optimization"],"question_text":"Reading some\nSQL Tuning\ndocumentation I found this:\n`Select count(*)`\n:\n- Counts the number of rows\n- Often is improperly used to verify the existence of a record\nIs\n`Select count(*)`\nre... |
{"title":"Why is printf with a single argument (without conversion specifiers) deprecated?","tags":["c","security","printf","format-specifiers","puts"],"question_text":"In a book that I'm reading, it's written that\n`printf`\nwith a single argument (without conversion specifiers) is deprecated. It recommends to substit... |
{"title":"How to check if an option is selected?","tags":["jquery","select","option"],"question_text":"`$('#mySelectBox option').each(function() {\n if ($(this).isChecked())\n alert('this option is selected');\n else\n alert('this is not');\n});`\nApparently, the\n`isChecked`\ndoesn't work. SO my question is what is th... |
{"title":"rails - \"WARNING: Can't verify CSRF token authenticity\" for json devise requests","tags":["ruby-on-rails-3","ruby-on-rails-3.1","devise","csrf"],"question_text":"How can I retrieve the CSRF token to pass with a JSON request?\nI know that for security reasons\nRails is checking the CSRF token\non all the req... |
{"title":"json Uncaught SyntaxError: Unexpected token :","tags":["jquery","ajax","json","syntax-error"],"question_text":"Trying to make a call and retrieve a very simple, one line, JSON file.\n`$(document).ready(function() {\n jQuery.ajax({ \n type: 'GET',\n url: 'http:\/\/wncrunners.com\/admin\/colors.json' ,\n dataTy... |
{"title":"Reset auto increment counter in postgres","tags":["sql","postgresql","reset","auto-increment"],"question_text":"I would like to force the auto increment field of a table to some value, I tried with this:\n`ALTER TABLE product AUTO_INCREMENT = 1453`\nAND\n`ALTER SEQUENCE product RESTART WITH 1453;\nERROR: rela... |
{"title":"How to show full object in Chrome console?","tags":["javascript","debugging","google-chrome"],"question_text":"`var functor=function(){\n \/\/test\n}\nfunctor.prop=1;\nconsole.log(functor);`\nthis only show the function part of the functor, cannot show the properties of the functor in console.","answer_text":... |
{"title":"Forbidden You don't have permission to access \/ on this server","tags":["apache",".htaccess","mod-rewrite","httpd.conf"],"question_text":"All I wanted to do today was to write a redirect rule to a subfolder, e.g.:\nYou enter the URL:\nexample.com\nand you get redirected to\nexample.com\/subfolder\nSuch a sim... |
{"title":"Customizing Left & Right UISegmentedControl Buttons","tags":["iphone","ios","ios5","uisegmentedcontrol","uiappearance"],"question_text":"I'm trying to customize the following segmented control, using a left image for the first button and a right image for the second button. How would I do this using UIAppeara... |
{"title":"Could not load type 'System.ServiceModel.Activation.HttpModule' from assembly 'System.ServiceModel","tags":["service","svc"],"question_text":"I'm running my Web Project in IIS.\nIt is a 4.0 Framework APP.\nI have a Service.svc and I get this error when I run my Application.\n\"Could not load type 'System.Serv... |
{"title":"NSPredicate to test for NULL, and blank strings","tags":["objective-c","ios","xcode","nspredicate"],"question_text":"I have an\n`NSArray`\nand need to filter out any strings that are null or rather, have ' ' (empty string). How do I do that? I have tried doing:\n`NSPredicate *predicateName = [NSPredicate pred... |
{"title":"jQuery XML parsing with namespaces","tags":["javascript","jquery","xml","namespaces","xsd"],"question_text":"I'm new to jQuery and would like to parse an xml document.\nI'm able to parse regular XML with the default namespaces but with xml such as:\n`<xml xmlns:s=\"uuid:BDC6E3F0-6DA3-11d1-A2A3-00AA00C14882\" ... |
{"title":"How to loop through file names returned by find?","tags":["bash","find"],"question_text":"`x=$(find . -name \"*.txt\")\necho $x`\nif I run the above piece of code in Bash shell, what I get is a string containing several file names separated by blank, not a list.\nOf course, I can further separate them by blan... |
{"title":"Chrome's remote debugging (USB debugging) not working for Samsung Galaxy S3 running android 4.3","tags":["google-chrome","samsung-mobile","android-4.3-jelly-bean","usb-debugging"],"question_text":"Ever since I upgraded my Samsung Galaxy S3 to android 4.3 (from 4.1.2) I am unable to use Chrome's remote debuggi... |
{"title":"C# binary literals","tags":["c#","syntax","binary"],"question_text":"Is there a way to write binary literals in C#, like prefixing hexadecimal with 0x? 0b doesn't work.\nIf not, what is an easy way to do it? Some kind of string conversion?","answer_text":"Since the topic seems to have turned to declaring bit-... |
{"title":"JavaScript validator throws NullPointerException in Eclipse","tags":["eclipse"],"question_text":"I'm coding some PHP files on Eclipse IDE, and I keep getting an error that says \"Building Workspace has encountered a problem\" -- Workspace is the name of my project area.\nWhen I click on the \"details\" link I... |
{"title":"Is there a way to check if int is legal enum in C#?","tags":["c#","enums"],"question_text":"I've read a few SO posts and it seems most basic operation is missing.\n`public enum LoggingLevel\n{\n Off = 0,\n Error = 1,\n Warning = 2,\n Info = 3,\n Debug = 4,\n Trace = 5\n};\nif (s == \"LogLevel\")\n{\n _log.Log... |
{"title":"jQueryUI Tooltips are competing with Twitter Bootstrap","tags":["jquery-ui","twitter-bootstrap"],"question_text":"I've been wracking my head on this for a while now. Apologies if this have been posted\/asked\/answered already.\nI have been able to get some tool tips to work\nfinally\nwith the following code:\... |
{"title":"why Process's Exited method not being called?","tags":["c#",".net"],"question_text":"I have following code, but why the\n`ProcessExited`\nmethod is never called? It is the same if I don't use Windows shell (\n`startInfo.UseShellExecute = false`\n).\n`ProcessStartInfo startInfo = new ProcessStartInfo();\nstart... |
{"title":"How to use Fiddler to monitor WCF service","tags":["wcf","fiddler"],"question_text":"I have a WCF service that accepts a complex type and returns some data. I want to use Fiddler to see what the incoming requests to the service looks like. The client is .net console app which uses a Service reference proxy. I... |
{"title":"How to Create Borderless Buttons in Android","tags":["android","layout","button","borderless"],"question_text":"The\nAndroid Design Guidelines\nsay to use borderless buttons (see picture below), but don't really explain how. Someone asked this same question a few weeks ago here:\nHow to create standard Border... |
{"title":"What is the purpose of nameof?","tags":["c#",".net","c#-6.0","nameof"],"question_text":"Version 6.0 got a new feature of\n`nameof`\n, but I can't understand the purpose of it, as it just takes the variable name and changes it to a string on compilation.\nI thought it might have some purpose when using\n`<T>`\... |
{"title":"Subclass UIApplication with Swift","tags":["ios","cocoa-touch","swift"],"question_text":"In Objective C it was simple: it was sufficient to update the main.m file and change the UIApplicationMain() parameters\n`return UIApplicationMain(argc, argv, NSStringFromClass([CustomUIApplication class]), NSStringFromCl... |
{"title":"emacs create new file with ido enabled","tags":["emacs","ido-mode","ido"],"question_text":"I reciently switched to emacs starter kit which includes the ido package.\nido has a nice feature that suggests paths when find-file which is usually very handy except when trying to create a new file. When the new file... |
{"title":"Clickable widgets in android","tags":["java","android","onclick","android-widget"],"question_text":"The developer documentation has seemed to have failed me here. I can create a static widget without thinking, I can even create a widget like the analogue clock widget that will update itself, however, I can no... |
{"title":"Does a View Exist in Asp.Net MVC?","tags":["asp.net-mvc"],"question_text":"Does anybody know how if it's possible to determine if a specific view name exists from within a controller before rendering the view?\nI have a requirement to dynamically determine the name of the view to render. If a view exists with... |
{"title":"How to print all key and values from HashMap in Android?","tags":["java","android","key","hashmap"],"question_text":"I am very new for Android development, and I am trying to use HashMap in Android sample project. Now, am doing sample project for learn android. I just store keys and values in HashMap, i want ... |
{"title":"Unable to make the module: related gradle configuration was not found. Please, re-import the Gradle project and try again","tags":["intellij-idea","gradle","project-structure"],"question_text":"I use IntellijIDEA Ultimate 14, Gradle 1.2. I manage project from console but i need to debug some codes from IDE.\n... |
{"title":"How can I set the color of a selected row in DataGrid","tags":["c#","wpf","xaml","datagrid"],"question_text":"This seems like a no-brainer but i just can't see how to do it.\nThe default background color of a selected row in DataGrid is so dark that I can't read it. Is there anyway of overriding it?\nTried th... |
{"title":"Java: getMinutes and getHours","tags":["java","date","time"],"question_text":"How do you get Hours and Minutes since\n`Date.getHours`\nand\n`Date.getMinutes`\ngot deprecated? The examples that I found on Google search used the deprecated methods.","answer_text":"Try using\nJoda Time\ninstead of standard java.... |
{"title":"Difference between fprintf, printf and sprintf?","tags":["c","io","stream","printf"],"question_text":"Can anyone explain in simple English about the differences between\n`printf`\n,\n`fprintf`\n, and\n`sprintf`\nwith examples?\nWhat stream is it in?\nI'm really confused between the three of these while readin... |
{"title":"How do I save user preferences for my iPhone app?","tags":["ios","objective-c","iphone"],"question_text":"The question title pretty much gives it away - I'd like my app to remember a few things. It's some sort of calculator, so it should save the last used values and some user selectable settings.\nBasically ... |
{"title":"New lines inside paragraph in README.md","tags":["github"],"question_text":"When editing an issue and clicking Preview the following markdown source:\n`a\nb\nc`\nshows every letter on a new line.\nHowever, it seems to me that pushing similar markdown source structure in README.md joins all the letters on one ... |
{"title":"How can I order a List<string>?","tags":["c#","string","list","order"],"question_text":"I have this List :\n`IList<string> ListaServizi = new List<string>() { };`\nhow can I order it due to the strings inside it? Alphabetic and ascending.","answer_text":"`ListaServizi =ListaServizi.OrderBy(q => q).ToList();`"... |
{"title":"How to insert values into C# Dictionary on instantiation?","tags":["c#","dictionary"],"question_text":"Does anyone know if there is a way I can insert values into a C# Dictionary when I create it? I can, but don't want to, do\n`dict.Add(int, \"string\")`\nfor each item if there is something more efficient lik... |
{"title":"How do I repeat a AVAudioPlayer?","tags":["iphone","ios4"],"question_text":"I am just wondering how you repeat a AVAudioPlayer?","answer_text":"Set the Property numberOfLoops to -1 and it would go into infinite loop.","question_code":[],"answer_code":[],"retrieval_text":"\n### TITLE:\nHow do I repeat a AVAudi... |
{"title":"Resize image in the wiki of GitHub using Markdown","tags":["github","markdown","wiki"],"question_text":"I'm writing a wiki page on GitHub, and I'm using Markdown.\nMy problem is that I'm putting a large image (this image is in its own repository) and I need resize it.\nI have tried different solutions, but th... |
{"title":"How to find all duplicate from a List<string>?","tags":["c#","list","duplicates"],"question_text":"I have a\n`List<string>`\nwhich has some words duplicated. I need to find all words which are duplicates.\nAny trick to get them all?","answer_text":"In .NET framework 3.5 and above you can use\n`Enumerable.Grou... |
{"title":"How to update column with null value","tags":["mysql","sql-update"],"question_text":"I am using mysql and need to update a column with a null value. I have tried this many different ways and the best I have gotten is an empty string.\nIs there a special syntax to do this?","answer_text":"No special syntax:\n`... |
{"title":"Xcode duplicate line","tags":["xcode4","keyboard-shortcuts","xcode5","key-bindings","duplication"],"question_text":"There\nis\na\n`Duplicate`\ncommand in the Edit Menu (with a default shortcut of\n\u00e2\u008c\u0098\nD\n), but it is (as\nHalley\npointed out) meant for duplication in the Interface Builder part... |
{"title":"how to find the vertical distance from top in px of an element using jQuery","tags":["javascript","jquery"],"question_text":"How do I find the vertical distance from the top of the page to where the element exist in the DOM using javascript\/jQuery?\nI've something like\n`<ul>\n <li>one<\/li>\n <li>one<\/li>\... |
{"title":"Why doesn't C++ have a garbage collector?","tags":["c++","garbage-collection","c++11"],"question_text":"I'm not asking this question because of the merits of garbage collection first of all. My main reason for asking this is that I do know that Bjarne Stroustrup has said that C++ will have a garbage collector... |
{"title":"Jenkins Git Plugin: How to build specific tag?","tags":["git","jenkins"],"question_text":"I am having issues getting Jenkins to build a specified tag. The tag is part of a parametrized build, but I do not know how to pass this through to the git plugin to just build that tag. This has been taking 3 hours of m... |
{"title":"How do I output raw html when using RazorEngine (NOT from MVC)","tags":["c#","razor","html-encode"],"question_text":"I am trying to generate emails with HTML content. this content has already gone through sanitation so I am not worried in that regard, however when I call:\n`Razor.Parse(template, model);`\non ... |
{"title":"c# datatable insert column at position 0","tags":["c#","datatable","insert","position"],"question_text":"does anyone know the best way to insert a column in a datatable at position 0?","answer_text":"You can use the following code to add column to Datatable at postion 0:\n`DataColumn Col = datatable.Columns.A... |
{"title":"Can you force a React component to rerender without calling setState?","tags":["reactjs","react-jsx"],"question_text":"I have an external (to the component), observable object that I want to listen for changes on. When the object is updated it emits change events, and then I want to rerender the component whe... |
{"title":"Is there a foreach in MATLAB? If so, how does it behave if the underlying data changes?","tags":["matlab","syntax"],"question_text":"Is there a foreach structure in MATLAB? If so, what happens if the underlying data changes (i.e. if objects are added to the set)?","answer_text":"MATLAB's\nFOR\nloop is static ... |
{"title":"How do I center align horizontal <UL> menu?","tags":["css","xhtml","menuitem"],"question_text":"I need to center align a horizontal menu.\nI've tried various solutions, including the mix of inline-block \/ block \/ center-align etc., but haven't succeeded.\nHere is my code:\n`<div class=\"topmenu-design\">\n ... |
{"title":"Comparing two strings, ignoring case in c#","tags":["c#","string","comparison","equals"],"question_text":"Possible Duplicate:\nWhat is difference between different string compare methods\nWhich of the following two is more efficient? (Or maybe is there a third option that's better still?)\n`string val = \"ASt... |
{"title":"System.Security.SecurityException: The source was not found, but some or all event logs could not be searched. Inaccessible logs: Security","tags":["c#","windows","windows-services"],"question_text":"I am trying to create a Windows Service, but when I try and install it, it rolls back giving me this error:\nS... |
{"title":"How do you scroll up\/down on linux server (terminal)?","tags":["linux","terminal","rhel"],"question_text":"I recognize that up\/down will give you the command history. But, how do you look at past output by scrolling up and down. I have used\n`shift+ Page Up\/Page Down`\n`alt+shift up\/down and page up\/page... |
{"title":"is there a way in Angularjs to define constants with other constants?","tags":["angularjs","angularjs-module"],"question_text":"I'm trying to define constants with other constants, but it seems that it can't be done, because the initial constant isn't ready when the required constant depending require it. I w... |
{"title":"Get the last insert id with doctrine 2?","tags":["php","orm","doctrine","lastinsertid"],"question_text":"How can I get the last insert id with doctrine 2 ORM? I didn't find this in the documentation of doctrine, is this even possible?","answer_text":"I had to use this after the flush to get the last insert id... |
{"title":"Counting null and non-null values in a single query","tags":["sql"],"question_text":"I have a table\n`create table us\n(\n a number\n);`\nNow I have data like:\n`a\n1\n2\n3\n4\nnull\nnull\nnull\n8\n9`\nNow I need a single query to count null\nand\nnot null values in column a","answer_text":"This works for Ora... |
{"title":"Restore Eclipse subversion project connection","tags":["eclipse","svn"],"question_text":"I have a project in subversion, which I'm developing using Eclipse. I did the original checkout from the svn repository from inside Eclipse. All was well for some weeks then for some unknown reason, Eclipse (specifically:... |
{"title":"Difference between class variables and class instance variables?","tags":["ruby","class-variables","class-instance-variables"],"question_text":"Can anyone tell me about the difference between class variables and class instance variables?","answer_text":"A class variable (\n`@@`\n) is shared among the class an... |
{"title":"What's the UITableView index magnifying glass character?","tags":["iphone","cocoa-touch","uitableview","icons"],"question_text":"In Apple's iPhone apps (like Contacts), they have a nice magnifying glass icon at the top of the table view index. Since the table view index API is character-based, I assume that t... |
{"title":"input() error - NameError: name '...' is not defined","tags":["python","python-2.7","python-3.x","input","nameerror"],"question_text":"I am getting an error when I try to run this simple python script:\n`input_variable = input (\"Enter your name: \")\nprint (\"your name is\" + input_variable)`\nLets say I typ... |
{"title":"C# Automatic Properties","tags":["c#","c#-3.0","automatic-properties"],"question_text":"I'm a bit confused on the point of Automatic properties in C# e.g\n`public string Forename{ get; set; }`\nI get that you are saving code by not having to declare a private variable, but what's the point of a property when ... |
{"title":"How to delete a certain row from mysql table with same column values?","tags":["mysql","delete-row"],"question_text":"I have a problem with my queries in MySQL. My table has 4 columns and it looks something like this:\n`id_users id_product quantity date\n 1 2 1 2013\n 1 2 1 2013\n 2 2 1 2013\n 1 3 1 2013`\n`i... |
{"title":"How can we restore ppc\/ppc64 as well as full 10.4\/10.5 SDK support to Xcode 4?","tags":["xcode","xcode4","universal-binary","osx-leopard","ppc"],"question_text":"Since Apple only ships SDK 10.6 with Xcode4, developing PPC applications with Xcode4 became impossible. While it is possible to develop applicatio... |
{"title":"ASP.NET MVC 3 - redirect to another action","tags":["c#","asp.net-mvc","redirect"],"question_text":"I want to redirect the Index action of the Home controller to another controller's action and nothing else. My code is thus:\n`public void Index()\n {\n \/\/All we want to do is redirect to the class selection ... |
{"title":"Which sql server data type best represents a double in C#?","tags":["c#","sql","sql-server","tsql","double"],"question_text":"Is it money, float, real, decimal,\n_____\n?","answer_text":"Answer to this and all mapping of types can be found here.\nSQL-CLR Type Mapping\nChart, stolen from that page:\nUpdated 1\... |
{"title":"How to create zebra stripes on html table without using javascript and even\/odd classes generation?","tags":["css","html-table"],"question_text":"I want to zebra-stripe a html table without using any js stuff or writing server-side code to generate even\/odd classes for table rows. Is it ever possible to do ... |
{"title":"How to find the mime type of a file in python?","tags":["python","mime"],"question_text":"Let's say you want to save a bunch of files somewhere, for instance in BLOBs. Let's say you want to dish these files out via a web page and have the client automatically open the correct application\/viewer.\nAssumption:... |
{"title":"No connection could be made because the target machine actively refused it?","tags":[".net","socketexception","system.net.webexception"],"question_text":"Sometimes I get the following error while I was doing HttpWebRequest to a WebService. I copied my code below too.\nSystem.Net.WebException: Unable to connec... |
{"title":"Debug Windows Service","tags":["c#","windows-services","debugging"],"question_text":"Scenario\nI've got a windows service written in C#.\nI've read all the google threads on how to debug it, but I still can't get it to work.\nI've run \"PathTo.NetFramework\\InstallUtil.exe C:\\MyService.exe\". It said the ins... |
{"title":"How did I get a value larger than 8 bits in size from an 8-bit integer?","tags":["c++","gcc","undefined-behavior"],"question_text":"I tracked down an extremely nasty bug hiding behind this little gem. I am aware that per the C++ spec, signed overflows are undefined behavior, but only when the overflow occurs ... |
{"title":"Auto column width in EPPlus","tags":["c#",".net","vb.net","epplus"],"question_text":"How to make columns to be auto width when texts in columns are long?\nI use this code\n`Worksheet.Column(colIndex).AutoFitColumn() 'on all columns'\n Worksheet.cells.AutoFitColumns()\n Worksheet.Column(colIndex).BestFit = Tru... |
{"title":"adding subdomain to apache2 with a2ensite causes error: ERROR: Site domain.com does not exist","tags":["apache2","subdomain"],"question_text":"I'm trying to add subdomains to my home server.\nsvn.domain.com\ntrac.domain.com\nDue to dynamic IP I use dyndns service, on top of that I have domain.com hosted somew... |
{"title":"Delete all lines beginning with a # from a file","tags":["bash","sed"],"question_text":"All of the lines with comments in a file begin with\n`#`\n. How can I delete all of the lines (and only those lines) which begin with\n`#`\n? Other lines containing\n`#`\n, but not at the beginning of the line should be ig... |
{"title":"What is float in Java?","tags":["java","floating-point"],"question_text":"I wrote this code:\n`float b = 3.6;`\nand I get this:\nError:Unresolved compilation problem: \n Type mismatch: cannot convert from double to float\nWhy? Whats the definition of\n`float`\n?","answer_text":"In Java, when you type a decima... |
{"title":"Length of an integer in Python","tags":["python","count","integer"],"question_text":"In Python, how do you find the number of digits in an integer?","answer_text":"If you want the length of an integer as in the number of digits in the integer, you can always convert it to string like\n`str(133)`\nand find its... |
{"title":"Rails Select Drop Down for States?","tags":["ruby-on-rails","ruby","drop-down-menu"],"question_text":"I was wondering if maybe there was some already built in function for rails so that it would create a select drop down list with all the U.S. states so I wouldn't have to enter it manually. I searched online ... |
{"title":"Is REST DELETE really idempotent?","tags":["http","rest","http-headers"],"question_text":"DELETE is supposed to be idempotent.\nIf I DELETE\nhttp:\/\/example.com\/account\/123\nit's going to delete the account.\nIf I do it again would I expect a 404, since the account no longer exists? What if I attempt to DE... |
{"title":"Document Directory Path of iOS 8 Beta Simulator","tags":["ios-simulator","ios8"],"question_text":"In\n`iOS 7`\n, We can go with following path to document directory\n`\/Users\/Sabo\/Library\/Application Support\/iPhone Simulator\/`\nHowever in\n`iOS 8 Beta Simulator`\n, i can't find\n`iOS 8`\nDocument Folder ... |
{"title":"Programmatically retrieve memory usage on iPhone","tags":["iphone","objective-c","cocoa-touch"],"question_text":"I'm trying to retrieve the amount of memory my iPhone app is using at anytime, programmatically. Yes I'm aware about ObjectAlloc\/Leaks. I'm not interested in those, only to know if it's possible t... |
{"title":"Faye vs. Socket.IO (and Juggernaut)","tags":["websocket","publish-subscribe","juggernaut","bayeux","socket.io"],"question_text":"Socket.IO\nseems to be the most popular and active WebSocket emulation library.\nJuggernaut\nuses it to create a complete pub\/sub system.\nFaye\nis also popular and active, and has... |
{"title":"How do I download a binary file over HTTP?","tags":["ruby","download"],"question_text":"How do I download and save a binary file over HTTP using Ruby?\nThe URL is\n`http:\/\/somedomain.net\/flv\/sample\/sample.flv`\n.\nI am on the Windows platform and I would prefer not to run any external program.","answer_t... |
{"title":"Is there any git hook for pull?","tags":["git","hook","gettext"],"question_text":"I need to perform some actions (prepare gettext *.mo message files) on my project everytime I run\n`git pull`\n. Is there any suitable git hook, which I could use for this purpose please?","answer_text":"The\n`githooks`\nman pag... |
{"title":"Turning a Comma Separated string into individual rows","tags":["sql-server","tsql"],"question_text":"I have a SQL Table like this:\n`| SomeID | OtherID | Data\n+----------------+-------------+-------------------\n| abcdef-..... | cdef123-... | 18,20,22\n| abcdef-..... | 4554a24-... | 17,19\n| 987654-..... | 1... |
{"title":"'Use of Unresolved Identifier' in Swift","tags":["ios","xcode","swift"],"question_text":"So I have been making an app, and everything has been working great. But today I made a new class like usual and for some reason in this class I can't access Public\/Global variable from other classes. All the other class... |
{"title":"Python documentation generator","tags":["python","documentation","javadoc","doxygen"],"question_text":"I'm looking for a documentation generator for Python. I'm familiar with\n`javadoc`\n, and I tried\n`Doxygen`\n, but it seems quite unfit and counter-intuitive for Python.\nAny ideas?\nEDIT\n: Apart from the ... |
{"title":"Is it possible to make anonymous inner classes in Java static?","tags":["java","syntax","inner-classes"],"question_text":"In Java, nested classes can be either\n`static`\nor not. If they are\n`static`\n, they do not contain a reference to the pointer of the containing instance (they are also not called inner ... |
{"title":"How to size an Android view based on its parent's dimensions","tags":["android","layout"],"question_text":"How can I size a view based on the size of its parent layout. For example I have a\n`RelativeLayout`\nthat fills the full screen, and I want a child view, say an\n`ImageView`\n, to take up the whole heig... |
{"title":"Adding lib to 'config.autoload_paths' in Rails 3 does not autoload my module","tags":["ruby-on-rails"],"question_text":"I place a file name g.rb in side\n`Rails.root\/lib`\nfolder\nThe file content is like this:\n`module Google\nend`\nThen I add\n`config.autoload_paths += %W(#{config.root}\/lib #{Rails.root}\... |
{"title":"Secure Web Services: REST over HTTPS vs SOAP + WS-Security. Which is better?","tags":["web-services","security","rest","soap"],"question_text":"I'm not a security expert by any means, but I favor creating REST-style web services.\nIn creating a new service which needs to have the data it transmits secure. We'... |
{"title":"What is the purpose of Flask's context stacks?","tags":["python","flask"],"question_text":"I've been using the request\/application context for some time without fully understanding how it works or why it was designed the way it was. What is the purpose of the \"stack\" when it comes to the request or applica... |
{"title":"How can I append text to \/etc\/apt\/sources.list from the command line?","tags":["bash"],"question_text":"I am new to linux, and just beginning to learn bash. I am using Ubuntu 9.04, and would like to add repositories to \/etc\/apt\/sources.list from the command line. Basically, I would like to do this:\n`su... |
{"title":"Error handling with node.js streams","tags":["node.js","stream"],"question_text":"What's the correct way to handle errors with streams? I already know there's an 'error' event you can listen on, but I want to know some more details about arbitrarily complicated situations.\nFor starters, what do you do when y... |
{"title":"How do I get the user agent with Flask?","tags":["python","flask"],"question_text":"I'm trying to get access to the user agent with Flask, but I either can't find the documentation on it, or it doesn't tell me.","answer_text":"`from flask import request\nrequest.headers.get('User-Agent')`\nYou can also use th... |
{"title":"What is the memory consumption of an object in Java?","tags":["java","memory","footprint"],"question_text":"Is the memory space consumed by one object with 100 attributes the same as that of 100 objects, with one attribute each?\nHow much memory is allocated for an object?\nHow much additional space is used w... |
{"title":"UIRefreshControl - beginRefreshing not working when UITableViewController is inside UINavigationController","tags":["ios","objective-c","uitableview","uinavigationcontroller","uirefreshcontrol"],"question_text":"I've setup a UIRefreshControl in my UITableViewController (which is inside a UINavigationControlle... |
{"title":"rails server bin\/rails:6: warning: already initialized constant APP_PATH error","tags":["ruby-on-rails"],"question_text":"I've tried a number of things like uninstalling\/reinstalling rails and gems but to no avail.\nWhen I go into my new project and run rails s or bundle exec rails server I'm getting this e... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.