Sample code:
JFrame jFrame = new JFrame("Test");
jFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
jFrame.setLocationRelativeTo(null);
jFrame.setSize(600, 600);
jFrame.pack();
// jFrame.setLocationRelativeTo(null); // same results
jFrame.setVisible(true);
Is this the OpenJDK's fault? I recall hearing...
Hello,
I am working in scientific computing and developing a petsc-based application for a multi-cpu-system.
For debugging purposes, I want to install that very software on my own pc, which is a dual-core system running Ubuntu (Karmic Koala).
But I do not know which resources to use. There are debian packages, as well as sources-archi...
I started a new project this afternoon and now that I've decided to write some comments, the javadocs are acting weird. I've tried resetting the perspective, but no dice. Any tips to solve this?
...
I am an windows developer with over 15 years experience. I have just started looking at the latest version of Ubuntu Linux. Could someone point me at a good beginners guide to Ubuntu (preferably from a developers prospective) which is aimed at a Windows user? I have found several using google, but unfortunately I know so little on this s...
I was happily using Douglas Crockford's JSLint on Mac OS X and my code passes, but after I got a Ubuntu Hardy Slicehost server and uploaded my code there, the JSLint no longer passes when I try to run it on the server. It fails on my localized files that contain umlauts.
I get errors like:
Lint at line 1206 character 25: Unsafe charact...
Hi All,
I tried to test my application on my android phone, but the it can't be able to detect the device compatibility. The debug mode on phone is enabled.
My phone: Motorola.
My ubuntu: 10.04.
IDE: Eclipse.
I even tried to add the following line:
SUBSYSTEMS==”usb”, ATTRS{idVendor}==”22b8″, ATTRS{idProduct} ==”41db”, MODE=”0600"
t...
Where can I get Ubuntu's source code? Actually I want It's kernel's code. I know I can get the kernel from kernel.org but as I found out that Ubuntu does some patching on the kernel I want to know what are those patches. And yes I know Ubuntu's kernel code can be found in an installed Ubuntu in the file system but thats just the code! I ...
In a local area network is lamp-server, on which the site is located. On the client computers (winXP, Ubuntu) network running opera / firefox (mode kioskmode).
Opera-kioskmode local_site.ru.dev
Is it possible to doing what any script / code local_site.ru.dev - access usb devices (flash drive, SD card and other drives) connected to ...
Possible Duplicate:
C++ IDE for Linux?
Visual Studio 2010 is absolutely incredible when it comes to it's intellisense and debugger. I've been able to find some decent IDE's for Linux (Ubuntu) that have good auto completion, but I have yet to find one with a debugger as good as Visual Studio. Obviously GCC is different then MSV...
I've just installed Flash builder on my machine, which went ahead and installed the debug version of Flash on my machine as well. It appears now that this has broken Flash in my browsers or at least the browsers have no idea where flash is located on my machine. When I open a browser and navigate to a Flash page I get the message,
"Alte...
My ubuntu just got completely mad, not allowing to select anything with the mouse or switch between apps. I had to go to the terminal (ctrl+shit+1) and do a "sudo shutdown now".
Afterwards I remembered I had a very important text not saved in a gedit window.
Is it possible to recover that somehow??
Thanks
...
I have development server (from google appengine sdk), running on my Ubuntu computer. I can access my site by navigating to localhost:8080
I want to access that site from another computer (with Vista OS) in the network.
ifconfig prints the following (snippet):
eth1 Link encap:Ethernet HWaddr 00:1f:e1:c5:30:cf
inet...
What are the benefits of choosing either:
a file in the user's home directory, e.g. ~/.myapp/config
using the user's gconf database
I already know a couple of things; storing data in the user's gconf database makes it a little harder for the user to copy those settings out and onto another account or computer. On the other hand, is i...
When trying to install Bundler 0.8.1 on Ubuntu machine, it install fine but the executable "bundle" is no where to be seen. Other gems install successfully, including their executables.
using: "gem install bundler --version=0.8.1"
RubyGems Environment:
- RUBYGEMS VERSION: 1.3.7
- RUBY VERSION: 1.8.7 (2009-06-12 patchlevel 174) [i486-li...
When some one sends invitation I can see the invitation but the accept/decline button doesn't appear.
I am using Thunderbird-3.1.2 with Lightning-1.0b2 on ubuntu 9.10. Would be really thankful if someone could give the soln.
...
Sorry for the vague question, but I've just written some php code that executes itself as CLI, and I'm pretty sure it's misbehaving. When I run "top" on the command line it's showing very little resources given to any individual process, but between 40-98% to iowait time (%wa). I usually have about .7% distributed between %us and %sy, wi...
Good Morning everyone
I'm currently facing a segfault at random on a little piece of software, however, It appears only when not started with an attached debugger (due to a possible memory error, where values are initialized in a safe interval when started with a debugger).
Is it possible to attach an debugger only in case of an segfau...
Heya, so I've spent about 6 hours now trying to get this working. I had the following set of rules I uses to compile in the memcached plugin to php, installing libmemcached dependency first. Here are the steps:
cd ~
sudo wget http://download.tangent.org/libmemcached-0.35.tar.gz
sudo tar -zxf libmemcached-0.35.tar.gz
cd libmemcache...
I'm a linux noob running Ubuntu 10.04 and trying to install rails. I first installed ruby and then RVM and then downloaded and installed rubygems and then installed rails.
Rails only seems to respond if I have a 'sudo' in front of the command. If I write 'rails new test' in the terminal I get this:
/usr/local/lib/site_ruby/1.8/rubygems...
I want to define a constant inside a function that could be used outside the function's scope.
function section {
variable = "Hello"
}
echo variable
Is this possible?
...