tag:blogger.com,1999:blog-4391718419191901432024-03-13T18:13:13.046+00:00Good.ma Moteur de recherche marocain basé sur GoogleGood.ma Moteur de recherche marocain basé sur GoogleYouness H.http://www.blogger.com/profile/15673170044531520228noreply@blogger.comBlogger12125tag:blogger.com,1999:blog-439171841919190143.post-51703750610041212522009-06-25T12:23:00.002+01:002009-06-25T12:25:55.500+01:00How to combine two or more downloaded files when wget fails halfway through<div style="text-align: justify;">If wget fails halfway through and gives you many files like XXX.tgz, XXX.tgz.1, XXX.tgz.1.1 ..., you can combine them by :<br /><br /><span style="font-weight: bold; font-style: italic;">cat XXX.tgz XXX.tgz.1 XXX.tgz.1.1 > XXX_new.tgz</span><br /><br />or if you are in a directory where resides only the downloaded files:<br /><br /><span style="font-weight: bold; font-style: italic;">cat * > XXX_new.tgz</span><br /><br /></div>Youness H.http://www.blogger.com/profile/15673170044531520228noreply@blogger.com2tag:blogger.com,1999:blog-439171841919190143.post-51838679805115602972009-06-23T10:50:00.001+01:002009-06-23T10:55:18.563+01:00Import a mysql database<span style="font-weight: bold;"><u>To import a mysql database</u> </span>:<br /><br /># mysql -u username -ppassword Database_name < yourdb.sql<br /><br />once again, if you don't want to type your password in clear text at the comand prompt, you can use:<br /><br /># mysql -u username Database_name -p < yourdb.sqlYouness H.http://www.blogger.com/profile/15673170044531520228noreply@blogger.com0tag:blogger.com,1999:blog-439171841919190143.post-10484377142883652882009-06-23T10:42:00.003+01:002009-06-23T10:47:58.296+01:00Export a mysql database<div style="text-align: justify;">There are many ways to import and export a mysql database, this is one simple method to do it:<br /><br /><span style="font-weight: bold;"><u>To export a mysql database</u> :</span><br /><br /><span style="font-weight: bold; font-style: italic;"># mysqldump -u username -ppassword Database_Name > db.sql</span><br /><br />or if you don't want to type your password in clear text at the comand prompt, you can use:<br /><br /><span style="font-weight: bold; font-style: italic;"># mysqldump -u username Database_Name -p > db.sql</span><br />then you'll be asked to enter your password<br /></div><b><br /></b>Youness H.http://www.blogger.com/profile/15673170044531520228noreply@blogger.com0tag:blogger.com,1999:blog-439171841919190143.post-61856113079744283842009-05-23T14:39:00.002+00:002009-05-23T14:42:29.697+00:00Upgrading from CentOS 5.2 or 5.0 or 5.1<div style="text-align: justify;">All you have to do is run :<br /><br /><span style="font-style: italic;">yum update</span><br /><br />It will take some time to download all the packages and install.<br /><br />You can create your own CentOS mirror repository in your local network by following <a href="http://linuxvids.blogspot.com/2009/05/how-to-create-local-yum-repository-in.html">this tutorial</a>, so that you can save the bandwidth when upgrading your machines.<br /><br />Note that a new repo file /etc/yum.repos.d/CentOS-Base.repo.rpmnew is created during the upgrade, and your original one remains untouched.<br /><br />To check your new version of CentOS, you can run:<br /><br /><span style="font-style: italic;">rpm -qa | grep centos-release</span></div>Youness H.http://www.blogger.com/profile/15673170044531520228noreply@blogger.com0tag:blogger.com,1999:blog-439171841919190143.post-47661450363580318722009-05-22T12:02:00.004+00:002009-05-22T12:07:09.908+00:00How to create a local yum repository in CentOS<div style="text-align: justify;"><span style="font-weight: bold;">Create a CentOS mirror for your local network</span><br /><br />First create the directories (you have to replace the 4 and i386 to match your major version and architecture):<br /><br /><span style="font-style: italic;">mkdir -pv /var/www/html/centos/5/{os,updates}/i386 </span><br /><br />then,<br /><span style="font-style: italic;">mkdir -pv /var/www/html/centos/5/os/i386/CentOS/RPMS/</span><br />and copy the CD/DVD rpms here.<br /><br /><span style="font-weight: bold;">Creating the base repository headers:</span><br /><span style="font-style: italic;">createrepo /var/www/html/centos/5/os/i386/ </span><br /><br />If you don't have createrepo installed, you can download and install it by typing: <span style="font-style: italic;">yum install createrepo</span><br /><br /><span style="font-weight: bold;">Updating the repository:</span><br />First, select an rsync mirror for the updates from <a href="http://www.centos.org/modules/tinycontent/index.php?id=13">CentOS Mirror List</a><br /><br />For example: rsync://mi.mirror.garr.it/CentOS/<br /><br />Then create the updates-released repo by running rsync:<br /><span style="font-style: italic;">rsync -avrt rsync://mi.mirror.garr.it/CentOS/5.3/updates/i386 --exclude=debug/ /var/www/html/centos/5/updates/</span><br /><br />The update repository will be created in /var/www/html/centos/5/updates<br /><br /><span style="font-weight: bold;">Yum configuration:</span><br />Simply edit /etc/yum.repos.d/CentOS-Base.repo and replace your current configuration with this one below:<br /><br />[base]<br />name=CentOS-$releasever - Base<br />baseurl=http://192.168.*.*/centos/$releasever/os/$basearch/<br />#mirrorlist=http://192.168.*.*/centos/?release=$releasever&arch=$basearch&repo=os<br />#baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/<br />gpgcheck=1<br />gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5<br />#released updates<br />[update]<br />name=CentOS-$releasever - Updates<br />baseurl=http://192.168.*.*/centos/$releasever/updates/$basearch/<br />#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates<br />#baseurl=http://mirror.centos.org/centos/$releasever/updates/$basearch/<br />gpgcheck=1<br />gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5<br /><br />I hope it was helpful !<br /></div>Youness H.http://www.blogger.com/profile/15673170044531520228noreply@blogger.com0tag:blogger.com,1999:blog-439171841919190143.post-51503803730240290972009-05-21T10:52:00.003+00:002009-05-21T10:56:14.419+00:00OpenOffice 3 Installation in Ubuntu<div style="text-align: justify;">To install or upgrade Openoffice 3 in Ubuntu, you'll need to add the repositories to the software sources:<br /><br /><span style="font-style: italic;">Menu:</span> <span style="font-weight: bold;">System / Administration / Software Sources</span><br /><br />Enter your password, then go the "Third Party Software" tab, click the "Add" button, and paste one opf the following depending on your Ubuntu distribution:<br /><br /><span style="font-style: italic;">Ubuntu 8.04</span><br />deb http://ppa.launchpad.net/openoffice-pkgs/ppa/ubuntu hardy main<br /><br /><span style="font-style: italic;">Ubuntu 8.10</span><br />deb http://ppa.launchpad.net/openoffice-pkgs/ppa/ubuntu intrepid main<br /><br /><span style="font-style: italic;">Ubuntu 9.04</span><br />deb http://ppa.launchpad.net/openoffice-pkgs/ppa/ubuntu jaunty main<br /><br />Create a file on your desktop or wherever you want, and paste in the code below:<br /><br />-----BEGIN PGP PUBLIC KEY BLOCK-----<br />Version: SKS 1.0.10<br /><br />mI0ESXanRwEEAOTPu1sTcJChTjkA9LkIh6WqiBgPzxNY2p8w18Qt/cE3ev4VyjiIadZtr+fh<br />C+kuRRQuRinLV+MzeD7Od3uqyR1plc90lqUeLeKJMgXfCoGMmKwng0qD2gpevIvEEpdlmsRo<br />1hutsyRxAL3o/NfFpovg6dWC27Y1Vwwma8UIL5wXABEBAAG0K0xhdW5jaHBhZCBQUEEgZm9y<br />IE9wZW5PZmZpY2Uub3JnIFNjcmliYmxlcnOItgQTAQIAIAUCSXanRwIbAwYLCQgHAwIEFQII<br />AwQWAgMBAh4BAheAAAoJEGDREhckfRz/4QoEAOJ429PsO5oi1xsnX/lraHACYpHNvk4KVghu<br />cY2p6J8M0WTTlfls96jRYGlDBDuyZcfW0W+VJlaiu28u2Y9zEnXTWHMlIk6PiOmLPxXofgDf<br />lKRqvBFYdRD8+33TBeD6u6qajNOLYTL08dnqCfVqmJTGZxqXTmYIOF1NdIs0KlF/<br />=1y5I<br />-----END PGP PUBLIC KEY BLOCK-----<br /><br />Then, go to the "Authentication" tab and import the key file (the one you've just created).<br />Click the "Close" button then "Reload".<br /><br />Launch the Update Manager:<br /><span style="font-style: italic;">Menu</span>: <span style="font-weight: bold;">System / Administration / Update Manager</span><br /><br />When prompted, click "Partial Upgrade" and then "Start Upgrade".<br />It will take some time to download, then you'll be asked to remove obsolete packages.<br /><br />When finished, click the "Close" button.<br /><br />But, notice that not all packages were removed, we'll have to do it manually:<br />In a terminal window, paste this code:<br /><br /><span style="font-style: italic;">sudo apt-get remove language-support-en language-support-translations-en openoffice.org-help-en-gb openoffice.org-l10n-en-gb openoffice.org-l10n-en-za thunderbird-locale-en-gb</span><br /><br />and confirm by typing Y<br /><br />Launch the "Update Manager"<br /><span style="font-style: italic;">Menu</span>: <span style="font-weight: bold;">System / Administration /Update Manager</span> and start the update.<br /><br />Go to <span style="font-weight: bold;">Menu / Applications / Add/Remove...</span><br /><br />Search for openoffice and then select OpenOffice.org Office Suite from the list<br />Click the "Apply Changes" button, confirm by clicking "Apply"<br /><br />Enter your password if prompted<br /><br />That's it !<br /></div>Youness H.http://www.blogger.com/profile/15673170044531520228noreply@blogger.com0tag:blogger.com,1999:blog-439171841919190143.post-54299582725299466092009-05-05T14:19:00.003+00:002009-05-05T14:29:56.781+00:00Speed up your navigationInstead of typing the whole URL in the address bar of your navigator, you can use these shortcuts:<br />For example: If you want to type www.google.com, you type only google and then press ctrl + enter<br /><ul><li>Ctrl + Enter : for the .com sites<br /></li><li>Shift + Enter : for the .net sites</li><li>Ctrl + Shift + Enter : for the .org sites</li></ul>Youness H.http://www.blogger.com/profile/15673170044531520228noreply@blogger.com0tag:blogger.com,1999:blog-439171841919190143.post-88471636937613703432008-04-07T11:30:00.001+00:002008-04-07T11:37:14.624+00:00How To Break Web Software - A look at security ...<div style="text-align: center;"><br /><object height="355" width="425"><param name="movie" value="http://www.youtube.com/v/ZgW2B2gKZVw&hl=en"><param name="wmode" value="transparent"><embed src="http://www.youtube.com/v/ZgW2B2gKZVw&hl=en" type="application/x-shockwave-flash" wmode="transparent" height="355" width="425"></embed></object> <br /></div><div style="text-align: justify;"><span style="font-weight: bold;">Google TechTalks</span><br /><span>April 13, 2006</span><br /><span></span><br /><span>Mike Andrews</span><br /><span></span><br /><span>Mike Andrews is a senior consultant who specializes in <span style="font-weight: bold;">software security</span> and leads the <span style="font-weight: bold;">web application security</span> assessments and Ultimate <span style="font-weight: bold;">Web Hacking</span> classes for <span style="font-weight: bold;">Foundstone</span>.</span><br /><span></span><br /><span>ABSTRACT</span><br /><span>It all started out as a place to share physics documents, but has grown into potentially mankind's largest and most complex creation. The World Wide Web is a lot of things - a soapbox for everyone, a giant shopping mall, an application platform, and unfortunately a hacker's playground.</span><br /><span></span><br /><span>As more applications get "web-ified" moving from the desktop or legacy systems onto the web, attackers follow the vulnerabilities. Without sophisticated tools or "1337 5x1llz", web ... </span></div>Youness H.http://www.blogger.com/profile/15673170044531520228noreply@blogger.com0tag:blogger.com,1999:blog-439171841919190143.post-76551522068275720702008-04-03T20:41:00.001+00:002008-04-03T20:44:00.965+00:00Don't Make Me Click<div style="text-align: center;"><br /><object height="355" width="425"><param name="movie" value="http://www.youtube.com/v/EuELwq2ThJE&hl=en"><param name="wmode" value="transparent"><embed src="http://www.youtube.com/v/EuELwq2ThJE&hl=en" type="application/x-shockwave-flash" wmode="transparent" height="355" width="425"></embed></object><br /></div><div style="text-align: justify;"><span style="font-weight: bold;">Google Tech Talks</span><br />April, 2 2008<br /><br />ABSTRACT<br />What's made <span style="font-weight: bold;">Google search</span>, <span style="font-weight: bold;">Facebook</span>, the <span style="font-weight: bold;">iPod</span>, and <span style="font-weight: bold;">Firefox </span>household names? They all keep interaction to a minimum. The best presentation of content is the one which requires the least number of clicks and choices. Information overload is daunting: Few clicks and choices means more people stay and use your site. Avoiding interaction seduction allows you to create interfaces that are easier to learn and faster to use with surprisingly delightful interfaces. As an example, we'll see what <span style="font-weight: bold;">Google </span>search would have looked like if the Lobby For Advancement Of Carpal-Tunnel Syndrome had got their way.<br /><br />Speaker: Aza Raskin<br />Aza gave his first talk on user interface at age 10 and got hooked. At 17, he was talking and consulting internationally; at 19, he coauthored a physics textbook because he was too young to buy alcohol; at 21, he started drinking alcohol and co-founded Humanized. Two years later, Aza founded Songza.com, a minimalist music search engine that had over a million song plays during it's first week of operation. After Humanized was sucked into Mozilla, Aza became Head of User Experience for Mozilla Labs. In another life, Aza has done Dark Matter research at both Tokyo University and the University of Chicago, from where he graduated with honors in math and physics. When not working (ha!) Aza enjoys playing music and punning. </div>Youness H.http://www.blogger.com/profile/15673170044531520228noreply@blogger.com0tag:blogger.com,1999:blog-439171841919190143.post-9191679563529347532008-03-01T11:25:00.001+00:002009-05-05T14:38:33.500+00:00Firefox Ad<div style="text-align: center;"><br /><object width="425" height="355"><param name="movie" value="http://www.youtube.com/v/xrB8JzMK7dA"><param name="wmode" value="transparent"><embed src="http://www.youtube.com/v/xrB8JzMK7dA" type="application/x-shockwave-flash" wmode="transparent" width="425" height="355"></embed></object><br /></div><span style="font-weight: bold;">Firefox </span>AdYouness H.http://www.blogger.com/profile/15673170044531520228noreply@blogger.com0tag:blogger.com,1999:blog-439171841919190143.post-1699446721942683592008-02-29T11:01:00.001+00:002008-02-29T11:01:55.279+00:00IBM Linux ad: Prodigy<div style="text-align: center;"><br /><object height="355" width="425"><param name="movie" value="http://www.youtube.com/v/EwL0G9wK8j4"><param name="wmode" value="transparent"><embed src="http://www.youtube.com/v/EwL0G9wK8j4" type="application/x-shockwave-flash" wmode="transparent" height="355" width="425"></embed></object><br /></div><span style="font-weight: bold;">Linux advertisement </span>from <span style="font-weight: bold;">IBM</span>, released in September 2003.<br />"The <span style="font-weight: bold;">Future </span>is <span style="font-weight: bold;">Open</span>"Youness H.http://www.blogger.com/profile/15673170044531520228noreply@blogger.com0tag:blogger.com,1999:blog-439171841919190143.post-12014936927906752102008-02-24T13:40:00.003+00:002009-05-05T14:42:05.690+00:00Google Android Demo<div style="text-align: center;"><br /><object width="425" height="355"><param name="movie" value="http://www.youtube.com/v/1FJHYqE0RDg&rel=1"><param name="wmode" value="transparent"><embed src="http://www.youtube.com/v/1FJHYqE0RDg&rel=1" type="application/x-shockwave-flash" wmode="transparent" width="425" height="355"></embed></object><br /></div><span style="font-weight: bold;">Sergey Brin</span> and <span style="font-weight: bold;">Steve Horowitz</span> discuss the availability of the SDK, that it will be <span style="font-weight: bold;">open source</span> in the future, and demo applications on the <span style="font-weight: bold;">Android </span>platform.Youness H.http://www.blogger.com/profile/15673170044531520228noreply@blogger.com0