question1_id
stringlengths
1
8
question1
stringlengths
10
149
question2_id
stringlengths
2
8
question2
stringlengths
13
150
3363557
What's the best way to avoid lots of "if (obj != null)" in Java code?
271526
Avoiding NullPointerException in Java
3378533
What's all the fuss about C++ copy constructors?
3278625
When do we have to use copy constructors?
4216716
Is there a version of the shorthand If-Then-Else in C# (cond ? a : b), in VB.Net?
3479112
Java String from InputStream
309424
How do I read / convert an InputStream into a String in Java?
1763789
How do I convert an InputStream to a String in Java?
3440066
Why is it so 'hard' to write a for-loop in C++ with 2 loop variables?
3337126
In C++ why can't I write a for() loop like this: for( int i = 1, double i2 = 0;
3142212
Iterating over map in Freemarker
1497777
Freemarker iterating over hashmap keys
4345498
Asp.Net Web Service Application missing in Visual Studio 2010
3259047
VS 2010 Web Service project template missing?
3527203
GetFiles with multiple extensions
163162
Can you call Directory.GetFiles() with multiple filters?
3989816
Reading a string line per line in C#
1547476
Easiest way to split a string on newlines in .NET?
4482533
Thread Safe Efficient way to implement singleton pattern in Java?
70689
What is an efficient way to implement a singleton pattern in Java?
3515523
Javascript: How to generate formatted easy-to-read JSON straight from an object?
2614862
How can I beautify JSON programmatically?
4364332
How do I check if an image has preloaded successfully?
1977871
Check if an image is loaded (no errors) with jQuery
3086609
Ruby on Rails: How to have multiple submit buttons going to different methods (maybe with with_action?)
3027149
How do I create multiple submit buttons for the same form in Rails?
3523761
Is getting and setting a simple static properties thread safe?
2074670
Are C# auto-implemented static properties thread-safe?
3526555
What does the PHP operator =& mean?
1367454
What do the "=&" and "&=" operators in PHP mean?
4261708
++i or i++ in for loops ??
4494114
About ![CDATA[, what is it?
4339702
What is the meaning of CDATA
4265716
How do you write a compiler for a language in that language?
4174867
What is the definition of "legacy code"?
479596
What makes code legacy?
4325416
How do I get the username in Python?
842059
Is there a portable way to get the current username in Python?
3542714
Variable interpolation in Python
3534803
Unpythonic way of printing variables in Python?
4229662
Convert numbers within a range to numbers within another range
929103
Convert a number range to another range, maintaining ratio
4077239
What's a good way to check if a double is an integer in C#?
2751593
How to determine if a decimal/double is an integer?
3537336
In PHP, what's the diff : $var2=$var1 ; $var2=&$var1;
1768343
Reference assignment operator in PHP, =&
3520422
Ethical Dilemma: Should I still cater for IE6 as a web-developer
13786
Should we support IE6 anymore?
3113583
How could one implement C++ virtual functions in C
2181079
Object oriented programming in C
3910049
CSS: How to limit text shown with using "..."
2108740
How do I indicate long text into a smaller fixed column with CSS?
3913963
Length of arguments of Python function?
990016
How to find out the arity of a method in Python
4255598
delete vs delete[]
1553382
Is delete[] equal to delete?
4267387
Why does Visual Studio 2010's C# debugger continue instead of stepping over?
3144880
Visual Studio 2010 debugger skipping
4367723
Get Enum from Description attribute
3422407
Finding an enum value by its Description Attribute
3542745
Differences between echo, echo(), print and print() in PHP
3564837
Capacity of ArrayList
2497063
How to get the capacity of the ArrayList in Java?
3573997
Get child elements from XElement
486912
Children of XElement
4085914
binary divisibility by 3
844867
Check if a number is divisible by 3
3620744
Smart Pointer Implementation in C
799825
Smart pointers/safe memory management for C?
3621215
What does @ mean in PHP?
3048340
When are database triggers bad?
460316
Are database triggers evil?
4322514
How to check Android version in code
3093365
How can I check the system version of Android?
4379113
Android eclipse plugin lags on type (3.6 - Helios)
3953012
Eclipse Android SDK slow Content Assist performance
4380806
iPhone Data Usage Monitoring
7946699
iPhone Data Usage Tracking/Monitoring
3596023
Round to 2 decimal places
2808535
Round a double to 2 decimal places
2153180
What is ?: in PHP 5.3?
1080247
What are the PHP operators "?" and ":" called and what do they do?
3612035
c# check if a directory is hidden?
1288975
How to test if directory is hidden in C#?
3614309
Why use htmlspecialchars() when you have htmlentities()?
46483
htmlentities() vs. htmlspecialchars()
4648602
private constructor
2062560
What is the use of making constructor private in a class?
3567985
Do "" and '' have different meanings in JavaScript?
242813
When should I use double or single quotes in JavaScript?
3982456
Something like FindBugs for .NET/C#
397641
FindBugs for .NET
3993924
Get Android API level of phone currently running my application
2768806
Programmatically obtain the Android API level of a device?
4011629
Swapping two items in a javascript array
872310
Javascript swap array elements
3183545
Is it necessary to learn JavaScript before learning jQuery?
668642
Is it a good idea to learn JavaScript before learning jQuery?
4489791
Facebook Android SDK Invalid_key
4848067
Login failed invalid key error with Facebook SDK
4078954
How do you find the last day of the month?
2493032
How do I get the last day of a month?
4097338
How to find index of an element in Python list?
3989016
How to find all positions of the maximum value in a list?
3113877
Ruby on Rails: Is there a way to make blank form inputs submit nil?
1183506
Make blank params[] nil
4607081
What are the advantages of interfaces and abstract classes?
4617978
Is there any standardized and commonly-used library for C (C99 or whatever), as STL is for C++?
305611
Container Class / Library for C
4164143
Manipulate the back of the activity stack in Android
1898886
Removing an activity from the history stack
4176377
How to get the full path of the file from a file input
3489133
Full path from file input using jQuery
4112914
Is it better to pass by value or by reference for basic datatypes?
2139224
How to pass objects to functions in C++?
4637584
Ruby's equivalent to C#'s ?? operator
953216
C# ?? operator in Ruby?
3768084
why java does not support multiple inheritance
4743730
What is console.log and how do I use it?
4539253
What is console.log?
3134583
Visual Studio - sending "content" files to the output directory instead of a subdirectory?
1014207
Copy to Output Directory copies folder structure but only want to copy files
4140324
Parse URL with Javascript
736513
How do I parse a URL into hostname and path in javascript?
4565697
Finding the interval between two java.util.date
1555262
Calculating the difference between two Java date instances
4569314
Regex To Search for Nested Brackets
133601
Can regular expressions be used to match nested patterns?
3681000
How to refactor legacy code effectively and efficiently?
871238
What should I keep in mind in order to refactor huge code base?
3705991
how to show Messagebox in MVVM
1098023
How have you successfully implemented MessageBox.Show() functionality in MVVM?
4234235
What does ?v=2 mean in css?
3466989
What does appending "?v=1" to CSS and JavaScript URLs in link and script tags do?
4246318
Can I add a javascript alert inside a PHP function? If yes, how?
1045845
How to call a JavaScript function from PHP?
3662410
create my own programming language
1550025
How to create a language these days?
3667708
Where can I read C99 official language standard manual/reference/specification online?
3714971
Difference between singleton class and static class?
3532161
What is the difference between a Singleton pattern and a static class in Java?
4777958
C to C++ : Transitioning from one language to the other
1421668
C++ tutorial for experienced C programmer
3760696
What do I need to know about C++0x?
200237
Where can I learn more about C++0x?
4174248
Why should I create Interfaces in PHP?
20463
What is the point of interfaces in PHP?
4297841
What should be the typical length of user's Full Name in database
20958
List of standard lengths for database fields
4331837
Why can't functions be overloaded by return type?
442026
Function overloading by return type?
3279631
Why are SQL entries written in uppercase?
3837858
Is it possible to execute both if and else part of an if --- else control statement?
3031610
Simultaneous execution of both if and else blocks
3294764
simulate private variables in python
2064202
Private members in Python
4802494
do I need to close a std::fstream?
748014
Do I need to manually close an ifstream?
3774650
enum members of Int32 type
1813408
C# int, Int32 and enums
4338589
Close a WP7 application programmatically?
3659195
Windows Phone 7 close application
4526074
What is the best way to make a copy of an InputStream in java
4064211
How to make a deep copy of an InputStream in Java
4180134
how to get user's screen resolution with PHP
1504459
Getting the screen resolution using PHP
4191532
String or string
3756908
Can't find Magick-config
3894225
ImageMagick / RMagick - Can't install RMagick 2.13.1. Can't find Magick-config
4813909
Why is (-1 >>> 32) = -1?
3170412
why is 1>>32 == 1?
4751845
What is the difference between public int i and public int i {get; set;} (what is the difference between automatic property and a public member?)
3891402
Operator overloading and namespaces
3623631
Where should non-member operator overloads be placed?
3800957
What does ||= mean in Ruby?
4669317
How to convert a bitmap image to black and white in c#?
4624998
convert image to Black-White or Sepia in c#
953030
Naming conventions for tables and columns in database
7662
Database, Table and Column Naming Conventions?
954302
How to make a programme continue to run after log out from ssh?
285015
How to prevent a background process from being stopped after closing SSH client in Linux
972307
How to loop through all enum values in C#?
1028138
Tool to reverse Javascript minify?
822119
Tool to Unminify / Decompress JavaScript
2259282
How to shorten a string without slicing through a word while keeping within a character limit in PHP
79960
How to Truncate a string in PHP to the word closest to a certain number of characters?
2231796
Heap class in .NET
428829
Fibonacci, Binary, or Binomial heap in c#?
2272786
Python issue:Unable to find vcvarsall.bat
2817869
error: Unable to find vcvarsall.bat
2252573
Why use getters and setters
1568091
Why use getters and setters/accessors?
2253758
How to delete all cookies with jquery
179355
Clearing all cookies with JavaScript
1228554
C# - Loading .NET Assembly into Separate AppDomain So You Can Unload It
88717
Loading DLLs into a separate AppDomain
1244094
Converting json results to a date
1266422
Why static classes cant implement interfaces?
259026
Why Doesn't C# Allow Static Methods to Implement an Interface?
2362097
Why is the size of an empty class in C++ not zero?