Acer Aspire 5738ZG Review

My newst investing is the cheap Asus Aspire 5738ZG notebook. The low price is nearly one of few things that is good with the product, nah now I am little mean, but still I have already have a mess with this little machine.

Asus Aspire 5738ZGOk, lets start with the design. Here I just have to say that they have success. But some times the product just feel cheap, for etc the keyboard, the buttons could be in more quality. Lets give it 4/5 on my new 5 stage rating system ;)

Price VS what you get. Okay, the price is good. I bought it for 5990 Swedish money, skr. And the specs are pretty good for this price, Pentium dual core (ONLY WITH 1 MB CASE :$ makes me angry!) 2.0 ghz, 4 gb ddr3 (good), geforce G105M 512 mb dedi mem, 300 GB ide? So all the specs are good imo but still, the cpu with only 1 mb case is perhaps to low. And ofc you get Windows vista 32 bit system. And again, what were they thinking of? Why not just give the buyer 64 bit OS when the cpu supports it and when you only get out 3 gb from ram memory with 32 bit system. Well again supid.

For us Linux lovers this 32 bit OS is not any problem but when I just have to use Windows some times for games etc I want to use what I have bought? Btw, do not forget to burn out backup of your win installation, asus takes 30 $ for new CD if you forget it, very kind… -_-

So how does it work with Ubuntu then… Well actually not good at all. Ofc do not Nvidia have any drivers for the gpu at this moment so you have to use some random Nvidia driver to not get 6 screens. I have wrote a howto for this but still very time taking. The audio card does not either work as it should and you can just forget the webcam and microphone. Some times etc when I write this review I get the feeling of some smal lag and they cpu is using like 20% of both core when i have Firefox, Pidgin and Spotify running, not good.

But if you have a lot of time and like to “hack” around this computer is perfect for Ubuntu using, as well for Windows ofc.

And remember not to call the support. They a huge not care support, like the example for the copy of the win disc.

Total score 3/5, and 2/5 if the price would be little higher.


Drivers for Nvidia Geforce G105M

Tags:

At this moment of time while I am writing this howto there is no driver for this card (Nvidia Geforce G105M) that I just got with my new laptop who I installed Ubuntu on. In this case I solve this problem with download the newest drivers for Linux at Nvidias homepage and edited xorg.conf. Obs, if  you got 6 split screen this will solve that problem as well!

1: download drivers on Nvidias homepage (Look for Version: 185.18.14 for linux since the “real” card driver do not exist at this time). Url: http://www.nvidia.com/object/unix.html

2: Install the drivers with “sudo ./thefile.run” you have to be in the right dictonary while doing this. The install will ask you to stop X server, write “sudo /etc/init.d/gdm stop” You will now enter text based mode so locate the file with CD and make the “sudo ./thefile.run” again. If any question appare you take yes and ok etc :)

3: Now you will have six screens while enter ubuntu after reboot. This you solve by edit xorg.cfg in etc/X11/xorg.conf, i did use “gksudo nautilus” for open a window with root access. Copy and pase the text below:

# xorg.conf (X.Org X Window System server configuration file)
#
# This file was generated by dexconf, the Debian X Configuration tool, using
# values from the debconf database.
#
# Edit this file with caution, and see the xorg.conf manual page.
# (Type “man xorg.conf” at the shell prompt.)
#
# This file is automatically updated on xserver-xorg package upgrades *only*
# if it has not been modified since the last upgrade of the xserver-xorg
# package.
#
# Note that some configuration settings that could be done previously
# in this file, now are automatically configured by the server and settings
# here are ignored.
#
# If you have edited this file but would like it to be automatically updated
# again, run the following command:
#   sudo dpkg-reconfigure -phigh xserver-xorg
Section “InputDevice”
Identifier    ”TouchPad”
Driver “synaptics”
Option “device” “/dev/input/event8″
#    Option “TapButton1″ “0″
#    Option “TapButton2″ “0″
Option “HorizEdgeScroll” “False”
Option “VertTwoFingerScroll” “True”
Option “HorizTowFingerScroll” “True”
#    Option “TouchpadOff” “2″
Option “SHMConfig” “False”
EndSection

Section “ServerLayout”
Identifier     “Default Layout”
Screen      0  “Screen0″ 0 0
InputDevice    “Keyboard0″ “CoreKeyboard”
#    InputDevice    “Mouse0″ “CorePointer”
InputDevice    “TouchPad” “CorePinter”
EndSection

Section “ServerFlags”
Option         “Xinerama” “0″
EndSection

Section “InputDevice”
# generated from default
Identifier     “Keyboard0″
Driver         “kbd”
EndSection

#Section “InputDevice”
#    # generated from default
#    Identifier     “Mouse0″
#    Driver         “mouse”
#    Option         “Protocol” “auto”
#    Option         “Device” “/dev/psaux”
#    Option         “Emulate3Buttons” “no”
#    Option         “ZAxisMapping” “4 5″
#EndSection

Section “Monitor”
Identifier     “Configured Monitor”
EndSection

Section “Monitor”
Identifier     “Monitor0″
VendorName     “Unknown”
ModelName      “AUO”
#    HorizSync       30.0 – 100.0
#    VertRefresh     55.0 – 110.0
#    DisplaySize    344 193
#    Mode    ”1366×768″
#    DotClock    69.5MHz
#    HTimings    1366 1414 1446 1437
#    VTimings    768 771 775 806
#    EndMode
# Modeline “1366×768″   69.50  1366 1414 1446 1437  768 771 775 806
Modeline “1366×768″   69.50  1366 1414 1446 1473  768 771 775 806 -hsync -vsync
# Modeline “1366×768q”   72.00  1366 1414 1446 1494  768 771 777 803 -hsync -vsync
#    Option “DPMS” “True”
EndSection

#Section “Device”
#    Identifier     “Configured Video Device”
#    Driver         “nvidia”
#EndSection

Section “Device”
Identifier     “Device0″
Driver         “nvidia”
VendorName     “NVIDIA Corporation”
BoardName      “GeForce G 105M”
Option “NvAGP” “0″
#    Option “UseInt10Module” “True”
#    Option “UseEDID” “False”
Option “ExactModeTimingsDVI” “True”
Option “ModeValidation” “NoHorizSyncCheck,NoDFPNativeResolutionCheck,NoExtendedGpuCapabilitiesCheck,NoWidthAlignmentCheck,NoVertRefreshCheck”
EndSection

Section “Screen”
Identifier     “Default Screen”
Device         “Configured Video Device”
Monitor        “Configured Monitor”
EndSection

Section “Screen”
Identifier     “Screen0″
Device         “Device0″
Monitor        “Monitor0″
DefaultDepth    24
Option         “TwinView” “0″
SubSection     “Display”
Modes    ”1366×768″
Depth       24
EndSubSection
EndSection

4: Save and reboot! Your problem should now be solved!

If any question appare please let me know :)

# xorg.conf (X.Org X Window System server configuration file)
#
# This file was generated by dexconf, the Debian X Configuration tool, using
# values from the debconf database.
#
# Edit this file with caution, and see the xorg.conf manual page.
# (Type "man xorg.conf" at the shell prompt.)
#
# This file is automatically updated on xserver-xorg package upgrades *only*
# if it has not been modified since the last upgrade of the xserver-xorg
# package.
#
# Note that some configuration settings that could be done previously
# in this file, now are automatically configured by the server and settings
# here are ignored.
#
# If you have edited this file but would like it to be automatically updated
# again, run the following command:
#   sudo dpkg-reconfigure -phigh xserver-xorg
Section "InputDevice"
	Identifier	"TouchPad"
	Driver "synaptics"
	Option "device" "/dev/input/event8"
#	Option "TapButton1" "0"
#	Option "TapButton2" "0"
	Option "HorizEdgeScroll" "False"
	Option "VertTwoFingerScroll" "True"
	Option "HorizTowFingerScroll" "True"
#	Option "TouchpadOff" "2"
	Option "SHMConfig" "False"
EndSection

Section "ServerLayout"
    Identifier     "Default Layout"
    Screen      0  "Screen0" 0 0
    InputDevice    "Keyboard0" "CoreKeyboard"
#    InputDevice    "Mouse0" "CorePointer"
    InputDevice    "TouchPad" "CorePinter"
EndSection

Section "ServerFlags"
    Option         "Xinerama" "0"
EndSection

Section "InputDevice"
    # generated from default
    Identifier     "Keyboard0"
    Driver         "kbd"
EndSection

#Section "InputDevice"
#    # generated from default
#    Identifier     "Mouse0"
#    Driver         "mouse"
#    Option         "Protocol" "auto"
#    Option         "Device" "/dev/psaux"
#    Option         "Emulate3Buttons" "no"
#    Option         "ZAxisMapping" "4 5"
#EndSection

Section "Monitor"
    Identifier     "Configured Monitor"
EndSection

Section "Monitor"
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "AUO"
#    HorizSync       30.0 - 100.0
#    VertRefresh     55.0 - 110.0
#    DisplaySize	344 193
#    Mode	"1366x768"
#	DotClock	69.5MHz
#	HTimings	1366 1414 1446 1437
#	VTimings	768 771 775 806
#    EndMode
# Modeline "1366x768"   69.50  1366 1414 1446 1437  768 771 775 806
 Modeline "1366x768"   69.50  1366 1414 1446 1473  768 771 775 806 -hsync -vsync
# Modeline "1366x768q"   72.00  1366 1414 1446 1494  768 771 777 803 -hsync -vsync
#    Option "DPMS" "True"
EndSection

#Section "Device"
#    Identifier     "Configured Video Device"
#    Driver         "nvidia"
#EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "GeForce G 105M"
    Option "NvAGP" "0"
#    Option "UseInt10Module" "True"
#    Option "UseEDID" "False"
    Option "ExactModeTimingsDVI" "True"
    Option "ModeValidation" "NoHorizSyncCheck,NoDFPNativeResolutionCheck,NoExtendedGpuCapabilitiesCheck,NoWidthAlignmentCheck,NoVertRefreshCheck"
EndSection

Section "Screen"
    Identifier     "Default Screen"
    Device         "Configured Video Device"
    Monitor        "Configured Monitor"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option         "TwinView" "0"
    SubSection     "Display"
	Modes	"1366x768"
        Depth       24
    EndSubSection
EndSection

Print days from date 1 to date 2

Tags:

This function created by me will show the days and dates between two dates. Enjoy!

<form method=”post” action=”date.php”>
Date 1 (ex 20090101 = Y = 2009 M = 01 D = 01):<br />
<input type=”text” name=”date1″ style=”width:300px;” /><br />
Date 2 (ex 20090101 = Y = 2009 M = 01 D = 01):<br />
<input type=”text” name=”date2″ style=”width:300px;” /><br />
<input type=”submit” />
</form>
<?
if(isset($_POST['date1'])) {

$date1 = $_POST['date1'];
$date2 = $_POST['date2'];

$dag = substr($date1, 6, 2);
$manad = substr($date1, 4, 2);
$ar = substr($date1, 0, 4);

while($date1 < $date2) {

$date1 = “” . $ar . “” . $manad . “” . $dag . “”;

echo date(‘D’, strtotime($date1)); echo ” “;
echo date(‘d’, strtotime($date1)); echo “/”;
echo date(‘m’, strtotime($date1)); echo ” – “;
echo date(‘Y’, strtotime($date1));

echo “<br>”;

$num = cal_days_in_month(CAL_GREGORIAN, $manad, $ar);

$datumdag = “” . $manad . “” . $dag . “”;
if($datumdag==1231) {
$ar++;
$manad=”01″;
$dag=”01″;
$notchange = 1;
} else {
$notchange = 0;
}

if($notchange==0) {
if($dag==$num) {
$dag = “01″;
$manad++;
if($manad<10) {
$manad = “0″ . $manad . “”;
}

} else {
$dag++;
if($dag<10) {
$dag = “0″ . $dag . “”;
}
}
}

}

}
?>

For example go to:

http://jens.yelles.se/example/date.php


AntiSpam tool for WordPress

After huge spam to the blog i just had to remove all comments and install the perfect tool SI CAPTCHA.

I can recommend this tool for all who run WordPress and do not want spam on your comments. Also install it before the comments are coming, else you have to do like I did and remove them all.

Just not forget to move this code in comments.php:

<?php do_action(‘comment_form’, $post->ID); ?>

Above comment text-area field.

Later!


HowTo install OneSwarm on Ubuntu, Linux

This will lern you how to install OneSwarm on Ubuntu, Linux.

First check that you have Java installed:

sudo apt-get install sun-java6-bin sun-java6-jre

Then you start the download, either you go to: http://oneswarm.cs.washington.edu/download.html

Else for 32-bit OS, making folder Program, download, install and run it:

mkdir Program

wget http://oneswarm.cs.washington.edu/builds/OneSwarm_0_5_linux_x86.tar.gz

tar zxvf OneSwarm_0_5_linux_x86.tar.gz

cd OneSwarm

./OneSwarm

If 64-bit do the same just download the 64-bit file:

mkdir Program

wget http://oneswarm.cs.washington.edu/builds/OneSwarm_0_5_linux_x86_64.tar.gz

tar zxvf OneSwarm_0_5_linux_x86_64.tar.gz

cd OneSwarm

./OneSwarm

Ask if any questions appear. :)


Send mail via PHP

Tags: ,

First of all you have to change in your php.ini file if you do not have any mail server installed on your server/computer. You can send through your ISP SMTP server. Change this line in php.ini:

SMTP = localhost

To any vaild SMTP server, in my case I use my ISP smtp-server:

SMTP = smtp.bredband.net

When this is done you can easy send mail via PHP function mail()

Good Luck.


Apache2, PHP 5, MySQL 5, phpMyAdmin for Windows

Here comes a little howto install Apache2, PHP 5, MySQL 5 and phpMyAdmin for windows.

In this tutorial I will use easyPHP which is a packed for these applications.

First, go to www.easyphp.org for downloading easyphp 3.

After you have download it just install easyphp.

When it is installed run it and go to http://127.0.0.1/home/

Here is where you can run phpMyAdmin, add links to other folders that is not in www etc. Everything is done here but I can recommend you to update this things:

1. Right click on your trail icon. Config » PHP. Edit short_open_tag = Off to short_open_tag = On.

2. Add new user to your MySQL server. Go to http://127.0.0.1/home/ select phpmyadmin (mysql management) and go to privilege.  Here you can add users. Do NOT edit root password, it will cause problems.

If you have problem let me know and I will try to help you out.

Good Luck


Random letters with PHP

Tags:

Since it was no already function for random letters in PHP i was google on it and found this one some where i do not remeber but works exemplary.

function randomletters() {
$chars = “abcdefghijkmnopqrstuvwxyz023456789″;
srand((double)microtime()*1000000);
$i = 0;
$pass = ” ;
while ($i <= 7) {
$num = rand() % 33;
$tmp = substr($chars, $num, 1);
$pass = $pass . $tmp;
$i++;
}
return $pass;
}

If you know who made this one please tell me and i will link to the page in this post :)

For random numbers please take a look at rand.


OneSwarm

Tags:

Today was the first day I ever heard of the new sharing client that have already got great success. Since a lot of new laws have make it hard to legally download copyright products it have also come a lot of new ways how to get around thoose problem and OneSwarm is one of them. OneSwarm makes a new network, based on your friends and your sharing. One problem already found is that you do not know what kind of people that your friends invite, if wrong person access to your network it may cause some problems.

OneSwarm official homepage: http://oneswarm.cs.washington.edu

To be continued…


Center div with CSS

Tags: ,

Simple example how to center a div with css.

Open your CSS file and write:

body { text-align: center; }

.centerdiv {
margin: 0 auto;
width: 200px;
text-align: left;
}

Now open your index or what ever you want to put your div and create it:

<div class="centerdiv">text</div>