Showing posts with label Linux. Show all posts
Showing posts with label Linux. Show all posts

Weather Application Fedora 19

September 08, 2013 Add Comment

Weather Application Fedora 19


Gnome 3.8 was shipped, along with the easy to use program to view the weather. But defaul program only displays the temperature in degrees Celsius. A bug has been sent to study in future versions may appear in the program settings window. In the meantime, in order to display the temperature in degrees Celsius, it is necessary to do following items:

su -

yum install dconf-editor

Start the dconf-editor and follows the menu here: org -> gnome -> gweather. 
Changing the value of the item on the temperature-unit centigrade:






Its so simple to view template records on PC.. Great fun

Installing Cplex in Linux Ubuntu

May 02, 2011 Add Comment

Installing Cplex in Linux Ubuntu




I've been trying to install ILOG's Cplex product on a 64 bit Ubuntu machine. There are a few small hiccups I encountered.

First, try to install as root with

./cplex_studio122.linux-x86.bin

On my machine I'm installing to /opt/ILOG/CPLEX_Studio122. If you get an error like "jre/bin/java: not found" then you need the "32 bit libs" package:

apt-get install ia32-libs

(You may also need to set the path with LD_LIBRARY_PATH=/usr/lib32). The 32 bit libraries seem to be required only for the installer (at least, they are not needed for programs that just link with the static Cplex libs).

After installing, you may get a build error (running as a non-root user) that it can't find the cplex header files. Try ls /opt/ILOG/CPLEX_Studio122 and see if there are permission denied messages - the installation seems to screw up some permissions on this folder, however this is easily fixed with chmod +r /opt/ILOG/CPLEX_Studio122.

If you are using COIN-OR's Osi class OsiCpxSolverInterface you will also need the following at the top of your OsiCpxSolverInterface.cpp file:

#include "/opt/ILOG/CPLEX_Studio122/cplex/include/ilcplex/cplex.h"

A typical Makefile snippet which includes Cplex and COIN/Osi might then look like:

my_objects = YourFile.o OsiCbcSolverInterface.o OsiCpxSolverInterface.o

CPPFLAGS = -fPIC -I/usr/include -I/usr/include/coin -DNDEBUG -I/opt/ILOG/CPLEX_Studio122/cplex/include/ilcplex

LIBFLAGS = -l:libCbc.so -l:libCbcSolver.so -l:libCoinUtils.so -l:libOsi.so -l:libOsiClp.so -l:libClp.so -l:/opt/ILOG/CPLEX_Studio122/cplex/lib/x86-64_sles10_4.1/static_pic/libcplex.a -l:/opt/ILOG/CPLEX_Studio122/cplex/lib/x86-64_sles10_4.1/static_pic/libilocplex.a 

my_program : $(my_objects)
g++ -Wall -fPIC -shared -o my_program $(my_objects)

.PHONY : clean

clean :
rm *.o my_program

Develop Websites with Bluefish in ubuntu

April 06, 2011 Add Comment
Develop Websites with Bluefish in Ubuntu



Linux is at the forefront of web development, and Ubuntu is a great distribution to use to build and design a website for the first time. Recently, I've been developing web applications using frameworks, and Linux in general makes these things quite a bit easier. Therefore, I figured I should present some of the basic tools you can use to create, develop, and host a website. This may abstract a bit away from the idea of "applications" in and of themselves, but I thought you may all be interested anyway.

The most logical first step for most users is selecting a development environment. Today, I'll highlight Bluefish. Later on, I'll focus on a WYSIWYG editor. (Which, by the way, is kind of difficult to find. Please, if you have any ideas, leave a message in the comments.)

Of course, to put your webpage on the Internet, you'll probably want to use a reliable web hosting. There's about a million out there, and it's hard to figure out the differences between them. I used to have a site on Bluehost, but I eventually cancelled because I thought their support was poor, and I didn't want to fax in a copy of my driver's license just to have SSH access so I could use Rails. I switched to ThinkHost a few months ago, and I've been really happy thus far. They offer reliable Linux hosting with unlimited bandwidth, space, and domains. Better yet, the servers are powered with wind and solar energy, and they plant a tree on your behalf.

Bluefish is a code editor, so users should have a basic understanding of XHTML and CSS, along with any other development languages. I learned HTML rather painstakingly from an outdated code reference, and I don't recommend you do it that way. Instead, try HTML & XHTML: The Definitive Guide published by O'Reilly, which can help even the most talented developer learn new tricks. In fact, it taught me all about the <label> tag, and I felt kind of dumb for previously embedding form labels in only a paragraph tag and wrestling with CSS, but alas...




One of the nicest things about Bluefish is that it uses 30 to 45 percent less memory than other editors. This makes quick edits less of a hassle. Sometimes, other editors can be too clunky, and I found myself reverting to a console-based text editor to make a minor change, but Bluefish should stop this from happening. It has built-in project support, so you can easily open multiple files and keep them organized in the right path. It has all the standard stuff, like line-numbers, search and replace, and code highlighting for languages like HTML, Ruby (go Rails!), Python, and PHP. Best of all, the menu bar allows you to instantly drop in code that developers use often.
Bluefish allows you to connect to a remote server and edit files, so here's a quick guide to using Bluefish with ThinkHost. This tutorial assumes you are using GNOME, though I'm sure you can do the same thing with KDE.
Click on the "Places" menu, and select "Connect to Server...".
In the dialog box, type in your FTP address in the "Server" box. You should be prompted for a username and password.
Now, open up the mounted server in Bluefish, and now you can easily edit and save all of your files on Thinkhost.

Google Earth on Suse Linux with VMware

January 08, 2006 Add Comment

Google Earth on Suse Linux with VMware


Google Earth is an exciting and powerful application that delivers satellite imagery, maps and 3D terrains and buildings to your desktop. However, currently Google Earth is available only for Windows 2000, Windows XP, or Mac OS X (10.3.9 +) platform only, rendering other operating system users, especially Linux and Unix, in the cold.

In you’re using Linux, especially Suse Linux 10.0, Linux-Tip has a tutorial where you can run Google Earth on your system with the help of VMware virtualization software. VWware virtualization applications allows users to run multiple operating systems simultaneously on a single PC.

To use the tutorial,you need to have Suse Linux 10.0, VMware Workstation, VMware Player and Windows XP Installation CD. General steps are you use Suse Linux 10.00 as your host, and install VMware Workstation and VMware Player to create a virtual machine that will allow you to install Windows XP, thus enabling you to have both Suse Linux and Windows XP at the same hardware. Google Earth can then be installed on Windows XP.

For detailed instruction,Linux-Tips guide