Powered by Cellfex RSS Follow me on Spotify

Archive for the ‘Web Development’ Category

this must be joke. but it’s not.

The Volkswagen Group is using Microsoft Internet Explorer 6 as standard the for displaying web pages. For the daily work with our platform, we recommend you to use the Microsoft Internet Explorer 6, too.
[source »]

Sounds too good to be true. Especially from lips of MS…

Microsoft will not support browser plug-ins, including Adobe’s Flash, in one of the two versions of Internet Explorer to be bundled with Windows 8, a company executive said today.

Via Computerworld

10 Oct 2011

Could it be the beginning of new era?

Author: Edgars | Filed under: DailyStuff, Web Development

If you want to find out which program (daemon, app, etc) is using the port in unix environmnet (at least in linux), then netstat come in handy.

run this command in prompt

netstat -tlnp | grep :25

and it gives out result like

[~]# netstat -tlnp | grep :25
tcp        0      0 0.0.0.0:25                  0.0.0.0:*                   LISTEN      2739/??????

where the ?????? part is the answer you are looking for

All those Mac users who enjoy free services of SequelPro – recently export was improved in a very very very good way. Now you can export tables and select explicitly if you want to export either structure, data or both for every single table in db.

Makes life so much easier.

7 Sep 2011

Sequel Pro export improved

Author: Edgars | Filed under: DailyStuff, Mac, MySQL

The FirePHP Firefox Extension hosted at https://addons.mozilla.org/en-US/firefox/addon/firephp/ is deprecated and will NOT work with Firebug 1.8+ . Use DeveloperCompanion instead.

1 Aug 2011

FYI FirePHP deprecated

Author: Edgars | Filed under: DailyStuff, Web Development

linux implementation on javascript. http://bellard.org/jslinux/
You don’t understant – its not emulator or something like that. its pure linux on JavaScript. Too bad it doesn’t have gcc and network support yet :)

I was thinking about for 10 minutes and i still don’t understand “why” although i see a dozen of useful ways to play it around with.

Good luck, Fabrice Bellard.

6 Jun 2011

Linux on JavaScript

Author: Edgars | Filed under: DailyStuff, Javascript

If you get unexpected Internal Server Error on Apache and have no idea where it came from since “other scripts are doing fine”, make sure that files have a correct UID and GID permissions. Might be that files created by root cannot be red since there will be “Mismatch between target GID (Y) and GID (X) of file”.
At least in my case it was caused by SoftException in Application.cpp:431 on CentOS.

There are some issues when using www domains with non-www domains (like javascript initialization which results in cross-domain incompatability when www.domain.com is understood as something else than domain.com).

Anyway, www is soooo ’90.

To get rid of www and transfer customers to non-www without rewriting your html/php files just put a .htaccess rewrite rule:

RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} ^www.domain.com [NC]
RewriteRule ^(.*)$ http://domain.com/$1 [L,R=301]
19 May 2011

Htaccess www-domain to non-www domain redirect

Author: Edgars | Filed under: Web Development, htaccess

If you don’t want to use vi (what is it for anyway?), you can change default browser on console by:

export EDITOR=”nano” (or whatever you like)

10 May 2011

change default editor in console

Author: Edgars | Filed under: serversandstuff

While setting up cronjob for php script got (dont forget to php -l you r script btw) unexpected “<b>Parse error</b>:  syntax error, unexpected T_OBJECT_OPERATOR”

D’oh. appearantly CLI for PHP is not always php5. beware.

10 May 2011

Oh this unexpected T_OBJECT_OPERATOR

Author: Edgars | Filed under: DailyStuff, php, serversandstuff