Friday, February 20, 2009

Get CPU temperature on Linux (Archlinux)

bash-3.2# pacman -S lm_sensors
bash-3.2# sensors-detect
bash-3.2# modprobe coretemp
bash-3.2# sensors
coretemp-isa-0000
Adapter: ISA adapter
Core 0:    +40.0°C (high = +74.0°C, crit = +100.0°C)

coretemp-isa-0001
Adapter: ISA adapter
Core 1:    +28.0°C (high = +74.0°C, crit = +100.0°C)

coretemp-isa-0002
Adapter: ISA adapter
Core 2:    +37.0°C (high = +74.0°C, crit = +100.0°C)

coretemp-isa-0003
Adapter: ISA adapter
Core 3:    +41.0°C (high = +74.0°C, crit = +100.0°C)

Posted by Camille on 02/20 at 10:53 PM
LinuxPermalink

Monday, October 27, 2008

100x Denser Chips Possible With Plasmonic Nanolithography

Roland Piquepaille wrote on slashdot :
“According to the semiconductor industry, maskless nanolithography is a flexible nanofabrication technique which suffers from low throughput. But now, engineers at the University of California at Berkeley have developed a new approach that involves ‘flying’ an array of plasmonic lenses just 20 nanometers above a rotating surface, it is possible to increase throughput by several orders of magnitude. The ‘flying head’ they’ve created looks like the stylus on the arm of an old-fashioned LP turntable. With this technique, the researchers were able to create line patterns only 80 nanometers wide at speeds up to 12 meters per second. The lead researcher said that by using ‘this plasmonic nanolithography, we will be able to make current microprocessors more than 10 times smaller, but far more powerful’ and that ‘it could lead to ultra-high density disks that can hold 10 to 100 times more data than today’s disks.‘“


Here the Berkeley News

Posted by Camille on 10/27 at 11:59 AM
Permalink

PHP Gets Namespace Separators, With a Twist

PHP is finally getting support for namespaces !!

Here the PHP news
Here the entire IRC conversation

Posted by Camille on 10/27 at 11:54 AM
NewsPermalink

Thursday, October 23, 2008

Apply a replacement regexp on an entire mySQL table

You may know the way to select specific rows matching a pattern in mySQL.

Indeed we can use this syntax :

SELECT * FROM `table` WHERE `field` REGEXP ’^my regexp’;

But I looked a long time for a way to apply a replacement regexp on a table field.
Finally I had to make a shell script do to that because it’s not implemented in mysql ...

That is the script I wrote :

IFS=’

for i in $(echo ‘SELECT id_field, field FROM `my_table` ;’ | mysql mydatabase);do

echo $i |  sed -n ‘s/\([0-9]*\).*some_thing_to_remove(.*\)/ UPDATE `my_table` SET field = ”\2” WHERE id_field = \1/p’ |  mysql mydatabase

done



That is absolutely not an optimized script, but it works and it is very useful to manage a table when the number of rows is not too big.

If you have a better example to do that don’t hesitate to share it with us !

 

Posted by Camille on 10/23 at 10:32 PM
MySQLSedZshPermalink

Friday, October 17, 2008

Flash 10 is available

The famous flash player have been upgraded to its 10th version. Upgrades are available for Windows, MacOSX, and Linux (from release day, which is worth noting) through the Flash Player download center. A beta was made available for Solaris too, check out Adobe Labs for this one.

Posted by w0 on 10/17 at 01:29 PM
NewsPermalink
Page 1 of 4 pages  1 2 3 >  Last »