Thinkings of a tinker who thinks he’s a thinker
I was just thinking of starting a course for Computer Science and Electronics Engineers who have just passed out of College.
The topics that I thought of covering can be split into the following sections, covering what I call the basics.
Basic Networking / Internet
PC Trouble Shooting Assembling
Telecom
Software
Electronics
Will add more as and when required or when I get new ideas. If you are in or around Calicut and needs training on the above topics, please contact me using the contact form of this site.
With the release of the new version of Jaledit, I thought of introducing a new feature to all my programs. It’s the typical check for updates. I found that Opera does something similar, where in, when the check for update menu option is clicked, a message is displayed if there are no updates. If there’s an update the web page with the download link for the new version of Opera is is displayed.
I didn’t want a fully automatic update where the update file is downloaded in the background for selfish reasons (I want a page hit )
So here’s the base spec in my terms
My PHP skills = 0, Delphi skills = Advanced
Digging a bit around PHP documentation led to version_compare, generally used to check PHP versions, but works quite well for program versions as well.
Here’s the code that does the job
$latest = ‘0.5.6′; // define your latest version
$ver = $_GET[’ver’]; // for me this is like a command line argument get whatever is there after ?ver=
if ($ver) // Do the check only if the version info is passed if its just http://jal.sunish.net/jaledit then nothing happens
{
if (version_compare($latest,$ver) == 1) // there is an update available
print(”<hr/><strong>”.”An update to JALEdit is available. Latest version is :”.$latest.”</strong>”) ;
// display in bold about update status in between 2 lines
else
print(”<hr/><strong>”.”No update available.You are using the latest version.”.”</strong>”);
print “<hr/>”;
}
What I learnt,
Delphi Code
procedure TfrmSecMain.acncheckUpdatesExecute(Sender: TObject); var tempStr: string; begin tempStr := ‘http://jal.sunish.net/jaledit?ver=’; with TJclFileVersionInfo.Create(Application.ExeName) do try tempStr := tempstr + Format(’%s’, [FileVersion]); finally Free; end; ShellExecute(0, ‘open’, pcHAR(tempStr), ”, ”, SW_SHOW);end;
The Delphi code is pretty straight forward with the JCL function to retrieve the file version from the exe file and that’s passed to the Shellexecute function to do a default browser call.
The PHP code I guess should work with wordpress and any CMS.
FCKEditor 2.5 Beta version does not work on Opera Versions below 9.5 Beta.
I was just thinking of starting to write reviews about products and services. Naturally I intend to review only those products or services that I use. It has to be true, unbiased opinion. So I first thought if I make a general procedure on how to write a review it might be helpful for me and others on similar grounds. Well I can also write reviews on movies and books, but may be I’ll cover that in another posting.
Its always easier to answer questions even when you are on a stage freight session. So I think, I’ll just list out questions and some tips where in the answers to the questions and the tips will help you to be more creative in writing a review.
Here are 11 tips in writing a product/service review
Want to add more, feel free to comment..
I just did a Wordpress upgrade to 2.3.1. The main attraction was keyword support with WLW. I’ve started to like WLW like anything. After the upgrade I still didn’t see the keywords option, just discovered that I got to enable properties from the View menu and don’t forget to update your account settings from Tools-Accounts.
For the past many days, I’ve been primarily working on nothing but Drupal and JAL. The site http://jal.sunish.net is the net result. Lots of work is still pending. I used many modules, found the backup module doesn’t work with my host. That reminds me, Manas Hosting seems to have many problems. Their support is lousy. Lots of database problems and looks like they are over selling. Still on php 4 and MySQL 4.
I used the paypal and donation module and that required couple of edits, to change the donation request. Once everything’s over I think I’ll list all the modules that I used and its pros and cons. Discovered and reported a bug in the FAQ module where certain options in categories results in sprintf bug.
I don’t know how many more days will be required befores the whole site is complete.
After hours,days,weeks and months of thinking, I finally installed Wordpress for blogging and Drupal for the rest of it. I know its not an uncommon scenario, but everything with Wordpress seems to be easier.
Let me list the already known facts of why Wordpress is better for blogging with an out of the box Wordpress install.
Yes, both Drupal and Wordpress require you to create a new database and have its login information. So what’s the difference, Drupal being a complicated monster show’s its complication and power with a long installation doc. Drupal supports other databases than Mysql but MySQL seems to be the database that has most support.
Why I chose to blog with Wordpress instead of Drupal?
This is my first blog post with WLW on to my Wordpress blog and Drupal site..
For many days I was working on a software for automating the daily accounts of our theatre. The software I developed will generate a QIF file that can be imported to Microsoft Money. I used excel automation within delphi to do the printing of DCR (Daily Collection Report). A copy of the DCR is provided to the film distributor. Since quite a lot calculation is involved and the printing has to be formatted I chose excel. It was then that I found that the printed values after the decimal point was not tallying with the Reps report. I knew its’s well known rounding error, but didn’t know its solution. After some googling I found this link http://www.cpearson.com/excel/rounding.htm where a detailed explanation is given. Eventhough the page is a bit dated the solution still works. Just go to Tools,Options and in the Calculation tab you got to check the option of Precision as displayed. Problem solved. Looks like the setting is saved on the open workbook.
| M | T | W | T | F | S | S |
|---|---|---|---|---|---|---|
| « Apr | ||||||
| 1 | 2 | 3 | 4 | |||
| 5 | 6 | 7 | 8 | 9 | 10 | 11 |
| 12 | 13 | 14 | 15 | 16 | 17 | 18 |
| 19 | 20 | 21 | 22 | 23 | 24 | 25 |
| 26 | 27 | 28 | 29 | 30 | 31 | |