text stringlengths 74 309k |
|---|
{"title":"How to cancel a build that is in progress in Visual Studio?","tags":["visual-studio-2010"],"question_text":"Almost unconsciously I hit the keyboard short cut build macro that builds my entire solution. This can happen just as I notice a code change. The build dominates my computer and I basically have to wait... |
{"title":"Concatenate item in list to strings","tags":["python","string","list","join","concatenation"],"question_text":"Is there a simpler way to concatenate string items in list into a single string?\nCan I use the\n`str.join()`\nfunction to join items in list?\nE.g. this is the input\n`['this','is','a','sentence']`\... |
{"title":"gem install rails fails on ubuntu","tags":["ruby-on-rails","ruby","linux","ubuntu"],"question_text":"The error message:\n`Building native extensions. This could take a while...\nERROR: Error installing rails:\n ERROR: Failed to build gem native extension.\n \/usr\/bin\/ruby2.1 -r .\/siteconf20150328-1540-hff2... |
{"title":"nginx showing blank PHP pages","tags":["nginx","php"],"question_text":"I have setup an nginx server with php5-fpm. When I try to load the site I get a blank page with no errors. Html pages are served fine but not php. I tried turning on display_errors in php.ini but no luck. php5-fpm.log is not producing any ... |
{"title":"How do I DROP multiple columns with a single ALTER TABLE statement?","tags":["sql","tsql","alter"],"question_text":"I would like to write a single SQL command to drop multiple columns from a single table in one\n`ALTER TABLE`\nstatement.\nFrom\nMSDN's ALTER TABLE documentation\n...\n`DROP { [CONSTRAINT] const... |
{"title":"how to add files and folder to github repo","tags":["git","github"],"question_text":"I created an account on Github \u2014 I'm new on it \u2014 and I'm facing a problem with adding files. I have added\n`readme.txt`\n. Also, I have 3 other PHP files and a folder including images.\nHow do I add the files and fo... |
{"title":"Android \/FBReaderJ\/gen already exists but is not a source folder. Convert to a source folder or rename it","tags":["android"],"question_text":"I downloaded the\nFBReaderJ\nsource, its say: \"\n\/FBReaderJ\/gen already exists but is not a source folder. Convert to a source folder or rename it\n\"\nI can't ru... |
{"title":"Memcache(d) vs. Varnish for speeding up 3 tier web architecture","tags":["memcached","varnish"],"question_text":"I'm trying to speed up my benchmark (3 tier web architecture), and I have some general questions related to Memcache(d) and Varnish.\nWhat is the difference?\nIt seems to me that\nVarnish\nis behin... |
{"title":"Javascript - How to detect if document has loaded (IE 7\/Firefox 3)","tags":["javascript","onload","addeventlistener"],"question_text":"I want to call a function after a document loads, but the document may or may not have finished loading yet. If it did load, then I can just call the function. If it did NOT ... |
{"title":"NHibernate ISession Flush: Where and when to use it, and why?","tags":[".net","session","nhibernate","flush"],"question_text":"One of the things that get me thoroughly confused is the use of\n`session.Flush`\n,in conjunction with\n`session.Commit`\n, and\n`session.Close`\n.\nSometimes\n`session.Close`\nworks,... |
{"title":"Prevent Caching in ASP.NET MVC for specific actions using an attribute","tags":["c#","jquery",".net","asp.net-mvc","asp.net-mvc-3"],"question_text":"I have an ASP.NET MVC 3 application. This application requests records through JQuery. JQuery calls back to a controller action that returns results in JSON form... |
{"title":"Logout: GET or POST?","tags":["architecture","rest","post","get"],"question_text":"This question is not about when to use GET or POST in general;\nit is about which is the recommended one for handling logging out of a web application. I have found plenty of information on the differences between GET and POST ... |
{"title":"Android Studio needs JDK 7 for Android-L mac","tags":["java","android","osx","android-studio"],"question_text":"I was trying to look how my app looks in material design and I would like to use the new cards lib.\nMy Problem is, that it's giving me this error within my gradle file and I need to fix that.\n`Err... |
{"title":"Trying to add adb to PATH variable OSX","tags":["android","osx"],"question_text":"I am trying to develop for android and I want to add the ADB to my path so that I can launch it really easily. I have added directories before by for some reason ADB does not want to be found. This is very frustrating. Has anyon... |
{"title":"Single layer neural network","tags":["matlab","artificial-intelligence","classification","perceptron"],"question_text":"For the implementation of single layer neural network, I have two data files.\n`In:\n 0.832 64.643\n 0.818 78.843\nOut:\n 0 0 1\n 0 0 1`\nThe above is the format of 2 data files.\nThe target... |
{"title":"How do I wrap link_to around some html ruby code?","tags":["ruby-on-rails","ruby"],"question_text":"How do I wrap a link around view code? I can't figure out how to pass multiple lines with ruby code to a single\n`link_to`\nmethod. The result I am looking for is that you click the column and get the show page... |
{"title":"Store boolean value in SQLite","tags":["sqlite"],"question_text":"What is the type for a BOOL value in SQLite? I want to store in my table TRUE\/FALSE values.\nI could create a column of INTEGER and store in it values 0 or 1, but it won't be the best way to implement BOOL type.\nIs there a way?\nThanks.","ans... |
{"title":"Alternate background colors for list items","tags":["html","css"],"question_text":"I have a list, and each item is linked, is there a way I can alternate the background colors for each item?\n`<ul>\n <li><a href=\"link\">Link 1<\/a><\/li>\n <li><a href=\"link\">Link 2<\/a><\/li>\n <li><a href=\"link\">Link 3<... |
{"title":"curl json post request via terminal to a rails app","tags":["json","ruby-on-rails-3","osx","curl","terminal"],"question_text":"I'm trying to create a user on my rails app with a curl command from os x terminal. No matter how I format the data, the app returns a responses that non of my validations have passed... |
{"title":"VS2010 always thinks project is out of date but nothing has changed","tags":["visual-studio","visual-studio-2010"],"question_text":"I have a very similar problem as described\nhere\n.\nI also upgraded a mixed solution of C++\/CLI and C# projects from VS2008 to VS2010. And now in VS2010 one C++\/CLI project al... |
{"title":"Format string, integer with leading zeros","tags":["objective-c","string","formatting"],"question_text":"`NSString* strName = [NSString stringWithFormat:@\"img_00%d.jpg\", pp];`\nand works fine, but if pp took the value of 10 for example I wish have img_010.jpg as result, and not img_0010.jpg...\nhow can I fo... |
{"title":"Put icon inside input element in a form","tags":["css","forms","input","icons","element"],"question_text":"How do I put an icon inside a form's input element?\nLive version at:\nTidal Force theme","answer_text":"The site you linked uses a combination of CSS tricks to pull this off. First, it uses a background... |
{"title":"jquery: How to completely remove a dialog on close","tags":["jquery-ui","jquery-ui-dialog"],"question_text":"When an ajax operation fails, I create a new div with the errors and then show it as a dialog. When the dialog is closed I would like to completely destroy and remove the div again. How can I do this? ... |
{"title":"Enterprise Library Unity vs Other IoC Containers","tags":["c#",".net","inversion-of-control","unity-container","enterprise-library"],"question_text":"What's pros and cons of using Enterprise Library Unity vs other IoC containers (Windsor, Spring.Net, Autofac ..)?","answer_text":"I am preparing a presentation ... |
{"title":"CKEditor automatically strips classes from div","tags":["class","html","ckeditor"],"question_text":"I am using\nCKEditor\nas a back end editor on my website. It is driving me round the bend though as it seems to want to change the code to how it sees fit whenever I press the source button. For example if I hi... |
{"title":"Count character occurrences in a string","tags":["c++","string","pattern-matching"],"question_text":"How can I count the number of\n`\"_\"`\nin a string like\n`\"bla_bla_blabla_bla\"`\n?","answer_text":"`#include <algorithm>\nstd::string s = \"a_b_c\";\nsize_t n = std::count(s.begin(), s.end(), '_');`","quest... |
{"title":"Git Cherry-pick vs Merge Workflow","tags":["git","merge","cherry-pick"],"question_text":"Assuming I am the maintainer of a repo, and I want to pull in changes from a contributor, there are a few possible workflows:\nI\n`cherry-pick`\neach commit from the remote (in order). In this case git records the commit ... |
{"title":"FloatingActionButton example with Support Library","tags":["android","android-support-library","floating-action-button","android-design-library"],"question_text":"Recently, I read these posts:\nAndroid Design Support Library\nAndroid Support Library, revision 22.2.0\nFloatingActionButton\nBut, none of them gi... |
{"title":"Do zombies exist ... in .NET?","tags":["c#",".net","multithreading","load","zombie-process"],"question_text":"I was having a discussion with a teammate about locking in .NET. He's a really bright guy with an extensive background in both lower-level and higher-level programming, but his experience with lower l... |
{"title":"Why do linked lists use pointers instead of storing nodes inside of nodes","tags":["c++","pointers","linked-list"],"question_text":"I've worked with linked lists before extensively in Java, but I'm very new to C++. I was using this node class that was given to me in a project just fine\n`class Node\n{\n publi... |
{"title":"ImportError: No module named notebook.notebookapp","tags":["ipython-notebook"],"question_text":"What do you recommend guys for this error when I type in console\n`ipython notebook`\nand got\nImportError: No module named notebook.notebookapp\n?\nI installed ipython notebook with pip and really I don't know wha... |
{"title":"Skip Git commit hooks","tags":["git","githooks","git-commit"],"question_text":"I'm looking at a git hook which looks for print statements in Python code. If a print statement is found, it prevents the git commit.\nI want to override this hook and I was told that there is a command to do so. I haven't been abl... |
{"title":"Regex for Password Must be contain at least 8 characters, least 1 number and both lower and uppercase letters and special characters","tags":["javascript","asp.net","regex"],"question_text":"I want a regular expression to check that\nPassword Must be contain at least 8 characters, including at least 1 number ... |
{"title":"Why should we include ttf, eot, woff, svg,... in a font-face","tags":["css3","font-face","webfonts"],"question_text":"In CSS3 font-faces there are multiple font types included like truetype, eot, woff, svg and cff. Why should we use all of these types? If they are special to different browsers why is the numb... |
{"title":"Getting the first character of a string with $str[0]","tags":["php","string","substring"],"question_text":"I want to get the first letter of a string and I've noticed that\n`$str[0]`\nworks great. I am just not sure whether this is 'good practice', as that notation is generally used with arrays. This feature ... |
{"title":"How to fix: \"UnicodeDecodeError: 'ascii' codec can't decode byte\"","tags":["python","python-2.7"],"question_text":"`as3:~\/ngokevin-site# nano content\/blog\/20140114_test-chinese.mkd\nas3:~\/ngokevin-site# wok\nTraceback (most recent call last):\nFile \"\/usr\/local\/bin\/wok\", line 4, in\nEngine()\nFile ... |
{"title":"Conversion of System.Array to List","tags":["c#"],"question_text":"Last night I had dream that the following was impossible. But in the same dream, someone from SO told me otherwise. Hence I would like to know if it it possible to convert\n`System.Array`\nto\n`List`\n`Array ints = Array.CreateInstance(typeof(... |
{"title":"What is Haskell actually useful for?","tags":["haskell"],"question_text":"For instance, if I start learning Haskell, what can I find myself using it for. What are some common uses for this language that I hear is a\nfunctional one\n?","answer_text":"What are some common uses for this\n language?\nRapid applic... |
{"title":"Are Stored Procedures more efficient, in general, than inline statements on modern RDBMS's?","tags":["sql","database","stored-procedures"],"question_text":"Conventional wisdom states that stored procedures are always faster. So, since they're always faster, use them\nALL THE TIME\n.\nI am pretty sure this is ... |
{"title":"How to implement a typescript decorator?","tags":["typescript","decorator"],"question_text":"TypeScript 1.5\nnow has\ndecorators\n.\nCould someone provide a simple example demonstrating the proper way to implement a decorator and describe what the arguments in the possible valid decorator signatures mean?\n`d... |
{"title":"How to implement an android:background that doesn't stretch?","tags":["android","android-layout"],"question_text":"I found this\ngreat thread\ndescribing how to \"eat the cake and have it too\", i.e. use image for a\n`Button`\ninstead of\n`ImageButton`\n(which doesn't allow\n`SetText()`\n, resizing, etc.).\nT... |
{"title":"Modifying the \"Path to executable\" of a windows service","tags":["windows","windows-services"],"question_text":"I'd like to modify the path to my application, but doing so breaks it because the service still points to the old location.\nBy going to\n`Administrative Tools > Services`\nyou can open a properti... |
{"title":"Sorting multiple keys with Unix sort","tags":["linux","unix","sorting"],"question_text":"I have potentially large files that need to be sorted by 1-n keys. Some of these keys might be numeric and some of them might not be. This is a fixed-width columnar file so there are no delimiters.\nIs there a good way to... |
{"title":"Responsive css background images","tags":["css","responsive-design","background-image","image-resizing"],"question_text":"I have a website (g-floors.eu) and I want to make the background (in css I have defined a bg-image for the content) also responsive. Unfortunately I really don't have any idea on how to do... |
{"title":"Javascript - remove an array item by value","tags":["javascript","arrays"],"question_text":"My situation:\n`var id_tag = [1,2,3,78,5,6,7,8,47,34,90];`\nI would like to\n`delete where id_tag = 90`\nand to return:\n`var id_tag = [1,2,3,78,5,6,7,8,47,34];`\nHow can I do that?","answer_text":"You'll want to use J... |
{"title":"Django MEDIA_URL and MEDIA_ROOT","tags":["django","media"],"question_text":"I'm trying to upload an image via the Django admin and then view that image either in a page on the frontend or just via a URL.\nNote this is all on my local machine.\nMy settings are as follows:\n`MEDIA_ROOT = '\/home\/dan\/mysite\/m... |
{"title":"Sort an Array by keys based on another Array?","tags":["php","arrays","sorting"],"question_text":"Is it possible in PHP to do something like this? How would you go about writing a function? Here is an example. The order is the most important thing.\n`$customer['address'] = '123 fake st';\n$customer['name'] = ... |
{"title":"Why use the INCLUDE clause when creating an index?","tags":["sql-server","sql-server-2008","sql-server-2005","indexing"],"question_text":"While studying for the 70-433 exam I noticed you can create a covering index in one of the following two ways.\n`CREATE INDEX idx1 ON MyTable (Col1, Col2, Col3)`\n-- OR --\... |
{"title":"#pragma pack effect","tags":["c","c-preprocessor"],"question_text":"I was wondering if someone could explain to me what the\n`#pragma pack`\npreprocessor statement does, and more importantly, why one would want to use it.\nI checked out the\nMSDN page\n, which offered some insight, but I was hoping to hear mo... |
{"title":"Insert a commit before the root commit in Git?","tags":["git","version-control","rebase","git-rebase"],"question_text":"I've asked before about how to\nsquash the first two commits\nin a git repository.\nWhile the solutions are rather interesting and not really as mind-warping as some other things in git, the... |
{"title":"How to force HTTPS using a web.config file","tags":["c#","asp.net","iis","https","web-config"],"question_text":"I have searched around Google and StackOverflow trying to find a solution to this, but they all seem to relate to ASP.NET etc.\nI usually run Linux on my servers but for this one client I am using W... |
{"title":"How to focus on a form input text field on page load using jQuery?","tags":["javascript","jquery","html","focus"],"question_text":"This is probably very simple, but could somebody tell me how to get the cursor blinking on a text box on page load?","answer_text":"Set focus on the first text field:\n`$(\"input:... |
{"title":"What are the differences between a multidimensional array and an array of arrays in C#?","tags":["c#","multidimensional-array","jagged-arrays"],"question_text":"What are the differences between multidimensional arrays\n`double[,]`\nand array-of-arrays\n`double[][]`\nin C#?\nIf there is a difference, what is t... |
{"title":"Why should I use version control?","tags":["svn","git","version-control","cvs"],"question_text":"I was reading a blog where the writer said this\n\"Code doesn\u00e2\u0080\u0099t exist unless it\u00e2\u0080\u0099s checked into a version control system. Use version control for everything you do. Any version con... |
{"title":"jQuery: keyPress Backspace won't fire?","tags":["jquery","keypress","backspace"],"question_text":"I wonder what I'm doing wrong:\n`$('.s').keypress(function(e) {\n switch (e.keyCode) {\n case 8: \/\/ Backspace\n \/\/console.log('backspace');\n case 9: \/\/ Tab\n case 13: \/\/ Enter\n case 37: \/\/ Left\n case... |
{"title":"JavaScript jQuery Animate to Auto Height","tags":["javascript","jquery","jquery-animate"],"question_text":"Hi I want to animate a div from 200px to Auto height. I cant seem to make it work though - anyone know how?\nHere's the code:\n`$(\"div:first\").click(function(){\n $(\"#first\").animate({\n height: \"au... |
{"title":"Testing if jQueryUI has loaded","tags":["javascript","jquery-ui"],"question_text":"I'm trying to debug a website, and I think that jQueryUI may not have loaded properly. How can I test if jQueryUI has loaded?","answer_text":"`if (jQuery.ui) {\n \/\/ UI loaded\n}`\nOR\n`if (typeof jQuery.ui != 'undefined') {\n... |
{"title":"Are strongly-typed functions as parameters possible in TypeScript?","tags":["typescript"],"question_text":"In TypeScript I can declare a parameter of a function as a type Function. Is there a \"type-safe\" way of doing this that I am missing? For example, consider this:\n`class Foo {\n save(callback: Function... |
{"title":"How to get time in milliseconds since the unix epoch in Javascript?","tags":["javascript"],"question_text":"Possible Duplicate:\nHow do you get a timestamp in JavaScript?\nCalculating milliseconds from epoch\nHow can I get the current\n`epoch`\ntime in Javascript? Basically the number of milliseconds since mi... |
{"title":"ARC and bridged cast","tags":["objective-c","automatic-ref-counting","type-conversion","clang"],"question_text":"With ARC, I can no longer cast\n`CGColorRef`\nto\n`id`\n. I learned that I need to do a bridged cast. According\nclang docs\n:\nA\nbridged cast\nis a C-style cast annotated with one of three keywor... |
{"title":"What are the big improvements between guava and apache equivalent libraries?","tags":["java","apache-commons","guava"],"question_text":"We currently use apache collections, string utils, etc. I need to decide if we should switch from the apache foundations implementation.\nThe important criteria is ease of de... |
{"title":"Why is \"a\" != \"a\" in C?","tags":["c","string"],"question_text":"`void main() {\n if(\"a\" == \"a\")\n printf(\"Yes, equal\"); \n else\n printf(\"No, not equal\");\n}`\nWhy is the output\n`No, not equal`\n?","answer_text":"What you are comparing are the two memory addresses for the different strings, which... |
{"title":"How to create a release signed apk file using Gradle?","tags":["android","gradle","apk","release","android-gradle"],"question_text":"I would like to have my Gradle build to create a release signed apk file using Gradle.\nI'm not sure if the code is correct or if I'm missing a parameter when doing\n`gradle bui... |
{"title":"Including another class in SCSS","tags":["inheritance","sass"],"question_text":"I have this in my SCSS file:\n`.class-a{\n display: inline-block;\n \/\/some other properties\n &:hover{\n color: darken(#FFFFFF, 10%);\n } \n}\n.class-b{\n \/\/Inherite class-a here\n \/\/some properties\n}`\nIn class-b, I would ... |
{"title":"LINQ - Fluent and Query Expression - Is there any benefit(s) of one over other?","tags":["c#","linq"],"question_text":"LINQ is one of the greatest improvements to .NET since generics and it saves me tons of time, and lines of code. However, the fluent syntax seems to come much more natural to me than the quer... |
{"title":"Thin web server: `start_tcp_server': no acceptor (RuntimeError) after git branch checkout","tags":["ruby-on-rails-3","git","thin"],"question_text":"A Rails 3.2.0 app, working fine with Thin web server, both locally and on Heroku cedar stack.\nAfter:\n`$ git branch work\n$ git checkout work\n$ rails server`\nI... |
{"title":"JSON.stringify, avoid TypeError: Converting circular structure to JSON","tags":["javascript","json","node.js"],"question_text":"I have a big object I want to convert to JSON and send. However it has circular structure. I want to toss whatever circular references exist and send whatever can be stringified. How... |
{"title":"Can't operator == be applied to generic types in C#?","tags":["c#","generics","operators","equals-operator"],"question_text":"According to the documentation of the\n`==`\noperator in\nMSDN\n,\nFor predefined value types, the\n equality operator (==) returns true if\n the values of its operands are equal,\n fa... |
{"title":"Can a foreign key be NULL and\/or duplicate?","tags":["sql","sql-server","oracle","foreign-keys"],"question_text":"Please clarify two things for me:\nCan a Foreign key be NULL?\nCan a Foreign key be duplicate?\nPlease, in support of your answer provide some authentic references or links. As fair as I know,\n`... |
{"title":"Who \"Killed\" my process and why?","tags":["linux","process","kill","signals"],"question_text":"My application runs as a background process on Linux. It is currently started at the command line in a Terminal window.\nRecently a user was executing the application for a while and it died mysteriously. The text... |
{"title":"What's the difference between including files with JSP include directive, JSP include action and using JSP Tag Files?","tags":["java","jsp","include","jsp-tags","tagfile"],"question_text":"It seems that there are two methods for templating with JSP. Including files with one of these statements\n`<%@ include f... |
{"title":"UIViewController viewDidLoad vs. viewWillAppear: What is the proper division of labor?","tags":["ios","uiviewcontroller","viewdidload","viewwillappear"],"question_text":"I have always been a bit unclear on the type of tasks that should be assigned to\n`viewDidLoad`\nvs.\n`viewWillAppear`\n: in a\n`UIViewContr... |
{"title":"Launch Bootstrap Modal on page load","tags":["javascript","html5","twitter-bootstrap"],"question_text":"I don't know javascript at all. The bootstrap documentation says to\nCall the modal via javascript: $('#myModal').modal(options)\nI have no clue how to call this on a page load. Using the supplied code on t... |
{"title":"How to set the holo dark theme in a Android app?","tags":["android","android-theme"],"question_text":"How can I set the dark holo theme in my app?\nAt this time I got this:\n`<style name=\"AppTheme\" parent=\"android:Theme.Holo.Light\" \/>`\nBut when I change it to:\n`<style name=\"AppTheme\" parent=\"android... |
{"title":"How to check if object (variable) is defined in R?","tags":["r"],"question_text":"I'd like to check if some variable is defined in R - without getting an error. How can I do this?\nMy attempts (not successful):\n`> is.na(ooxx)\nError: object 'ooxx' not found\n> is.finite(ooxx)\nError: object 'ooxx' not found`... |
{"title":"Why requestWhenInUseAuthorization doesn't prompt the user for access to the location?","tags":["objective-c","xcode","ios8","cllocationmanager"],"question_text":"In my\n`viewDidLoad`\nmethod I have\n`locationManager = [[CLLocationManager alloc]init]; \/\/ initializing locationManager\n locationManager.delegat... |
{"title":"How to get C# Enum description from value?","tags":["c#","enums"],"question_text":"Possible Duplicate:\nGetting attributes of Enum\u00e2\u0080\u0099s value\nI have an enum with Description attributes like this:\n`public enum MyEnum\n{\n Name1 = 1,\n [Description(\"Here is another\")]\n HereIsAnother = 2,\n [D... |
{"title":"Custom fonts and XML layouts (Android)","tags":["java","android","user-interface","interface","fonts"],"question_text":"I'm trying to define a GUI layout using XML files in Android. As far as I can find out, there is no way to specify that your widgets should use a custom font (e.g. one you've placed in asset... |
{"title":"Unable to understand useCapture attribute in addEventListener","tags":["javascript","dom","javascript-events","dom-events"],"question_text":"I have read article at\nhttps:\/\/developer.mozilla.org\/en\/DOM\/element.addEventListener\nbut unable to understand\n`useCapture`\nattribute. Definition there is:\nIf t... |
{"title":"Set the absolute position of a view","tags":["android","android-layout","layout","view","position"],"question_text":"Is it possible to set the absolute position of a view in Android? (I know that there is an\n`AbsoluteLayout`\n, but it's deprecated...)\nFor example, if I have a 240x320px screen, how could I a... |
{"title":"Should I use Java's String.format() if performance is important?","tags":["java","string","performance","string-formatting","micro-optimization"],"question_text":"We have to build Strings all the time for log output and so on. Over the JDK versions we have learned when to use\n`StringBuffer`\n(many appends, t... |
{"title":"How to hide a button programmatically?","tags":["android"],"question_text":"I have a\n`RelativeLayout`\nwhich contains two buttons. Which are overlapped on each other.\n`<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<RelativeLayout xmlns:android=\"http:\/\/schemas.android.com\/apk\/res\/android\"\n android:orie... |
{"title":"Codeigniter - no input file specified","tags":["codeigniter","php"],"question_text":"Hi I am a beginner in Codeigniter and I saw a CI tutorial and was just trying to do a simple thing. I downloaded the CI and added this file to controller directory, but it won't work.\n`<?php\nclass site extends CI_Controller... |
{"title":"How to get a resource id with a known resource name?","tags":["android","android-resources"],"question_text":"I want to access a resource like a String or a Drawable by its name and not its int id.\nWhich method would I use for this?","answer_text":"If I understood right, this is what you want\n`int drawableR... |
{"title":"Open URL in same window and in same tab","tags":["javascript","html","hyperlink","href"],"question_text":"I want to open a link in the same window and in the same tab that contains the page with the link.\nWhen I try to open a link by using\n`window.open`\n, then it opens in new tab\u00e2\u0080\u0094not in th... |
{"title":"How to convert DateTime? to DateTime","tags":["c#",".net","datetime"],"question_text":"I want to convert a nullable DateTime (\n`DateTime?`\n) to a\n`DateTime`\n, but I am getting an error:\n`\"Cannot implicitly convert type 'System.DateTime?' to 'System.DateTime'. An explicit conversion exists (are you missi... |
{"title":"Differences between git pull origin master & git pull origin\/master","tags":["git","version-control"],"question_text":"What is the difference between\n`git pull origin master`\nand\n`git pull origin\/master`\n?","answer_text":"`git pull origin master`\nwill pull changes from the\n`origin`\nremote,\n`master`\... |
{"title":"What's the difference between Ruby's dup and clone methods?","tags":["ruby","clone","dup"],"question_text":"The\nRuby docs for\n`dup`\nsay:\nIn general,\n`clone`\nand\n`dup`\nmay have different semantics in descendent classes. While\n`clone`\nis used to duplicate an object, including its internal state,\n`dup... |
{"title":"How to fix Array indexOf() in JavaScript for Internet Explorer browsers","tags":["javascript","internet-explorer","internet-explorer-8","cross-browser"],"question_text":"If you have worked with JavaScript at any length you are aware that Internet\u00a0Explorer does not implement the ECMAScript function for Ar... |
{"title":"The type must be a reference type in order to use it as parameter 'T' in the generic type or method","tags":["c#","generics"],"question_text":"I'm getting deeper into generics and now have a situation I need help with. I get a compile error on the 'Derived' class below as shown in the subject title. I see man... |
{"title":"Rails and PostgreSQL: Role postgres does not exist","tags":["ruby-on-rails","postgresql","rake"],"question_text":"I have installed PostgreSQL on my Mac OS Lion, and am working on a rails app. I use RVM to keep everything separate from my other Rails apps.\nFor some reason when I try to migrate the db for the ... |
{"title":"Volley Android Networking Library","tags":["android","http","android-networking","android-volley"],"question_text":"I have few questions around using Volley in my projects:\nCan this library be used in any Java project or just Android?\nI see multiple branches\nhere\nand no documentation on which branch is to... |
{"title":"What is external linkage and internal linkage in C++","tags":["c++","c++-faq"],"question_text":"I want to understand the external linkage and internal linkage and their difference.\nI also want to know the meaning of\n`const`\nvariables internally link by default unless otherwise declared as\n`extern`\n.","an... |
{"title":"Renaming table in rails","tags":["ruby-on-rails"],"question_text":"I want to rename a table... (any table.)\nI tried this line of code:\n`ActiveRecord::ConnectionAdapters::SchemaStatements.rename_table(old_name, new_name)`\nHere's the weird thing. I know I got it working the first time, but now I get this err... |
{"title":"How to create user for a db in postgresql?","tags":["php","database","postgresql","user","connection"],"question_text":"I have installed PostgreSQL 8.4 on my CentOS server and connected to root user from shell and accessing the PostgreSQL shell.\nI created the database and user in PostgreSQL.\nWhile trying to... |
{"title":"Visual Studio loading symbols","tags":["visual-studio","debugging","debug-symbols"],"question_text":"I'm working on a\nColdFusion\nproject for a while now, and Visual Studio started to behave strange for me at least.\nI observed that when I started debugging, it built the project, it started the deploy, and t... |
{"title":"What is the difference between * and *|* in CSS?","tags":["css","css-selectors"],"question_text":"In CSS,\n`*`\nwill match any element.\nFrequently,\n`*|*`\nis used instead of\n`*`\nto match all elements. This is generally used for testing purposes.\nWhat is the difference between\n`*`\nand\n`*|*`\nin CSS?","... |
{"title":"How do you perform a left outer join using linq extension methods","tags":["c#","linq-to-sql","lambda"],"question_text":"Assuming I have a left outer join as such:\n`from f in Foo\njoin b in Bar on f.Foo_Id equals b.Foo_Id into g\nfrom result in g.DefaultIfEmpty()\nselect new { Foo = f, Bar = result }`\nHow w... |
{"title":"Ruby 2.0.0p0 IRB warning: \"DL is deprecated, please use Fiddle\"","tags":["ruby","windows"],"question_text":"I just uninstalled my older versions of Ruby, removed all of my gems\n(including Rails), and installed Ruby 2.0. In other words, a totally clean re-install. Upon starting IRB, I received this message:... |
{"title":"What's the difference between KeyDown and KeyPress in .NET?","tags":[".net"],"question_text":"What is the difference between the\n`KeyDown`\nand\n`KeyPress`\nevents in\n`.net`\n?","answer_text":"There is apparently\na lot\nof misunderstanding about this!\nThe only practical difference between\n`KeyDown`\nand\... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.