Entries Tagged as ''

get uri, port, host, url

$urI = $_SERVER['REQUEST_URI']; // includes query string…
$proto=substr($_SERVER['SERVER_PROTOCOL'],0,strpos(’/',$_SERVER['SERVER_PROTOCOL']));
$port=$_SERVER['SERVER_PORT'];
$host=$_SERVER['HTTP_HOST'];
$urL = strtolower($proto).’://’.$host.’:’.$port.$urI;

echo “uri:”.$urI.”<br>”;
echo “proto:”.$proto.”<br>”;
echo “port:”.$port.”<br>”;
echo “host:”.$host.”<br>”;
echo “urL:”.$urL.”<br>”;

How to enable php (Apache) to connect with PostGresql

The machine is already running, Apache 2, PHP 5. Type these commands:

sudo apt-get install libapache2-mod-auth-pgsql
sudo apt-get install php5-pgsql
sudo /etc/init.d/apache2 restart

How to uncompress zip, rar, tar.gz, tar.bz2 using shell – Linux

To uncompress these files formats, type the following commands:

zip:

gunzip filename

rar:

rar x filename

tar:

gzip filename

tar.gz:

tar -vzxf filename

Google’s Chrome was ‘hackable’ at Pwn2Own contest

Sole surviving browser patches same bug used to make money off Safari flaw

Computerworld Although Google’s Chrome was the only browser left standing after March’s Pwn2Own hacking contest, it was vulnerable to the same bug that a German college student used to bring down Apple’s Safari, Google acknowledged this week.

Although Google patched the Chrome vulnerability May 7, it waited until last Wednesday to reveal that the bug was the same WebKit flaw that Apple patched the day before.

“[We are] disclosing that this release contains the fix for CVE-2009-0945, an issue in WebKit code that also affects Apple’s Safari,” Mark Larson, the program manager for Chrome, said in a May 13 post. “We did not want to disclose this until Apple’s fix for Safari users was released.”

Apple patched the WebKit vulnerability Tuesday as part of a massive security update for both Mac OS X 10.5, aka Leopard, and Mac OS X 10.4, or Tiger.

Last March, Nils, a German computer science student who would give only his first name, hacked three browsers in quick succession — a then-unfinished version of Internet Explorer 8 (IE8), Firefox and Safari — at the Pwn2Own challenge, walking away with $15,000 in cash. Chrome was the only browser up for grabs that Nils didn’t break.

Chrome and Safari both rely on the open-source WebKit rendering engine to power their browsers.

According to Larson, the bug is in WebKit’s handling of SVGList objects, and could be exploited by hackers able to dupe users into visiting a malicious site. But because Chrome runs in a “sandbox,” a security technology that blocks access to the system, even if a hacker managed to hijack the browser, he could only run attack code in that sandbox surrounding the browser. Microsoft’s IE7 and IE8, when running on Vista or Windows 7, offer a similar defense.

Chrome’s bug database first noted the vulnerability March 19, the same day Nils hacked IE8, Firefox and Safari. By the next day, developers were talking about keeping the bug under wraps.

“Apple wants to carefully coordinate disclosure because this bug has a high profile,” wrote one developer, identified only as “abarth” on the database thread. “Apple is also concerned about patches appearing in public source trees.” Chrome developers had a patch ready by March 22.

Mozilla patched the Firefox flaw Nils exploited on March 27, while Microsoft’s final build of IE8, which was released shortly after the contest, was safe from Nils’ hack when run in Vista SP1 or Windows 7. Microsoft has not, however, actually patched IE8 or IE7; some believe the latter is also vulnerable to Nils’ exploit.

Google automatically updates Chrome behind the scenes, so users running the so-called “stable” builds need take no additional action.

Development of an artificial simulator of the human nervous system to do research into diseases and test new medicines

Scientists of the University of Granada have generated a computer which permits to reproduce any part of the body’s nervous system, such as the retina, the cerebellum, the hearing centres or the nervous centres
This is free and open software, so-called EDLUT, which can be freely downloaded through the Internet

UGR News Researchers of the University of Granada have developed a simulator, so-called EDLUT (‘Event driven look up table based simulator’), which permits to reproduce any part of the body’s nervous system, such as the retina, the cerebellum, the hearing centres or the nervous centres. This scientific advance permits to analyze and understand the functions of the nervous centres, to do research into new pathologies and diseases or test new medicines; it will also be useful to improve the robots and machines inspired in the human body and the nervous system.

This simulator has been developed by the research group CASIP, of the department of Architecture and Computer Technology of the University of Granada, to which professor Eduardo Ros Vidal (coordinator of the projects in which the simulator has been developed) belongs to.

Unlike other simulators similar to the preceding versions, EDLUT permits to similar several hundreds of thousands neurons at the same time, instead of several tens. This is possible thanks to the fact that the simulator “compiles” the behaviour of a neuron or several types of neurons in a first stage and next, it simulates medium and great-scale neuronal systems based on these pre-compiled models.

“This fact means an essential technological advance and indisputably affects the quality of nervous simulation”, says professor Eduardo Ros.

Free downloading
Another important advantage of the simulator developed at the University of Granada is that it is free software, this is, that it can be freely downloaded through the Internet at http://code.google.com/p/edlut/. In this sense, EDLUT means “an innovative version with regard to other simulators such as NEURON and GENESIS”, in the words of Ros, and those companies of the biotechnological sector or research centres interested in this field can use it freely and adapt it to their own needs.

This simulator developed at the UGR has been financed by different research projects such as SpikeFORCE and SENSOPAC, initiatives of the European Commission through which research groups of different fields such as neuroscience, biocomputing and electronic engineers have been working since the year 2002 in order to get that robots have similar movement skills to those of the animals, and can also perceive a great number of signs of sensors and motors in order to draw cognitive notions.

Eduardo Ros Vidal insists that ¡ SENSOPAC –a project which also has the participation of DLR (German Aerospace Agency), besides several universities such as the University of Edinburgh, Erasmus, Pavia, Lund, Cambridge- “intends to be the definitive boost that technology needs to generalize the use of robots in our everyday life”.

The results of this research project have been partly published in the renowned journals ‘Neural Computation’ and ‘Biosystems’.

Reference
Prof Eduardo Ros Vidal
Department of Architecture and Computer Technology of the University of Granada
Tlfno: 958 246 128 / 657 556 034
E-mail eduardo@atc.ugr.es | Web http://www.sensopac.org | http://atc.ugr.es/~eduardo

Stanford Engineering Everywhere – Free Courses

What is Stanford Engineering Everywhere?

Stanford Engineering Everywhere is an online portal offering ten courses from Stanford’s School of Engineering— including the three-course introductory sequence in Computer Science— free of charge.

SEE offers course content available to Stanford students including instructional videos, reading lists and materials and class assignments. And SEE allows you to communicate with fellow SEE students online.

SEE encourages fellow educators to use Stanford course materials in their own classrooms.

Note: SEE courses cannot be taken for credit and do not include access to Stanford-restricted computers, libraries, or services. Content may not include all the material used in the campus offering and cannot be used for commercial purposes.

View FAQ’s – About See

How Do I Use Stanford Engineering Everywhere?

SEE users may pick and choose the materials that best meet their needs and interests. Want a refresher course on a particular programming concept? View a video lecture that covers the basics. Are you a programming novice? Spend several weeks viewing lectures, reading course materials and tackling class assignments. Test your knowledge by taking quizzes and exams.

For Students:
You can have all or some of Stanford’s world-class educational experience at your convenience. And best of all, it’s free. SEE courses include the same video lectures, assignments, exams and solution sets (where appropriate) used by Stanford students.

You can also select only those materials that meet your educational needs. You may download only course notes or the complete set of lecture videos. SEE offers courses in three of its most popular disciplines: Artificial Intelligence, Introduction to Computer Science, and Linear Systems and Optimization.

For Educators:
Educators around the world can use material from popular Stanford courses in their own classrooms. Whether it is a handout or a full set of course materials, SEE materials are available to educators free of charge under the Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License (http://creativecommons.org/licenses/by-nc-sa/3.0/legalcode). SEE allows educators worldwide to use and tailor course materials to meet the needs of their own students.

Introduction to Computer Science

Programming Methodology

Programming Abstractions

Programming Paradigms

More Courses

Online backup services

Some options (05/15/2009):

http://www.idrive.com/
IDrive Basic – Get 2 GB of online backup space absolutely free. Store your photos, documents and other important data.
IDrive Pro – Create and manage multiple accounts. Avail 150 GB of storage space at just USD 4.95/month or USD 49.50/year – for Personal use and 50 GB at USD 9.95/month or USD 99.50/year – for Business*
-> Enhanced security with 128-bit SSL encryption on transfers, 256-bit AES encryption on storage with a user defined key that is not stored anywhere on IDrive servers

https://www.carbonite.com/
http://www.carbonite.com/pt/
Online Backup One-Year Subscription $54.95

http://mozy.com/
http://mozy.com/mac
2 GB – Free
MozyPro – Espaço ilimitado $4.95/mês.

  • 128-bit SSL encryption — Safely secures your data during transport.
  • AES/Blowfish encryption — Choose Mozy’s encryption key using 448-bit Blowfish encryption or manage your own key using military-grade 256-bit
    AES
    encryption to secure your data during storage.
  • Near Continuous Data Protection — MozyPro automatically detects and backs up new and changed files.

http://www.getdropbox.com/
2 GB – Free
DropBox Pro – $9.99/month or $99/year – 50Gb

Docs online:

Zoho
Google Docs

Google Search Options

Google’s Search options let you slice and dice your search results, explore your search and generate different views of your results page to more easily and quickly find what you need