Thursday, April 30, 2009

Javac stuffs + WinSCP

javac -classpath ..\..\..\mysql-connector-java-5.0.5-bin.jar myfile.java

cmd /c fc "!" "!^!" | more && pause

B2Evolution:

The latest B2Evolution 3.1.0 beta:
- easy to manage the widgets in Blog Settings, can add/remove/reposition/edit the widget.
Edit the widget -> change the text etc
and you can also edit the index.main.php to have what you want.

Doco for skins 2.0 => http://manual.b2evolution.net/Skins_2.0

- i just created a new custom skin, basically copy and paste from custom skin

usermod -G group userid
groups
hg clone ssh://userid@server//path/to/app dirToSave

Putty Tips
> Every time I accidentally press Ctrl+s in Putty when connected to any=20
> Linux box via ssh, my session stops responding. How do I restore it?
Try ctrl-q. If I remember correctly, this is leftover from the old days
when a dumb terminal would send a ctrl-s character if it was receiving
data faster than it could display it, and then send a ctrl-q when it
could handle it again.

b2evolution upgrade to 2.4.5 + mysql bak

Backup your database:
mysqldump -umyname -p b2evolution > dumpfile.sql

Backup your b2evolution folder, copy and paste should be ok.

Then: from /b2evolution/doc/upgradefrom_b2evo.html

Upgrading from a previous version of b2evolution

Before you begin, please note that some network features of b2evolution require you to agree our simple Terms of service.

1. Backup all your b2evolution files. Take special care of the files you may have modified, including /conf, /skins, /plugins, your /media directory and possibly stubfiles, hacks or custom templates...
2. You should also backup your database if you can. This functionality should be provided by your host.
3. If you are upgrading from a version prior to 2.0, we highly recommend you clean up outdated files. To achieve this, delete your b2evolution folders except /media. Folders to delete include /admin, /conf, /cron, /htsrv, /inc, /install, /plugins, /skins, /skins_adm, /xmlsrv. Depending on your version, you may not have all of these folders on your server. Also, again, make sure you have a backup before deleting.
4. Upload all new b2evolution files from the /blogs folder to your site. We cannot stress this enough: ALL FILES! And that means you cannot reuse your /conf files, default skin templates or default plugins as they are.

Since your custom skins and custom plugins should be using different names, they will not be overwritten. Same for your media files.

The one file you must absolutely restore from your backup (see step 1) though is /blogs/conf/_basic_config.php. You will need to either restore or recreate that file in order to proceed with upgrade.
5. Run the installation/upgrade script on your server. It is located in http://yoursite.com/yourblogsfolder/install/ . Then, simply follow the on screen instructions.

The installer/upgrader will allow you to run a database upgrade from any b2evolution version to the new one.
6. Check to make sure the new installation works.
7. Check the online manual for specific upgrade instructions to your new version of b2evolution.
8. On production servers, it is recommended that you delete the /install subfolder.
9. If you had hacks or other customizations to the core files, your can bring those back now. We recommend you get yourself a diff/merge tool like WinMerge. This will allow you to easily compare your old (backuped) files with the new files (even whole directories at once) and report changes accordingly.

The next step is to upgrade the skins..

Wednesday, April 29, 2009

Solaris SunOs

Few important directories
- /etc/sudoers
- /etc/local/samba/lib/smb.conf

Find text in files:
find /directoryToFind -type f -exec grep Thankyou {} \;
grep -lir "Support Request and Feedback Form" *

ORCA is LIVE

ORCA is finally live!!
http://www.orcacard.com/ERG-Seattle/p1_001.do
After years of waiting, finally the Seattle community can buy smartcards to be used in the public transport system from www.orcacard.com
You can buy cards, register them, add products into the cards, configure autoloads and so on.
This is also a huge accomplishment for ERG, the software provider.

orcacard is one of the two public websites, where the other one is for the institutions like Boeing and Microsoft.

Another two websites are private, they are for the agencies and call-center.

b2evolution

I am trying to fix problem on b2evolution 1.9.3 where the admin user cannot review a new post.

scenario:
1. Write a new post,
2. Then click review.

Instead of showing the review, it will return to the blog, as if I click "Exit to blog" link.

There are about 6 blogs in the same domain and only one has this problem.
This happens every time I try to login as admin where the path to index php not does have the blog id as parameter, i.e.
it works if I login like this www.mysite.com/blogs/admin.php,

but it does NOT work if I do this (clicking the login button) www.mysite.com/blogs/employee/index.php?blogID=3

Still trying to fix this problem

Monday, April 27, 2009

Internet explorer does not display *.ico file

internet explorer does not display *.ico file when it is not in the correct icon format (png, jpg, gif, etc, read http://www.gtalbot.org/BrowserBugsSection/MSIE7Bugs/ and http://blogs.msdn.com/jeffdav/archive/2007/03/01/why-doesn-t-the-favicon-for-my-site-appear-in-ie7.aspx ).

It has to be in the proper ico file, so you can use free icon editor such as IconFx http://icofx.ro/ to edit your icon file and save it as proper *.ico (16x16).

Friday, April 24, 2009

Using IETester to simulate IE5.5, 6, 7, 8

I used IETester to simulate IE5.5, 6, 7, 8 java script engine, to prove that an issue originated from the usage of IE8.
IETester is quite easy to use, altough I don't know where to setup the compatibilty option (Tools > Compatibility View Settings in IE8)..
http://www.my-debugbar.com/wiki/IETester/HomePage

Tuesday, April 21, 2009

Firefox save webpage as maff or mht

With 2 firefox add-ons, we can save a webpage as a single compressed file MozillaCompressedFile(https://addons.mozilla.org/en-US/firefox/addon/212) or MHT (https://addons.mozilla.org/en-US/firefox/addons/policy/0/8051/48485)

Monday, April 20, 2009

ubuntu linux server/desktop + nfs

Trying to configure nfs to work between linux ubuntu desktop and linux ubuntu server turned out to be quite hard..

nfs server side:
1. install nfs-common
sudo aptitude -P install nfs-kernel-server nfs-common portmap

2. add some directories to be exported
sudo vi /etc/exports
/tempshare ip-add-client
where ip-add-client is the host that is allowed to access the nfs

3. add ip-add-client entries into hosts.allow
portmap: ip-add-client
mountd: ip-add-client

4. sudo exportfs -a

5. if it doesnt work later, restart the server

nfs client side:
1. install nfs-common

sudo aptitude -P install nfs-kernel-server nfs-common portmap


2. sudo mount.nfs ip-add-server:/shared_dir mount_dir

Monday, April 13, 2009

New software

I am surprised to find out how easy it is to browse the web using Opera browser. You can easily navigate through the links using Shift-Up/Right/Down/Left.

And if you minimize the browser, it trims its memory usage way down (typical of .Net WinForm application). I am not aware if this behaviour is available in Firefox or Google Chrome. 

Now I can surf the internet without touching my mice at all!!

Also I am disappointed that Altiris SVS does not run under 64 bits OS..how painful it is..

Wednesday, April 1, 2009

SQLServer_2005 + VisualStudio_2008

*.mdf file can be used as a database replacement (you do have to install SQLServer to access the mdf file).

Just be aware that the log file *LDF must be deleted every time a new *mdf file is deployed. Otherwise the connection cannot be established.