Câteva propuneri și întrebări

Pentru firmele de net, alea de cartier bineînțeles. Fraților, lăsați-ne și pe noi să plătim pe net trăiască vouă. Greu nu e deloc. Se poate asocia câte o adresă de email fiecărui abonat, și plata se va face prin paypal. Hai că nu e greu :wink: . Singura firmă de net care oferă posibilitatea plății pe net e ilink.ro. Bravo, felicitări, dar mi-e lene să mă mut, parcă e prea mare tămbălăul…

TweetDeck, că tot ați fost cumpărați de Twitter și că tot ne puneți să ne facem cont, de ce nu faceți sync între deviceuri? De ce după ce citesc un tweet de pe telefon, pe calculator tot necitit e? Desigur, și invers e aceeași poveste. Hai, facem și noi treabă calumea?

Yahoo Messenger, pe Win7 de ce nu aveți opțiune ca în taskbar (că de-aia are Win7 taskbar mișto) în loc să fie afișată iconița voastră, să apară avatarul omului? Și eventual să se schimbe iconița când omu’ respectiv scrie? Pidgin așa face, să știți :roll: . De ce nu folosesc Pidgin? Pentru că îi lipsesc niște lucruri și pentru că nici ăla nu prea e optimizat pentru Win7.

Android, de ce nu ne lași să ne facem un backup total? Tot ești tu de la Google așa că merg mai departe și o dau în nesimțire: de ce nu ne oferi și niște spațiu în cloud (da mă e la modă cloudul) unde să ne punem bakupurile complete? Backup complet înseamnă că dacă îmi rad tot din telefon și îl fac cum a plecat el din fabrică și dau restore, să il am cum era înainte de format. Ar fi foarte util, mai ales pentru ăștia de genul meu și al lui Claudiu care avem probleme la tărtăcuță, și frecăm analele telefonului non-stop. Și tot la Android, de ce nu mă lași să sincronizez calumea cu grupurile de contacte custom? Adică na, dacă bag numere de telefon într-un grup custom de pe calculator și dau de pe telefon sync, merge. Dar dacă deja am selectat din telefon să îmi afișeze doar grupul X, și adaug un număr nou, acesta se duce tot în grupul default “My Contacts”.

Protocolul XML-RPC, folosit de aplicațiile third-party pentru a scrie pe blog, de ce nu permite uploadarea imaginilor pe server așa cum face în mod normal Dashboardul?

Iar Yahoo Messenger, dar de data asta varianta pentru Android dar și PC. Niciodată nu am prea înțeles cum vine asta cu sign-in simultan din mai multe locații dar de ce primesc întâi mesajele pe telefon și după încă vreo 5 minute apar și pe calculator? Mie mi se pare normal ca dacă am ajuns acasă și am deschis calculatorul să îmi dea sign-out de pe telefon.

Dragi patroni de hoteluri, data viitoare când stricați apometrele, nu raportați consum 0. Dacă tot vreți să păcăliți pe cineva faceți-o mai cu talent.

Sunt cam nemulțumit, eh? :P

Hai să nu o dăm în d-astea :)

Am observat că marii bloggeri români au foarte multe commenturi în care sunt înjuraţi, făcuţi în toate felurile, ba chiar useri care răspund la întrebarea “De ce reveniţi aici?” cu chestii de genul:

Că n-am altceva mai bun de făcut!

sau chiar

Ca să văd ce prostii mai debitezi…

Ideea defapt e în felul următor: dacă tu ca cititor (subliniem cititor, da?) intri şi scrii că nu ai altceva mai bun de făcut, pe blogger îl doare fix în cot. Ieri dimineaţă mi-am luat şi eu prima înjurătură. Povestea asta e oarecum legată de cea de sus. Cât timp tu citeşti şi comentezi, bloggerul este fericit.

Bun, nu eşti de acord cu ceva ce a zis bloggerul. Ai dreptul la o părere, bineînţeles! Dar cum îţi exprimi părerea? Ca idiotu’ sau cum se cuvine? Dacă o faci ca prostu’, bloggerul se va amuza pe seama ta şi nu va ţine cont de ce ai avut tu de zis. Asta se întamplă de fiecare dată pentru că modul de exprimare îi dovedeşte bloggerului că tu eşti sub nivelul de inteligenţă agreat pe blog. Ba mai mult, unii s-ar putea să activeze o chestie destul de mişto din WordPress la Discussion Settings:

Da, am primit şi argumente inteligente la anumite posturi (şi mulţumesc pentru asta), şi îmi şi recunosc greşeala dacă e cazul.

Ah, încă ceva. Dacă tot sunt înjurături, nu ar trebui să aibe nume şi email adevărate? :blink:

Pages with no comments

Do you have a page where you have the comments closed? Or no comments at all? In either case after the page’s content you will see something like “Comments are closed for this entry!” or “There are no comments here!”

If you are a perfectionist like I am (that’s a nicer way of saying you have a few screws loose), you will want those two messages to disappear. And you will have two options of doing this: the dumb way and the right way.

The dumb way — deleting the statements from your comments.php file

To do this you just have to open your comments.php file and find some ifs and elses (those that define if a posts has the comments open but doesn’t have any comments and if a post has the comments closed). They should look like this:

<?php else : // this is displayed if there are no comments so far ?>

<h3 id="comments"><?php comments_number('No Comments', 'One Comment', '% Comments' );?> to &#8220;<?php the_title(); ?>&#8221; <b><a href="#respond" style="text-decoration:none;">&raquo;</a></b></h3>

If you delete this <h3> and the next one (where comments are closed) your problem will look solved. The only problem is at posts where comments are closed or have no comments. And this brings us to the second way – the right one.

The Right way — IFing the declarations

… and yes, I am aware “IFing”  is not a word but a teacher at my Uni said that English is a language to play with :P . Another thing to play with is WordPress. It is a very malleable and very easy to use toy. They offer us the is_page() hook.

If we negate that hook and leave the messages, they will appear only in posts but not on pages! The code should look like this:

<?php else : // this is displayed if there are no comments so far ?>

<?php if (!is_page()) { ?><h3 id="comments"><?php comments_number('No Comments', 'One Comment', '% Comments' );?> to &#8220;<?php the_title(); ?>&#8221; <b><a href="#respond" style="text-decoration:none;">&raquo;</a></b></h3>

<?php }; ?>

Yeah, it does look a bit crappy and I am not very sure how “legal” it is to use those brackets to include the whole combo of HTML + hooks + PHP. Also, the comments.php file is one of those things that give me a headache.

Conclusion

I think this is pretty easy to make but it may also be a pretty useful trick for some of you. At this moment you will have nice and clean pages and posts will be complete :) .

P.S. It has been a while since my last code article :woohoo: .

Update that theme. NOW!

If you like to tinker around with the style of your theme a lot like I do, you will probably like this article. Our aim is to force the new style.css file over the old one the users’ cache has. You can do this the dumb-dumb way, the hard way, or the easy way.

The dumb-dumb way is to ignore this issue and wait until the users’ caches expire. Not a very good idea if you ask me.

The hard way is to set some .htaccess expire headers. You can add rules for the CSS to expire every x hours, days, weeks, etc. but I thought we were trying to force the new CSS file right away 8-O .

This brings us to the easy way: tweaking the header.php file a bit! All you have to do is replace your usual style inclusion with a new one. The magic line is:

<link rel="stylesheet" type="text/css" href="<?php echo bloginfo('stylesheet_url'). '?' . filemtime( get_stylesheet_directory() . '/style.css'); ?>" />

After you update your header.php file you should see something like this when you view the source in your browser:

<link rel="stylesheet" type="text/css" href="http://huzze.net/wp-content/themes/huzze/style.css?1286398426" />
Yeah, the funky numbers after the question mark are the secret.

Simple as that. No more waiting, no more F5, no more nothing. Just a simple click on your “home” button and you will see the changes immediately! :-D

Hosting – what would you prefer?

First Case – hostso.com

  • very good price/features ratio: for $1/month you get 200GB of webspace and unlimited bandwidth
  • they really have 24/7 live chat support
  • huge latency (the time between your click and the first byte received)
  • although the support is non-stop it’s not very good. I once broke the email function (cPanel tinkering, good thing I behave now :twisted: ). I asked the support guys three times what’s happening, each time being told the scripts are faulty (I didn’t change anything in wordpress’ settings/code). After a few hours I remembered my last actions in cPanel and I told them what the problem was. I also told them the solution I found and asked if my subdomains will be deleted. They said no. Of course they were!
  • In the last three days with them I received 53 (!!!!!) emails from wasitup.com telling me the site was down. The support first told me they did not have any server problems, then they said the server admins are working to resolve the problem, and again that they did not have server problems in some time. So wasitup.com was lying. I was lying! The problem was still there after another 3 days.
  • hostso aren’t very friendly with JavaScript.

Second Case – shophost.ro

I just moved here so these are first impressions or things I already noticed about them!

  • The support is not quite 24/7 but is more competent than over at hostso.
  • Although their servers are overseas, the speed is excellent.
  • The latency is way smaller than at hostso.
  • Again, didn’t need the support too much in these few days, but my general impression about them is they are serious guys :-D !
  • They are Romanian.
  • They said they’ll get some servers here. This is particularly good because Romania has one of the best internet speeds in the world!
  • the price/features ratio isn’t excellent, compared to hostso. Compared to other companies in Romania it is. Actually, for a normal blog, the shophost.ro services are almost perfect :wink: . On the other hand the price/quality ratio is very good!
  • They also don’t like Ghesi :-D

So, what would you choose? I got three months with shophost. I reactivated wasitup and I am very curious how many error notifications I’m going to get in these three months.

Default avatar

I finally decided to change the default avatar here. WordPress offers a few alternatives for those of you who don’t have a gravatar. The options are:

Please leave a comment with the number you prefer. These are randomly generated, so two different people won’t have the same avatar.

So, what’ll be? (choose even if you have a gravatar :) )

Stop SOPA