30 September, 2008

how to check changset with HG (mozilla)

I was working to fix translation status for mozilla firefox release.
After commit some files, I need to find what is changeset, which
I forgot to get with following command before 'hg push':

$ hg outgoing


this command give you output as changeset.

After small search I found new command as below:

$ hg log

This command give you complete log, from start date and first
few line will be latest log as below:
------
singh-brars-macbook:pa-IN Preet$ hg log
changeset: 9:c712d30e06bb
tag: tip
user: A S Alam
date: Tue Sep 30 20:20:34 2008 +0530
summary: Update for Beta Release with add/remove lines, files for Punjabi (pa): A S Alam

changeset: 8:ad8705b0d648
user: A S Alam
date: Tue Sep 30 20:18:16 2008 +0530
summary: Update for Beta Release with add/remove lines, files for Punjabi (pa): A S Alam
------


this was useful to get latest changes commit to directory

27 August, 2008

evening to make error free translation...

waiting from last few weeks to update few translated files, those have errors and I know that:-)

gnome-power-manager - > last time I did a lot of translation for this and 2 translation Errors were there, I got those, but was in hurry so committed as it is. Finally It is over, but need to find fine editor on Mac. Poedit, LocFactory Editor not work as I was not expert with those, finally KDE4 installatin helped me and lokalize Make it possible.


kde4 - plasma's translation was really un-understandable, and just today I got on my newly laptop, that line is first to see:-(
that line hit me and I started work to remove Error.

so, finally committed changes and gnome/kde desktop for Punjabi is more good than before.

12 August, 2008

my first 'hg' commit to mozilla

I was trying mozilla l10n commit with new version control system, Mercurial.
Finally today I cheched out en-US and pa-IN (for checkout, please check Docs),
started with few translation for one file and used step as mention in Mozilla Docs
following is output of my terminal
------
amanpreet:pa-IN Preet$ hg commit -m "updating translation first time with hg for Punjabi (pa) by Amanpreet Singh Alam"
amanpreet:pa-IN Preet$ hg outgoing
comparing with ssh://hg.mozilla.org/l10n-central/pa-IN/
searching for changes
changeset: 2:0c8a3c71fe9d
tag: tip
user: A S Alam
date: Tue Aug 12 11:47:59 2008 +0530
summary: updating translation first time with hg for Punjabi (pa) by Amanpreet Singh Alam

amanpreet:pa-IN Preet$ hg push
pushing to ssh://hg.mozilla.org/l10n-central/pa-IN/
searching for changes
remote: adding changesets
remote: adding manifests
remote: adding file changes
remote: added 1 changesets with 1 changes to 1 files

amanpreet:pa-IN Preet$ hg push
pushing to ssh://hg.mozilla.org/l10n-central/pa-IN/
searching for changes
no changes found
---------

first 'hg push' is so slient that I can't understand that anything commited or not, so I run once again
and tried to fresh checkout and Yes, changes are there. So Please don't except any version for new files
as in CVS.

So, finally log can be check Mozilla-l10n-central

First Punjabi hg commit "Push" can be found at
First Punjabi Commit Log.

09 August, 2008

Mac and Python Error for hg

I was trying with hg (hg is a distributed
version control ) for my Firefox translation Project. Python was installed previously on macBook
(Mac OS X 10.5.4), but while running hg command, it showed error like following:
-----------
amanpreet-singh-brars-macbook:~ Preet$ hg ****
Traceback (most recent call last):
File "/usr/local/bin/hg", line 18, in
mercurial.util.set_binary(fp)
File "/Library/Python/2.5/site-packages/mercurial/demandimport.py", line 74, in __getattribute__
self._load()
File "/Library/Python/2.5/site-packages/mercurial/demandimport.py", line 46, in _load
mod = _origimport(head, globals, locals)
File "/Library/Python/2.5/site-packages/mercurial/util.py", line 33, in
_encoding = locale.getlocale()[1]
File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/locale.py", line 460, in getlocale
return _parse_localename(localename)
File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/locale.py", line 373, in _parse_localename
raise ValueError, 'unknown locale: %s' % localename
ValueError: unknown locale: UTF-8
---------
last line was making some know hint, something wrong with locale setting.

Tried to set various setting from terminal, finally it is fixed and here are commands I used

-----
$ printenv LANG

$ export LC_ALL=en_US.UTF-8

$ export LANG=en_US.UTF-8
-----
if you want those changes each time you log-in then make ~/.bashrc file and add
those lines there.

Note: I have not reboot my machine after making those changes, please don't know
whether work or not;-)

28 July, 2008

Windows and KDE4 - Free Desktop for Windows

First Time, I tried KDE4 on Windows Vista. It is pretty good
to start installation. KDE for Windows website
gives you installer for KDE on Windows. You can directly download
it here (KDE Installer).
A Simple guide is Here,
which is not too important if you want to install, just start installation,
Which is state forward. It will ask for mirror, which may be trick
as some mirror don't have KDE packages for Windows, while I
selected www.winkde.org from Europen Union.
Select Packages, which you want, as you will have big list from
KDEPIM (kmail), KDENETWORK (kopete), KDEBASE (konqueror, dolphin),
KDESDK (kate, lokalize), select which you want (package name be different,
please read summary give with package).

One Package download from Microsoft Site failed 2 times, so I skiped
(Ignore) that Package, and KDE works fine without that.
My Desktop is ready with KDE now and kopete, korgnizer,
kate, lokalize, juk, and my favrioute Education applications
are there, And Yes Best on for me is, Punjabi Langauge is there,
you can select Punjabi Package and install those on Windows
for KDE, Free:-)

Windows Menu with KDE packages is here:


and Final Whole Desktop with KDE applications

Element Table for Chemsitry

Konqueror is not running, this is only application, which
failed to run. Kopete failed to connect yahoo, but
Google account works fine, but not sure I did some wrong
or it is bug.
I am not using Windows daily, but it is good step for
Windows users to test KDE4 once. Please check
lot of Free Application from KDE Desktop.

Big Thanks to KDE Team for Free Gift to
Windows Users.

All Screenshots are here (KDE4 on Windows)

19 July, 2008

EU - Time to uncover Intel's dirty face...

as News on BBC, European regulators Commission started probe
againist Intel for Serious
case for "Not to Keep Stock" for AMD.
Intel also forced Dealer to swtich ONLY to intel products.
Intel also asked dealer to "Delay" any planned AMD product launch plan.

if failed to reply and loss the case, then fine to Intel can be up to 10% of annual turnover.

it is same story in various part of world, in India, it seems Intel
and M$ showing same trend from years. I have recently ordered Laptop
from "DELL", when asked for AMD based laptop (expecting less prices),
then Sellsman tried to convence me to buy only Intel based, as "AMD
has more issue, you will have to pay more, it is not available," even
it took 15 mintunes to find AMD based laptop, while it should not
be. Finally he said it will cost me 4,000 Rs (~$100) more than same configuration
with Intel. what? but it should be.
Same case when I asked laptop without Microsoft Vista. Laptop
was with only DOS, but cost only lower 1000 Rs ($25). Is Vista
available in just $25?

it is India, so nobody is going to regulate these people, but we should
have to learn from EU, if you are with good spirit. Open Source
People should make awareness about These type of Monopolies.
Problem with Open Source companises is that those are also trying to
following their Closed Source Friends.

17 July, 2008

Convert real audio to mp3 on mac...

I have very few real audio files, but don't have mp3 for those,
search on google was not heard, and FFmpegX
link is here

it is free Audio/Video convertor for Mac OS. It is good and quick,
Howto use those,
if it shows you for binary format installation, you can skip it
(you can try later if you want with FFmpegx->install binaries)
it is quite easy, just select .rm file and select format, which want to
be.
I got some my favourite song back.