Saturday, November 30, 2013

A liitle thought about ascept ratios.

Older video modes had a 16:10(close to 16:9 but slightly taller) accept ratio. This was useful for text displays "back in the day", as you could type in very long DOS commands without the text wrapping. 16:9 was probally not used since the extra bit of vertical space could be useful.  VGA and higher introced 4:3 video modes, this was useful for graphics, since text on a page is topically more horizontal then viricitacle.We then went back to 16:9 as movies and TV shows started using that format. TVs started showing up in that format and around that time games starting using it as well. So now people who want to do a lot of multimedia of 16:9 computer monitors. Some people may have a 16:10 monitor and once again this is done to give more vertical space. Hmm... intersting.

EDIT: There is also a 5:4 ratio which was intorduced some time in the 90s but never cought on, probably cause a lot of programs where coded for 4:3. Lastly there are some rare 15:9 monitors out there.There are also "8:5" monitors which are 16:10 monitors where the ratio has been reduced.

Thursday, November 21, 2013

Website update: Nov 21

Hello:
 Tonight I'm going too "Silicon Halton & Haltech Demo Night 2"(which is an event put on by some none-profit organizations where companies can show off their tech products). I often go because it's a great place to give out my some business cards. I've been busy this morning "fixing up" my website, so that if perspective employers take a look everything will work. For those of you who want to know whats new here is a list:
  • I got emailed today about a security update for Drupal(the back-end) so I've updated to the latest version. You shouldn't notice anyhitng unless you try and hack the site :).  [back-end update]
  • I also corrected an issue that only showed up in the live site after yesterdays profomance update. [Hotfix]
  • Lastly I've hidden my YouTube comments and subscriptions form the public on my channel. This way employers and the public won't judge me based on my YouTube viewing habits*. This is important as my site does link too my YouTube channel. 
* Not that I watch anything outrageous on YouTube, I am just trying to prevent people from getting the wrong inprestion of me at a glance. One very good example is sometimes you find a video that has an interesting title, you watch and the guys makes some racist remarks, stop watching it on principal and it still shows up as having "watched" it even though you didn't watch all the way through.  This could be inturptied the wrong way. Another example is political videos, I only share my political views with close freinds and I differently don't want employers not hiring me because of my political views.

Tuesday, November 19, 2013

Website update

I've changed my website, in the past I had all the Drupal profomance enhancements disabled as they create staabilty issue on weeker severs, since my site is now on a paid platform with 24/7 support and since it's now stable, I've enabled them. They work fine on my local machine but please let me know if there are any issue on the site. Thanks.

Thursday, November 14, 2013

initrd and initramfs -- what are they?


NOTE: The post is written for computer professionals and I will use terms as such without defining them. If you don't know what a term means, you may look it up on Wikipedia.

A while ago I installed Linux on my Proforma 6400, there is a special bootear that runs in Mac OS(since old Macs are really only meant to run Mac OS). The booter has trouble booting Linux in it's normal form since it hasn't been updated since the 2000 or 2001 and Linux has. They introduced a new boot process involving the initrd. What is the initrd -- read on too find out.

Initrd is a ram-disk which simplifies that amount of boot code in the kenerl. Before it's introduction the kernel had to know about every type of hard disk(i.e. PATA or SCSCII) and how to boot from it. If you had RAID, it had to know this and the RAID configuration. (There are lots of different configurations if you have more then 2 disks in the RAID).

With initrd, the kerenal only needs to know how to boot a ram disk, the ram disk then takes care of the rest. It also will take care of things such as disk encryption. Code separation is not the only advantage, the ram disk is actually dynamically generated when you install Linux so, whats in it the image depends on your configuration. This will reduce the size of the kernel. The ram disk will aslo be very small if  configuration is very simple.

Ofcouse there is another boot disk for installastion, this appears to be a much older practis since my Linux boot loader does support it -- what it does not expect is having too load another boot disk after the install is done.

In case you wanted to know the processes of booting the installed Linux on an old Mac is a bit complicated since you have to boot the install after installing, go into recovery mode and grab the new initrd file the OS generated after install. (apparently the installer for Linux Mint PowerPC actually does this for you)

You never have to worry about this on a PC since Grub automatically updates the augments too point too the new initrd(actually initramfs) every time you get a new kernel. The initrds and  initramfs, have to be run with a kernel of the same version number.

Three final points, firstly what is initramfs? initramfs is a replacement of initrd but the kenerel still boots the same way, initramfs is just more powerful.

My second final point is the fact that initrd has a built in recovery mode in it, so if for some reason your hard disk dies or acts up(and you don't have RAID) you can still boot a minimal OS and check out what's going. (The kernel itself will freeze if it can't boot).

Lastly initrd would seem nice and small but I believe it takes up around 20 MB of ram which can be a lot on an older machine. You will need it loaded into memory plus the kernel and it's often compressed so you need a bit more RAM for that and don't forget the memory used by your devecies it's small but does count for something. In fact this is the problem I ran into on my Mac when it only had ~ 32 MB of ram and I had to upgrade it to it's max(get ready for this...) of 128 MB of ram.(+ 8 MB on-board).

I think this is one of the reasons for Linux dropping support for 386 processes(I littly mean 386 processes, you need a 486 or newer to run Linux now) with new kernels, since a 386 topically doesn't have the memory to hold initramfs.