by Fabrizio Giordano - Published: April 12th, 2010 -

Le espressioni regolari sono uno strumento assai potente per i programmatori perché permettono di assolvere in modo intelligente ed efficace ad una miriade di compiti: validazione dei campi di un form, ricerca del testo all’interno di un box, estrazione di informazioni da una pagina e tutta una serie di operazioni di ben altra complessità se [...]
Autore: Kiko
Tags: php, regex

Comments: No Comment - Category: Shared
by Fabrizio Giordano - Published: April 12th, 2010 -

zooloo logoWhen we covered ZooLoo back in October, we were impressed with the audacity of their concept, but worried about possible consumer confusion and lack of product focus.

ZooLoo is something of a compilation of iGoogle, Tumblr, Webs, Twitter, and Cliqset. Each ZooLoo user has their own website, you can see mine here, where they can post content and text as they wish. Think Tumblr, but not quite as pretty. ZooLoo has a few dozen themes to choose from for each user.

Each user also has a dashboard, which is similar to iGoogle or Pageflakes if you were ever into that sort of thing. Just to top things off, ZooLoo is also a Twitter, Facebook, LinkedIn, and MySpace client. Built into your “home” section, you can link your accounts from around the internet into your ZooLoo, letting you keep all those peas in one pod.

It’s not as powerful as TweetDeck or Seesmic, but for the casual user (ZooLoo’s target market), it could be a real value add.

zooloo 1

Recently launched is Graffiti, a compilation of what we have just discussed. Every users website is built around updates to their status, be that an image, link, text update, or other item. Once you update, it lands on your personal website forming a stream of notes, called your Graffiti. You can choose to farm that update out to any network that you have linked in, channeling Ping.fm. It’s called Graffiti on ZooLoo, and it’s a form of microblogging.

You can follow other people’s Graffiti updates on the service, adding in a layer of ZooLoo-only capability that cannot be replicated elsewhere. As of this moment, I think that I have one follower on ZooLoo.

While we sit here and compare this part of the service to another product time and again, we have to remember that we are hardly the ZooLoo demographic. To the new ZooLoo user, most likely everything that they are seeing is new, and integrated instead of disparate.

ZooLoo also released an iPhone application for any user that is on the Apple mobile tit.

ZooLoo, in addition to the Graffiti upgrade has revamped their pricing with new incremental pricing plans, and an ala carte method to let users pick just what they want to pay for, and nothing else. According to Aaron Baer, the company’s marketing lead, the ala carte pricing scheme is their most popular plan.

In light of all the companies recent upgrades around their product they have seen a 15% rise in daily signups, and have doubled their percentage of paying users. Their total active users (people who have been on ZooLoo five times in the last week), have tripled. We always love to see companies that have an expanding userbase and revenue column.

So, it does seem that ZooLoo has shown us up. We were slightly negative in our first post on the companies prospects, only to see them find new growth and paying users. Hats off to ZooLoo for finding new

Comments: No Comment - Category: Shared
by Fabrizio Giordano - Published: April 12th, 2010 -

Guest post: Dan Salcedo is founder of the DC based international development organization OpenEntry, with the mission of helping small and medium enterprises (SMEs) worldwide benefit from the exciting new opportunities opened up by global e-commerce. Working with a team of volunteer developers, he built a catalog generator that enables SMEs in developing countries to create their own free e-commerce catalogs, managed via a Google spreadsheet.

Years ago, I noticed artisans in developing countries were selling their items to a long chain of middlemen that only paid them 10-15% of the final retail price, even through conventional fair trade channels. So I launched a non-profit organization to help artisans disintermediate all the middlemen by selling directly through e-commerce catalogs that they could create and manage themselves. We recently relaunched our OpenEntry catalog generator using a bunch of Google tools including Docs, Sites, Checkout, Picasa Web Albums, AdSense, and Apps Engine. And our User Manual, built on Google Sites, is full of YouTube videos. This enables us to offer totally free e-commerce catalogs (software, hosting, user support) to artisans and SMEs worldwide including the following:

Nature Nepal-Herbal Care
Nepal
MerevilleyTrust
India
Pollee Unnyon Prokolpo
Bangladesh
Each catalog is managed by filling out a Google spreadsheet with three sheets containing information on the company, products, and additional pages (see products sheet below).


The images are stored on Picasa Web Albums and sellers use Google Checkout (as well as PayPal and 2Checkout) to accept credit card payments. Google Sites helps users generate attractive HTML that can be added to some of the spreadsheet fields to improve aesthetics. Google App Engine reads the spreadsheet, then generates the catalog hosted on Google servers. These tools also made it surprisingly easy to enable OpenEntry catalogs to be managed with a smart phone.

Google recently added a feature enabling the ownership of their spreadsheets to be transferred to a third party, which makes it easy to transfer spreadsheets to the final SME vendor. This is very good news because it enables the OpenEntry User Support team in Nepal to set up catalogs and transfer ownership to the SME vendor who can then operate it securely. This also means we can now transfer blocks of catalog accounts to young, ambitious entrepreneurs anywhere in the developing world, enabling them to start their own legitimate enterprises. Even though the OpenEntry catalogs are free, the entrepreneurs can charge for setup, digital images, custom templates, training, maintenance, etc. And they can even do it from an Internet cafe until they can afford their own computer. This reinforces the conclusion of the United Nations Development Program evaluation of our platform (under its previous name, CatGen) that generated 4000 jobs for artisan women and “a relatively inexperienced group of young IT professionals” in Nepal.

Because this is a non-profit initiative, OpenEntry is seeking volunteers to help with a variety of technical tasks starting with template design.

Posted by: Dan Salcedo, Founder and CEO of www.OpenEntry.com, dsalcedo@OpenEntry.com

Comments: No Comment - Category: Shared
by Fabrizio Giordano - Published: April 12th, 2010 -

SMS GupShup, a Twitter-like service in India that is primarily accessed via SMS, has raised $12 million in funding led by Globespan Capital Partners with existing investors Charles River Ventures and Helion Venture Partners participating in the round.

The latest capital injection brings SMS GupShup’s total funding to $37 million.

Launched in April 2007, SMS GupShup (spawned from Webaroo) serves 26 million users across India. The startup has seen rapid growth in users primarily due to the immense popularity of mobile devices in India. According to the startup, there are 550 million mobile phone users in the country and only 50 million web users. With a 10 to 1 mobile-to-PC ratio and SMS serving as the most popular communications platform, the market is ripe for SMS GupShup to take off. SMS GupShup currently processes over 480 million messages a month and accounts for 5 percent of all texts sent within India. The new funding will be used for expand into other markets such as the Philippines and Indonesia, for product development and to hire new staff in engineering, advertising and marketing.

In fact, the mobile social network has even attracted the attention of leaders in the space, like Facebook. Last year, Facebook partnered with SMS GupShup to powere and deliver its users’ status updates via text messages. And besides partnerships, SMS GupShup also has an advertising strategy. Over 100 advertisers currently run on the network including local insurance provider ICICI Lombard and international brands like Puma, Microsoft and Cadbury.

India is a huge market for social networks, with Facebook, Orkut and even Twitter vying for a share of the growing number of web users who are increasingly flocking to social networks in their day-to-day routines. But clearly, SMS GupShup has tapped into the mobile side of social networks and is seeing success from this in India. It should be interesting to see how SMS GupShup will fare in other countries. It seems that in developing countries where mobile phone usage is much highers than web-usage the service is sure to take off. But the question remains if the service could ever take off in Europe or the U.S., which seems to be Twitter territory.

Comments: No Comment - Category: Shared
by Fabrizio Giordano - Published: April 12th, 2010 -

Se avete una macchina con una porta aperta come ssh verso internet avrete notato una quantità spropositata di accessi tentati e falliti.

Ci sono tantissimi malware che provano ad intrufolarsi in computer mal configurati con password deboli. Dando per scontato che vi serva mantenere la porta aperta la prima e più utile soluzione è abilitare esclusivamente l’accesso via chiave pubblica con PubkeyAuthentication yes in sshd_config.

Per evitare di dover scorrere inutilmente log chilometrici potreste anche limitare le connessioni. Esistono software come fail2ban o denyhosts, ma potete implementare tutto usando semplicemente iptables.

Ci sono alcuni moduli che potreste usare, il più semplicemente è probabilmente “recent”, anche se potreste provare a giocare con hashlimit o persino con geoip. Quest’ultimo filtra le connessioni in base agli stati.

Il vero colpo di grazia per questi poveracci che setacciano la rete è il tarpitting. Si tratta in pratica di tenere in ostaggio la connessione del malcapitato senza consentire alcun trasferimento di dati e rallentando il loro “lavoro”. Potete trovare il tarpitting in patch-o-matic.

iptables -N autoban
iptables -I INPUT -p TCP --dport 22 -j autoban
iptables -A autoban -p tcp --dport 22 -m state --state NEW -m recent --set --name SSH
iptables -A autoban -p tcp --dport 22 -m state --state NEW -m recent --update --seconds 60 --hitcount 2 --rttl --name SSH -j DROP

Comments: No Comment - Category: Shared
by Fabrizio Giordano - Published: April 12th, 2010 -

Cassandra

Sembra proprio che nelle ultime settimane abbandonare SQL sia diventata quasi una moda: anche su queste pagine abbiamo parlato dei database non-relazionali e del “movimento” NoSQL grazie a Cassandra (e non soltanto). Tra i primi e più illustri servizi web 2.0 a effettuare lo switch è stato Twitter… e molti lo stanno seguendo.

Questa volta non si tratta di microblogging, ma di social bookmarking: Digg ha abbracciato Cassandra con un ampio e interessante preambolo circa i problemi riscontrati nell’uso di MySQL rispetto a database di grandi dimensioni e in riferimento al web in tempo reale. Il lavoro del team su Cassandra sarà interamente reso pubblico e open source.

Poco dopo anche Reddit ha abbandonato MemecacheDB in seguito ai feedback degli utenti che si lamentavano dei disservizi causati dal passaggio ad Amazon EC2: convinti che i problemi non dipendessero dai server, gli sviluppatori hanno effettuato il passaggio a Cassandra — migliorando sensibilmente le prestazioni. Chissà cosa ne pensa Oracle.

Via | Unixmen

Comments: No Comment - Category: Shared
by Fabrizio Giordano - Published: April 12th, 2010 -

Netstat e nmap

Quali sono i comandi più utili per un amministratore di un sistema Linux? Una risposta arriva da Linuxadminzone.com, che ha provato a mettere in fila gli strumenti più utili nella gestione quotidiana del sistema.

Escludendo quei comandi di cui non si può proprio fare a meno, come Ssh, scp e via dicendo, ecco i cinque comandi la cui utilità è ritenuta fondamentale: find/grep, netstat/nmap, screen, vi/nano/emacs, head/tail.

In ordine, i più utili sono considerati ex aequo find e grep. Il primo per la sua utilità nelle ricerche “pre intervento”, come per esempio nel trovare file di grosse dimensioni da eliminare per liberare spazio sul server (es.: find /var/log/ -type f -size +5120M -exec ls -lh {} ). Grep invece per la sua capacità di selezionare informazioni da un elenco, come per esempio elencare le directory root dei siti gestiti in Apache (grep -i documentroot /etc/httpd/conf/httpd.conf).

A ruota netstat, per conoscere lo status di un network, e nmap, per uno scanning delle porte aperte su un sistema. Da combinare eventualmente con il precedente grep per conoscere quali sono le porte aperte in ascolto su un server (es.: netstat -ant | grep LISTEN).

Ecco poi screen, che consente di svolgere operazioni diverse (come ssh) in un unico terminale, con una finestra per comando. Si digita screen e poi, tenendo premuto ctrl, si aprono digitando ac tutti i terminali che si vuole, restando però sempre dentro al terminale di partenza.

Al quarto posto un altro ex aequo con gli editor vi/vim, nano ed emacs. Per l’estensore dell’articolo vince vim, mentre per chi è meno pratico dei comandi degli editor testuali è sicuramente più facile usare nano, che consente di modificare file nel terminale senza conoscere le per altro utilissime scorciatoie di vi/vim. Emacs invece sarà sicuramente nel cuore di chi si sente a più stretto contatto con il sistema Gnu.

Last but not least, head e tail si dividono il quinto posto. Tante volte infatti ci si loga su un server giusto per dare un occhio ai file di log. Così ecco che tail consente di vedere la parte finale di un ipotetico error_log e head limita il controllo a un numero di righe iniziali decise dall’amministratore.

E ora, quali sono per voi i comandi e gli strumenti più utili? Personalmente trovo molto funzionale top per scoprire quale comando sta consumando la mia cpu, quando il pc rallenta o la ventola va a palla. E anche “ps aux | grep nomedelcomando” per trovare un’applicazione che so essere impallata e killarla.

Comments: No Comment - Category: Shared
by Fabrizio Giordano - Published: April 12th, 2010 -


Later this month Facebook is holding its f8 conference, where it will be launching a slew of new features (we’ve already broken the news on quite a few of them). Tonight, the company has written a blog post announcing what is perhaps the most ambitious and creepy of them all: Facebook is looking to get into the dating game, and it’s turning to Zynga for help.

The gist of the new product? Dubbed ‘Relationships’, Facebook is going to soon offer a section of the site dedicated to helping users meet potential romantic partners. To do that, the company has been working with Zynga over the last four months to develop games that “synthesize romance and foster relationships through social gaming mechanics”, helping users flirt and get to know each other using Farmville-like games to help break the ice.

In the post, Facebook says that it will look at the profiles of your previous boyfriends/girlfriends to determine the personality traits you’re attracted to most, and that it will also use advanced photographic analysis to figure out your preferred facial structure and body type. In an attempt to quell privacy concerns before they begin, Facebook notes that all of this is done automatically, and that at no point are employees allowed to view these reports on your innermost psyche. How reassuring.

The site appears to be broken up into three sections: at the top is a section for ‘Flirts’, which displays the Facebook friends you’ve been interacting with most. In a move certain to cause riots, Facebook is now allowing users to keep tabs on how many times each of their friends has visited their profile. Facebook claims that this will make it easier to figure out who is lusting after you, and that “shadier” visitors will simply learn not to be so creepy. Below this is a section for games and lessons. These appear to be the Zynga-designed apps, which cover everything from flirting to lessons on hygiene.

Finally, there’s a ‘Recent Dates’ section. It’s unclear exactly what this is for, but there’s a Facebook-branded baseball diamond that apparently prompts users to share “how far” they got on their recent dates to their friends’ News Feeds. Given how much these definitions have shifted over the years, this could get messy.


The 6.8 Project

Perhaps most interesting is the fact that the new Relationships feature belongs to a new (and somewhat sinister sounding) ongoing initiative that Facebook is internally calling The 6.8 Project. The name, which is an allusion to Earth’s total population of 6.8 billion people, is meant to symbolize Facebook’s goal of connecting everyone on the planet. The concern is that that may not be enough.

Facebook has grown so quickly over the last few years that the company is worried that its long-term expansion potential over the next decade is limited. At its current growth rate, Facebook will have saturated the market of Internet-using humans in seven years. So — to put things bluntly — they’re looking to encourage current users to procreate, though they’ve only said as much with cutesy euphemisms.

Facebook wouldn’t comment on its future plans for the 6.8 Project, but we hear that the company intends to launch a ‘Babybook’ directory for children up for adoption, and there are also discussions about lowering Facebook’s minimum age to five years old.

Excerpt from Facebook’s Blog:

“Over the last six years, Facebook has been embraced by over 400 million people around the world — and we’re still growing. During that time, our engineers have managed to overcome some truly monumental hurdles, empowering friends and families to share their photos, videos, and thoughts with the people they care about.

But there’s still one fundamental human need that we haven’t yet been able to take care of, and ironically enough it’s the primary reason people log on to Facebook every day. It goes by many names: Love. Romance. Great White Buffalo. Call it what you will, it’s something that all of us are looking for. We hope to help you find it with Facebook Relationships.

We look forward to sharing more details about the new feature at this month’s f8 conference. With Relationships, we’re going to take your friendships to the next level.

Information provided by CrunchBase

Comments: No Comment - Category: Shared
by Fabrizio Giordano - Published: April 12th, 2010 -

Se la vostra intenzione è creare e distribuire efficacemente una buona app per iPhone anche al di fuori di App Store – magari con un bel sito web – e non siete degli assi in fatto di web design, AppsTemplates è quello che fa per voi.

I template contenuti nella vasta gallery del sito sono quasi tutti accattivanti, professionali e ottimizzati per le esigenze degli sviluppatori per iPhone, com’è normale attendersi da chi mette in vendita una servizio del genere a 100 dollari (anche se attualmente è in corso una promozione che vi farà sborsare metà del prezzo). Credo che sia un buon modo, per il potenziale sviluppatore, per concentrarsi sui contenuti del sito, che è a volte è un complemento fondamentale rispetto ad App Store per vendere bene il proprio lavoro.

Il pagamento, c’è da dire, dà accesso a tutti i template disponibili ora e anche a tutti quelli che verranno in futuro. Il che rende già più appetibile l’offerta. Tutti i template contengono il source file PSD (personalizzabile) ed effetti jQuery.

Comments: No Comment - Category: Shared
by Fabrizio Giordano - Published: April 12th, 2010 -

Mashable ha pubblicato un fondamentale post che fa un po’ il punto sulle tecniche di pulizia da dedicare al proprio profilo Facebook. Molti utenti italiani dovrebbero prendere spunto dalle sagge parole di Stan Schroeder, il blogger che si è occupato di questo “lavoro sporco”.

Dal momento che un profilo Facebook è un po’ un biglietto da visita, è importante che sia in ordine e che vi presenti, se non al meglio, quantomeno non al peggio delle vostre possibilità. I troppi amici e le troppe applicazioni installate sono nemici dell’ordine e della qualità. Dunque, la prima regola è: cancellate i contatti con cui non intraprendete conversazioni interessanti.

Dopodiché, senza paura, “nascondete” dalla home i contatti che, per motivi di diplomazia e/o politica, non potete proprio cancellare. Nessuna paura, non ne sapranno niente. Andate nella home page di Facebook, localizzate il post del contatto molesto o sgrammaticato e cliccate su “nascondi”. Non ne saprete più niente, fino a che non vorrete riesumarlo, grazie al pulsante “modifica opzioni”, sul fondo della home page, a destra.

Se ancora questo non basta, le liste dei contatti ci vengono in soccorso. Un must è creare quella degli utenti più noiosi e isolarli dal resto del flusso (salvo poi visualizzare solo i loro post, quando vogliamo farci quattro risate). Il pulsante “crea una lista” è giusto in cima alla pagina degli “amici”. Crearne una e modificarla nel tempo è un gioco da ragazzi: basta selezionare o deselezionare le foto dei contatti dall’apposita finestra che appare quando vogliamo editare una lista, come quando mandiamo un messaggio privato Facebook a utenti multipli.

Ma, per la “cosmesi” del vostro profilo, non c’è davvero niente di meglio di stabilire quali applicazioni possono “scrivere” sulla vostra bacheca e quali no. Cliccate su “account” (in alto a destra di ogni pagina Facebook) e poi ancora su “impostazioni applicazioni”. Vedrete subito quali sono le applicazioni che, più o meno involontariamente (ahimè) risultano autorizzate ad accedere al vostro profilo. Eliminate subito le più intrusive, soprattutto se non le usate voi in prima persona. Seguendo questi semplici consigli, il vostro profilo sarà più piacevole da visualizzare per i vostri contatti. La vostra esperienza di Facebook non cambierà, sarà ancora drammaticamente noiosa e dispersiva, ma non siamo ancora attrezzati per i miracoli.

Comments: No Comment - Category: Shared