Type List vs type ArrayList in Java

Type List vs type ArrayList in Java

(1) List<?> myList = new ArrayList<?>();(2) ArrayList<?> myList = new ArrayList<?>();I understand that with (1), implementations of the List interface can be swapped. It seems that (1) is typically used in an application regardless of need

What is the Windows version of cron?

What is the Windows version of cron?

A Google search turned up software that performs the same functions as cron, but nothing built into Windows.I'm running Windows XP Professional, but advice for any version of Windows would be potentially helpful to someone.Is there also a w

Are the PUT, DELETE, HEAD, etc methods available in most web browsers?

Are the PUT, DELETE, HEAD, etc methods available in most web browsers?

I've seen a couple questions around here like How to debug RESTful services, which mentions: Unfortunately that same browser won't allow me to test HTTP PUT, DELETE, and to a certain degree even HTTP POST.I've also heard that browsers supp

How do I format a Microsoft JSON date?

How do I format a Microsoft JSON date?

I'm taking my first crack at Ajax with jQuery. I'm getting my data onto my page, but I'm having some trouble with the JSON data that is returned for Date data types. Basically, I'm getting a string back that looks like this:/Date(1224043200

Competing Consumer on Redis Pub/Sub supported?

Competing Consumer on Redis Pub/Sub supported?

I have 2 services. Both of them need subscribe to the same channel.The 2 services are load balanced. Each service runs on multiple servers.So how can I be sure only 1 instance of each service consume the message of that channel.Is this supp

What are the benefits/consequences of compiling an armv7 only architecture?

What are the benefits/consequences of compiling an armv7 only architecture?

In compiling iPhone apps, there is a setting for "Optimized" architecture (armv7 only) vs a standard armv6/armv7 architecture.What are the benefits/consequences of compiling an armv7 only architecture? 1:A smaller executable is a faster

Bootstrap versions and browser compatibility

Bootstrap versions and browser compatibility

We are currently developing an application that will have to run on older corporate PCs that still have IE6 installed. I have been looking around a bit, but I cannot find a clear answer for the following: is there a link where different boo

glob exclude pattern

glob exclude pattern

I have a directory with a bunch of files inside: eee2314, asd3442 ... and eph.I want to exclude all files that start with eph with the glob function.How can I do it? 1:You can't exclude patterns with the glob function, globs only allow f

Is BIGINT(8) the largest integer mysql can store?

Is BIGINT(8) the largest integer mysql can store?

I've got some numbers that is now larger than INT can handle.This is a bit embarassing, but I honestly don't know exactly what the BIGINT(8) means. Is the 8 in that the max bit value or the max length?So BIGINT(1) can only be one digit? Or

If background applications can't launch automatically how does Cardcase launch on a location ch

If background applications can't launch automatically how does Cardcase launch on a location ch

The Cardcase application lets you know if you approach a shop which you have a previous relationship with (if you've set up a tab for payments there etc.).If background running applications cannot be started automatically on device boot, ho

Hibernate Criteria Projection without mapped association of tables

Hibernate Criteria Projection without mapped association of tables

I have 2 tables say Table1 and Table2 Now Table1 has 3 columns say t1, t2, t3 and Table2 has 2 columns t4 and t5.I have to fetch data from both tables by join but there is no mapped association between two tables in annotation or xml.

Uploaded docx files turning into zip

Uploaded docx files turning into zip

I am currently using symfony 1.4 and would like to allow users to upload Microsoft Word docx files. Using the sfWidgetFormInputFile widget and sfValidatorFile below users are able to select and successfully upload their docx files using a

How to open image in my ios app from another app?

How to open image in my ios app from another app?

As Instagram and some another apps have option to open image in there app from any other app. I also want to do similar kind of thing for my iOS image processing app. So user can open there image from any app in my iPhone/iPad app. But I do

How to set initial value for auto incremented property (DatabaseGeneratedOption.Identity)

How to set initial value for auto incremented property (DatabaseGeneratedOption.Identity)

I have a class called Offer as follows:public class Offer{ public Guid Id { get; set; } [DatabaseGenerated(DatabaseGeneratedOption.Identity)] public int OfferNo { get; set; } public OfferType OfferType { get; set; } public Da

CSS page headers - how to use print margins?

CSS page headers - how to use print margins?

I can get a header to print on each page, but I'm new to print margins. I thought the @page css would work, but it does not seem to affect page margins. If I set the margins on the body, it works on page one, but subsequent pages start the

How to send an Image from Web Service in Spring

How to send an Image from Web Service in Spring

I am facing problem while sending an Image using Spring Web Service.I have written controller as [email protected] class WebService { @RequestMapping(value = "/image", headers = "Accept=image/jpeg, image/jpg, image/png, image/gif",

Can you recommend a database that scales horizontally? [closed]

Can you recommend a database that scales horizontally? [closed]

Generally the database server is the biggest, most expensive box we have to buy as scaling vertically is the only option. Are there any databases that scale well horizontally (i.e. across multiple commodity machines) and what are the limit

Jinja2 in Google App Engine

Jinja2 in Google App Engine

I have started using Jinja2 as my templating engine on Google App Engine (in Python).My question is this: Will bytecode caching work in production? It is working very well on the development server, but I read somewhere that bytecode cachin

Writing a portable C program - which things to consider?

Writing a portable C program - which things to consider?

For a project at university I need to extend an existing C application, which shall in the end run on a wide variety of commercial and non-commercial unix systems (FreeBSD, Solaris, AIX, etc.).Which things do I have to consider when I want

How to escape the single quote character in an ssh / remote bash command?

How to escape the single quote character in an ssh / remote bash command?

I'm building a small set of scripts for remotely starting, stopping and checking the status of a process. The stop of these scripts should look for a process and kill it. Therefore I do:ssh [email protected] 'kill -9 `ps -ef | grep MapReduceNode

How to enable support of CPU virtualization on Macbook Pro?

How to enable support of CPU virtualization on Macbook Pro?

I have the VirtualBox installed on my Macbook Pro, and I want to install a linux VM on VirtualBox.When I launched the new VM, it prompts that "Your CPU does not support long mode. Use a 32bit distribution."After searching for this problem,

What is the difference between MinGW, MinGW-w64 and MinGW-builds?

What is the difference between MinGW, MinGW-w64 and MinGW-builds?

What are the differences between MinGW, MinGW-w64 and MinGW-builds?And which one should I use to compile c++ 11 source code with the Eclipse IDE on a Windows 8 machine? 1:MinGW is a GCC-port for Windows. Not all of the Windows API is sup

What is unicode character 2028 (LS / Line Separator) used for?

What is unicode character 2028 (LS / Line Separator) used for?

I was thinking to myself that the line breaking problem must be somewhat solved by someone, but maybe not widely adopted. Being forward thinking, I went to search to see if there was a platform independent unicode method to separate lines.

Multiple path names for a same component in React Router

Multiple path names for a same component in React Router

I am using the same component for three different routes: Is there anyway to combine it, to be like: 1:I don't think it is unfortunately. You can use a map as you would do with any other JSX component though: {["/home"

Setting JAVA_HOME for intelliJ?

Setting JAVA_HOME for intelliJ?

So i decided to try the beta of android studio today, but it refuses to run on my 32-bit JRE. I can download the 64-bit JRE, but im not interested in it being my default JRE for various reasons (my current 32-bit eclipse IDE, Processing IDE