text stringlengths 74 309k |
|---|
{"title":"Concatenate string with field value in MySQL","tags":["php","mysql","sql","concatenation"],"question_text":"I have the need to concatenate a string with a field value in a MySQL query in order to LEFT JOIN two tables.\nTable one has a column called \"category_id\" with numeric values, such as 61, 78, 94 and s... |
{"title":"Generate documentation for TypeScript?","tags":["typescript","documentation-generation"],"question_text":"Are there any tools for generating documentation for TypeScript source code? Or should I use something generic like NaturalDocs? What would be the recommended style of the block comments \/ those intended... |
{"title":"Using JQuery hover with HTML image map","tags":["javascript","jquery","hover","imagemap"],"question_text":"I have a complicated background image with a lot of small regions that need rollover illustration highlights, along with additional text display and associated links for each one. The final illustration ... |
{"title":"Font Awesome icon inside text input element","tags":["html","css","fonts","font-awesome"],"question_text":"I am trying to insert a user icon inside username input field.\nI've tried one of the solution from the\nsimilar question\nknowing that\n`background-image`\nproperty won't work since\nFont Awesome\nis a ... |
{"title":"how to remove the bold from a headline?","tags":["css","xhtml"],"question_text":"I have a headline:\n`<h1>THIS IS A HEADLINE<\/h1>`\nHow do i make the phrase \"THIS IS...\" not to be bold and the rest without a change?\ncouldn't find any relevent tag in text-decoration.","answer_text":"The heading looks bold ... |
{"title":"Javascript IE detection, why not use simple conditional comments?","tags":["javascript","internet-explorer","browser-detection","conditional-comments"],"question_text":"In order to detect IE most Javascript libaries do all sort of tricks.\njQuery seem to add a temporary object into your pages's DOM to detect ... |
{"title":"PHP Function Comments","tags":["php","function","comments","format","phpdoc"],"question_text":"Just a quick question: I've seen that some PHP functions are commented at the top, using a format that is unknown to me:\n`\/**\n *\n * Convert an object to an array\n *\n * @param object $object The object to conve... |
{"title":"ios7 UITableViewCell selectionStyle won't go back to blue","tags":["uitableview","ios7"],"question_text":"Xcode 5.0, iOS 7 and updating an existing app.\n`UITableView`\nselected row is now gray, not blue.\nFrom what I've read they changed the default\n`selectionStyle`\nto gray. But \"Blue\" is still an option... |
{"title":"lock keyword in C#","tags":["c#","multithreading","design-patterns","locking"],"question_text":"I understand the main function of the lock key word from MSDN\nlock Statement (C# Reference)\nThe lock keyword marks a statement\n block as a critical section by\n obtaining the mutual-exclusion lock\n for a given ... |
{"title":"Validate Before Destroy","tags":["ruby-on-rails","validation"],"question_text":"I have three classes: School, Account, and Administratorship.\nSchool\nhas_many :administatorships\nhas_many :administrators, :through => :administratorships\nAccount\nhas_many :administratorships\nAdministratorship\n`belongs_to :... |
{"title":"There is no South database module 'south.db.postgresql_psycopg2' for your database","tags":["python","django","django-south"],"question_text":"i new to django and I'm getting this error from south but i don't know what i'm missing. I search for answers but i can't found anything.\n`There is no South database ... |
{"title":"com.android.ddmlib.SyncException: Too many open files","tags":["android","file"],"question_text":"When I attempt to run my application in Eclipse on my device, I've started getting alot of\n`com.android.ddmlib.SyncException: Too many open files`\nexceptions\/errors in the console.\nWhy is this and what does i... |
{"title":"What is the deal with the pony in Python community?","tags":["python","django","pony"],"question_text":"Pony references are in several places:\nhttp:\/\/www.mail-archive.com\/python-dev@python.org\/msg44751.html\nhttp:\/\/pypi.python.org\/pypi\/django-pony\/\nhttp:\/\/djangopony.com\/\nIs there a cultural ref... |
{"title":"How can I use Spring Security without sessions?","tags":["spring","spring-security","load-balancing","amazon-ec2"],"question_text":"I am building a web application with Spring Security that will live on Amazon EC2 and use Amazon's Elastic Load Balancers. Unfortunately, ELB does not support sticky sessions, so... |
{"title":"Re-open files in Python?","tags":["python","file"],"question_text":"Say I have this simple python script:\n`file = open('C:\\\\some_text.txt')\nprint file.readlines()\nprint file.readlines()`\nWhen it is run, the first print prints a list containing the text of the file, while the second print prints a blank ... |
{"title":"How to return a view for HttpNotFound() in ASP.Net MVC 3?","tags":["asp.net","asp.net-mvc-3"],"question_text":"Is there a way to return the same view every time a HttpNotFoundResult is returned from a controller? How do you specify this view? I'm guessing configuring a 404 page in the web.config might work, b... |
{"title":"Android - can I increase the textSize for the NumberPicker widget?","tags":["android","android-3.0-honeycomb"],"question_text":"We got a NumberPicker widget in 3.0, but it seems that the textSize for this widget can't be modified. Am I missing something or is this the case? I'd really like to increase the fon... |
{"title":"Is there a way to make git remember the password for WebDAV remotes?","tags":["git","passwords"],"question_text":"I'm working with Git pushing changes to a repository shared over HTTP \/ WebDAV, and Git prompts for a password for every operation that accesses the HTTP remote. Is there any way to make Git cach... |
{"title":"str_replace in SQL UPDATE?","tags":["sql","mysql","string"],"question_text":"Here's a sample table:\n`name | picture\nJohn S. | http:\/\/servera.host.com\/johns.png\nLinda B. | http:\/\/servera.host.com\/lindab.png\n...`\nLet's say there are several hundred more records.\nLet's also say we moved servers from ... |
{"title":"Relative Paths Not Working in Xcode C++","tags":["c++","xcode","osx","path"],"question_text":"There are numerous post over the net that detail how relative paths don't work in Xcode. I do have an Xcode template that I downloaded where the relative paths DO work, however I have not been able to figure out why ... |
{"title":"SQL Script to alter ALL Foreign Keys to add ON DELETE CASCADE","tags":["sql","sql-server","sql-server-2005"],"question_text":"I have a SQL 2005 database with approx 250 tables.\nI want to temporarily enable ON DELETE CASCADE to all of the Foreign Keys so that I can do a bulk delete easily.\nI then want to tur... |
{"title":"SQL Stored Procedure set variables using SELECT","tags":["sql-server-2005","stored-procedures","select"],"question_text":"I have a stored procedure in SQL Server 2005 with multiple variables and I want to set the values of these variables using a select statement. All three variables come from a same table an... |
{"title":"Pandas DataFrame - Find row where values for column is maximal","tags":["python","pandas"],"question_text":"How can I find the row for which the value of a specific column is maximal?\n`df.max()`\nwill give me the maximal value for each column, I don't know how to get the corresponding row.","answer_text":"Yo... |
{"title":"What is the difference between the Eclipse Package Explorer and the Eclipse Project Explorer?","tags":["eclipse"],"question_text":"It seems to me these two views are virtually identical, especially since Galileo. Is this true, or am I missing out on some features of one or the other?","answer_text":"According... |
{"title":"How to define a variable in apache's httpd.conf file?","tags":["apache"],"question_text":"I want to define a variable in Apache server's\n`httpd.conf`\nconfiguration file.\nEx: variable static_path =\n`C:\\codebase\\snp_static`\nand I want to use this variable (static_path) in\n`httpd.conf`\nwhere ever requir... |
{"title":"How can I create a group footer in a WPF ListView ( GridView )","tags":["wpf",".net-3.5","styles"],"question_text":"I have a ListView that displays sales orders, and groups them by status. In WinForms I had a footer at the bottom of each group that displayed the Total sale price for each group, and I would li... |
{"title":"Nested \"E\" directives - Multiple directives [...] asking for new\/isolated scope","tags":["angularjs","angularjs-directive"],"question_text":"Problem nesting isolated scope directives.\nHi, I want to nest two \"E\" isolated scoped directives, like in\nthis fiddle\n.\n(To actually reproduce the problem, you ... |
{"title":"JTable Scrolling to a Specified Row Index","tags":["java","swing","jtable","jscrollpane"],"question_text":"I have a JTable that is within a\n`JScrollPane.`\nRows are added to the table at runtime based on events that happen in my application. I want to have the scoll pane scroll to the bottom of the table whe... |
{"title":"set title color for UIButton when highlighted iOS 7","tags":["ios","iphone","objective-c","uibutton","ios7"],"question_text":"I have the following code in a viewController, all the outlets and action are hooked up correctly. the\n`WHITE`\nand\n`PURPLE`\nare UIColors that I've defined constants for. I've also ... |
{"title":"Spring DAO vs Spring ORM vs Spring JDBC","tags":["spring","spring-data","spring-jdbc","spring-orm"],"question_text":"I was going through data access technologies supported by Spring, and I noticed that it mentions multiple options and I am not sure about the difference among them:\nSpring-DAO (\nhttp:\/\/docs... |
{"title":"JavaScript not running on jsfiddle.net","tags":["javascript","html","jsfiddle"],"question_text":"The code below works on a live site but I can't get it to run on the site\njsfiddle\n.\nSee\nthis\nfor example.\nCan anyone tell me why it's not working on\njsfiddle\n?\nOn the console it logs:\n`ReferenceError: f... |
{"title":"Is there a REAL performance difference between INT and VARCHAR primary keys?","tags":["mysql","performance","primary-key","innodb","myisam"],"question_text":"Is there a measurable performance difference between using INT vs. VARCHAR as a primary key in MySQL? I'd like to use VARCHAR as the primary key for ref... |
{"title":"How does Python sort a list of tuples?","tags":["python"],"question_text":"Empirically, it seems that Python's default list sorter, when passed a list of tuples, will sort by the first element in each tuple. Is that correct? If not, what's the right way to sort a list of tuples by their first elements?","answ... |
{"title":"in angularjs how to access the element that triggered the event?","tags":["javascript","angularjs"],"question_text":"I use both Bootstrap and AngularJS in my web app. I'm having some difficulty getting the two to work together.\nI have an element, which has the attribute\n`data-provide=\"typeahead\"`\n`<input... |
{"title":"A datetime equivalent in java.sql ? (is there a java.sql.datetime ?)","tags":["java","mysql","sql","datetime","jdbc"],"question_text":"So far, I have not found a clear answer to this.\nI'd like to know what the equivalent is for a SQL type DATETIME and the java type, using a PreparedStatement.\nI have found:\... |
{"title":"How to force keyboard with numbers in mobile website in Android","tags":["android","html","webview","keyboard","html-input"],"question_text":"I have a mobile website and it has some HTML\n`input`\nelements in it, like this:\n`<input type=\"text\" name=\"txtAccessoryCost\" size=\"6\" \/>`\nI have embedded the ... |
{"title":"Android Studio - Where can I see callstack while debugging an android app?","tags":["android","debugging","android-studio","callstack"],"question_text":"While on a break point, how do I see the call stack to find the callee method\/function?","answer_text":"Seems like there is an UI-Bug in the Android Studio ... |
{"title":"match_parent width does not work in RecyclerView","tags":["android","android-recyclerview"],"question_text":"My RecyclerView and item has match_parent width but the result is :\n`<view\n class=\"android.support.v7.widget.RecyclerView\"\n android:layout_width=\"match_parent\"`\nand items:\n`<LinearLayout xmlns... |
{"title":"How do I get the filepath for a class in Python?","tags":["python","class","introspection"],"question_text":"Given a class C in Python, how can I determine which file the class was defined in? I need something that can work from either the class C, or from an instance off C.\nThe reason I am doing this, is be... |
{"title":"unix - count of columns in file","tags":["linux","bash","shell","unix","scripting"],"question_text":"Given a file with data like this (ie stores.dat file)\n`sid|storeNo|latitude|longitude\n2|1|-28.03720000|153.42921670\n9|2|-33.85090000|151.03274200`\nWhat would be a command to outpout the number of column na... |
{"title":"How do I get a Date without time in Java?","tags":["java","date"],"question_text":"Continuing from this discussion:\njava program to get the current date without timestamp\nWhat is the most efficient way to get a Date object without the time? Is there any other way than these two?\n`\/\/method 1\nSimpleDateFo... |
{"title":"Xcode 5 crashes -- Xcode quit unexpectedly","tags":["ios","xcode","osx","xcode5"],"question_text":"Xcode 5 from the App Store crashes when I select any file in the Project Navigator or when I try to edit it. I have deleted all plugins and the derived data for the app and it keeps crashing.\nDoes anyone know h... |
{"title":"How to create md5 hash in bash in Mac OS X","tags":["osx","bash","cryptography"],"question_text":"How can you create an md5 hash for a string on a mac using\n`bash`\n?\n`md5sum`\ndoes not exist in my environment. I did a\n`man`\nfor md5 but I'm confused about what that really does.\n`md5 \"string\"`\ndoes not... |
{"title":"Custom form validation","tags":["django","django-forms","django-validation"],"question_text":"I have a pretty simple form:\n`from django import forms\nclass InitialSignupForm(forms.Form):\n email = forms.EmailField()\n password = forms.CharField(max_length=255, widget = forms.PasswordInput)\n password_repeat ... |
{"title":"Restricting file types in JQuery File upload demo","tags":["jquery","codeigniter","file-upload","blueimp"],"question_text":"I am using\nJQuery file upload demo\nfor my next project with Codeigniter. Can anyone tell me how do I achieve the following :\nRestricting upload file types to .zip and .rar\nRestrictin... |
{"title":"Easier way to get view's Id (string) by its Id (int)","tags":["android"],"question_text":"I'm new with android and java, so sorry if it's a too basic question but I've tried to find a solution in the forums and google and I couldn't.\nI have 24 buttons in my layout, all these buttons do something similar so I... |
{"title":"What does \"rep; nop;\" mean in x86 assembly?","tags":["assembly","x86","cpu","x86-64"],"question_text":"What does\n`rep; nop`\nmean?\nIs it the same as\n`pause`\ninstruction?\nIs it the same as\n`rep nop`\n(without the semi-colon)?\nWhat's the difference to the simple\n`nop`\ninstruction?\nDoes it behave dif... |
{"title":"HttpUtility.UrlEncode in Windows Phone 7?","tags":["c#","silverlight","windows-phone-7"],"question_text":"The regular .Net framework contains HttpUtility.UrlEncode in the System.Web Assembly and in Silverlight it appears it was moved to System.Windows.Browser. But in Windows Phone 7 (which I thought was the s... |
{"title":"git push local branch with same name as remote tag","tags":["git","git-branch"],"question_text":"I'm trying to push a new local branch\n`product-0.2`\nto remote where there is already a tag with the same name (but the branch itself does not exist)\n`git push -v --tags --set-upstream origin product-0.2:product... |
{"title":"How do I quit a mac application programmatically?","tags":["objective-c","cocoa","osx"],"question_text":"I need to add a quit-button to my application that runs from the menubar in mac.\nHow do I programmatically quit an application in mac?","answer_text":"There is a simpler form to quit from code:\n`[NSApp t... |
{"title":"Entity Framework mergeoption notracking bad performance","tags":["entity-framework","entity-framework-4","linq-to-entities"],"question_text":"I have a strange behavior trying to execute a query declaring ObjectQuery MergeOption to \"NoTracking\", in this case entity framework should not attach any entity and ... |
{"title":"Implement a REST API in a Grails app","tags":["web-services","api","rest","grails","grails-2.0"],"question_text":"I was wondering what would be the best approach to make a Grails app offer a\nRESTful API\n(some CRUD actions mainly) that can be used by a web service, e.g. when you want to build a corresponding... |
{"title":"Multi line preprocessor macros","tags":["c++","c","c-preprocessor"],"question_text":"How to make multi line preprocessor macro? I know how to make one line:\n`#define sqr(X) (X*X)`\nbut I need something like this:\n`#define someMacro(X)\n class X : public otherClass\n {\n int foo;\n void doFoo();\n };`\nHow c... |
{"title":"Where are .NET 4.0 MemoryCache performance counters?","tags":["c#",".net","caching",".net-4.0","memorycache"],"question_text":"Where are .NET 4.0 MemoryCache performance counters?\nI am looking for their name and I can't find any.\nThank you,","answer_text":"That's a loaded question with a very long answer. I... |
{"title":"What is wikipedia pageid? how to change it into real page url?","tags":["wikipedia","wikipedia-api"],"question_text":"I'm studying the wikipedia API,\nsome demo api call\nWhat is the pageid? How do I change it into a real page url?\nI mean\n`<page pageid=\"18630637\" ns=\"0\" title=\"Translation\" \/>`\n, how... |
{"title":"What does this mean? \"Parse error: syntax error, unexpected T_PAAMAYIM_NEKUDOTAYIM\"","tags":["php"],"question_text":"T_PAAMAYIM_NEKUDOTAYIM sounds really exotic, but most certainly absolutely nonsense to me. I traced it all down to this lines of code:\n`<?php\nClass Context {\n protected $config;\n public f... |
{"title":"laravel eloquent lists - Sorting A List Of Column Values","tags":["laravel","eloquent"],"question_text":"Using laravel and I'm creating a select box on a form. I've been using the helper to create the select box and all is working fine.\nI retrieve the data for the select box from a database and use the follo... |
{"title":"Best way to update data with a RecyclerView adapter","tags":["android","listview","recyclerview","android-adapter"],"question_text":"When I have to use a classic adapter with a\nListView\n, I update my data in the ListView like this:\n`myAdapter.swapArray(data);\npublic swapArray(List<Data> data) {\n clear();... |
{"title":"Printing object properties in Powershell","tags":["powershell"],"question_text":"When working in the interactive console if I define a new object and assign some property values to it like this:\n`$obj = New-Object System.String\n$obj | Add-Member NoteProperty SomeProperty \"Test\"`\nThen when I type the name... |
{"title":"Chrome Development Tool: [VM] file from javascript","tags":["debugging","google-chrome-devtools"],"question_text":"I added a breakpoint in my javascript file (jaydata.js) and was pressing \"Step over to the next function call.\"\nWhen it got to a line that was:\n`},`\nanother file titled \"[VM] (8312)\" poppe... |
{"title":"Why we do create object instance from Interface instead of Class?","tags":["c#","class","interface","derived-class"],"question_text":"I have seen many times an Interface instance generated from a class.Why does use an Interface in this wise?An Interface instance created only itself with the help of the derive... |
{"title":"encapsulation vs abstraction real world example","tags":["oop","programming-languages"],"question_text":"For an example of encapsulation i can think of the interaction between a user and a mobile phone. The user does not need to know the internal working of the mobile phone to operate, so this is called abstr... |
{"title":"Gradle, Android and the ANDROID_HOME SDK location","tags":["android","gradle","android-build","android-gradle"],"question_text":"edit: (aug-2016)\nThat question is from November 2013 (while Android Studio was still in Developer Preview mode),\nCurrently (AS v2.2, Aug-2016) during instalation AS asks to choose... |
{"title":"AngularJS: How to send auth token with $resource requests?","tags":["javascript","authentication","angularjs"],"question_text":"I want to send an auth token when requesting a resource from my API.\nI did implement a service using $resource:\n`factory('Todo', ['$resource', function($resource) {\n return $resou... |
{"title":"jQuery: value.attr is not a function","tags":["javascript","jquery"],"question_text":"I have this snipped in my page:\n`$('#category_sorting_form_save').click(function(){\n var elements = $(\"#category_sorting_elements > div\");\n $.each(elements, function(key, value) {\n console.info(key,\" : \",value);\n co... |
{"title":"A 'simple' way to implement Swagger in a Spring MVC application","tags":["spring","spring-mvc","swagger"],"question_text":"I have honestly Google-searched this enough before putting this question here. I have a ReSTFul API written in simple Spring (no Spring Boot, no fancy stuff!). I need to implement Swagger... |
{"title":"How do I Alter Table Column datatype on more than 1 column?","tags":["mysql","alter-table"],"question_text":"For example:\n`ALTER TABLE webstore.Store MODIFY COLUMN (\n ShortName VARCHAR(100),\n UrlShort VARCHAR(100)\n);`\nThe above however does not work. I am using MySql 5.x","answer_text":"`ALTER TABLE`\nca... |
{"title":"Android get date before 7 days (one week)","tags":["java","android","date"],"question_text":"How to get date before one week from now in android in this format:\n`SimpleDateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");`\nex: now\n`2010-09-19 HH:mm:ss`\n, before one week\n`2010-09-12 HH:mm... |
{"title":"Use of MBProgressHUD Globally + make it singleton","tags":["iphone","ios","singleton","mbprogresshud"],"question_text":"In my Project, each of the user interaction events make a network call (Which is TCP, not HTTP). I need Activity Indicator to be global to\nshow\nfrom a random\n`UIViewController`\nand\nhide... |
{"title":"How to get Visual Studio 'Publish' functionality to include files from post build event?","tags":["asp.net","visual-studio-2010","build-process","publishing","msdeploy"],"question_text":"I am currently attempting to use Visual Studio 2010 'Publish' and MSDeploy functionality to handle my web deployment needs ... |
{"title":"Bash Templating: How to build configuration files from templates with Bash?","tags":["bash","templates","templating"],"question_text":"I'm writing a script to automate creating configuration files for Apache and PHP for my own webserver. I don't want to use any GUIs like CPanel or ISPConfig.\nI have some temp... |
{"title":"How would you parse a url in Ruby to get the main domain?","tags":["ruby-on-rails","ruby","parsing","url","dns"],"question_text":"I want to be able to parse any url with ruby to get the main part of the domain without the\n`www`\n(just the XXXX.com)","answer_text":"Please note\nthere is no algorithmic method ... |
{"title":"Creating a percentage based iOS layout","tags":["ios","interface-builder","iphone-5"],"question_text":"I'm trying to replicate a layout that I currently have in an Android application, but I don't know how to go about it in iOS especially because of the tallness of the iPhone 5.\nI know how to explain this in... |
{"title":"XPath to find elements that does not have an id or class","tags":["xpath"],"question_text":"How can I get all tr elements without id attribute?\n`<tr id=\"name\">...<\/tr>\n<tr>...<\/tr>\n<tr>...<\/tr>`\nThanks","answer_text":"Pretty straightforward:\n`\/\/tr[not(@id) and not(@class)]`\nThat will give you all... |
{"title":"MediaPlayer stutters at start of mp3 playback","tags":["android","audio","android-mediaplayer","playback"],"question_text":"I've been having a problem playing an mp3 file stored in a raw resource: when the file first starts playing, it generates perhaps a quarter of a second of sound and then restarts. (I kno... |
{"title":"Is it possible to alias a branch in Git?","tags":["svn","git","version-control","build-automation"],"question_text":"I am looking into using git on a massive scale. I was hoping to increase adoption and make things easier by calling the master branch trunk.\nThis can and will give SVN users some feelings of c... |
{"title":"How to start\/ launch application at boot time Android","tags":["android","android-activity","launcher","launching-application"],"question_text":"I would like to launch my app when my tablet starts, so that the main activity of my app is the first thing that the user see when they start the tablet.\nI've read... |
{"title":"Restore maven plugin for a project on eclipse","tags":["eclipse","m2eclipse"],"question_text":"I've disabled m2eclipse plugin for a project by clicking on \"Disable Maven Nature\" as shown in the Figure below. Then the Maven entry disappeared from the menu and I'm unable to restore it.\nHow do I restore\/rese... |
{"title":"UITextView ruled line background but wrong line height","tags":["iphone","objective-c","uitextview"],"question_text":"I have a UITextView where the user can create notes and save into a plist file.\nI want to be able to show lines just like a normal notebook. The problem I have is\nthat the text won't align p... |
{"title":"Difference between REST and WebServices","tags":["asp.net","web-services","rest","soap"],"question_text":"What is difference between REST and WebService (SOAP), I looked at the facebook api, they use HTTP headers and some parameters (probably xml or non) and return result in xml, where else SOAP does exactly ... |
{"title":"Difference between size_t and std::size_t","tags":["c++","size-t"],"question_text":"What are the differences between\n`size_t`\nand\n`std::size_t`\nin terms of where they are declared, when they should be used and any other differentiating features?","answer_text":"C's\n`size_t`\nand C++'s\n`std::size_t`\nare... |
{"title":"How to serialize only the ID of a child with Jackson","tags":["java","json","serialization","jackson"],"question_text":"Is there a built-in way to only serialize the id of a child when using Jackson (fasterxml.jackson 2.1.1)? We want to send an\n`Order`\nvia REST which has a\n`Person`\nreference. The person o... |
{"title":"Generator as function argument","tags":["python","python-2.7","syntax","generator-expression"],"question_text":"Can anyone explain why passing a generator as the only positional argument to a function seems to have special rules?\nIf we have:\n`>>> def f(*args):\n>>> print \"Success!\"\n>>> print args`\nThis ... |
{"title":"What specifically are wall-clock-time, user-cpu-time, and system-cpu-time in UNIX?","tags":["unix","operating-system"],"question_text":"I can take a guess based on the names, but what specifically are wall-clock-time, user-cpu-time, and system-cpu-time in UNIX?\nIs user-cpu time the amount of time spent execu... |
{"title":"Android spinner with date picker, like Google Calendar app","tags":["android","android-4.0","android-spinner","android-datepicker"],"question_text":"I'm trying to get a text box that looks like a spinner to activate a date picker dialog. This is done in both the Google Calendar app and the Contacts app (for b... |
{"title":"Java: how do I check if a Date is within a certain range?","tags":["java","date"],"question_text":"I have a series of ranges with start dates and end dates. I want to check to see if a date is within that range.\nDate.before() and Date.after() seem to be a little awkward to use. What I really need is somethin... |
{"title":"Current Year in ASP.NET MVC 3","tags":[".net","asp.net-mvc-3","razor"],"question_text":"I want to add Copyright @ 'current_year' to the footer (in cshtml file) of my page. I often made it using javascript but since I am using ASP.NET MVC 3 I would like to do this using ASP.\nI was trying construction like:\n`... |
{"title":"What's your favorite cross domain cookie sharing approach?","tags":["session","cookies","cross-domain","sharing"],"question_text":"I see iframe\/p3p trick is the most popular one around, but I personally don't like it because javascript + hidden fields + frame really make it look like a hack job. I've also co... |
{"title":"Possible to add MIME type to web.config without possibly breaking the site?","tags":["asp.net","iis","iis-7"],"question_text":"I had a web.config in one of the websites on my IIS that was adding a support for .7z file extension. When I later added a global .7z support at the server level, this site was broken... |
{"title":"Natural Language Processing in Ruby","tags":["ruby","artificial-intelligence","nlp"],"question_text":"I'm looking to do some sentence analysis (mostly for twitter apps) and infer some general characteristics. Are there any good natural language processing libraries for this sort of thing in Ruby?\nSimilar to\... |
{"title":"How to get few lines from a .gz compressed file without uncompressing","tags":["gzip","gunzip","zcat"],"question_text":"How to get the first few lines from a gziped file ?\nI tried zcat, but its throwing an error\n`zcat CONN.20111109.0057.gz|head\nCONN.20111109.0057.gz.Z: A file or directory in the path name ... |
{"title":"Delete Github commit history","tags":["git","github"],"question_text":"Is there anyway for me to delete my github commit history? I don't want to lose all my commits, just the last 10 or so that were pushed to github. I can't seem to figure out how to do this.","answer_text":"Just pick the hash you want to go... |
{"title":"The method getSystemService(String) is undefined for the type Listen","tags":["android"],"question_text":"I'm trying to check if com.android.music is running and I'm getting the following error on this line\n`this.getSystemService(Context.ACTIVITY_SERVICE);`\nerror:\nThe method getSystemService(String) is und... |
{"title":"Why does the Contains() operator degrade Entity Framework's performance so dramatically?","tags":["performance","entity-framework-4","contains"],"question_text":"UPDATE 3: According to\nthis announcement\n, this has been addressed by the EF team in EF6 alpha 2.\nUPDATE 2: I've created a suggestion to fix this... |
{"title":"How can I get a file's permission mask?","tags":["python","file"],"question_text":"How can I get a file's permission mask like 644 or 755 on *nix using python?\nIs there any function or class for doing that?\nCould you guys help me out? Thank you very much!","answer_text":"`os.stat`\nis a wrapper around the\n... |
{"title":"Difference between Unchecked exception or runtime exception","tags":["java","exception","unchecked-exception"],"question_text":"This was an interview question. What is the main difference between unchecked exception and error as both are not caught? They will terminate the program.","answer_text":"As stated b... |
{"title":"How do I dispatch_sync, dispatch_async, dispatch_after, etc in Swift 3?","tags":["swift","grand-central-dispatch","dispatch-async","swift3","libdispatch"],"question_text":"I have lots of code in Swift 2.x (or even 1.x) projects that looks like this:\n`\/\/ Move to a background thread to do some long running w... |
{"title":"initialize a const array in a class initializer in C++","tags":["c++","initialization","c++03","array-initialize"],"question_text":"I have the following class in C++:\n`class a {\n const int b[2];\n \/\/ other stuff follows\n \/\/ and here's the constructor\n a(void);\n}`\nThe question is, how do I initialize... |
{"title":"Safe ActiveRecord like query","tags":["ruby","activerecord","ruby-on-rails-4"],"question_text":"I'm trying to write LIKE query.\nI read that pure string quires aren't safe, however I couldn't find any documentation that explain how to write safe LIKE Hash Query.\nIs it possible? Should I manually defend again... |
{"title":"What are the common undefined\/unspecified behavior for C that you run into?","tags":["c","compiler-construction"],"question_text":"An example of unspecified behavior in the C language is the order of evaluation of arguments to a function. It might be left to right or right to left, you just don't know. This ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.