What is the difference between JOIN and JOIN FETCH when using JPA and Hibernate
Please help me understand where to use a regular JOIN and where a JOIN FETCH. For example, if we have these two queries ``` FROM Employee emp JOIN emp.department dep ``` and ``` FROM Employee emp JOI...
Print an ArrayList with a for-each loop
Given the following exists in a class, how do I write a for-each that prints each item in the list? ``` private ArrayList<String> list; list = new ArrayList<String>(); ``` I have: ``` for (String ...
How can I change the font-size of a select option?
I am trying to style a select option dropdown list. Is it possible to make the font-sizes of the options different from the default value? For example, the default: ``` -- Select Country -- ``` Wou...
- Modified
- 17 Nov at 10:4
Changing the Status Bar Color for specific ViewControllers using Swift in iOS8
``` override func preferredStatusBarStyle() -> UIStatusBarStyle { return UIStatusBarStyle.LightContent; } ``` Using the above code in any ViewController to set the statusBar color to White for a sp...
- Modified
- 14 Feb at 06:41
Get the list of packages installed in Anaconda
Over a period of time, I have loaded a number of packages into the Anaconda I have been using. Now I am not able to keep track of it. How do we get a list of all packages loaded in Anaconda (Windows 1...
How to check status of PostgreSQL server Mac OS X
How can I tell if my Postgresql server is running or not? I'm getting this message: ``` [~/dev/working/sw] sudo bundle exec rake db:migrate rake aborted! could not connect to server: Connection ref...
- Modified
- 5 Oct at 12:47
Google Play error "Error while retrieving information from server [DF-DFERH-01]"
I'm just finishing a game for android and I'm testing out the in app purchase functions. I'm sending testing using android.test.purchased It was working fine until a few hours ago. But now when I cl...
- Modified
- 25 Mar at 19:24
How to diff one file to an arbitrary version in Git?
How can I diff a file, say `pom.xml`, from the master branch to an arbitrary older version in Git?
Using the HTML5 "required" attribute for a group of checkboxes?
When using the newer browsers that support HTML5 (FireFox 4 for example); and a form field has the attribute `required='required'`; and the form field is empty/blank; and the submit button is clicked;...
- Modified
- 17 Mar at 16:17
Regular expression for a string that does not start with a sequence
I'm processing a bunch of tables using [this program](http://schemaspy.sourceforge.net/), but I need to ignore ones that start with the label "tbd_". So far I have something like `[^tbd_]`, but that s...
- Modified
- 12 Jan at 03:49
jQuery - how can I find the element with a certain id?
I have a table and each of its `td` has a that corresponds to some time intervals (`0800` til `0830`... `0830` til `0900` and so on). I have an input text where the user will type the time interval...
- Modified
- 14 Oct at 20:15
How do I change the default location for Git Bash on Windows?
I am using Git on Windows 7 and access my repositories through Git Bash. How can I change the default location that Git Bash opens in a convenient folder when I start it? It's somewhat time consuming...
Markdown and image alignment
I am making a site that publishes articles in issues each month. It is straightforward, and I think using a Markdown editor (like the [WMD](http://code.google.com/p/wmd/) one here in Stack Overflow) w...
Binding List<T> to DataGridView in WinForm
I have a class ``` class Person{ public string Name {get; set;} public string Surname {get; set;} } ``` and a `List<Person>` to which I add some items. The list is bound to my `DataGrid...
- Modified
- 1 Jun at 17:26
Get bottom and right position of an element
I'm trying to get the position of an element within the window like so: ``` var link = $(element); var offset = link.offset(); var top = offset.top; var left = offset.left; var bottom = $(window).he...
- Modified
- 26 Mar at 12:39
Execute JavaScript code stored as a string
How do I execute some JavaScript that is a string? ``` function ExecuteJavascriptString() { var s = "alert('hello')"; // how do I get a browser to alert('hello')? } ```
- Modified
- 21 Jan at 15:37
How to set component default props on React component
I use the code below to set default props on a React component but it doesn't work. In the `render()` method, I can see the output "undefined props" was printed on the browser console. How can I defin...
- Modified
- 22 Aug at 18:36
Could not load file or assembly 'Microsoft.ReportViewer.Common, Version=11.0.0.0
I recently upgraded my n-tier solution from . Every thing went fine apart from crystal reports and I had to install new runtime crystal reports for visual studio 2012 from the following link [http://d...
- Modified
- 20 Oct at 03:43
Jenkins Host key verification failed
I have a problem with , setting "git", shows the following error: ``` Failed to connect to repository : Command "git ls-remote -h https://person@bitbucket.org/person/projectmarket.git HEAD" returned ...
- Modified
- 2 Mar at 11:59
How can I set the focus (and display the keyboard) on my EditText programmatically
I have a layout which contains some views like this: ``` <LinearLayout> <TextView...> <TextView...> <ImageView ...> <EditText...> <Button...> </linearLayout> ``` How can I set the focus (display th...
- Modified
- 31 Mar at 19:26
How to use php serialize() and unserialize()
My problem is very basic. I did not find any example to meet my needs as to what exactly `serialize()` and `unserialize()` mean in php? They just give an example - serialize an array and show an outp...
- Modified
- 12 Nov at 12:35
hadoop copy a local file system folder to HDFS
I need to copy a folder from local file system to HDFS. I could not find any example of moving a folder(including its all subfolders) to HDFS `$ hadoop fs -copyFromLocal /home/ubuntu/Source-Folder-To...
Where does R store packages?
The `install.packages()` function in R is the automatic unzipping utility that gets and install packages in R. 1. How do I find out what directory R has chosen to store packages? 2. How can I change...
BeanFactory vs ApplicationContext
I'm pretty new to the Spring Framework, I've been playing around with it and putting a few samples apps together for the purposes of evaluating Spring MVC for use in an upcoming company project. So fa...
- Modified
- 5 Mar at 19:39
How to Identify port number of SQL server
I Install SQL server in my system and I have to check on which port number SQL is working in my system
- Modified
- 18 Oct at 14:5