ubuntu

Java: JFrame.setLocationRelativeTo(null) not centering the window on Ubuntu 10.04 / gnome 2.30.2 with OpenJDK 1.6.0_18.

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...

Which PETSc and MPI for Ubuntu on a dual-core system

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...

Eclipse no longer completing my javadocs with params/return tags.

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? ...

Beginners Ubuntu linux guide for experienced windows developer

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...

JSLint "Unsafe character"

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...

How to connect the android phone on Ubuntu 10.04

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 the Ubuntu’s source can be gotten?

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 ...

web develop + usb notification

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 ...

IDE Like Visual Studio 2010 for Linux

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...

Flash player on Ubuntu 10 not working after Flex builder installation

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...

Is it possible to recover an usaved file that was being edited in gedit in ubuntu?

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 ...

How to access http://localhost:8080/ from another computer in the network.

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...

Configuration storage for a desktop application

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...

"gem install bundler --version=0.8.1" doesn't install the bundle executable

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...

Issue with Lighting 1.0b2 with thunderbird 3.1.2

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. ...

High %wa CPU load when running PHP as CLI

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...

Ubuntu just-in-time debugging

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...

Having huge problems getting memcached plugin working on ub 9.04

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...

Installing Rails Path on Ubuntu with RVM

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...

Global function inside in Bash?

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? ...