text stringlengths 74 309k |
|---|
{"title":"Asp.Net MVC how to get view to generate PDF","tags":["asp.net-mvc","pdf"],"question_text":"I would like to call an action on a controller. Have the controller get the data from the model. The view then runs and generates a PDF. The only example I have found is in an article by Lou\nhttp:\/\/whereslou.com\/200... |
{"title":"Running django tutorial tests fail - No module named polls.tests","tags":["python","django","django-unittest"],"question_text":"I'm playing with django 1.6 tutorial but i can't run tests.\nMy project (name mydjango) and app structure (name is polls) are as shown below in a virtualenv. (.nja files are just cre... |
{"title":"How do I convert an HttpRequest into an HttpRequestBase object?","tags":["asp.net-mvc","httprequest"],"question_text":"My problem is the opposite of this:\nHow do I convert an HttpRequestBase into an HttpRequest object?\nIn my ASP.NET MVC application I have a method used by many controllers that receive an Ht... |
{"title":"Why should eval be avoided in Bash, and what should I use instead?","tags":["bash","eval"],"question_text":"Time and time again, I see Bash answers on Stack\u00a0Overflow using\n`eval`\n--and the answers get bashed, pun intended, for the use of such an \"evil\" construct. Why is\n`eval`\nso evil?\nIf\n`eval`\... |
{"title":"Why is it not advisable to have the database and web server on the same machine?","tags":["database","security","networking","infrastructure","hardware-infrastructure"],"question_text":"Listening to Scott Hanselman's interview with the Stack Overflow team (\npart 1\nand\n2\n), he was adamant that the SQL serv... |
{"title":"What is the equivalent of JavaScript's encodeURIcomponent in PHP?","tags":["php","javascript","encoding","encodeuricomponent"],"question_text":"What is the equivalent of JavaScript's encodeURIcomponent in PHP?","answer_text":"Try\n`rawurlencode`\n. Or to be more precise:\n`function encodeURIComponent($str) {\... |
{"title":"What's the difference between a word and byte?","tags":["memory","assembly","hardware"],"question_text":"I've done some research.\nA byte is 8 bits and a word is the smallest unit that can be addressed on memory. The exact length of a word varies. What I don't understand is what's the point of having a byte? ... |
{"title":"How to create a completely custom Dialogue\/Popup in Android (change overlay colour and dialogue window layout)","tags":["android","dialog","popup","overlay"],"question_text":"I would like to completely re-skin the default dialogue component in Android. Specifically I would like to do this:\nChange the semi-t... |
{"title":"How to get domain URL and application name?","tags":["jsp","base-url"],"question_text":"Here's the scenario.\nMy Java web application has following path\n`https:\/\/www.mywebsite.com:9443\/MyWebApp`\nLet's say there is a JSP file\n`https:\/\/www.mywebsite.com:9443\/MyWebApp\/protected\/index.jsp`\nand I need ... |
{"title":"C# - Making a Process.Start wait until the process has start-up","tags":["c#",".net","windows","process"],"question_text":"I need to make sure that a process is running before moving on with a method.\nThe statement is:\n`Process.Start(\"popup.exe\");`\nCan you do a WAIT command or set a delay on this value?"... |
{"title":"How to line up labels and read-only fields in a Bootstrap form","tags":["twitter-bootstrap"],"question_text":"In bootstrap 2, what's\nthe recommended way\nof lining up labels and read-only text fields\nin a form\n. The following code sample creates misaligned fields:\n`<form class=\"form-horizontal\">\n <fiel... |
{"title":"How to make Bootstrap Panel body with fixed height","tags":["html","css","twitter-bootstrap","twitter-bootstrap-3"],"question_text":"I am using bootstrap's\n`panel`\nto display text and image, but as the text grows, the body of the panel also increases. I want to know how to create the body with fixed height,... |
{"title":"Instantiate an object with a runtime-determined type","tags":["c#",".net","design-patterns","runtime"],"question_text":"I'm in a situation where I'd like to instantiate an object of a type that will be determined at runtime. I also need to perform an explicit cast to that type.\nSomething like this:\n`static ... |
{"title":"Setting up Redis on Webfaction","tags":["installation","redis","webfaction"],"question_text":"What are the steps required to set up\nRedis\ndatabase on\nWebfaction\nshared hosting account?","answer_text":"Introduction\nBecause of the special environment restrictions of Webfaction servers the installation inst... |
{"title":"How to make a Clojure function take a variable number of parameters?","tags":["function","clojure","lisp","procedure"],"question_text":"I'm learning Clojure and I'm trying to define a function that take a variable number of parameters (a\nvariadic\nfunction) and sum them up (yep, just like the + procedure). H... |
{"title":"What are register_globals in PHP?","tags":["php"],"question_text":"Can someone give some examples of what\n`register_globals`\nare?\nAnd is\n`global $user_id;`\nconsidered a register global?","answer_text":"The\n`register_globals`\ndirective:\n`register_globals`\nis an internal PHP setting which registers the... |
{"title":"Difference between assertEquals and assertSame in phpunit?","tags":["phpunit"],"question_text":"PHPUnit contains an assertEquals method:\nhttps:\/\/phpunit.de\/manual\/current\/en\/appendixes.assertions.html#appendixes.assertions.assertEquals\nIt also has an assertSame method:\nhttps:\/\/phpunit.de\/manual\/c... |
{"title":"javac not working in windows command prompt","tags":["java","windows","javac","command-prompt","path-variables"],"question_text":"I'm trying to use javac with the windows command prompt, but its not working.\nAfter adding the directory \"C:\\Program Files\\Java\\jdk1.6.0_16\\bin\\\" to the end of the environm... |
{"title":"Is there a way to bypass mass assignment protection?","tags":["ruby-on-rails","ruby","ruby-on-rails-3","mass-assignment"],"question_text":"I have a Rails 3 app which JSON encodes objects in order to store them in a Redis key\/value store.\nWhen I retrieve the objects, I'm trying to decode the JSON and instant... |
{"title":"How to remove the focus from a TextBox in WinForms?","tags":["c#",".net","winforms","textbox","focus"],"question_text":"I need to remove the focus from several TextBoxes. I tried using:\n`textBox1.Focused = false;`\nIts\n`ReadOnly`\nproperty value is\n`true`\n.\nI then tried setting the focus on the form, so ... |
{"title":"Kendo grid date column not formatting","tags":["date","kendo-ui","kendo-grid"],"question_text":"I have a\n`KendoGrid`\nlike below and when I run the application, I'm not getting the expected format for\n`date`\ncolumn.\n`$(\"#empGrid\").kendoGrid({\n dataSource: {\n data: empModel.Value,\n pageSize: 10\n },\n... |
{"title":"How can I tell which button was clicked in a PHP form submit?","tags":["php"],"question_text":"I have several buttons on my page, but I'm not sure how to tell which one was clicked.\nHere's the markup for my two buttons:\n`<input type=\"submit\" id=\"btnSubmit\" value=\"Save Changes\" \/>\n<input type=\"submi... |
{"title":"How can I combine multiple rows into a comma-delimited list in Oracle?","tags":["sql","oracle","concatenation","pivot","string-aggregation"],"question_text":"I have a simple query:\n`select * from countries`\nwith the following results:\n`country_name\n------------\nAlbania\nAndorra\nAntigua\n.....`\nI would ... |
{"title":"How to set transform origin in SVG","tags":["svg","coordinate-transformation"],"question_text":"I need to resize and rotate certain elements in SVG document using javascript. The problem is, by default, it always applies the transform around the origin at\n`(0, 0)`\n\u00e2\u0080\u0093 top left.\nHow can I re-... |
{"title":"Python CSV error: line contains NULL byte","tags":["python","csv"],"question_text":"I'm working with some CSV files, with the following code:\n`reader = csv.reader(open(filepath, \"rU\"))\ntry:\n for row in reader:\n print 'Row read successfully!', row\nexcept csv.Error, e:\n sys.exit('file %s, line %d: %s' %... |
{"title":"S3 REST API and POST method","tags":["rest","amazon-web-services","amazon-s3"],"question_text":"I'm using\nAWS S3 REST API\n, and after solving some annoying problems with signing it seems to work. However, when I use correct REST verb for creating resource, namely\n`POST`\n, I get\n`405 method not allowed`\n... |
{"title":"Break promise chain and call a function based on the step in the chain where it is broken (rejected)","tags":["javascript","angularjs","promise"],"question_text":"Update:\nTo help future viewers of this post, I created\nthis demo of pluma's answer\n.\nQuestion:\nMy goal seems fairly straightforward.\n`step(1)... |
{"title":"Custom Single choice ListView","tags":["android","android-listview","choice"],"question_text":"I urgently want to make a custom List View having Two TextViews and a radio Button in a single row. And on listitem click the radio button state should be toggle. I cannot use Simple Adapter here.\nI have already as... |
{"title":"ActionBar in a DialogFragment","tags":["android","android-actionbar","android-dialogfragment"],"question_text":"In the Calendar app on my Galaxy Tab 10.1, when creating a new event a dialog comes up with Done and Cancel buttons in the title bar\/action bar area.\nI'd like to implement this in my app. I've tri... |
{"title":"HashSet<T> versus Dictionary<K, V> w.r.t searching time to find if an item exists","tags":[".net","performance","dictionary","hashset"],"question_text":"`HashSet<T> t = new HashSet<T>();\n\/\/ add 10 million items\nDictionary<K, V> t = new Dictionary<K, V>();\n\/\/ add 10 million items.`\nWhose\n`.Contains`\n... |
{"title":"Google maps API V3 - multiple markers on exact same spot","tags":["javascript","google-maps","google-maps-api-3"],"question_text":"Bit stuck on this one. I am retrieving a list of geo coords via JSON and popping them onto a google map. All is working well except in the instance when I have two or more markers... |
{"title":"How to automatically push after committing in git?","tags":["git","githooks","git-push","post-commit-hook"],"question_text":"How do I set git to automatically push to a remote repo (including automatically providing my passphrase) after each commit to the local repo?","answer_text":"First, make sure that you ... |
{"title":"Should I be using object literals or constructor functions?","tags":["javascript"],"question_text":"I am getting confused over which way I should be creating an object in javascript. It seems there are at least two ways. One is to use object literal notation while the other uses construction functions. Is the... |
{"title":"Java : How to determine the correct charset encoding of a stream","tags":["java","file","encoding","stream","character-encoding"],"question_text":"With reference to the following thread:\nhttp:\/\/stackoverflow.com\/questions\/498636\/java-app-unable-to-read-iso-8859-1-encoded-file-correctly\nWhat is the best... |
{"title":"Rails 3 + activerecord, the best way to \"mass update\" a single field for all the records that meet a condition","tags":["ruby-on-rails","activerecord"],"question_text":"In rails 3, using activerecord, is there a single-query way to set the\n:hidden\nfield to\nTRUE\nfor all records that meet a condition ... ... |
{"title":"Is there a way to override class variables in Java?","tags":["java","inheritance","override"],"question_text":"`class Dad\n{\n protected static String me = \"dad\";\n public void printMe()\n {\n System.out.println(me);\n }\n}\nclass Son extends Dad\n{\n protected static String me = \"son\";\n}\npublic void do... |
{"title":"C# Copy a file to another location with a different name","tags":["c#","file-io"],"question_text":"If certain conditions are met, I want to copy a file from one directory to another WITHOUT deleting the original file. I also want to set the name of the new file to a particular value.\nI am using C# and was us... |
{"title":"Can media queries resize based on a div element instead of the screen?","tags":["css","css3","media-queries"],"question_text":"I would like to use media queries to resize elements based on the size of a\n`div`\nelement they are in. I cannot use the screen size as the\n`div`\nis just used like a widget within ... |
{"title":"How is a rounded rect view with transparency done on iphone?","tags":["iphone","cocoa-touch","rounded-corners"],"question_text":"A lot of apps pop up a transparent view with rounded corners and an activityIndicator when running a time consuming operation.\nHow is this rounding done and is it possible to do it... |
{"title":"Most underused data visualization","tags":["graphics","r","visualization","plot","ggplot2"],"question_text":"Histograms and scatterplots are great methods of visualizing data and the relationship between variables, but recently I have been wondering about what visualization techniques I am missing. What do yo... |
{"title":"the source file is different from when the module was built","tags":["c#","visual-studio-2008"],"question_text":"This is driving me crazy.\nI have a rather large project that I am trying to modify. I noticed earlier that when I typed\n`DbCommand`\n, visual studio did not do any syntax highlighting on it, and ... |
{"title":"VIM: How can i open a file at right side as vsplit from a left side NerdTree panel?","tags":["vim","plugins","editor","nerdtree"],"question_text":"I installed NerdTree plugin.\nHow can i open a file at right side as vsplit from a left side NerdTree panel ?","answer_text":"To make\n`vsplit`\nput the new buffer... |
{"title":"How to set DialogFragment's width and height?","tags":["android","android-fragments","android-dialog","android-dialogfragment"],"question_text":"I specify the layout of my DialogFragment in an xml layout file (let's call it\n`layout_mydialogfragment.xml`\n), and its\n`layout_width`\nand\n`layout_height`\nattr... |
{"title":"Java equivalent of unsigned long long?","tags":["java","unsigned","primitive","unsigned-long-long-int"],"question_text":"In C++, I enjoyed having access to a 64 bit unsigned integer, via\n`unsigned long long int`\n, or via\n`uint64_t`\n. Now, in Java longs are 64 bits, I know. However, they are signed.\nIs th... |
{"title":"What is the best way to prevent session hijacking?","tags":["security","session","cookies"],"question_text":"Specifically this is regarding when using a client session cookie to identify a session on the server.\nIs the best answer to use SSL\/HTTPS encryption for the entire web site, and you have the best gu... |
{"title":"javascript - get array of dates between 2 dates","tags":["javascript","date-range"],"question_text":"`var range = getDates(new Date(), new Date().addDays(7));`\nI'd like \"range\" to be an array of date objects, one for each day between the two dates.\nThe trick is that it should handle month and year boundar... |
{"title":"Sql query to Group by day","tags":["sql","sql-server","sql-server-2005","group-by"],"question_text":"I want to list all sales, and group the sum by day.\n`Sales (saleID INT, amount INT, created DATETIME)`\nUpdate\nI am using SQL Server 2005","answer_text":"if you're using SQL Server,\n`dateadd(DAY,0, datediff... |
{"title":"How do I render a partial of a different format in Rails?","tags":["ruby-on-rails","format","render","partial","actionview"],"question_text":"I'm trying to generate a JSON response that includes some HTML. Thus, I have\n`\/app\/views\/foo\/bar.json.erb`\n:\n`{\n someKey: 'some value',\n someHTML: \"<%= h rend... |
{"title":"How do I get an object's unqualified (short) class name?","tags":["php","class","namespaces"],"question_text":"How do I check the class of an object within the PHP name spaced environment without specifying the full namespaced class.\nFor example suppose I had an object library\/Entity\/Contract\/Name.\nThe f... |
{"title":"Core Data Primary Key","tags":["iphone","cocoa-touch","core-data"],"question_text":"This may seem stupid, but I still couldn't figure out how to mark a attribute as a primary key in the xcdatamodel file.\nMy persistent storage is sqlite file.\nCan anyone help me?\nIn that case, how can I \"validate\" a ID to ... |
{"title":"Using Linq to return a Comma separated string","tags":["c#","linq"],"question_text":"I have a class in my application\n`public class ProductInfo\n{\n public int ProductId {get;set;}\n public int ProductType{get;set;}\n}`\nI want to write a linq query which can return me a list of ProductIds in a comma separat... |
{"title":"Action Bar menu item text color","tags":["android","android-actionbar","android-menu","android-styles"],"question_text":"How to change text color of menu item title. I tried to change it as below\n`<style name=\"Theme.Kanku.ActionBar.TitleTextStyle\" parent=\"@android:style\/TextAppearance.Holo.Widget.ActionB... |
{"title":"simple HTML project type for Visual Studio 2010","tags":["html","visual-studio-2010","rest","visual-studio-2012"],"question_text":"We are developing a REST based application using Visual Studio 2010, using asp.net web api and we want to host it using IIS.\nFor the client side, we want to use pure html, css an... |
{"title":"Set variable in parent window from iframe","tags":["javascript","events","iframe"],"question_text":"I have a parent document with an embedded iframe. Inside the iframe I have an upload field. Once the user selects a file to upload, I trigger a jQuery change event. On that event I want to set a variable in the... |
{"title":"How to capture no file for fs.readFileSync()?","tags":["node.js","error-handling","try-catch"],"question_text":"Within node.js\nreadFile()\nshows how to capture an error, however there is no comment for the\nreadFileSync()\nfunction regarding error handling. As such, if I try to use readFileSync() when there ... |
{"title":"How to point Xcode to an old SDK so it can be used as a \"Base SDK\"?","tags":["xcode","osx","sdk","xcode4","xcode5"],"question_text":"My Mac's Setup:\nVolume A\n:\nOS X 10.8\nXcode 4.5 or later - 10.6 SDK\nIS NOT\navailable as Base SDK\nVolume B\n:\nOS X 10.7\nXcode 4.3.3 - 10.6 SDK\nIS\navailable as Base SD... |
{"title":"How do I get a decimal value when using the division operator in Python?","tags":["python","math","syntax","operators"],"question_text":"For example, the standard division symbol '\/' rounds to zero:\n`>>> 4 \/ 100\n0`\nHowever, I want it to return 0.04. What do I use?","answer_text":"There are three options:... |
{"title":"Linq order by, group by and order by each group?","tags":["c#","linq","group-by","sql-order-by"],"question_text":"I have an object that looks something like this -\n`public class Student\n{\npublic string Name {get;set;} \npublic int Grade{get;set;}\n}`\nI would like to create the following query - group grad... |
{"title":"How to deploy a meteor application to my own server?","tags":["deployment","hosting","meteor"],"question_text":"How to deploy a meteor application to my own server?\nflavour 1: the development and deployment server are the same;\nflavour 2: the development server is one (maybe my localhost) and the deployment... |
{"title":"Counting repeated characters in a string in Python","tags":["python"],"question_text":"I want to count the number of times each character is repeated in a string. Is there any particular way to do it apart from comparing each character of the string from A-Z\nand incrementing a counter?\nUpdate\n(in reference... |
{"title":"Find the majority element in array","tags":["arrays","algorithm","time-complexity"],"question_text":"The majority element is the element that occurs more than half of the size of the array.\nHow to find the majority element in an array in O(n)?","answer_text":"`\/\/ returns -1 if there is no element that is t... |
{"title":"Android dialog width","tags":["android","dialog","width"],"question_text":"I can't seem to control the dialog width. I have a simple layout like so`\n`<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<LinearLayout \n xmlns:android=\"http:\/\/schemas.android.com\/apk\/res\/android\"\n android:orientation=\"vertical... |
{"title":"Cannot Install Aptana plugin on Eclipse 4.2","tags":["ruby","eclipse","aptana","eclipse-juno"],"question_text":"I've installed Eclipse 4.2 Juno. Now I want to install aptana for developing ruby, but I get the following error,\nUnable to read repository at\nhttp:\/\/download.aptana.com\/studio3\/plugin\/instal... |
{"title":"Delete topic in Kafka 0.8.1.1","tags":["apache-kafka"],"question_text":"I need to delete the topic\n`test`\nin Apache Kafka 0.8.1.1.\nAs expressed in the\ndocumentation here\n, I have executed:\n`bin\/kafka-topics.sh --zookeeper localhost:2181 --delete --topic test`\nHowever, this results in the following mes... |
{"title":"Peak detection of measured signal","tags":["algorithm","language-agnostic"],"question_text":"We use a data acquisition card to take readings from a device that increases its signal to a peak and then falls back to near the original value. To find the peak value we currently search the array for the highest re... |
{"title":"What are lifted operators?","tags":["c#",".net","nullable","lifted-operators"],"question_text":"I was looking at\nthis article\nand am struggling to follow the VB.NET example that explains lifted operators. There doesn't seem to be an equivalent C# example or tutorial. I don't have much experience with operat... |
{"title":"Which is faster: x<<1 or x<<10?","tags":["c++","c","performance","cpu","low-level"],"question_text":"I don't want to optimize anything, I swear, I just want to ask this question out of curiosity.\nI know that on most hardware there's an assembly command of bit-shift (e.g.\n`shl`\n,\n`shr`\n), which is a si... |
{"title":"Move all files except one","tags":["linux","bash","glob"],"question_text":"How can I move all files except one? I am looking for something like:\n`'mv ~\/Linux\/Old\/!Tux.png ~\/Linux\/New\/'`\nwhere I move old stuff to new stuff -folder except\n`Tux.png`\n. !-sign represents a negation. Is there some tool fo... |
{"title":"Node.js console.log() not logging anything","tags":["node.js"],"question_text":"Trying out node.js for the first time. Set up node, set up the example app from the\nnodejs.org\nsite. Can start the server fine, but\n`console.log()`\nisn't actually logging anything. Tried the Javascript console in Chrome, Firef... |
{"title":"filename.whl is not supported wheel on this platform","tags":["python","pip"],"question_text":"I would like to install\n`scipy-0.15.1-cp33-none-win_amd64.whl`\nthat I have saved to local drive. I am using:\n`pip 6.0.8 from C:\\Python27\\Lib\\site-packages\npython 2.7.9 (default, Dec 10 2014, 12:28:03) [MSC v.... |
{"title":"How do I store data in local storage using Angularjs?","tags":["angularjs"],"question_text":"Currently I am using a service to perform an action, namely\nretrieve data from the server and then store the data on the server itself.\nInstead of this, I want to put the data into local storage instead of storing i... |
{"title":"php switch case statement to handle ranges","tags":["php","range","switch-statement"],"question_text":"I'm parsing some text and calculating the weight based on some rules. All the characters have the same weight. This would make the switch statement really long can I use ranges in the case statement.\nI saw ... |
{"title":"Why is a point-to-volatile pointer, like \"volatile int * p\", useful?","tags":["c","pointers","volatile"],"question_text":"`volatile`\nis to tell the compiler not to optimize the reference, so that every read\/write does not use the value stored in register but does a real memory access. I can understand it ... |
{"title":"Is OOP abused in universities?","tags":["design","language-agnostic","oop"],"question_text":"I started my college two years ago, and since then I keep hearing \"design your classes first\". I really ask myself sometimes, should my solution to be a bunch of objects in the first place! Some say that you don't s... |
{"title":"How can I hide \"defined but not used\" warnings in GCC?","tags":["gcc","warnings","compiler-warnings"],"question_text":"I have a bunch of compile time asserts, such as:\n`CASSERT(isTrue) or CASSERT2(isTrue, prefix_)`\nWhen compiling with GCC I get many warnings like\n`'prefix_LineNumber' defined but not used... |
{"title":"Bootstrap datepicker hide after selection","tags":["jquery","twitter-bootstrap","datepicker"],"question_text":"How do I hide the calendar after a date is selected? Is there a specific function that I can use? My code below:\n`$('#dp1').datepicker({\n format: 'mm-dd-yyyy',\n startDate: '-15d',\n autoclose: tru... |
{"title":"How to use greater than operator with date?","tags":["mysql","date","operators"],"question_text":"No idea what is going on here. Here is the query, right from phpMyAdmin:\n`SELECT * FROM `la_schedule` WHERE 'start_date' >'2012-11-18';`\nBut I consistently get all records in the table returned, including those... |
{"title":"How do I select individual words of a camelized word in IntelliJ IDEA","tags":["keyboard-shortcuts","intellij-idea"],"question_text":"What is the shortcut in IntelliJ IDEA to move across or select individual words of a camelized word? Lets say I have aLongMultiWordVariableName, I want to be able to move the c... |
{"title":"How to find GCD, LCM on a set of numbers","tags":["java","math","greatest-common-divisor","lcm"],"question_text":"What would be the easiest way to calculate Greatest Common Divisor and Least Common Multiple on a set of numbers? What math functions can be used to find this information?","answer_text":"I've use... |
{"title":"How can I extract a URL from a sentence that is in a NSString?","tags":["iphone","regex","cocoa-touch","nsstring"],"question_text":"What I'm trying to accomplish is as follows. I have a NSString with a sentence that has a URL within the sentience. I'm needing to be able to grab the URL that is presented withi... |
{"title":"C++: Can a struct inherit from a class?","tags":["c++","class","inheritance","struct"],"question_text":"I am looking at the implementation of an API that I am using.\nI noticed that a struct is inheriting from a class and I paused to ponder on it...\nFirst, I didn't see in the C++ manual I studied with that a... |
{"title":"Restoring MySQL database from physical files","tags":["mysql","backup","restore"],"question_text":"Is it possible to restore a MySQL database from the physical database files. I have a directory that has the following file types:\nclient.frm\nclient.MYD\nclient.MYI\nbut for about 20 more tables.\nI usually us... |
{"title":"What is the difference between Cloud, Grid and Cluster?","tags":["cloud","cluster-computing","terminology","grid-computing"],"question_text":"What is the difference between Cloud, Cluster and Grid? Please give some examples of each as the definition of cloud is very broad. As answered in another\nquestion\n, ... |
{"title":"URL link to Twitter user with ID, not name","tags":["twitter","permalinks"],"question_text":"I want to have a link to my twitter page that references it with my twitter ID and not twitter name. This is because I want to build the link into an app and the twitter name for the account may change in future.","an... |
{"title":"Add User to Docker Container","tags":["linux","ubuntu","docker"],"question_text":"I have a docker container with some processes (uwsgi and celery) running inside. I want to create a celery user and a uwsgi user for these processes as well as a worker group that they will both belong to, in order to assign per... |
{"title":"how to change the color of winform DataGridview header?","tags":["c#",".net","winforms","datagridview"],"question_text":"I have tried to do it without success. Is it possible ?","answer_text":"The way to do this is to set the\n`EnableHeadersVisualStyles`\nflag for the data grid view to\n`False`\n, and set the... |
{"title":"Proper AVAudioRecorder Settings for Recording Voice?","tags":["iphone","avaudiorecorder"],"question_text":"I am adding a voice memo capability using AVAudioRecorder and I need to know the best settings for the recorder for recording voice.\nUnfortunately, I know nothing about audio to the extent I am not even... |
{"title":"How does Cocoa compare to Microsoft, Qt?","tags":["wpf","cocoa","qt","programming-languages","comparison"],"question_text":"I have done a few months of development with Qt (built GUI programmatically only) and am now starting to work with Cocoa. I have to say, I\nlove\nCocoa. A lot of the things that seemed h... |
{"title":"Initializing const member within class declaration in C++","tags":["c++","g++"],"question_text":"In PHP and C# the constants can be initialized as they are declared:\n`class Calendar3\n{\n const int value1 = 12;\n const double value2 = 0.001;\n}`\nI have the following C++ declaration of a functor which is use... |
{"title":"state machines tutorials","tags":["c","c99","state-machines"],"question_text":"I am just wondering if anyone know of some good tutorials on the Internet for developing state machines. Or ebooks?\nI am starting working on state machines and just need something general to get me started.","answer_text":"State m... |
{"title":"Why learn Perl, Python, Ruby if the company is using C++, C# or Java as the application language?","tags":["c#","java","python","ruby","perl"],"question_text":"I wonder why would a C++, C#, Java developer want to learn a dynamic language?\nAssuming the company won't switch its main development language from C... |
{"title":"Object reference not set to an instance of an object.","tags":["c#"],"question_text":"I keep getting this error when I run the program.\nObject reference not set to an instance of an object. \n Description: An unhandled exception occurred during the execution of the current web request. \n Please review the s... |
{"title":"How to handle the Xcode warning \"no previous prototype for function...\"?","tags":["objective-c","xcode","warnings"],"question_text":"This warning is popping up a bunch in some third party libraries.\nIs there a way to handle it without modifying the code (e.g. ignore the warning)?\nIf I have to modify the c... |
{"title":"Convert integer value to matching Java Enum","tags":["java"],"question_text":"I've an enum like this:\n`public enum PcapLinkType {\n DLT_NULL(0)\n DLT_EN10MB(1)\n DLT_EN3MB(2),\n DLT_AX25(3),\n \/*snip, 200 more enums, not always consecutive.*\/\n DLT_UNKNOWN(-1);\n private final int value; \n PcapLinkType(in... |
{"title":"Adding services after container has been built","tags":["ioc-container","autofac"],"question_text":"Is it possible to register a service at run-time, meaning after the\n`ContainerBuilder`\nhas been built and the\n`Container`\nhas been created (and\n`ContainerBuilder`\ndisposed of)?","answer_text":"Yes you can... |
{"title":"How to get the integer value of day of week","tags":["c#","datetime","dayofweek","date-conversion"],"question_text":"How do I get the day of a week in integer format? I know ToString will return only a string.\n`DateTime ClockInfoFromSystem = DateTime.Now;\nint day1;\nstring day2;\nday1= ClockInfoFromSystem.D... |
{"title":"Difference between passing array and array pointer into function in C","tags":["c","arrays","function","parameter-passing","space-efficiency"],"question_text":"What is the difference between the two functions in C?\n`void f1(double a[]) {\n \/\/...\n}\nvoid f2(double *a) {\n \/\/...\n}`\nIf I were to call the... |
{"title":"How to properly set up a PDO connection","tags":["php","sql","class","pdo"],"question_text":"From time to time I see questions regarding connecting to database.\nMost answers is not the way I do it, or I might just not get the answers correctly. Anyway; I've never thought about it because the way I do it work... |
{"title":"How to preview selected image in input type=\"file\" in popup using jQuery?","tags":["jquery","html5"],"question_text":"In my code, I am allowing the user to upload an image. Now I want to show this selected image as a preview in this same popup. How can I do it using jQuery?\nThe following is the input type ... |
{"title":"How to launch the Google Play intent in 'Give Feedback' mode on Android?","tags":["android","android-intent","google-play"],"question_text":"I have just written a game for the\nGoogle Play\nand would like to remind my customers to leave feeback on the market for the application (especially the demo version). ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.