http://garron.me/mac/icloud-beta-available.html
Varnishlog filter the records for debugging
Varnish Logs Varnish is a powerful reverse proxy that can balance the load of multiple web servers, and cache the required pages at the same time. You can read more about it at its home page Now we all know that debugging is an important part of installing, configuring and fine tuning any piece of software, and that goes to varnish too, and varnishlog is a great utility to help you while debugging varnish. varnishlog As the name says, it display Varnish logs, but if you have a very busy site, and your run it with no parameters you will...
Remove spaces from file names with Linux
I've been using this line to remove spaces from file names in Linux.
Usually Windows users like to add spaces in the file names, I prefer dashes (-) or under scores (_) instead, they are easy to manage in the console.
I've found this command a long time ago in a forum, and still have it on my personal notes.
Here posted for everybody:
for file in *; do mv "$file" `echo $file | sed -e 's/ */_/g' -e 's/_-_/-/g'`; done
Use varnish to avoid hot linking or image leeching
Introduction Hot Linking From Wikipedia we have: The technology behind the World Wide Web, the Hypertext Transfer Protocol (HTTP), does not make any distinction of types of links—all links are functionally equal. Resources may be located on any server at any location. When a web site is visited, the browser first downloads the textual content in the form of an HTML document. The downloaded HTML document may call for other HTML files, images, scripts and/or stylesheet files to be processed. These files may contain <img> tags which supply the URLs which allow images to display on the page. The HTML...
Secure Apache and PHP, hide version numbers
Introduction You may be concerned about security on your LAMP server, and you should hackers are always trying to break into your or anyone’s else system. After finding this in slashdot, I have decided to show you how to to stop Apache and PHP sending their versions and other valuable info for hackers. Hide Apache version To make Apache stop sending its version number to any visitor do as follow: Edit the file http.conf or apache2.conf and add the following lines. ServerSignature Off ServerTokens Prod Restart Apache Hide PHP version Now the turn of PHP, we do not want those...
Create, edit and manage PDF documents really with Linux
Introduction Whenever you need to work with PDF documents, like when you need to merge documents, rotate them or put a lot of documents together in a single PDF file, you may need to work with PDF Mod, this great tool will let you do those things and more. This is going to be just an introduction to its capabilities, you will then learn a lot more by yourself while working with it. Installation If you are using one of the major Linux distribution you will find it in the repositories of your distribution, or you can download from the...
My new personal blog
I'm thinking about letting go2linux as a place only for tutorials and how to.
All my opinions editorials may be moving to my personal blog.
I think that will may easier to anyone only interested in my tips and tutorials not to be messed with my opinion posts.
What do you think?
Find my personal blog at http://garron.me
If I finally decide to do that I'll let you know.
Thanks.
Drupal and Wordpress first impressions
Well,
I now have two sites, this one and http://garron.me.
This one is using Drupal, and the other is with Wordpress, I'll write about them later, but my first impressions are: Wordpress is easier...
Drupad module and iPhone app
If you blog on drupal, you'll really love this module and drupad app for the iPhone and iPod touch.
Wordpress dashboard problem with Ajax, CSS and Javascript
Introduction I'm still kind of playing with http://garron.me and for the last three days I've been switching from Movable Type to Wordpress, but I have faced a weird problem. And while searching in the forums and using Google to solve it, I've found that a lot of people is facing somehow the same problem, and in all forum's threads people is guiding them to the same possible solutions time after time and lots of them have not found the real solution. Well, I hope this post may help anybody who may face this issue, like me. Dashboard Ajax / CSS/...
Share your music library using a Linux server, with DAAP and iTunes
Introduction If you want to share you iTunes library with your family or maybe (for private use) in you office, you can set up a Linux server with mt-daap, it uses the DAAP protocol to share music within your network. As far as I know the music can not be downloaded by the clients, only streamed, if this is not true please let me know. Be aware that according to Apple the music you buy in iTunes can only be shared with your family. Install mt-daap in Slackware I have a printer server in my office and have decided to...
Dropbox for Debian
Introduction Dropbox is according to Wikipedia: Dropbox is a Web-based file hosting service operated by Dropbox, Inc. that uses cloud computing to enable users to store and share files and folders with others across the Internet using file synchronization. It was founded in 2007 by Drew Houston and Arash Ferdowsi as a Y Combinator startup. It is really useful, at it has clients for iPhones, Blackberries, Android and others, as well as Windows and Macs, so Debian is a must. How to install Dropbox in Debian Linux Thanks to my friend Raphael Hertzog, we now have Debian dropbox packages. So,...
Burn an ISO image in Mac OS X
If you are new to Mac like me, you may find it hard to do a simple task like burning an ISO image.
To do it in a Mac, just follow these steps.
Insert a blank disc.
Start Disk Utility. (Under Applications/Utitilities)
[img_assist|nid=1111|title=Mac disk utility|desc=|link=none|align=center|width=145|height=128]
From the File menu, choose Open Disk Image and select the ISO to be burned.
In the list of volumes, you will now see an item representing the ISO file. Select it.
Click the Burn button and follow the instructions.
You should see something like this:
[img_assist|nid=1112|title=Disk utility|desc=|link=none|align=left|width=500|height=440]
Install, list, uninstall, delete perl modules with easy
Introduction A Perl module is a discrete component of software for the Perl programming language. Technically, it is a particular set of conventions for using Perl's package mechanism that has become universally adopted.[discuss] A module defines its source code to be in a package (much like a Java package), the Perl mechanism for defining namespaces, e.g. CGI or Net::FTP or XML::Parser; the file structure mirrors the namespace structure (e.g. the source code for Net::FTP is in Net/FTP.pm). Furthermore, a module is the Perl equivalent of the class when object-oriented programming is employed Now we'll see an easy way to manage...
How to flush / clear Varnish cache
If you are new to Varnish, here is what Wikipedia says about ti: Varnish is an HTTP accelerator designed for content-heavy dynamic web sites. In contrast to other HTTP accelerators, such as Squid, which began life as a client-side cache, or Apache, which is primarily an origin server, Varnish was designed from the ground up as an HTTP accelerator. You can also read Varnish Cache homepage, and here is what I've written about varnish. Well today I want to show you how to purge all the cache without the need to restart the daemon. varnishadm -T 127.0.0.1:6082 url.purge . That...
Crossposting from posterous to Drupal and Movable Type
I just wanted to test how auto post from Posterous to both Drupal and Movable Type works. This short post should appear at: http://g.garron.me http://www.go2linux.org/blogs/guillermo.html http://garron.me/blog/ How good or bad crossposting is to SEO? well there is a lot of debate about that out there. One more thing, I’m using Markdown on this email/post
Arch Linux perl upgrade problems
Introduction Yesterday, while upgrading Perl in Arch Linux to host my Personal Blog, I run into some errors. While installing I've got this warning. - The directories /usr/lib/perl5/current, /usr/lib/perl5/site_perl/current, /usr/lib/perl5/site_perl/5.10.1, and /usr/share/perl5/site_perl/5.10.1 have been removed from @INC. - The script/binary directories are now /usr/bin/*_perl instead of /usr/lib/perl5/*_perl/bin which will be eventually removed. And after the upgrade, no perl script was able to run in my server. Here some of the error I found in the logs: [Tue Jul 05 22:50:42 2011] [error] [client 97.107.133.237] Premature end of script headers: mt-check.cgi [Tue Jul 05 22:57:55 2011] [error] [client 97.107.133.237] /usr/bin/perl: symbol...
Save laptop battery with Linux and bumblebee (Nvidia Cards)
Introduction We all know that one of the biggest problems with equipments that work with batteries is the need to charge them usually more often that we would like to do it, this applies to smartphones and laptops. The problem is more or less the same with them both, and it is the display, in the case of laptops the more powerful your graphics card is, the faster you'll need to recharge your laptop's battery. We also know that we do not need all that power all the time, we may need it if we are using our laptop to...
Reeder first class news reader, for the iPhone/iPad and the Mac
Introduction What do you do first time in the morning?. Let me guess, no, I'm not going to go into your private life, I mean what do you do first time in the morning technologically speaking. I think you check your tweeter stream, and check your RSS list to find the news of the day. Now, If you are using some Apple device, let's say your iPhone, iPod Touch, iPad or your Mac, you might want to know about this. Reeder Reeder is not a free app, but it really worth the price, Reeder is a newsreader application available for...
iPad changed a nine-year old girl life
[img_assist|nid=1100|title=Holly Bligh|desc=|link=none|align=left|width=500|height=282] We all remember how just a simple difference in our clothes or look may be such a big problem in school. Kids tend to put aside anyone who is a little bit different from the group. Now imagine how hard it is for a nine year old girl with albinism to go to school everyday, also imagine how could it be if that little girl also needs the teachers to magnify all text in the photocopy for to be able to read with the rest of the class, just because albinism affected her eyes. Well that girl is...
Farewell to Microsoft
Disclaimer: This is based on my own experience, and your needs and experiences may vary [img_assist|nid=1097|title=good bye microsoft|desc=|link=none|align=left|width=500|height=375] Introduction I have been using Microsoft Operating Systems since 1990, first exclusively, and later as a dual boot with Linux, I hope today to be the day I will finally be able to say "Good by for ever Windows, please stay out of my life". Some review of my experience with computers I started my computer life with DOS, PC-DOC and MS-DOS back in 1990, I used Word Perfect and Lotus 123 or Quattro Pro to work my documents and my spread...
Varnish and virtual Hosts configuration (Apache and Nginx)
Introduction If you want to use Varnish with Virtual Hosts, you may face the problem of Varnish showing only the default site and not all other virtual sites. Do not try to fix it tweaking Varnish, as this is something you need to solve in Apache or Nginx configuration, depending on which of them is behind varnish. In this post I'll show you how to configure both of them Nginx and Apache. How to configure Varnish I'll not cover the complete instructions about Varnish configuration in this post, but the basics are: backend default { .host = "127.0.0.1"; .port =...
Newsbeuter - Read your news feeds from the command line terminal
Introduction A lot of people is saying that maybe RSS is dying, but what it seems to be happening is that maybe, while more and more people come on-line the majority of them are not that "geek" guy that knows how to use RSS. Well I'm sure that most of the readers of this blog uses RSS, actually, there are 1800+ RSS readers of this blog. I want now to introduce you with Newsbeuter, that according to its home page is: Newsbeuter is an open-source RSS/Atom feed reader for text terminals. It runs on Linux, FreeBSD, Mac OS X and...
Home, End, Page Up, Page Down keys on a Mac's keyboard
Introduction If you are starting with a Mac you may be missing some keyboard keys, some like... "Home", "End", Page Up" and "Page Down" right? Well they are all there, but they are hidden, :), no really, you need some short cuts to get them. Home key Mac The Home key in a Mac is "fn + left arrow" End key Mac The End key in a Mac is "fn + right arrow" Other home and end keys Now, how is that of other Home and End keys?, well if you are surfing the web on Safari, and you click...
Copy / Paste from shell (Terminal / Console) to clipboard in a Mac
Introduction Being a Linux user and starting now with Mac, I am constantly looking for equivalent ways to do the same job. One of those things I need is to copy large amounts of output in the console (terminal window) to the clipboard for later use. In Linux I use xclip, and in Mac I'll use pbcopy and pbpaste Copy from terminal window to clipboard To copy the output of a command to clipboard just enter something like this: ls -al | pbcopy Now we have the output of the command ls -al (that is the contents of the current...
Unity and Gnome 3: What is good and what is evil?
Unity and GNOME 3: What Is Good And What Is Evil? With two recent releases of Linux operating systems, Ubuntu and Fedora, new age of desktop environments began. These two operating systems bring you new user interfaces: Unity in Ubuntu 11.04 and GNOME 3 in Fedora. Are these new interfaces good or evil for Linux community? Let's try to analyse. If you ever used Unity and GNOME 3, or seen any screenshot of them, you see it is very different from anything you have ever seen before on desktop and laptop computers. Interface of these DEs is very different. There...
/etc/raddb/eap.conf[17]: Instantiation failed for module "eap"
Introduction The other day while trying to install freeradius on a Linux server I stepped into an error. It could just not start, and while using radiusd -X to start freeradius in debug mode, it let me know what the problem was, but I was just not able to understand it. Finally found the solution. Freeradius error These are the most important lines that radiusd -X put on the screen. rlm_eap: SSL error error:00000000:lib(0):func(0):reason(0) rlm_eap_tls: Error loading randomness rlm_eap: Failed to initialize type tls /etc/raddb/eap.conf[17]: Instantiation failed for module "eap" /etc/raddb/sites-enabled/inner-tunnel[236]: Failed to load module "eap". /etc/raddb/sites-enabled/inner-tunnel[189]: Errors parsing authenticate...
LC_CTYPE to default locale: No such file or directory
Introduction Today I have installed a new server at linode, and I put Arch Linux on it. I've also installed LAMP on it, but as soon as I tried to start Apache I run into some errors. LCCTYPE: cannot change locale (enUS.utf8): No such file or directory These are the errors I found while trying to start Apache. /etc/rc.d/functions: line 43: warning: setlocale: LC_CTYPE: cannot change locale (en_US.utf8): No such file or directory /etc/rc.d/functions: line 43: warning: setlocale: LC_NUMERIC: cannot change locale (en_US.utf8): No such file or directory /etc/rc.d/functions: line 43: warning: setlocale: LC_TIME: cannot change locale (en_US.utf8): No such...
PHPinfo script to test your PHP and Apache server
Introduction If you have just installed your LAMP server on your favorite Linux distribution, you may want to test a few things, one of the them is PHP running. To me the best way to do it is creating a small php script that will display the info about PHP running on my server, using the statement phpinfo. How to create a phpinfo php script This is very simple and maybe all of you already know about it, but I think it is good to list it here in case it may help someone in the future -maybe me ;)-...
Spell check your documents from command line
[Edit 06/12/2011] Sorry for not giving you new content, but was a difficult week on a trip. So I'm re-editing this old post. I'm also using this option to give you the link of this other way to spell check your documents on Linux. Use vim to spell check your documents.[/Edit]. To check the spell of a text file, maybe written with vi/vim, emacs, or any other text editor even sed, awk or a here-document, you may use aspell. From the man page: aspell is a utility program that connects to the Aspell library so that it can function as...