text stringlengths 74 309k |
|---|
{"title":"Looping through rows in a DataView","tags":[".net","loops","dataview"],"question_text":"The\n`DataView`\nobject doesn't have a\n`Rows`\nproperty like\n`DataTable`\n.\nHow do I loop through the rows of a DataView?","answer_text":"The DataView object itself is used to loop through DataView rows.\nDataView rows ... |
{"title":"How to do a webkit css endless rotation-animation.","tags":["css","animation","webkit"],"question_text":"I want to make a rotation of my loading icon by CSS.\nI have an icon and the following code:\n`<style>\n#test {\n width: 32px;\n height: 32px;\n background: url('refresh.png');\n}\n.rotating {\n -webkit-tr... |
{"title":"How to redirect the output of a PowerShell to a file during its execution","tags":["powershell","scripting","stdout"],"question_text":"I have a PowerShell script for which I would like to redirect the output to a file. The problem is that I cannot change the way this script is called. So I cannot do:\n`.\\MyS... |
{"title":"Enable clean URL in Yii2","tags":["yii2","clean-urls"],"question_text":"How can I enable clean urls in Yii2. I want to remove index.php and '?' from url parameters. Which section needs to be edited in Yii2 for that?","answer_text":"I got it working in yii2. Enable\n`mod_rewrite`\nfor\n`Apache`\n.\nFor\n`basic... |
{"title":"Can comments appear before the DOCTYPE declaration?","tags":["html","comments","doctype"],"question_text":"Possible Duplicate:\nDoes the DOCTYPE declaration have to be the first tag in an HTML document?\nI would like to place a comment (\n`<!-- this -->`\nstyle) at the very top of my HTML code, preceding the ... |
{"title":"ROW_NUMBER() in MySQL","tags":["mysql","sql","greatest-n-per-group","rank","row-number"],"question_text":"Is there a nice way in MySQL to replicate the SQL Server function\n`ROW_NUMBER()`\n?\nFor example:\n`SELECT \n col1, col2, \n ROW_NUMBER() OVER (PARTITION BY col1, col2 ORDER BY col3 DESC) AS intRow\nFROM... |
{"title":"How to check if there's nothing to be committed in the current branch?","tags":["git"],"question_text":"all.\n how can we get the status result in shell?\n I tried\n`git status`\nbut it always return 0, even we have commit.\n`git status\necho $? #this is always 0`\nI have an idea but I think it is rather a ba... |
{"title":"Constructors vs Factory Methods","tags":["oop","ooad"],"question_text":"When modelling classes, what is the preferred way of initializing:\nConstructors, or\nFactory Methods\nAnd what would be the considerations for using either of them?\nIn certain situations, I prefer having a factory method which returns n... |
{"title":"How to disable GCC warnings for a few lines of code","tags":["c","gcc","compiler-warnings","pragma"],"question_text":"In Visual C++, it's possible to use\n`#pragma warning (disable: ...)`\n. Also I found that in GCC you can\noverride per file compiler flags\n. How can I do this for \"next line\", or with push... |
{"title":"logger wrapper best practice","tags":["c#",".net","logging","nlog"],"question_text":"I want to use a nlogger in my application, maybe in the future I will need to change the logging system.\nSo I want to use a logging facade.\nDo you know any recommendations for existing examples how to write those ones ?\nOr... |
{"title":"Table header to stay fixed at the top when user scrolls it out of view with jQuery","tags":["jquery","html","table"],"question_text":"I am trying to design an HTML table where the header will stay at the top of the page when AND ONLY when the user scrolls it out of view. For example, the table may be 500 pixe... |
{"title":"Revert a jQuery draggable object back to its original container on out event of droppable","tags":["jquery","jquery-ui"],"question_text":"I have a draggable item which if not dropped in a droppable will revert. This works well until a user drops an item in the droppable. If they decide they've made a mistake ... |
{"title":"How can I get the current milliseconds from the current time","tags":["java","date","time","milliseconds"],"question_text":"Note, I do NOT want millis from epoch. I want the number of milliseconds currently on the clock.\nSo for example, I have this bit of code.\n`Date date2 = new Date(); \nLong time2 = (long... |
{"title":"google chrome extension :: console.log() from background page?","tags":["javascript","google-chrome","google-chrome-extension"],"question_text":"If I call\n`console.log('something');`\nfrom the popup page, or any script included off that it works fine.\nHowever as the background page is not directly run off t... |
{"title":"Random Gaussian Variables","tags":["c#",".net","random","gaussian","normal-distribution"],"question_text":"Is there a class in the standard library of .NET that gives me the functionality to create random variables that follow Gaussian distribution?","answer_text":"Jarrett's suggestion of using a Box-Muller t... |
{"title":"Difference between Content-Range and Range headers?","tags":["http","http-headers"],"question_text":"What is the difference between HTTP headers Content-Range and Range? When should each be used?\nI am trying to stream an audio file from a particular byte offset. Should I use Content-Range or Range header?\nT... |
{"title":"What's the difference of $host and $http_host in Nginx","tags":["configuration","nginx","http-headers"],"question_text":"In Nginx, what's the difference between variables\n`$host`\nand\n`$http_host`\n.","answer_text":"`$host`\nis a variable of the\nCore\nmodule.\n$host\nThis variable is equal to line Host in ... |
{"title":"How to store int[] array in application Settings","tags":["c#","winforms","arrays","settings"],"question_text":"I'm creating a simple windows Forms application using C# express 2008. I'm an experienced C++ developer, but I am pretty much brand new to C# and .NET.\nI'm currently storing some of my simple appli... |
{"title":"Hiding the Keyboard when losing focus on a UITextView","tags":["iphone","objective-c","cocoa-touch","uikit","uitextview"],"question_text":"So I have a UITextView that I'm using to allow the user to submit some text.\nMy problem is, I can't seem to figure out how to allow the user to 'Cancel' by tapping away f... |
{"title":"Java: recommended solution for deep cloning\/copying an instance","tags":["java","clone"],"question_text":"I'm wondering if there is a recommended way of doing deep clone\/copy of instance in java.\nI have 3 solutions in mind, but I can have miss some, and I'd like to have your opinion\nedit: include Bohzo pr... |
{"title":"How to get 0-padded binary representation of an integer in java?","tags":["java","binary","string-formatting"],"question_text":"for example, for\n`1, 2, 128, 256`\nthe output can be (16 digits):\n`0000000000000001\n0000000000000010\n0000000010000000\n0000000100000000`\nI tried\n`String.format(\"%16s\", Intege... |
{"title":"Growing Amazon EBS Volume sizes","tags":["amazon-web-services","amazon-ebs"],"question_text":"I'm quite impressed with Amazon's EC2 and EBS services. I wanted to know if it is possible to grow an EBS Volume.\nFor example: If I have a 50 GB volume and I start to run out of space, can I bump it up to 100 GB whe... |
{"title":"How to connect an existing SQL Server login to an existing SQL Server database user of same name","tags":["sql","sql-server"],"question_text":"Is there a SQL Server command to connect a user of a single database to a login for the database server of the same name?\nhere's the example:\nDatabase Server - Defau... |
{"title":"Why does Python's __import__ require fromlist?","tags":["python","python-import"],"question_text":"In Python, if you want to programmatically import a module, you can do:\n`module = __import__('module_name')`\nIf you want to import a submodule, you would think it would be a simple matter of:\n`module = __impo... |
{"title":"Emitting unencoded strings in a Razor view","tags":["asp.net","razor","html-encode"],"question_text":"As ScottGu says in his blog\npost\n\u00c2\u00abby default content emitted using a @ block is automatically HTML encoded to better protect against XSS attack scenarios\u00c2\u00bb.\nMy question is: how can you... |
{"title":"How to undo another user\u00e2\u0080\u0099s checkout in TFS?","tags":["tfs","tfs2010","tfs2012","tfs2008","tfs2013"],"question_text":"As the resident TFS admin, on occasion I am asked to undo a checkout (usually a lock) that a user has on a certain file checked into source control.\nHow do you undo another us... |
{"title":"onclick open window and specific size","tags":["javascript","html"],"question_text":"I have a link like this:\n`<a href=\"\/index2.php?option=com_jumi&fileid=3&Itemid=11\" onclick=\"window.open(this.href,'targetWindow','toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes,')`\nI wa... |
{"title":"How to get a specific version of a file in Mercurial?","tags":["mercurial"],"question_text":"I am new to Mercurial. Just cannot find the right command. Tried update\/checkout with no luck. I am using local repository. Thanks","answer_text":"I think you want\n`hg revert -r<rev> <file>`\n(this will change that ... |
{"title":"How do I set textarea scroll bar to bottom as a default?","tags":["javascript","css","scroll","textarea"],"question_text":"I have a textarea that is being dynamically reloaded as user input is being sent in. It refreshes itself every couple seconds. When the amount of text in this textarea exceeds the size of... |
{"title":"Android v21 Theme.Appcompat color accent is ignored, no padding on dialogs","tags":["android","android-5.0-lollipop","material-design","android-support-library","appcompat"],"question_text":"I'm using\nActionBarActivity\nfrom the Android 5 SDK and here is my\ntheme.xml\nfor v21\n`<style name=\"AppTheme_Light\... |
{"title":"Use PHP to create, edit and delete crontab jobs?","tags":["php","crontab"],"question_text":"Is it possible to use PHP to create, edit and delete crontab jobs?\nI know how to list the current crontab jobs of the Apache user:\n`$output = shell_exec('crontab -l');\necho $output;`\nBut how to add a cron job with ... |
{"title":"Can I add a class to an HTML.ActionLink in MVC3","tags":["asp.net-mvc"],"question_text":"I have this code and would like to add a class to the link. Is it possible to do this in MVC3?\n`Html.ActionLink(\"Create New\", \"Create\")`","answer_text":"Yes, you can just add another parameter with object representin... |
{"title":"Converting Mercurial folder to a Git repository","tags":["git","mercurial"],"question_text":"I don't have a huge experience with Mercurial, I'm mostly a Git guy.\nI would love to mirror a specific Mercurial folder\/file in a git Repository. What I'm actually trying to do is to export the history of a file fro... |
{"title":"ggplot2 plot without axes legends etc","tags":["r","ggplot2"],"question_text":"I can handle the old plot just fine but I am having trouble (to say the least) doing something really simple in the ggplot2 world. I want to use bioconductor's hexbin (which I can do) to generate a plot that fills the entire (png) ... |
{"title":"So, JSONP or CORS?","tags":["jsonp","cors","web-api"],"question_text":"My WebAPI was deployed in the\nIntranet\nenvironment. That means\nsecurity\nwas not my concern.\nIt seems that CORS is\nmuch more friendly\nto the client and\neasier to implement\n.\nAny other concerns I might have missed?","answer_text":"... |
{"title":"Eclipse plugin for generating a class diagram","tags":["java","eclipse","plugins","uml","class-diagram"],"question_text":"What is a good Eclipse plugin for generating a class diagram (for a project)?\nThis image right here\nis\nexactly\nwhat I'm talking about.","answer_text":"Assuming that you meant to state ... |
{"title":"java dynamic array sizes?","tags":["java"],"question_text":"I have a class xClass that I want to load in to an array of xClass so I have a declaration like\n`xClass mysclass[] = new xClass[10];\nmyclass[0] = new xClass();\nmyclass[9] = new xClass();`\nThe problem is I don't know if I will need 10. I may need ... |
{"title":"Default profile in Spring 3.1","tags":["java","spring","profiles"],"question_text":"In my application I have beans annotated with\n`@Profile(\"prod\")`\nand\n`@Profile(\"demo\")`\n.\nThe first one, as you can guess :), is used on beans that connect to production DB and second one annotates beans that use some... |
{"title":"Date query with ISODate in mongodb doesn't seem to work","tags":["javascript","json","mongodb","bson","isodate"],"question_text":"I don't seem to be able to get even the most basic date query to work in MongoDB. With a document that looks something like this:\n`{\n \"_id\" : \"foobar\/201310\",\n \"ap\" : \"f... |
{"title":".NET MVC - How to assign a class to Html.LabelFor?","tags":["asp.net-mvc"],"question_text":"This code\n`<%= Html.LabelFor(model => model.Name) %>`\nproduces this\n`<label for=\"Name\">Name<\/label>`\nBut I want this\n`<label for=\"Name\" class=\"myLabel\">Name<\/label>`\nHow do you do that?","answer_text":"Sa... |
{"title":"Using scanf() in C++ programs is faster than using cin?","tags":["c++","c","performance","io"],"question_text":"I don't know if this is true, but when I was reading FAQ on one of the problem providing sites, I found something, that poke my attention:\nCheck your input\/output methods. In C++, using cin and co... |
{"title":"Determine if a function exists in bash","tags":["linux","bash","testing","scripting"],"question_text":"Currently I'm doing some unit tests which are executed from bash. Unit tests are initialized, executed and cleaned up in a bash script. This script usualy contains an init(), execute() and cleanup() function... |
{"title":"std::next_permutation Implementation Explanation","tags":["c++","c++11","permutation","stl-algorithm","lexicographic"],"question_text":"I was curious how\n`std:next_permutation`\nwas implemented so I extracted the the\n`gnu libstdc++ 4.7`\nversion and sanitized the identifiers and formatting to produce the fo... |
{"title":"C#: Test if string is a guid without throwing exceptions?","tags":["c#","string","parsing","guid"],"question_text":"I want to try to convert a string to a Guid, but I don't want to rely on catching exceptions (\nfor performance reasons - exceptions are expensive\nfor usability reasons - the debugger pops up\n... |
{"title":"Where is a Mac Application's NSUserDefaults Data Stored?","tags":["objective-c","osx","cocoa","plist","nsuserdefaults"],"question_text":"I am using NSUserDefaults to store some data in my application.\n`NSUserDefaults *prefs = [NSUserDefaults standardUserDefaults];\n[prefs setObject:@\"dummy string\" forKey:@... |
{"title":"Good Linux (Ubuntu) SVN client","tags":["linux","svn"],"question_text":"Subversion has a superb client on Windows (Tortoise, of course). Everything I've tried on Linux just - well - sucks in comparison....","answer_text":"Disclaimer: A long long time ago I was one of the developers for RabbitVCS (previously k... |
{"title":"Hibernate Criteria vs HQL: which is faster?","tags":["performance","hibernate","hql","hibernate-criteria"],"question_text":"I have been reading some anwers, but i'm still confused. \u00c2\u00bfWhy? because the differences that you have mentioned do not relate with the performance. they are related with easy u... |
{"title":"How to make git ignore changes in case?","tags":["windows","git"],"question_text":"I'm not too sure what is going on here, but sometimes a particular file in my repository will change the case of it's name. e.g.,:\nbefore:\n`File.h`\nafter:\n`file.h`\nI don't really care why this is happening, but this causes... |
{"title":"Determine when a ViewPager changes pages","tags":["android","android-widget","android-viewpager"],"question_text":"I have three pages (Fragments) inside a ViewPager, however I only want to display a menu item for two of those pages.\nThe code given in a\nprevious SO answer\ndoes not seem to work:\n`@Override\... |
{"title":"Adding blank spaces to layout","tags":["android","xml"],"question_text":"I am trying to make empty lines within android. This is what I have been doing:\n`android:layout_width=\"fill_parent\" \nandroid:layout_height=\"wrap_content\" \nandroid:text=\"\\n\\n\"`\nI want to know if there is a better way? Thanks",... |
{"title":"Best Practices for reusing code between controllers in Ruby on Rails","tags":["ruby-on-rails","ruby"],"question_text":"I have some controller methods I'd like to share. What is the best practice for doing this in ruby on rails? Should I create an abstract class that my controllers extend, or should I create m... |
{"title":"WPF C# Path: How to get from a string with Path Data to Geometry in Code (not in XAML)","tags":["c#","wpf","path"],"question_text":"I want to generate a WPF Path object in Code.\nIn XAML I can do this:\n`<Path Data=\"M 100,200 C 100,25 400,350 400,175 H 280\">`\nHow can I do the same in Code?\n`Path path = ne... |
{"title":"Why should you use strncpy instead of strcpy?","tags":["c","buffer-overflow","strcpy","c89","strncpy"],"question_text":"Edit: I've added the source for the example.\nI came across\nthis example\n:\n`char source[MAX] = \"123456789\";\nchar source1[MAX] = \"123456789\";\nchar destination[MAX] = \"abcdefg\";\nch... |
{"title":"Installing R with Homebrew","tags":["r","homebrew"],"question_text":"I'm trying to install R using Homebrew. I ran these commands which are recommended elsewhere on SO:\n`brew tap homebrew\/science\nbrew install R`\nFor\n`brew tap homebrew\/science`\n, I'm receiving this error:\n`Error: Already tapped!`\nFor ... |
{"title":"Run Java Code Online","tags":["java"],"question_text":"codepad.org allow you to run C,C++,D etc code online but not Java... is there a site that I can use for Java?","answer_text":"there is also\nhttp:\/\/ideone.com\/\n(supports many languages)","question_code":[],"answer_code":[],"retrieval_text":"\n### TITL... |
{"title":"How do Python's any and all functions work?","tags":["python"],"question_text":"I'm trying to understand how the\n`any()`\nand\n`all()`\nPython built-in functions work.\nI'm trying to compare the tuples so that if any value is different then it will return\n`True`\nand if they are all the same it will return\... |
{"title":"send mail from linux terminal in one line","tags":["linux","email"],"question_text":"I know there is the command\n`mail`\nin linux to send emails via command line. How can I send an simple email with one line from the terminal though?\nFor example:\n`mail user@gmail.com [subject] [body]`\nAnd have the email s... |
{"title":"Practical example of Polymorphism","tags":["python","oop","polymorphism"],"question_text":"Can anyone please give me a real life, practical example of Polymorphism? My professor tells me the same old story I have heard always about the\n`+`\noperator.\n`a+b = c`\nand\n`2+2 = 4`\n, so this is polymorphism. I r... |
{"title":"What is the fastest way to send 100,000 HTTP requests in Python?","tags":["python","http","concurrency"],"question_text":"I am opening a file which has 100,000 url's. I need to send an http request to each url and print the status code. I am using Python 2.6, and so far looked at the many confusing ways Pytho... |
{"title":"jQuery .on() method doesn't see new elements","tags":["javascript","jquery","javascript-events","event-handling","click"],"question_text":"I'm getting a JSON element and building a list from its items like this:\n`getTitles: function(data) {\n data = data || {};\n var list = [];\n $.getJSON(\n '\/titles',\n d... |
{"title":"Eclipse compilation error: The hierarchy of the type 'Class name' is inconsistent","tags":["java","eclipse"],"question_text":"I have downloaded some open source software written in Java and tried to compile it using Eclipse.\nI got the error: \"\nThe hierarchy of the type 'Class name' is inconsistent\n\" in s... |
{"title":"How to override [] operator","tags":["python","operator-overloading"],"question_text":"What is the name of the method to override the\n`[]`\noperator for a class?","answer_text":"You need to use the\n`__getitem__`\nmethod\n.\n`>>> class MyClass:\n... def __getitem__(self,index):\n... return index * 2\n...\n>>... |
{"title":"Recreating PyCharm launcher in Ubuntu","tags":["bash","ubuntu","pycharm"],"question_text":"I installed pycharm normally via\n`bin\/pycharm.sh`\n, but the mistake I made was doing\n`bash pycharm.sh`\nwhile\nthe pycharm directory has inside the Downloads folder.\nI later on moved the directory to\n`\/opt\/Pycha... |
{"title":"Obstructed folders in Subversion","tags":["svn"],"question_text":"What the heck does \"obstructed\" mean when you try to check into Subversion? I see two folders in red with text status of \"obstructed.\" I don't see what this means anywhere in the docs.\nWhen I try the\n`cleanup`\ncommand, I get \"folder nam... |
{"title":"Android RatingBar change star colors","tags":["android","rating"],"question_text":"How can i change the star colors and how can i change the size of the stars ?","answer_text":"It's a little complicated at the mentioned blog, I've used a similar but simplier way.\nYou do need 3 star images (red_star_full.png,... |
{"title":"How to make Emacs terminal colors the same as Emacs GUI colors?","tags":["emacs","ubuntu","colors"],"question_text":"I program with Emacs on Ubuntu (Hardy Heron at the moment), and I like the default text coloration in the Emacs GUI. However, the default text coloration when Emacs is run in the terminal is di... |
{"title":"Rails flash message remains for two page loads","tags":["ruby-on-rails","ruby"],"question_text":"I'm using a flash notice in a Rails application, with the following code:\n`flash[:notice] = \"Sorry, we weren't able to log you in with those details.\"\nrender :action => :new`\nThe flash message renders as expe... |
{"title":"In Gradle, how do I declare common dependencies in a single place?","tags":["gradle","dependency-management"],"question_text":"In Maven there is a very useful feature when you can define a dependency in the\n`<dependencyManagement>`\nsection of the parent POM, and reference that dependency from child modules ... |
{"title":"Does Python have a built in function for string natural sort?","tags":["python","sorting","python-3.x"],"question_text":"Using Python 3.x, I have a list of strings for which I would like to perform a natural alphabetical sort.\nNatural sort:\nThe order by which files in Windows are sorted.\nFor instance, the ... |
{"title":"Volley JsonObjectRequest Post request not working","tags":["android","android-volley"],"question_text":"I am using android Volley for making a request. So I use this code. I don't understand one thing. I check in my server that params is always null. I consider that getParams() not working. What should I do t... |
{"title":"Jquery insert new row into table at a certain index","tags":["javascript","jquery","html-table"],"question_text":"I know how to append or prepend a new row into a table using jquery:\n`$('#my_table > tbody:last').append(html);`\nHow to I insert the row (given in the html variable) into a specific \"row index\... |
{"title":"is not checked out... bundle install does NOT fix help!","tags":["ruby-on-rails","ruby","git","gem"],"question_text":"`https:\/\/github.com\/intridea\/omniauth.git (at master) is not checked out. Please run `bundle install` (Bundler::GitError)`\nSo what do I do? bundle install works on development, but when I... |
{"title":"How to install Maven on OSX 10.10 (Yosemite)?","tags":["java","maven","osx-yosemite"],"question_text":"I am trying to install Maven on my Mac, but I can not get the JAVA_HOME variable right. The path that the maven website gives is,\n`usr\/java\/jdk1.7.0_51`\nhowever the java folder does not exist in \/usr\/ ... |
{"title":"Why is Solr so much faster than Postgres?","tags":["performance","postgresql","solr","lucene","rdbms"],"question_text":"I recently switched from Postgres to Solr and saw a ~50x speed up in our queries. The queries we run involve multiple ranges, and our data is vehicle listings. For example: \"Find all vehicl... |
{"title":"subprocess.check_output() doesn't seem to exist (Python 2.6.5)","tags":["python"],"question_text":"I've been reading the Python documentation about the subprocess module (see\nhere\n) and it talks about a\n`subprocess.check_output()`\ncommand which seems to be exactly what I need.\nHowever, when I try and use... |
{"title":"AngularJS best practices for module declaration?","tags":["angularjs"],"question_text":"I have a bunch of Angular modules declared in my app. I originally started declaring them using the \"chained\" syntax like this:\n`angular.module('mymodule', [])\n .controller('myctrl', ['dep1', function(dep1){ ... }])\n ... |
{"title":"Is there a documented way to set the iPhone orientation?","tags":["iphone","objective-c","cocoa-touch"],"question_text":"I have an app where I would like to support device rotation in certain views but other don't particularly make sense in Landscape mode, so as I swapping the views out I would like to force ... |
{"title":"Using awk to remove the Byte-order mark","tags":["unicode","awk","byte-order-mark"],"question_text":"has anyone an idea how an awk script (presumably a one-liner) for removing a BOM would look like?\nSpecification:\nprint every line after the first (\n`NR > 1`\n)\nfor the first line: If it starts with\n`#FE #... |
{"title":"Using a custom typeface in Android","tags":["xml","android","layout","fonts"],"question_text":"I want to use a custom font for my android application which I am creating.\nI can individually change the typeface of each object from Code, but I have hundreds of them.\nSo,\nIs there a way to do this from the XML... |
{"title":"Strange, unexpected behavior (disappearing\/changing values) when using Hash default value, e.g. Hash.new([])","tags":["ruby","hash"],"question_text":"Consider this code:\n`h = Hash.new(0) # New hash pairs will by default have 0 as values\nh[1] += 1 #=> {1=>1}\nh[2] += 2 #=> {2=>2}`\nThat\u00e2\u0080\u0099s a... |
{"title":"efficient circular buffer?","tags":["python","circular-buffer"],"question_text":"I want to create an efficient\ncircular buffer\nin python (with the goal of taking averages of the integer values in the buffer).\nIs this an efficient way to use a list to collect values?\n`def add_to_buffer( self, num ):\n self... |
{"title":"System.BadImageFormatException: Could not load file or assembly (from installutil.exe)","tags":[".net","windows-services","x86","64bit","x86-64"],"question_text":"I am trying to install a Windows service using InstallUtil.exe and am getting the error message\nSystem.BadImageFormatException: Could not load fil... |
{"title":"C# Passing objects and list of objects by reference","tags":["c#","pass-by-reference"],"question_text":"I have a delegate that modifies an object. I pass an object to the delegate from a calling method, however the calling method does not pickup these changes. The same code works if I pass a List as the objec... |
{"title":"How to delete .orig files after merge from git repository?","tags":["git"],"question_text":"Some how .orig files are checked in my git repository during merge, which are now displayed in modified and un-tracked sector. But I don't want this files anymore in my repository. How to do that.\n`modified: Gemfile.... |
{"title":"Sublime Text 2 - Files not opening a new tab?","tags":["sublimetext"],"question_text":"So, I was really liking Sublime Text 2 but for some reason I stopped getting a new tab when opening a file from the sidebar. The file I select opens in the current tab, but the tab doesn't even update the filename (still sh... |
{"title":"YAML parsing and Python?","tags":["python","parsing","yaml"],"question_text":"What is the best way to parse a YAML file into a Python object?\nFor example, this YAML:\n`Person:\n name: XYZ`\nTo this Python class:\n`class Person(yaml.YAMLObject):\n yaml_tag = 'Person'\n def __init__(self, name):\n self.name = ... |
{"title":"How to add folder to assembly search path at runtime in .NET?","tags":[".net","search","assemblies","path"],"question_text":"My DLLs are loaded by a third-party application, which we can not customize. My assemblies have to be located in their own folder. I can not put them into GAC (my application has a requ... |
{"title":"`from ... import` vs `import .`","tags":["python","syntax","import","module"],"question_text":"I'm wondering if there's any difference between the code fragment\n`from urllib import request`\nand the fragment\n`import urllib.request`\nor if they are interchangeable. If they are interchangeable, which is the \... |
{"title":"Unable to start derby database from Netbeans 7.4","tags":["java","netbeans","derby"],"question_text":"I downloaded Netbeans 7.4 and Java 7 Update 51. I get the below error when I try to start Java DB or derby connection from Netbeans. This is on a windows 8 PC. I downloaded the version for windows xp 32 bit a... |
{"title":"Android Studio Could not find method runProguard() for arguments?","tags":["android","android-studio","android-gradle"],"question_text":"`\/Library\/Java\/JavaVirtualMachines\/jdk1.7.0_60.jdk\/Contents\/Home\/bin\/java \"- com.intellij.rt.execution.application.AppMain org.gradle.launcher.GradleMain --build-fi... |
{"title":"How to retreive form values from HTTPPOST, dictionary or?","tags":["asp.net","asp.net-mvc-3","http-post"],"question_text":"I have an MVC controller that has this Action Method:\n`[HttpPost]\npublic ActionResult SubmitAction()\n{\n \/\/ Get Post Params Here\n ... return something ...\n}`\nThe form is a non-tri... |
{"title":"DataContractSerializer doesn't call my constructor?","tags":["c#",".net","constructor","serialization","datacontractserializer"],"question_text":"I just realized something crazy, which I assumed to be completely impossible : when deserializing an object, the\nDataContractSerializer doesn't call the constructo... |
{"title":"Windows shell command to get the full path to current directory?","tags":["windows","batch-file","command-line","cmd"],"question_text":"Is there a Windows command line command that I can use to get the full path to current working directory? Also, how can I store this path inside a variable used in a batch fi... |
{"title":"Refer to ActionBarSherlock from a library","tags":["android","actionbarsherlock"],"question_text":"Possible Duplicate:\nActionBarSherlock 4.0 doesn't work. But 3.5.1 do.\nI'm trying to use ActionBarSherlock for my app, but there seems to be a problem when referring to ActionBarSherlock from another library pr... |
{"title":"Why doesn't Objective-C support private methods?","tags":["objective-c","objective-c-runtime"],"question_text":"I've seen a number of strategies for declaring semi-private methods in\nObjective-C\n, but there does not seem to be a way to make a truly private method. I accept that. But, why is this so? Every e... |
{"title":"How to check if a word is an English word with Python?","tags":["python","nltk","wordnet"],"question_text":"I want to check in a Python program if a word is in the English dictionary.\nI believe nltk wordnet interface might be the way to go but I have no clue how to use it for such a simple task.\n`def is_eng... |
{"title":"How compare two strings in dot separated version format in Bash?","tags":["linux","bash"],"question_text":"Is there any way to compare such strings on bash, e.g.:\n`2.4.5`\nand\n`2.8`\nand\n`2.4.5.1`\n?","answer_text":"Here is a pure Bash version that doesn't require any external utilities:\n`#!\/bin\/bash\nv... |
{"title":"How big of a jump will it be to go from C# to Objective C","tags":["c#","objective-c","transition"],"question_text":"How hard will it be to transfer from my existing expertise in C# to building apps for the iPad\/iPhone in Objective C?","answer_text":"The language jump is OK. Once you get past the initial sho... |
{"title":"Reading InputStream as UTF-8","tags":["java","utf-8","inputstream"],"question_text":"I'm trying to read from a\n`text\/plain`\nfile over the internet, line-by-line. The code I have right now is:\n`URL url = new URL(\"http:\/\/kuehldesign.net\/test.txt\");\nBufferedReader in = new BufferedReader(new InputStrea... |
{"title":"What design decisions would favour Scala's Actors instead of JMS?","tags":["java","scala","jms","actor"],"question_text":"What are the differences using Scala Actors instead of JMS?\nFor example from a performance and scalability perspective, what does the Scala Actor model add compared to JMS? In which cases... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.