text stringlengths 74 309k |
|---|
{"title":"PG Peer authentication failed","tags":["ruby-on-rails","postgresql"],"question_text":"I have a user with password matching the one specified in database.yml\n`postgres=# select * from pg_user\n;\n usename | usesysid | usecreatedb | usesuper | usecatupd | userepl | passwd | valuntil | useconfig \n------------+... |
{"title":"Matplotlib - label each bin","tags":["python","matplotlib","visualization","histogram","graphing"],"question_text":"I'm currently using Matplotlib to create a histogram:\n`import matplotlib\nmatplotlib.use('Agg')\nimport matplotlib.pyplot as pyplot\n...\nfig = pyplot.figure()\nax = fig.add_subplot(1,1,1,)\nn,... |
{"title":"Chaining Core Animation animations","tags":["objective-c","cocoa","core-animation"],"question_text":"Which is the most elegant and modular way to chain animation in a\nCore Animation\ncontext?\nI mean to do animations that starts just when other finished (for example, changing\n`position`\nand then\n`opacity`... |
{"title":"Bind jQuery UI autocomplete using .live()","tags":["binding","autocomplete","jquery"],"question_text":"I've searched everywhere, but I can't seem to find any help...\nI have some textboxes that are created dynamically via JS, so I need to bind all of their classes to an autocomplete. As a result, I need to us... |
{"title":"Shared preferences inside broadcastreceiver","tags":["android","broadcastreceiver","sharedpreferences"],"question_text":"In my app,i want to use Shared Preferences inside a broadcast receiver...But i cant access the getPreferences() method inside...\n`SharedPreferences sharedPreferences = getPreferences(MODE_... |
{"title":"Why shouldn't I use immutable POJOs instead of JavaBeans?","tags":["java","immutability","javabeans","pojo"],"question_text":"I have implemented a few Java applications now, only desktop applications so far. I prefer to use immutable objects for passing the data around in the application instead of using obje... |
{"title":"GoogleTest: How to skip a test?","tags":["googletest"],"question_text":"Using Google Test 1.6 (Windows 7, Visual Studio C++). How can I turn off a given test? (aka how can I prevent a test from running). Is there anything I can do besides commenting out the whole test?","answer_text":"The\ndocs\nfor Google Te... |
{"title":"how to display image from path in asp.net mvc 4 and razor view","tags":["asp.net-mvc","image","razor"],"question_text":"this is the model.\n`public class Player\n{\n public String ImagePath\n {\n get\n {\n return \"~\/Content\/img\/sql_error.JPG\";\n }\n }`\nthis is my .cshtml\nand what i tried:\n`@model Soul... |
{"title":"Disable arrow key scrolling in users browser","tags":["javascript","canvas","scroll","arrow-keys"],"question_text":"I'm making a game using canvas, and javascript.\nWhen the page is longer than the screen (comments, etc.) pressing the down arrow scrolls the page down, and makes the game impossible to play.\nW... |
{"title":"MVC3 Valums Ajax File Upload","tags":["asp.net","asp.net-mvc","asp.net-mvc-3"],"question_text":"I'm trying to use valums ajax uploader.\nhttp:\/\/valums.com\/ajax-upload\/\nI have the following on my page:\n`var button = $('#fileUpload')[0];\nvar uploader = new qq.FileUploader({\n element: button,\n allowedEx... |
{"title":"How to filter keys of an object with lodash?","tags":["javascript","filter","lodash"],"question_text":"I have an object with some keys, and I want to only keep some of the keys with their value?\nI tried with\n`filter`\n:\n`var data = {\n \"aaa\":111,\n \"abb\":222,\n \"bbb\":333\n};\nvar result = _.filter(da... |
{"title":"NodeJS Error: node.js:810 var cwd = process.cwd();","tags":["node.js"],"question_text":"I'm new to nodeJS and also new to StackOverflow...\nI'm starting to develop my first SPA, using RequireJS to compile my sources into a \"dist\" folder. I had NodeJS running a basic script to run my server:\n`var connect = ... |
{"title":"Subversion vs CVS","tags":["svn","version-control","cvs"],"question_text":"I've used both SVN and CVS a little bit, but will need to choose one for a new project I will be starting.\nCan anyone who has used both extensively please offer some pros and cons and which they think is better? Best learning resource... |
{"title":"How to convert a java.util.List to a Scala list","tags":["list","scala","scala-java-interop"],"question_text":"I have this Scala method with below error. Cannot convert into a Scala list.\n`def findAllQuestion():List[Question]={\n questionDao.getAllQuestions()\n }`\ntype mismatch; found :\n`java.util.List[com... |
{"title":"Genymotion VirtualBox error","tags":["android","virtualbox","genymotion"],"question_text":"I have installed Genymotion and VirtualBox on my computer, and set up a Samsung Galaxy S6 device through Genymotion. However, when I try to start the device, Genymotion gives me this error:\nUnable to start the virtual ... |
{"title":"iterate over tuple","tags":["c++","c++11"],"question_text":"How can I iterate over a tuple (using C++11)? I tried the following, but that doesn't work:\n`for(int i=0; i<std::tuple_size<T...>::value; ++i) \n std::get<i>(my_tuple).do_sth();`\nError 1: sorry, unimplemented: cannot expand \u00e2\u0080\u0098Listen... |
{"title":"Visual Studio 2010 Web deployment task failed","tags":["visual-studio","visual-studio-2010","web-deployment-project"],"question_text":"I am trying to use VS2010's 1-Click Publish feature to deploy a test site from my laptop to my server. I have the firewall turned off on both machines and the MS Deployment Se... |
{"title":"Fill List<int> with default values?","tags":["c#","list"],"question_text":"Possible Duplicate:\nAuto-Initializing C# Lists\nI have a list of integers that has a certain capacity that I would like to automatically fill when declared.\n`List<int> x = new List<int>(10);`\nIs there an easier way to fill this list... |
{"title":"What is happening here in this C++ code?","tags":["c++"],"question_text":"Can anyone please explain what is going in this C++ code. It compiles and executes fine on Linux.\n`#include <iostream>\nusing namespace std;\nint main = ( cout << \"Hello world!\\n\", 195 );`","answer_text":"The number \"195\" is the c... |
{"title":"PHP's array_map including keys","tags":["php","functional-programming"],"question_text":"Is there a way of doing something like this:\n`$test_array = array(\"first_key\" => \"first_value\", \n \"second_key\" => \"second_value\");\nvar_dump(array_map(function($a, $b) { return \"$a loves $b\"; }, \n array_keys(... |
{"title":"Missing .map resource?","tags":["javascript","jquery","html"],"question_text":"I've recently started having this problem with all my projects. When my index page loads which contains a reference to the jquery source file, my console logs this error:\n`GET http:\/\/localhost:3000\/js\/lib\/jquery-1.10.2.min.ma... |
{"title":"tic, toc functions analog in Python","tags":["python","matlab"],"question_text":"What is the best analog of MATLAB tic and toc functions (\nhttp:\/\/www.mathworks.com\/help\/techdoc\/ref\/tic.html\n) in Python?","answer_text":"Apart from\n`timeit`\nwhich ThiefMaster mentioned, a simple way to do it is just (a... |
{"title":"get all keys set in memcached","tags":["get","memcached","key","telnet"],"question_text":"How can I get all the keys set in my memcached instance(s)?\nI tried googling, but didn't find much except that\n`PHP`\nsupports a\n`getAllKeys`\nmethod\n, which means it is actually possible to do this somehow.\nSo, How... |
{"title":"How do I get the current year using SQL on Oracle?","tags":["sql","oracle","date"],"question_text":"I need to add the current year as a variable in an SQL statement, how can I retrieve the current year using SQL?\ni.e.\nBETWEEN \n TO_DATE('01\/01\/\n**currentYear**\n00:00:00', 'DD\/MM\/YYYY HH24:MI:SS')\n AND... |
{"title":"Capture characters from standard input without waiting for enter to be pressed","tags":["c++","c","inputstream"],"question_text":"I can never remember how I do this because it comes up so infrequently for me. But in C or C++, what is the best way to read a character from standard input without waiting for a n... |
{"title":"How to mock localStorage in JavaScript unit tests?","tags":["javascript","unit-testing","mocking","local-storage"],"question_text":"Are there any libraries out there to mock\n`localStorage`\n?\nI've been using\nSinon.JS\nfor most of my other javascript mocking and have found it is really great.\nMy initial te... |
{"title":"How can I create Yosemite-style unified toolbar in Interface Builder?","tags":["osx","interface-builder","osx-yosemite"],"question_text":"In OS X 10.10+ how can I create the \"fat titlebar\" kind of window that has a toolbar integrated with other gadgets in the window's title bar, like in the new Safari and C... |
{"title":"unobtrusive client validation using fluentvalidation and asp.net mvc LessThanOrEqualTo not firing","tags":["c#","jquery","asp.net-mvc","asp.net-mvc-3","fluentvalidation"],"question_text":"I have the following rules\nthe 1st does work using unobtrusive, client side validation, the second does not\nany ideas wh... |
{"title":"Why do we need \"a:link\"? Why not just \"a\"?","tags":["html","css"],"question_text":"It seems the following variants produce identical results:\n`\/* 1 *\/\na, a:visited, a:active { color: black; }\na:hover { color: red; }\n\/* 2 *\/\na, a:link, a:visited, a:active { color: black; }\na:hover { color: red; }... |
{"title":"Creating Rails 3.1 app with Postgresql database (OSX Lion)","tags":["ruby-on-rails","ruby-on-rails-3","postgresql"],"question_text":"I cant seem to find an up-to-date guide to creating a new Rails 3.1 app with a Postgresql database. I would greatly appreciate a guide through that process.","answer_text":"Sinc... |
{"title":"How does Git solve the merging problem?","tags":["svn","git","version-control"],"question_text":"SVN made branching much easier by making branches really cheap, but merges remain a real problem in SVN - one that Git supposedly solves.\nDoes Git achieve this, and how?\n(disclaimer: All I know about Git is base... |
{"title":"How to do a Jquery Callback after form submit?","tags":["javascript","jquery","html","asp.net","webforms"],"question_text":"I have a simple form with remote=true.\nThis form is actually on an HTML Dialog , which gets closed as soon as the Submit button is clicked.\nNow I need to make some changes on the main ... |
{"title":"Why can't I put a constraint on nvarchar(max)?","tags":["sql-server","sql-server-2005"],"question_text":"Why can't I create a constraint on an\n`nvarchar(max)`\ncolumn? SQL Server will not allow me to put a unique constraint on it. But, it allows me to create a unique constraint on an\n`nvarchar(100)`\ncolumn... |
{"title":"Highlighting the clicked row of a striped HTML table","tags":["javascript","css"],"question_text":"Here's an example of my problem on jsFiddle.\nI have a table with striped rows imposed by using\n`tr:nth-child(odd)`\nin the CSS, as is done in Twitter Bootstrap for the\n`table-striped`\nclass. I want to highli... |
{"title":"What's the equivalent of use-commit-times for git?","tags":["git"],"question_text":"I need the timestamps of files on my local and on my server to be in sync. This is accomplished with Subversion by setting use-commit-times=true in the config so that the last modified of each file is when it was committed.\nE... |
{"title":"webdesign - jpg or png, which one is the best for web","tags":["website","png","jpeg"],"question_text":"I've been a web developer for quite some time, and I am used to transforming all my designs into the png file format in order to build my webpages. Despite the fact that png, contrary to jpg, allows transpa... |
{"title":"htaccess exclude one url from Basic Auth","tags":["apache",".htaccess","authorization"],"question_text":"I need to exclude one Url (or even better one prefix) from normal htaccess Basic Auth protection. Something like\n\/callbacks\/myBank\nor\n\/callbacks\/.\n*\nDo you have any hints how to do it?\nWhat I'm n... |
{"title":"Visual Studio retrieving an incorrect path to a project from somewhere","tags":["visual-studio","caching","tfs"],"question_text":"Visual Studio (and possibly TFS) has somehow (I think perhaps during a source control merge) become confused about the path of a project within my solution.\nIt thinks it is here (... |
{"title":"How can I use IBOutletCollection to connect multiple UIImageViews to the same outlet?","tags":["ios","objective-c","xcode","uiimageview","iboutletcollection"],"question_text":"I have 10 UIImageViews which do the same thing (they have some void methods that change their image with a timer).\nMy UIImageView is ... |
{"title":"Objective C Default parameters?","tags":["objective-c","parameters","default-value"],"question_text":"Possible Duplicates:\nOptional arguments in Objective-C 2.0?\nObjective-C Default Argument Value\nI'm writing a C function in Objective C. I want a default value for my last parameter.\nI've tried:\n`foo(int ... |
{"title":"Terminate a multi-thread python program","tags":["python","multithreading"],"question_text":"How to make a multi-thread python program response to Ctrl+C key event?\nEdit:\nThe code is like this:\n`import threading\ncurrent = 0\nclass MyThread(threading.Thread):\n def __init__(self, total):\n threading.Thread... |
{"title":"GMail is ignoring \"display:none\"","tags":["html","css","email","html-email"],"question_text":"I have a query that gmail is ignoring \"display:none\" - what to do? in email html for hide arow or div","answer_text":"If style=\"display:none\" does not work in gmail, put style=\"display:none !important;\" \nand... |
{"title":"Difference between DropDownlist or DropDownListFor Html helper","tags":["asp.net","asp.net-mvc","entity-framework"],"question_text":"It seems weird that I couldn't find an explanation of the difference between those two helpers, so I would assume that is something obvious but I missed.\nBasically I am trying ... |
{"title":"JQuery: 'Uncaught TypeError: Illegal invocation' at ajax request when data parameter is array","tags":["html","ajax","jquery"],"question_text":"I have two select elements, A and B: when A's selected option changes, B's options must be updated accordingly. Each element in A implies many elements in B, it's a o... |
{"title":"Log Messages I didn't asked for in Xcode 4.5 with iOS 6.0","tags":["objective-c","xcode","ios6"],"question_text":"since I updated Xcode to Version 4.5 and started building for iOS 6 log messages like this keep appearing:\n`ADDRESPONSE - ADDING TO MEMORY ONLY`\nI never asked for that (at least not consciously)... |
{"title":"How does inheritance work for Attributes?","tags":["c#",".net","vb.net","attributes"],"question_text":"What does the\n`Inherited`\nbool property on attributes refers to?\nDoes it mean that if I define my class with an attribute\n`AbcAtribute`\n(that has\n`Inherited = true`\n), and if I inherit another class f... |
{"title":"Actual meaning of 'shell=True' in subprocess","tags":["python","subprocess"],"question_text":"I am calling different processes with the\n`subprocess`\nmodule. However, I have a question.\nIn the following codes:\n`callProcess = subprocess.Popen(['ls', '-l'], shell=True)`\nand\n`callProcess = subprocess.Popen(... |
{"title":"Jquery $(window).height() function does not return actual window height","tags":["javascript","jquery","window","height"],"question_text":"I have a page that I need to dynamically load ajax content when the user scrolls to the bottom. The problem is that JQuery is not returning the correct window height. I ha... |
{"title":"How best to use File Version and Assembly Version?","tags":[".net","attributes","versions"],"question_text":"In .NET there are two version numbers available when building a project, File Version and Assembly Version. How are you using these numbers? Keeping them the same? Auto-incrementing one, but manually c... |
{"title":"Declaring strings public static readonly versus public const versus public static const","tags":["c#","string"],"question_text":"In each project we have there is a file used to store the various SQL statements used in that project. There are a handful of variations on how the class is declared and how the str... |
{"title":"Swift with iOS 5 deployment target","tags":["ios","swift"],"question_text":"What is the minimum deployment target for Xcode 6 and the new Swift language? Specifically, can I still support iOS 5.0?","answer_text":"From one of the engineers working on Swift\n, iOS 7, Mavericks and later.","question_code":[],"an... |
{"title":"Get refresh token google api","tags":["google-calendar","token","access-token","gdata"],"question_text":"I can't get my refresh token with my code. I can only get my access token, token type etc.,\nI have followed some tutorials like putting access_type=offline on my login url\n`echo \"<a href='https:\/\/acco... |
{"title":"How to change a Ruby on Rails application name?","tags":["ruby-on-rails","ruby-on-rails-3"],"question_text":"I have a Ruby on Rails application that was created using:\n`rails new old_name -d mysql`\nNow I want to change the application name to be\n`new_name`\n.\nJust changing the application folder name will... |
{"title":"NOT using repository pattern, use the ORM as is (EF)","tags":["entity-framework","design-patterns","architecture","aop","repository-pattern"],"question_text":"I always used Repository pattern but for my latest project I wanted to see if I could perfect the use of it and my implementation of \u00e2\u0080\u009c... |
{"title":"How to conclude your merge of a file?","tags":["git","merge"],"question_text":"After I merged a file in Git I tried to pull the repository but error came up:\nYou have not concluded your merge. (MERGE_HEAD exists)\nHow does one conclude a merge?","answer_text":"Check status (\n`git status`\n) of your reposito... |
{"title":"Display Current Date on JSF Page","tags":["jsf-2"],"question_text":"Is it possible to display the current date (today's) in JSF without using a backing bean?\nI have the following code snippet , but it didn't work out.\n`<div class=\"leftSide\">Today's date #{currentDate}<\/div>`\nor\n`<f:facet name=\"header\... |
{"title":"Ruby Array limit method","tags":["ruby","arrays"],"question_text":"I want to limit an Array object. How is this possible with ruby\n`['one','two','three'].limit(2) => ['one','two']`\nThanks for your quick help!","answer_text":"The\nArray#take\nmethod is probably what you want.\n`['one','two','three'].take(2)`... |
{"title":"Node.js - EJS - including a partial","tags":["node.js","ejs"],"question_text":"I am trying to use Embedded Javascript renderer for node:\nhttps:\/\/github.com\/visionmedia\/ejs\nI would like to know how I can include another view file (partial) inside a .ejs view file.","answer_text":"With Express 3.0:\n`<%- ... |
{"title":"How do you cache an image in Javascript","tags":["javascript","jquery","image","caching","browser-cache"],"question_text":"My friends and I are working on a website where we would like to cache certain images in order to display them faster in the future. I have two main questions:\nHow do you cache an image?... |
{"title":"'Newtonsoft.Json...' exists in both 'Blend\\Newtonsoft.Json.dll' and 'Solution\\packages\\...\\","tags":["c#","asp.net",".net","visual-studio","json.net"],"question_text":"I'm not able to build the solution in Visual Studio 2013.\nThis just happened after I updated my JSON.NET package to 6.0.1. Before that, i... |
{"title":"Composite Key Dictionary","tags":["c#","dictionary"],"question_text":"I have some objects in List, let's say\n`List<MyClass>`\nand MyClass has several properties. I would like to create an index of the list based on 3 properties of of MyClass. In this case 2 of the properties are int's, and one property is a ... |
{"title":"Grouping into interval of 5 minutes within a time range","tags":["mysql","sql","group-by"],"question_text":"I have some difficulties with mySQL commands that I want to do.\n`SELECT a.timestamp, name, count(b.name) \nFROM time a, id b \nWHERE a.user = b.user\n AND a.id = b.id\n AND b.name = 'John'\n AND a.time... |
{"title":"How to automatically generate comments in Visual Studio 2010 and C#?","tags":["c#","visual-studio-2010"],"question_text":"From Eclipse I'm used that when I start typing a comment for a class or method, the parameters, return types and exceptions are autogenerated. But in VisualStudio 2010 I can't find somethi... |
{"title":"How can I customize the system menu of a Windows Form?","tags":["c#",".net","winforms","winapi","systemmenu"],"question_text":"I want to add the age old About menu item to my application. I want to add it to the 'system menu' of the application (the one which pops up when we click the application icon in the ... |
{"title":"Custom Fonts in Xcode 5","tags":["iphone","xcode","fonts","xcode5"],"question_text":"How would you add a custom font in Xcode 5 and how would you change every label in the project to that font? Because I've heard you can only do this programmatically?","answer_text":"You need to set every label programmatical... |
{"title":"Rails + Devise - Is there a way to BAN a user so they can't login or reset their password?","tags":["ruby-on-rails","ruby-on-rails-3","devise"],"question_text":"I have a lot of users thanks to devise and I want to ban a few problem makers. Does Devise have this support built in?\nThanks","answer_text":"From t... |
{"title":"How does one start a node.js server as a daemon process?","tags":["node.js"],"question_text":"In Python Twisted, you have the\n`twistd`\ncommand that helps you with a number of things related to running your application (daemonize it for example).\nHow do you daemonize a\nnode.js\nserver so that it can run ev... |
{"title":"R: rJava package install failing","tags":["r","rjava"],"question_text":"When installing rJava using the\n`install.packages(\"rJava\")`\ncommand I get the following error:\n`checking Java support in R... present:\ninterpreter : '\/usr\/bin\/java'\narchiver : '\/usr\/bin\/jar'\ncompiler : '\/usr\/bin\/javac'\nh... |
{"title":"How do you remove a tag from a remote repository","tags":["git"],"question_text":"Is it possible to untag a revision that has been push upstream using git.\nThis is what has happened:\n`git tag 1.1\n git push --tags origin master`\nDoh! That was meant to be version 1.1beta\nCan you rebase and repush upstream.... |
{"title":"How do websites know they're not the default home page or search provider?","tags":["javascript","browser","search-engine","home"],"question_text":"As far as I'm aware, there is no public API exposure of a browser's default homepage\/search provider. So how does Google know to display this? It only comes arou... |
{"title":"Number.sign() in javascript","tags":["javascript","algorithm","numbers","sign"],"question_text":"Wonder if there are any nontrivial ways of finding number's sign (\nsignum function\n)?\nMay be shorter \/ faster \/ more elegant solutions than the obvious one\n`var sign = number > 0 ? 1 : number < 0 ? -1 : 0;`\... |
{"title":"NSFileManager unique file names","tags":["objective-c","ios","cocoa-touch","uniqueidentifier","file-management"],"question_text":"I need a quick and easy way to store files with unique file names on iOS. I need to prefix the file with a string, and then append the generated unique identifier to the end. I was... |
{"title":"template filter to trim any leading or trailing whitespace","tags":["django","django-filter"],"question_text":"Is there a template filter in django that will trim any leading or trailing whitespace from the input text.\nSomething like,\n`{{ var.example|trim }}`","answer_text":"Django templates\nallow you to a... |
{"title":"Jquery to change form action","tags":["jquery"],"question_text":"I have two buttons in a form and two different pages have to be called when they are clicked. when button1 is clicked then page1 must be loaded and when button2 is clicked then page2 must be loaded. i know how to do this in javascript but i have... |
{"title":"Bootstrap tab activation with JQuery","tags":["javascript","jquery","twitter-bootstrap"],"question_text":"I have the following code\n`<ul class=\"nav nav-tabs\">\n <li><a href=\"#aaa\" data-toggle=\"tab\">AAA<\/a><\/li>\n <li><a href=\"#bbb\" data-toggle=\"tab\">BBB<\/a><\/li>\n <li><a href=\"#ccc\" data-togg... |
{"title":"Is it possible to write a function template which returns whether the number of arguments is divisible by N?","tags":["c++","c++11","variadic-templates"],"question_text":"I've been learning about variadic templates, and with the help of\nthis excellent blog post\n, I've managed to write a function template\n`... |
{"title":"meteor: how can I backup my mongo database","tags":["mongodb","import","backup","meteor","dump"],"question_text":"How can I make a backup of my meteor mongo database?\nIf I run:\n`meteor mongo`\nthe mongodump command does not work inside the meteor mongoshell","answer_text":"First you need to spin up meteor.\... |
{"title":"What is the purpose of the Visual Studio Hosting Process?","tags":["visual-studio"],"question_text":"When debugging a program using Visual Studio you are given the option to\n`Enable the Visual Studio hosting process`\n. What is this purpose of this option and what effect does it have?","answer_text":"The MSD... |
{"title":"Why not use heap sort always","tags":["algorithm","sorting","heapsort"],"question_text":"The\nHeap Sort\nsorting algorithm seems to have a worst case complexity of O(nlogn), and uses O(1) space for the sorting operation.\nThis seems better than most sorting algorithms. Then, why wouldn't one use Heap Sort alw... |
{"title":"Changing the CommandTimeout in SQL Management studio","tags":["sql","ssms","timeoutexception"],"question_text":"How can I change the CommandTimeout in SQL Management Studio?","answer_text":"If you are getting a timeout while on the table designer, change the \"Transaction time-out after\" value under Tools --... |
{"title":"ASP.NET MVC 5 vs. AngularJS \/ ASP.NET WebAPI","tags":["asp.net","asp.net-mvc","angularjs"],"question_text":"I'm currently evaluating the programming model for creating future Webapplications in my company. So I will decide between ASP.NET MVC 5 (with Razor Views) and AngularJS with ASP.NET WebAPI. What are t... |
{"title":"How to remove duplicate entries from a mysql db?","tags":["mysql","duplicate-removal"],"question_text":"I have a table with some ids + titles. I want to make the title column unique, but it has over 600k records already, some of which are duplicates (sometimes several dozen times over).\nHow do I remove all d... |
{"title":"Convert XML to JSON (and back) using Javascript","tags":["javascript","jquery","xml","json","format-conversion"],"question_text":"How would you convert from XML to JSON and then back to XML?\nThe following tools work quite well, but aren't completely consistent:\nxml2json\njson2xml\nHas anyone encountered thi... |
{"title":"What's the new way to iterate over a Java Map in Scala 2.8.0?","tags":["scala","language-features","scala-2.8"],"question_text":"How does\n`scala.collection.JavaConversions`\nsupercede the answers given in Stack Overflow question\nIterating over Java collections in Scala\n(it doesn't work because the \"jcl\" ... |
{"title":"Help with __add__","tags":["python"],"question_text":"I am trying to understand how\n`__add__`\nworks:\n`class MyNum:\n def __init__(self,num):\n self.num=num\n def __add__(self,other):\n return MyNum(self.num+other.num)\n def __str__(self):\n return str(self.num)`\nIf I put them in a list\n`d=[MyNum(i) for i... |
{"title":"How can I enable \"URL Rewrite\" Module in IIS 8.5 in Server 2012?","tags":["windows-server-2012","url-rewrite-module","iis-8.5"],"question_text":"I have windows server 2012 and I have installed the IIS 8.5 but I could not see the URL rewrite module. How can I enable or install?","answer_text":"Download it fr... |
{"title":"Syntax error installing gunicorn","tags":["python","heroku","gunicorn"],"question_text":"I am following this Heroku tutorial:\nhttps:\/\/devcenter.heroku.com\/articles\/getting-started-with-python-o\nand when I am trying to install gunicorn in a virtualenv I am getting this error:\n`(venv)jabuntu14@ubuntu:~\/... |
{"title":"CSS: Change image src on img:hover","tags":["html","css"],"question_text":"I need to change\n`<img>`\nsource URL on\n`hover`\n.\nI have tried this but won't work :\nHTML\n`<img id=\"my-img\" src=\"http:\/\/dummyimage.com\/100x100\/000\/fff\"\/>`\nCSS\n`#my-img:hover {\n content: url('http:\/\/dummyimage.com\/... |
{"title":"How do I do OuterHTML in firefox?","tags":["javascript","dom","cross-browser"],"question_text":"Part of my code I get the OuterHTML propery\n`\"<LI onclick=\"TabClicked(this, 'SearchName', 'TabGroup1');\">Name \"`\nso I can do stuff involing parsing it.\nThere is no OuterHTML property in javascript on firefox... |
{"title":"vim: execute shell command without filtering","tags":["vim","shell"],"question_text":"I want to select a block of text (eg.\n`V%`\n) and use the text as input to a shell command (eg.\n`wc`\nor\n`pbcopy`\n) - but I DON'T want to alter the current buffer - I just want to see the output of the command (if any) t... |
{"title":"Why is a Dictionary \"not ordered\"?","tags":["c#",".net","dictionary","order","bcl"],"question_text":"I have read this in answer to many questions on here. But what exactly does it mean?\n`var test = new Dictionary<int, string>();\ntest.Add(0, \"zero\");\ntest.Add(1, \"one\");\ntest.Add(2, \"two\");\ntest.Ad... |
{"title":"How to pop fragment off backstack","tags":["android","back-stack"],"question_text":"I have an activity A, which calls fragment Bf, which calls fragment Cf. I want Bf to be placed in the backstack when Cf is called so that users can navigate back to it. However, if a specific button is pressed in Cf, I would l... |
{"title":"How can I reload a script in IRB?","tags":["ruby","irb"],"question_text":"I am writing a Ruby script for use in the Rails environment, but I chose to run it from irb because reloading the Rails console can be a pain. Now the wait time is much shorter from irb, but I'm bothered that I have to restart irb and r... |
{"title":"call name of method contained in a string","tags":["groovy"],"question_text":"How can I call a method based on the value of a string in Groovy? For example instead of\n`switch (val) {\ncase \"one\":\n Obj.one()\n break\ncase \"two\":\n Obj.two()\n break\n}`\nI\u00e2\u0080\u0099d like to do something like\n`ob... |
{"title":"C# Connecting Through Proxy","tags":["c#","proxy"],"question_text":"I work in a office which requires all connections to be made through a specific http proxy. I need to write a simple application to query some values from a webserver - it's easy if there were no proxy. How can I make the C# application proxy... |
{"title":"What is an HttpHandler in ASP.NET","tags":["asp.net","httphandler","ihttphandler","ihttpasynchandler"],"question_text":"What is an HttpHandler in ASP.NET? Why and how is it used?","answer_text":"In the simplest terms, an ASP.NET HttpHandler is a class that implements the\n`System.Web.IHttpHandler`\ninterface.... |
{"title":"How do I create an ActiveX control (COM) in C#?","tags":["visual-studio-2010","com","activex","c#-4.0"],"question_text":"I am trying to create an ActiveX control. I using\nVisual\u00a0Studio\u00a02010\n(.NET 4). I need to create a\nCOM\nobject (in C#) and have no idea how to get started (what type of project ... |
{"title":"How to export library to Jar in Android Studio?","tags":["android","android-studio"],"question_text":"I have downloaded some library sources and would like to export it as a Jar file using\nAndroid Studio. Is there a way to export to jar file using Android studio ?\nedit:\nThe library I want to export as jar ... |
{"title":"Eclipse, change popup text background color when hovering the mouse on a keyword","tags":["eclipse","ubuntu-10.04"],"question_text":"Ubuntu 10.04.1 new theme has by default all windows background colors set to black.\nI don't want to change that.\nIn Eclipse, the interface didn't change much due to 10.04.1 - ... |
{"title":"Java change \u00c3\u00a1\u00c3\u00a9\u00c5\u0091\u00c5\u00b1\u00c3\u00ba to aeouu","tags":["java","string"],"question_text":"Possible Duplicates:\nRemove diacritical marks (\u00c5\u0084 \u00c7\u00b9 \u00c5\u0088 \u00c3\u00b1 \u00e1\u00b9\u0085 \u00c5\u0086 \u00e1\u00b9\u0087 \u00e1\u00b9\u008b \u00e1\u00b9\u0... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.