text
stringlengths
74
309k
{"title":"how to capture the '#' character on different locale keyboards in WPF\/C#?","tags":["c#","wpf","keypress"],"question_text":"My WPF application handles keyboard presses and specifically the # and * character as it is a VoIP phone.\nI have a bug though with international keyboards, and in particular the British...
{"title":"MATLAB twice as fast as Numpy","tags":["python","performance","matlab","numpy","intel-mkl"],"question_text":"I am an engineering grad student currently making the transition from MATLAB to Python for the purposes of numerical simulation. I was under the impression that for basic array manipulation, Numpy woul...
{"title":"std::make_tuple doesn't make references","tags":["c++","reference","tuples","c++11"],"question_text":"I've been experimenting with\n`std::tuple`\nin combination with references:\n`#include <iostream>\n#include <tuple>\nint main() {\n int a,b;\n std::tuple<int&,int&> test(a,b);\n std::get<0>(test) = 1;\n std::...
{"title":"Downloading Azure Blob files in MVC3","tags":["asp.net-mvc","asp.net-mvc-3","azure","windows-azure-storage","azure-storage-blobs"],"question_text":"Our ASP.NET MVC 3 application is running on Azure and using Blob as file storage. I have the upload part figured out.\nThe View is going to have the File Name, wh...
{"title":"How to create an SQL View with SQLAlchemy?","tags":["python","postgresql","sqlalchemy"],"question_text":"Everything is in the title. Is there a \"Pythonic\" way (I mean, no \"pure SQL\" query) to define an SQL view with SQLAlchemy ?\nThanks for your help,","answer_text":"Update:\nSee also the SQLAlchemy usage...
{"title":"JUL to SLF4J Bridge","tags":["java","slf4j","logback","java.util.logging"],"question_text":"I'm currently observing that a 3rd party library (namely restfb) is using java.util.logging and I'm seeing those logs end up in STDOUT even though I don't have an SLF4J console appender configured in my logback.xml. I ...
{"title":"Converting Decimal to Binary Java","tags":["java","binary","decimal"],"question_text":"I am trying to convert decimal to binary numbers from the user's input using Java.\nI'm getting errors.\n`package reversedBinary;\nimport java.util.Scanner;\npublic class ReversedBinary {\npublic static void main(String[] a...
{"title":"What are the basic differences and similarities between Angular js and Express js?","tags":["node.js","angularjs"],"question_text":"So I am a bit confused in regards to the aim of Angular js vs Express js. From my understanding we use Node.js to serve Angular js but we are not entirely limited\/forced to use ...
{"title":"Most reliable split character","tags":["string"],"question_text":"Update\nIf you were forced to use a single char on a split method, which char would be the most reliable?\nDefinition of reliable: a split character that is not part of the individual sub strings being split.","answer_text":"We currently use\n`...
{"title":"Internet listener Android example","tags":["java","android","networking","android-intent","android-service"],"question_text":"I am working on Android app that will continuously remains connected with Internet. If Internet is down that it should give appropriate message to User.\nIs there any thing like Intern...
{"title":"Knockout binding css class to an observed model property","tags":["knockout.js"],"question_text":"I want to bind a divs css class to a property of the view model like this:\n`<div id=\"statusIndicator\" data-bind=\"css: selectedPriority\">`\nBut this generates the result:\n`<div id=\"statusIndicator\" class=\...
{"title":"How to initialize a static const member in C++?","tags":["c++","static"],"question_text":"Is it possible to initialize a static const value outside of the constructor? Can it be initialized at the same place where member declarations are found?\n`class A {\nprivate:\n static const int a = 4;\n \/*...*\/\n};`"...
{"title":"Subversion switch: How can I see which branch is current?","tags":["svn","tortoisesvn"],"question_text":"We're experimenting with Subversion as a possible replacement of our current\nStarteam 2005 SCM\n, (so our SVN knowledge is limited at the moment :-)).\nI've been experimenting with the switch command (usi...
{"title":"Python serializable objects json","tags":["python","json","serializable"],"question_text":"`class gpagelet:\n \"\"\"\n Holds 1) the pagelet xpath, which is a string\n 2) the list of pagelet shingles, list\n \"\"\"\n def __init__(self, parent):\n if not isinstance( parent, gwebpage):\n raise Exception(\"Parent...
{"title":"Eclipse with android plugin - Blocked at \"calculating requirements and dependencies\"","tags":["android","eclipse"],"question_text":"I have a problem during the installation of Android in Eclipse (Indigo and Helios, i've tried many different versions). When i search the plugin with the adress\nhttp:\/\/dl-ss...
{"title":"allowing only super user login","tags":["django","django-admin"],"question_text":"I have written a django page that requires only super users to login. So I have added\n`foo_view = staff_member_required(foo_view)`\nbut it doesn't cut, now I can control only allowing staff marked users to login but this doesn'...
{"title":"Local wordpress install only shows home page, all other pages Not Found","tags":["wordpress","localhost"],"question_text":"I am working on a local install of a live wordpress site, all links from the main page show Not Found errors. all .htaccess files are all present.\nThe problem is that every page except f...
{"title":"django's timezone.now does not show the right time","tags":["django","django-timezone"],"question_text":"My server is in London.\nIn my\n`settings.py`\nI have:\n`TIME_ZONE = 'Europe\/Moscow'\nUSE_TZ = True`\nBut when I do this:\n`from django.utils import timezone\nprint timezone.now().hour`\nIt prints London'...
{"title":"Branching and merging in Subclipse","tags":["eclipse","svn","subclipse"],"question_text":"After following all the articles I could find and trying it myself in many different ways, I'm getting a bit desperate towards performing branching and merging in Subclipse.\nAll I get is tree conflicts (even for example...
{"title":"How to upload files to Amazon S3 (official SDK) that are larger than 5 MB (approx)?","tags":[".net","amazon-s3"],"question_text":"I am using the latest version of the official Amazon S3 SDK (1.0.14.1) to create a backup tool. So far everything works correctly if the size of the file I'm uploading is below 5 M...
{"title":"Receiving emails on GIT push","tags":["git","github","githooks","git-push"],"question_text":"I am used to subversion, where the collaborate group would receive an email whenever someone commits.\nIs there a similar feature on GitHub, so the people working on the repository receives an email whenever a user pu...
{"title":"Nullable int type allowed in Settings.settings?","tags":["c#"],"question_text":"I have a property that I'd like to type as\n`int?`\nin my Settings.settings file. When I use\n`int?`\nI get a runtime failure:\nSystem.NullReferenceException: Object reference not set to an instance of an object..\nI can use a str...
{"title":"MySQL IN condition limit","tags":["mysql","condition"],"question_text":"Hey, I have to use IN condition in my MySQL statement with a large set of ids.\nExample\n`SELECT * FROM users WHERE id IN (1,2,3,4...100000)`\nIs there a limit if items the IN statement can have?","answer_text":"No there isn't, check the\...
{"title":"I want to allow invalid SSL certificates with AFNetworking","tags":["objective-c","afnetworking"],"question_text":"I want to allow invalid SSL certificates.\nMy main code is below:\n`myClient = [[MyClient alloc] init];\n[myClient getHtml:@\"\/path\/to\/the\/distination.html\"];`\nThe MyClient class code is be...
{"title":"PHPUnit: How do I create a function to be called once for all my tests?","tags":["php","phpunit"],"question_text":"I have a PHPUnit test case class (consisting of some test functions). I would like to write a\n`oneTimeSetUp()`\nfunction to be called once for all my tests in the class (unlike the standard\n`se...
{"title":"Javascript - Variable in function name, possible?","tags":["javascript"],"question_text":"i hope this question is not too simple, but i have no idea :(\nHow can i start a function with a var in the function name?\nFor example ...\nmy functions\n`function at_26();\nfunction at_21();\nfunction at_99();`\nstart ...
{"title":"Should I use std::for_each?","tags":["c++","stl","lambda","for-loop","foreach"],"question_text":"I'm always trying to learn more about the languages I use (different styles, frameworks, patterns, etc). I've noticed that I never use\n`std::for_each`\nso I thought that perhaps I should start. The goal in such c...
{"title":"What's the deal with all the different UIDs a process can have?","tags":["linux","security","unix"],"question_text":"Real UID, effective UID, and some systems even have a \"saved UID\". What's the purpose of all these, especially the last one?","answer_text":"Each UNIX process has 3 UIDs associated to it. Sup...
{"title":"iOS: Detect when my UIView is add in other view","tags":["ios","uiview","superview"],"question_text":"`CustomView *customView = [...];\n[self.view addSubview:customView];`\nI need to detect in my CustomView class when it is added in other views or when my superview changes.","answer_text":"You can use\n`willM...
{"title":"postgres LISTEN\/NOTIFY rails","tags":["ruby-on-rails","postgresql","asynchronous","push-notification"],"question_text":"Ryan Bates mentions the LISTEN\/NOTIFY functionality of Postgres when discussing push notifications in\nthis episode\n, but I haven't been able to find any hint on how to implement a LISTEN...
{"title":"GNU make: should the number of jobs equal the number of CPU cores in a system?","tags":["makefile","gnu-make"],"question_text":"There seems to be some controversy on whether the number of jobs in GNU make is supposed to be equal to the number of cores, or if you can optimize the build time by adding one extra...
{"title":"Jstack and Not enough storage is available to process this command","tags":["java","jstack"],"question_text":"I'm trying to run jstack command on my java application. Application is rather big, running inside jboss AS occupying about 4gb of memory. OS is Windows Server 2003 Standard edition. Every time i get ...
{"title":"This application does not exist (app_id=xxx)","tags":["python","google-app-engine"],"question_text":"I was unable to upload to an AppEngine as\n`appcfg`\nwas telling me :\nThis application does not exist (app_id=u'xxx').\nI was only a developer on the AppEngine, so as I was just testing I created a new AppEng...
{"title":"Membership Generate Password alphanumeric only password?","tags":["asp.net","regex","asp.net-membership","membership"],"question_text":"How can I use Membership.GeneratePassword to return a password that ONLY contains alpha or numeric characters? The default method will only guarantee a minimum and not a maxi...
{"title":"Pandas convert dataframe to array of tuples","tags":["python","pandas"],"question_text":"I have manipulated some data using pandas and now I want to carry out a batch save back to the database. This requires me to convert the dataframe into an array of tuples, with each tuple corresponding to a \"row\" of the...
{"title":"Solve PermGen errors when building in IntelliJ with Maven?","tags":["java","maven","compilation","intellij-idea","gigaspaces"],"question_text":"If I get PermGen OutOfMemoryError from the app server when building my project in IntelliJ with Maven, is it the heap that Maven uses that I should increase? I use Wi...
{"title":"Hibernate or JPA or JDBC or?","tags":["java","hibernate","jpa","jdbc","dao"],"question_text":"I am developing a Java Desktop Application but have some confusions in choosing a technology for my persistence layer.\nTill now, I have been using JDBC for DB operations. Now, Recently I learnt Hibernate and JPA but...
{"title":"Cost of using params in C#","tags":["c#","parameter-passing","params","method-overloading"],"question_text":"Does anyone have advice for using the params in C# for method argument passing. I'm contemplating making overloads for the first 6 arguments and then a 7th using the params feature. My reasoning is to ...
{"title":"Retrieving a list of GORM persistent properties for a domain","tags":["grails","gorm"],"question_text":"What's the best\/easiest way to get a list of the persistent properties associated with a given GORM domain object? I can get the list of all properties, but this list contains non-persistent fields such as...
{"title":"Why does xsd.exe generate string property for xs:integer?","tags":["c#",".net","xsd","xsd.exe"],"question_text":"When I generate a c# class from a xsd schema with xsd.exe I find this behaivor a bit wierd.\nMy element:\n`<xs:element name=\"InvoiceNo\" type=\"xs:integer\"\/>`\nis generated to:\n`[System.Xml.Ser...
{"title":"iOS devices as web server","tags":["iphone","objective-c","ios","cocoa-touch","ipad"],"question_text":"I saw there are several apps on App Store that allow other computers to make a http connection to the iPhone\/iPad devices to transfer files. It seemed like a web service is running on the iOS device. Just c...
{"title":"How to redirect without www using Rails 3 \/ Rack?","tags":["ruby-on-rails","redirect","ruby-on-rails-3","seo","rack"],"question_text":"I understand there are a lot of questions that answer this. I'm familiar with\n`.htaccess`\nand\n`nginx.conf`\nmethods, but I do not have access to such traditional configura...
{"title":"Java XML DOM: how are id Attributes special?","tags":["java","dom"],"question_text":"The javadoc for the\n`Document`\nclass has the following note under\n`getElementById`\n.\nNote: Attributes with the name \"ID\" or \"id\" are not of type ID unless so defined\nSo, I read an XHTML doc into the DOM (using Xerce...
{"title":"Android - WebView = Web page not available","tags":["android","webview"],"question_text":"When using a\n`WebView`\nview in my app, no matter what page I force it to visit, it says\nWeb page not found\n. Here is my code:\n`MainActivity.java`\n`package com.testing.webview;\nimport android.app.Activity;\nimport ...
{"title":"UIAlertController:supportedInterfaceOrientations was invoked recursively","tags":["uialertcontroller","xcode7","ios9","xcode7-beta3"],"question_text":"When two alert present one by one, i means one alert present and over them another alert presenting and app crashing.\nI have used\n`UIAlertController`\nto dis...
{"title":"How to find nth parent of an element using jquery","tags":["jquery","dom","navigation","parent"],"question_text":"I want to find the nth parent element of an given element and access the attributes of parent.\n`<div id='parent1'><br\/>\n <div id='parent2'><br\/>\n <span><p id='element1'>Test<\/p><\/span><br\/...
{"title":"Why jQuery do this: jQuery.fn.init.prototype = jQuery.fn?","tags":["javascript","jquery"],"question_text":"Little extended question is why jQuery do\n`jQuery.fn = jQuery.prototype = {\ninit: function() {...},\n f1: function() {...},\n ...\n};\njQuery.fn.init.prototype = jQuery.fn;`\nWhy not simply add\n`f1()`...
{"title":"How to prevent your JavaScript code from being stolen, copied, and viewed?","tags":["javascript","security"],"question_text":"I know its impossible for 100% protection, but something high or that works for majority of the users.\nFor instance, I encountered a site where viewing the current page's source retur...
{"title":"Practical non-Turing-complete languages?","tags":["regex","finite-automata","turing-complete","halting-problem"],"question_text":"Nearly all programming languages used are\nTuring Complete\n, and while this affords the language to represent any\ncomputable\nalgorithm, it also comes with its own set of\nproble...
{"title":"How to check if number is divisible by a certain number?","tags":["java","division"],"question_text":"I am using AndEngine to add sprites to the screen and come across using the movemodifier method.\nI have two integers \nMaxDuration and MinDuration;\nWhat i want to do is when the user gets to a score of a ce...
{"title":"ActionMailer 3 without Rails","tags":["ruby","ruby-on-rails-3","actionmailer"],"question_text":"I'm writing a small Ruby program that will pull records from a database and send an HTML email daily. I'm attempting to use ActionMailer 3.0.3 for this, but I'm running in to issues. All the searching I've done so ...
{"title":"Many to many mapping with extra fields in Fluent API","tags":["entity-framework","ef-code-first"],"question_text":"I have a many to many relationship and I want to store extra data in the couple-table, using Code First Fluent API.\nHow can this be achieved ?\nMy model:\nA user can have 1 or more badges (optio...
{"title":"How to keep XmlSerializer from killing NewLines in Strings?","tags":["c#",".net","xml-serialization"],"question_text":"Suppose I have a simple Class with just one Member a String.\n`public class Abc\n{\n private String text;\n public String Text\n {\n get { return this.text; }\n set { this.text = value; }\n }...
{"title":"How do I make a marquee progress bar in WPF?","tags":["wpf",".net-3.5","controls","styles"],"question_text":"In Winforms I could set the ProgressBarStyle of a progress bar to Marqee, and that would have the progress bar incriment on its own without having to be set, for processes where I don't know how long i...
{"title":"How to inflate view inside fragment","tags":["android","android-fragments","fragment"],"question_text":"If I try to inflate a view within a fragment I am getting NULL.. For example:\n`public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n \/\/ Here I will infla...
{"title":"Dynamically add textViews to a linearLayout","tags":["android","textview","android-edittext","add","dynamic"],"question_text":"I read this somewhere here and I totally lost it, but could use some assistance.\nMy app is pulling the column names from sqlite into an array. I want to create a textview and edit te...
{"title":"How can I edit on my server files without restarting nodejs when i want to see the changes?","tags":["javascript","node.js"],"question_text":"I'm trying to setup my own nodejs server, but I'm having a problem. I can't figure out how to see changes to my application without restarting it. Is there a way to edi...
{"title":"In Rust, how do I invoke a system command and capture its output?","tags":["rust"],"question_text":"Is there a way to invoke a system command, like\n`ls`\nor\n`fuser`\nin Rust? How about capturing its output?","answer_text":"There is\nstd::process::Command\nfor that.\nThere is multiple ways to spawn a child p...
{"title":"Error Installing rails on Ubuntu 10.04","tags":["ruby-on-rails","ubuntu","rubygems"],"question_text":"I am trying to install rails on Ubuntu 10.04. So far, I've executed these commands:\n`apt-get install build-essential libapache2-mod-passenger apache2 rubygems ruby1.8-dev libopenssl-ruby\ngem install fastthr...
{"title":"LinearLayout.LayoutParams how to use dip...?","tags":["android"],"question_text":"I'm trying to set the height of my\n`LinearLayout`\nto 45 dip.\nHow can I do this when extending\n`LinearLayout`\n?\nRight now I just did:\n`LinearLayout.LayoutParams params = new LinearLayout.LayoutParams(LayoutParams.FILL_PARE...
{"title":"Variables in wget post data","tags":["bash","variables","wget","postdata"],"question_text":"I am working on a simple bash script to download images from the website Tumblr. The idea is to use\n`read`\nto get login info from the user, and\n`wget --post-data`\nto log in, and this is what I have:\n`read -p \"Tum...
{"title":"How can I get href links from HTML using Python?","tags":["python","html","hyperlink","href"],"question_text":"`import urllib2\nwebsite = \"WEBSITE\"\nopenwebsite = urllib2.urlopen(website)\nhtml = getwebsite.read()\nprint html`\nSo far so good.\nBut I want only href links from the plain text HTML. How can I ...
{"title":"How do I pan the image inside a UIImageView?","tags":["cocoa-touch","core-animation"],"question_text":"I have a\n`UIImageView`\nthat is displaying an image that is wider and taller than the\n`UIImageView`\nis. I would like to pan the image within the view using an animation (so that the pan is nice and smooth...
{"title":"DETERMINISTIC, NO SQL, or READS SQL DATA in its declaration and binary logging is enabled","tags":["mysql"],"question_text":"While importing the database in mysql, I have got following error:\n`1418 (HY000) at line 10185: This function has none of DETERMINISTIC, NO SQL, or READS SQL DATA in its declaration an...
{"title":"Valid query to check if row exists in SQLite3","tags":["sqlite","sqlite3"],"question_text":"Is this the best(most efficient) way to check if a row exists in a table?\n`SELECT EXISTS(SELECT 1 FROM myTbl WHERE u_tag=\"tag\");\n\/\/ Table is...\n\/\/ CREATE TABLE myTbl(id INT PRIMARY KEY, u_tag TEXT);`\nAlso wha...
{"title":"What is the best way to escape non-format characters in Oracle's to_char?","tags":["sql","oracle","to-char"],"question_text":"I am trying to print a date in a select statement, but I need to add a letter to the output:\n`to_char(date_updated, 'YYYY-MM-DDTHH:mm:ss')`\nOracle does not like the T. I just want th...
{"title":"How can I make text appear on next line instead of overflowing?","tags":["css","text","overflow"],"question_text":"I have a fixed width div on my page that contains text. When I enter a long string of letters it overflows. I don't want to hide overflow I want to display the overflow on a new line, see below:\...
{"title":"Enable \/ disable session state per controller \/ action method","tags":["asp.net-mvc","caching","session-state","zeus"],"question_text":"We are building an ASP.NET MVC application which will be deployed behind a hardware load balancer that supports, among other things, caching.\nOur proposal is to manually d...
{"title":"A const field of a reference type other than string can only be initialized with null Error","tags":["c#",".net"],"question_text":"I'm trying to create a 2D array to store some values that don't change like this.\n`const int[,] hiveIndices = new int[,] {\n{200,362},{250,370},{213,410} , \n{400,330} , {380,282...
{"title":"Why is a database always represented with a cylinder?","tags":["database","database-design","diagram","diagramming","database-diagramming"],"question_text":"This question came up today and I couldn't find any historical answer as to why a database is always represented as a cylinder. I am hoping someone in th...
{"title":"How to sort Counter by value? - python","tags":["python","sorting","collections","counter"],"question_text":"Other than doing list comprehensions of reversed list comprehension, is there a pythonic way to sort Counter by value? If so, it is faster than this:\n`>>> from collections import Counter\n>>> x = Coun...
{"title":"Replace \"\\\\\" with \"\\\" in a string in C#","tags":["c#","string","replace","backslash"],"question_text":"I still don't get how to do this. I saw many posts regarding this, but none of the solutions worked for me.\nI have a string called \"a\\\\b\". The result I need is \"a\\b\". How is this done?\nI have...
{"title":"Select column, if blank select from another","tags":["sql","sql-server-2000"],"question_text":"How does one detect whether a field is blank (not null) and then select another field if it is?\nWhat I really need is a IsBlank function that works the same as IsNull but with with blanks.\nREPLACE doesn't work wit...
{"title":"Is there a brief syntax for executing a block n times in Scala?","tags":["scala"],"question_text":"I find myself writing code like this when I want to repeat some execution n times:\n`for (i <- 1 to n) { doSomething() }`\nI'm looking for a shorter syntax like this:\n`n.times(doSomething())`\nDoes something li...
{"title":"How to open url from string in webview for iPhone","tags":["ios","uiwebview","iphone"],"question_text":"I want to just open a url from my string\nmy string is already having url I just want to show in\n`UIWebView`\n`myString=http:\/\/maps.google.com\/maps?zoom=8&sensor=false&lci=transit&layer=traffic&saddr=1....
{"title":"A Typed array of functions","tags":["typescript"],"question_text":"I'm struggling to figure out if it's possible in TypeScript to declare a statically typed array of functions.\nFor example, I can do this:\n`foo: (data:string) => void = function (data) {};`\nBut if I want foo to be an array of functions that ...
{"title":"Pull in changes from a Github fork","tags":["git","github","git-merge","git-commit"],"question_text":"Someone forked a Github project of mine and made some changes. How can I merge the changes back in to my upstream version?\nAlso, is it possible to pull in just a specific commit?\nWhat I'm looking is if ther...
{"title":"Task.WaitAll hanging with multiple awaitable tasks in ASP.NET","tags":["c#","asp.net","task-parallel-library","async-await"],"question_text":"Below is a simplified version of the code I'm having trouble with. When I run this in a console application, it works as expected. All queries are run in parallel and\n...
{"title":"View diff of staged changes in git","tags":["git","git-diff"],"question_text":"Possible Duplicate:\nHow do I show the changes which have been staged?\nIs there a simple way to view the diff of only the\nstaged\nchanges I have pending in git? I've staged several files but want to take one last look at what I'm...
{"title":"Need clarification about UIApplicationState","tags":["uiapplication"],"question_text":"I need your help in clarifying my understanding of the various states of an app. I am going to state my interpretation - but please feel free to correct me.\n1) App is launched and running in the foreground: state = UIAppli...
{"title":"How to test 500.html in rails development env?","tags":["ruby-on-rails","development-environment"],"question_text":"I want to test the 500 error pages in my Rails app using the development environment.\nI already tried this in\n`config\/environments\/development.rb`\n:\n`config.action_controller.consider_all_...
{"title":"How do I drop to the IRB prompt from a running script?","tags":["ruby","irb"],"question_text":"Can I drop to an IRB prompt from a running Ruby script?\nI want to run a script, but then have it give me an IRB prompt at a point in the program with the current state of the program, but not just by running rdebug...
{"title":"UIScrollView in Storyboard not working with iOS 8 Size Classes and Autolayout","tags":["ios","uiscrollview","ios8","autolayout","size-classes"],"question_text":"So I'm trying to create a\n`UIScrollView`\nonly in storyboard that allows me to add scrolling labels for more than the height of the VC. Here's what ...
{"title":"some containers in stl don't have find function","tags":["c++","stl","containers"],"question_text":"Some of the STL containers such as\n`std::list`\nand\n`std::vector`\ndon't have\n`find()`\nmethod as a member function. Why is that? I know that there is the alternative of using\n`std::find`\nfrom\n`<algorithm...
{"title":"Comparison of CI Servers?","tags":[".net","comparison","continuous-integration"],"question_text":"I am searching for a comparison of different\ncontinuous integration\n(CI) Servers (esp. focusing\non .NET) and couldn't find any.\nTherefore I'd like to know what you think about the\ndifferent solutions availab...
{"title":"Adding greek character to axis title","tags":["r","unicode","labels","plotmath"],"question_text":"I want to add a greek character to the y-axis of my barplot in R.\nThe problem is that I need this character to be integrated in the title. I want to write:\n`Diameter of aperture (\"mu\"m)`\nin the axis label.\n...
{"title":"Calling a base class constructor from derived class in Java","tags":["java"],"question_text":"I have a class as follows:\n`public class Polygon extends Shape{\n private int noSides;\n private int lenghts[];\n public Polygon(int id,Point center,int noSides,int lengths[]) {\n super(id, center);\n this.noSides =...
{"title":"how to \"reimport\" module to python then code be changed after import","tags":["python","runtime","overloading","python-import"],"question_text":"I have a\n`foo.py`\n`def foo():\n print \"test\"`\nIn IPython I use:\n`In [6]: import foo\nIn [7]: foo.foo()\ntest`\nThen I changed the\n`foo()`\nto:\n`def foo():\...
{"title":"Scala : fold vs foldLeft","tags":["scala","reduce","fold"],"question_text":"I am trying to understand how fold and foldLeft and the respective reduce and reduceLeft work. I used fold and foldLeft as my example\n`scala> val r = List((ArrayBuffer(1, 2, 3, 4),10))\nscala> r.foldLeft(ArrayBuffer(1,2,4,5))((x,y) =...
{"title":"How to get user input in Clojure?","tags":["clojure","user-input"],"question_text":"I'm currently learning clojure, but I was wondering how to get and store user input in a clojure program. I was looking at the clojure api and I found a function called read-line, however I'm not sure how to use it if it's the...
{"title":"Where's the iPhone MIME type database?","tags":["iphone","objective-c","cocoa","cocoa-touch"],"question_text":"I have a program for the iPhone that is supposed to be doing intelligent things (picking out appropriate icons for file types) given a list of filenames. I'm looking for the iPhone take on something ...
{"title":"node.js require cannot find custom module","tags":["javascript","osx","node.js","require"],"question_text":"Here is the project structure:\n`\/\n app.js\n package.json\n \/node_modules\n \/app\n config.json\n \/frontend\n assets and html tpls\n \/modules\n couch.js\n raeume.js\n users.js`\nI require config.js...
{"title":"Extension Methods not Recognized","tags":["c#","extension-methods"],"question_text":"What is necessary to have an extension method honored when it exists in an imported assembly? I built one in a class library project but it is not recognized in my web project which references the library. All the other class...
{"title":"C# interface cannot contain operators","tags":["c#","interface","operators","static-methods"],"question_text":"Can anyone please explain why C# interfaces are not allowed to contain operators?\nThanks.","answer_text":"C#\noperators have to be static\n. Interfaces, by definition, apply to instances. There is n...
{"title":"How can I make auto-complete display a list in Xcode","tags":["xcode","ide","autocomplete"],"question_text":"How can I use auto-complete in Xcode like I can in Visual Studio and Eclipse? Specifically in VS and Eclipse auto-complete displays a list of choices... while Xcode just displays a single choice.\nFor ...
{"title":"Validate data using DataAnnotations with WPF & Entity Framework?","tags":[".net","wpf","entity-framework","validation","data-annotations"],"question_text":"Is there any way to validate using DataAnnotations in WPF & Entity Framework?","answer_text":"You can use the DataAnnotations.Validator class, as describe...
{"title":"PHP function to replace a (i)th-position character","tags":["php","string","replace"],"question_text":"Is there a function in PHP that takes in a string, a number (\n`i`\n), and a character (\n`x`\n), then replaces the character at position (\n`i`\n) with (\n`x`\n)?\nIf not, can somebody help me in implementi...
{"title":"How to clear push notification badge count in iOS?","tags":["ios","xcode","apple-push-notifications"],"question_text":"I want to clear the push notification badge count once app is launched.Im not clear where to set the below code.Please give brief description about clearing the badge count.\n`[UIApplication ...
{"title":"How large is the usable area in iPad Safari","tags":["ipad","mobile-safari"],"question_text":"I'm developing a web app for the iPad, to run in Safari. I don't yet have an iPad to test on. Does anyone know the usable screen size - after any space for the safari\/ipad controls is takes up?","answer_text":"You s...
{"title":"Arrow keys type capital letters instead of moving the cursor","tags":["osx","terminal","vim"],"question_text":"I've installed the latest vim using homebrew and also installed mac-vim from the google code homepage.\nin mac-vim everything works fine. but when I run vim in terminal.app in mac and go to insert mo...