Friday, November 13, 2009

openSUSE 11.2 released!

Hi all,

openSUSE 11.2 is released few hours ago, and its time to download and test it. Read more here at anl4u.com.

ANL

Wednesday, November 11, 2009

Saturday, November 7, 2009

Here we go.... anl4u.com

Hi all,

I have managed my new website, from now i will update this blog in very rare cases. Most of the updates will be synced directly from that website as a reference links.
Your support and visit will be greatly appreciated now and in future.

Link:

anl4u.com

Hope to see you soon there with new look and feel and contents.

Regards
ANL

Saturday, October 24, 2009

Email Parsing and download attachment with IMAP in PHP

Last couple of days, i was working on a script where i need to download an attachment from a windows mail server and then read the contents inside the attachment and save it in database.

Tasks:
1- Read all unseen messages in the inbox.
2- Search for a specific subject.
3- Download the attachment(zip file) to local PC.
4- Unzip the file and extract the file inside it.
5- Read its contents inside the file.
6- Save the contents to a table(MySQL database).
7- Delete the extracted file after saving entries into table.
8- Move the zip file to a backup directory.
9- Do calculations on the data saved in the table.

Actually i had to do this for one of my project, where the sensors gateway will send mail to the windows server each hour, and i have to read the mail from a Linux machine.

As most of the work is completed on these scripts, i tested it under cron on local PC, and is working like a charm. So i am thinking to share the scripts with the community, maybe would help someone in the near future.

I have written 3 PHP scripts(pure PHP) with some MySQL tables to use for data saving.
I will start in the next post from the 1st script which is mail_parsing.php. I used PHP IMAP function to access the mail server.

Until then have a good time.
See you in the next post.

ANL

Friday, October 16, 2009

openSUSE 11.2 RC1 released.

Hi all,
openSUSE announced its 1st release candidate for 11.2 version, one more RC and then final version.
Here are some of the updates since M8:

* Linux kernel 2.6.31.3
* GNOME 2.28
* PulseAudio 0.9.19
* Evolution 2.28
* Qt 4.5.3
* SeaMonkey 2.0 RC 1

As i am still on M7, for me its quite stable and as i don't have much time to switch and install. So i am waiting for the final release.

download it from here:
gwdg mirror
and
openSUSE site

Follow up discussion here in openSUSE forum.

Have alot of fun!

ANL

Monday, October 12, 2009

Listbox values in PHP with MySql

Today got some free time to write a simple tutorial for PHP with MySql for listbox.
So lets start.

Mostly we use drop down on many occasions, populated from database dynamically or giving it values statically. And then use PHP code to parse it and store it in database or get our desired results.
One type of that dropdown is listbox, where we can select multiple entries.
Here is a sample example of it:


In the above code:
multiple: represent multiple list for values
size: will show 2 values in the list, and others will be shown by scrolling.
name: is holding name in array.

Now lets take a MySql example:


Now lets jump to PHP to get the desired results.
There are many ways to get the results like:
foreach, for and etc. As we know, POST is also an array. So the best bet is to use array.

$drop_list = $_POST['drop_list'];
$_SESSION['drop_list'] = $drop_list;
if (in_array(1, $drop_list)) { //id 1
$query1 = "SELECT * FROM test2 where id='1'";
$res1 = mysql_query($query1) or die(mysql_error());
//You can do some other stuff here too
}


You can use multiple if statements to verify the variable resulted value.
You can save the value in session to use it globally in your scripts.
Example:
if (in_array(2, $drop_list)) { //id 2
$query1 = "SELECT * FROM test3 where id='2'";
$res1 = mysql_query($query1) or die(mysql_error());
//You can do some other stuff here too
}
if (in_array(3, $drop_list)) { //id 3
$query1 = "SELECT * FROM test4 where id='3'";
$res1 = mysql_query($query1) or die(mysql_error());
//You can do some other stuff here too
}


Apart from the above example, there are many ways like foreach, if you don't want to just use one by one. Like:

foreach($_POST['drop_list'] as $drop_list){
//Do your stuff here like, updating multiple records at one shot.
}


Best of luck.
ANL

Friday, October 2, 2009

openSUSE11.2 M8 released.

openSUSE team announced the release of milestone 8.
As i had tested M7, and i am quite satisfied with it. Its still running on my lapy. Everything is working out of the box. Just sound need fixing for my lapy, other things works fine. Bluetooth is working.
I am not going to install and test M8, because has no time. But it looks decent than M7, the big/good change i saw is the theming. Boot and splash themes are changed since M7.

Here are some details:
* Linux kernel 2.6.31
* GNOME 2.28 RC
* OpenOffice.org 3.1.1
* openSUSE 11.2 theming is in place
* PulseAudio 0.9.17
* Samba 3.4.1
* postgresql 8.4.1
* KDE 4.3.1 (release 3)


Fast download link:
gwdg mirror

Information link:
openSUSE info link

openSUSE download link:
Download M8 from openSUSE site

Enjoy M8.

ANL

Thursday, September 10, 2009

Download openSUSE 11.2 M7

As officially openSUSE 11.2 M7 is still not announced, but it is available on the mirrors from different sites.
I found it in gwdg ftp mirror. Currently downloading it from gwdg, which is quite fast.

Here is the download site:
Download FTP Link

Its still a beta software, there will be bugs. So kindly report them to openSUSE bugzilla or openSUSE forum.
Forum
Howto submit a bug
Novell Bugzilla

EDIT: Download link from openSUSE site.
openSUSE site

ANL

Tuesday, September 8, 2009

KDE 4.3.1 released

KDE 4.3.1 is released on 1st of September. Upgrade from KDE 4.3.0 is highly recommended because of patches and bug fixes.

September 1st, 2009. A month has passed since the release of KDE 4.3.0, so today the KDE Community announces the immediate availability of KDE 4.3.1, a bugfix, translation and maintenance update for the latest generation of the most advanced and powerful free desktop. KDE 4.3.1 is a monthly update to KDE 4.3. It ships with a desktop workspace and many cross-platform applications such as administration programs, network tools, educational applications, utilities, multimedia software, games, artwork, development tools and more. KDE's award-winning tools and applications are available in more than 50 languages.


openSUSE users can add factory repo to upgrade to KDE4.3.1, other distro users can view this link for more details.

openSUSE 11.1 users can follow this link to upgrade.
For more information read this thread in openSUSE forum.

Enjoy new version of KDE4.

ANL

Tuesday, August 25, 2009

openSUSE 11.2 M6 is released

openSUSE 11.2 Milestone 6 is released yesterday. I am downloading the Live CD iso and later going to give it a try.
"Milestone 6 includes new packages on the KDE live CD (Choqok, KNode, Kompare, KSystemlog, Okteta and more) and Transmission is now on the GNOME live CD. This release includes Python 3.1, PackageKit 0.5.1"
Some of the updated packages are:
* Linux kernel 2.6.31-rc6
* Firefox 3.5.2
* GIMP 2.6.7
* GNOME 2.28 Beta
* Konversation 1.2 Alpha 6
* OpenOffice.org 3.1.1 Beta 2
* VirtualBox 3.0.4
* Wine 1.1.27

Some of the annoying bugs are:
* Evolution not on the GNOME live CDs.
* Second stage of live CD installation runs in text-mode.
* Calling “Install Software” from start menus of both KDE and GNOME fails, work-around: start module over YaST Control Center.
* Downloads/updates with aria/metalink support will fail, work-around: “export ZYPP_ARIA2C=0″.

To track the annoying Bugs on the wiki along with 11.2 development.

View the screen shots here.

Download it from here.


For more information follow the links below:
Distrowatch.com
Roadmap

ANL

Saturday, August 22, 2009

Install Flash 64bit in Linux

Its still in alpha stage but works very well.
So i am going to write a simple howto here. As this tutorial will cover openSUSE distro. But the basic steps are the same for other distros also.

openSUSE:
1. Remove all installed flash related packages in YaST software management.
2. Download the file from here:
Adobe Labs Site
3. Extract the plugin, and place a copy of it in /usr/lib64/browser-plugins
Command:
cp libflashplayer.so /usr/lib64/browser-plugins/


Remember to mention the path to plugin, where it is extracted.
4. Restart Firefox. Check that Firefox sees the plugin by looking in the Add-ons.

And that's it.

ANL

Wednesday, August 12, 2009

Solution: Grub issues in opensuse with dual boot(XP, Vista, Win7)

Most annoying issue with dual boot is grub error. Some issues which mean to be grub issues are listed below:
1- Didn't show the grub boot menu.
2- Can only boot to one OS at a time(No choice to choose).
3- The most annoying one is:
- Operating system not found.
4- Grub loading, please wait...
- Error 15

I always do simple grub installation after dual installation, OR after changing the bootloader entries. But that depends if i got into trouble with it.

If you are facing such issues, hope this will help you out.

1- Boot your pc from a live CD.
2- After booting, open konsole(terminal) and became root by:
su -

3- Type:
grub

4- Type:
find /boot/grub/menu.lst

5- Note this line there : (hd0,4)
It may be different for your system.
6- Now type this by using this from above (hd0,4):
root (hd0,4)

7- Type:
setup (hd0)

8- Type
quit

9- Reboot your system
reboot


After restart your boot menu will be there with multiple entries.

Last updated: 30-08-2010


ANL

Saturday, August 8, 2009

Install KDE4.3

So here we go...
KDE4.3 was released on Aug 4th 2009, just 3 days ago.
I still did not update my system to KDE4.3, so can't comment on it. But as i used KDE4.3 RC3, it was solid and stable. Hope, KDE4.3 will also be.

If want to use 1 click installer to install in a easy way for openSUSE, click on the link below to follow:

openSUSE 11.1
openSUSE 11.0
openSUSE 10.3

For more details read this page.

For other distros like: Debian, Fedora, Mandriva, kubuntu etc. Read here.

ANL

Monday, August 3, 2009

KDE4.3 is ready for flight

Tomorrow KDE team is going to announce the official release of 4.3 final version.
KDE4.3 is already in news for its complete set of beauty from others desktops.
This is going to be the major release in this 4 series.
Currently i am using KDE4.3 RC3 in openSUSE11.1, and it is rock solid and stable.
But there are fixes after RC3, so i hope the final version will be more stable than the RC3.

I will post the updating links for KDE4.3 here. So keep tuned.
Till than wait and see, what 4.3 is going to bring for us.

ANL