Replaced blogja

pkgin -- Apt / yum like tool for managing pkgsrc binary packages

reginsmal$ sudo pkgin update
processing local summary...
updating database: 100%
downloading pkg_summary.bz2: 100%
processing remote summary (ftp://ftp.netbsd.org/pub/pkgsrc/packages/NetBSD/i386/5.0/All)...
updating database: 100%
reginsmal$ sudo pkgin help
Usage: pkgin [-fhvy] command [package ...]

Commands and shortcuts:
list (ls) - Lists installed packages.
avail (av) - Lists available packages.
install (in) - Performs packages installation or upgrade.
update (up) - Creates and populates the initial database.
remove (rm) - Remove packages and depending packages.
upgrade (ug) - Upgrade main packages to their newer versions.
full-upgrade (fug) - Upgrade all packages to their newer versions.
show-deps (sd) - Display direct dependencies.
show-full-deps (sfd) - Display dependencies recursively.
show-rev-deps (srd) - Display reverse dependencies recursively.
keep (ke) - Marks package as "non auto-removable".
unkeep (uk) - Marks package as "auto-removable".
show-keep (sk) - Display "non auto-removable" packages.
search (se) - Search for a package.
clean (cl) - Clean packages cache.
autoremove (ar) - Autoremove orphan dependencies.
reginsmal$ sudo pkgin se firefox
firefox-2.0.0.19nb1 = Lightweight gecko-based web browser
firefox-bin-2.0.0.19 Lightweight gecko-based web browser (binary package)
firefox-gtk1-2.0.0.19nb1 Lightweight gecko-based web browser built with GTK+-1.x
firefox3-3.0.10 = Lightweight gecko-based web browser
mplayer-plugin-firefox-3.55 Mplayer plug-in for firefox

pcc helyzetjelentes

PCC levlistan irta ragge par napja, hogy javitott valamit a forditon es most mar nem olyan nagyok a binarisok, mint eddig.
Gondoltam kiprobalom egy mksh R36-tal. Leesett az allam.

224K mksh-gcc (gcc 4.1.2 -O2)
176K mksh-gccs (gcc 4.1.2 -Os)
184K mksh-pcc (pcc 0.9.9 20081026)

Kisseb kodot general, mint gcc4. Persze -Os kissebb, de azert igy sem rossz. :)

Szines-szagos xfce 4.6 elozetes

Letoltottem es megprobaltam leforditani az oldalukon levo snapshotokat.
Harom apro hiba kivetelevel gond nelkul fordult le a NetBSD-men (A hibakra termeszetesen patch-ek keszultek, amiket elkuldtem a fejlsztoknek.).

Kis kezimunka es utanaolvasas utan sikerult elinditani az ujdonsult rendszert.
Elso ranezesre nem sokat valtozott, a legszembetunobb talan az uj beallitas kezelo demon es a hozza tartozo settings-manager.

xfce

NetBSD LVM pr0n

Tegnap teszteltuk a fejlesztojevel (haad) az eppen keszulo LVM supportot:


/dev/mapper/vg000-vol001      3.9G       1.5G       2.1G  41% /vol/001
/dev/mapper/vg000-vol002      484M       209M       250M  45% /vol/002
/dev/mapper/vg000-vol000      3.9G       2.0K       3.7G   0% /vol/000

/dev/mapper/vg000-vol001 on /vol/001 type ffs (soft dependencies, local)
/dev/mapper/vg000-vol002 on /vol/002 type ext2fs (local)
/dev/mapper/vg000-vol000 on /vol/000 type ffs (local)

Meg sok tennivalo akad, de az alapveto devmapper funkcionalitas jol mukodik.

unicode

replaced$ locale | grep CTYPE
LC_CTYPE="en_US.UTF-8"

replaced$ echo űóóüúőáé | ./rev
éáőúüóóű

jo, ez meg nem nagy szam, viszont:

replaced$ echo űóüúőáé | ./tr üá ÜÁ
űóÜúőÁé

replaced$ echo űóüúőáé | ./tr [:lower:] [:upper:]
ŰÓÜÚŐÁÉ

mert megerdemlem :)

szerk.:

bonusz:
$ echo "Германии" | ./tr [:lower:] [:upper:]
ГЕРМАНИИ

shell wrapper

hatha valakinek jol jon:


#!/bin/sh
#
NEWSHELL=/usr/pkg/bin/mksh
 
if [ -x $NEWSHELL ] && [ ! -d $NEWSHELL ]; then
        exec $NEWSHELL
fi
echo "Your shell cannot be executed, falling back to default."
exec /bin/ksh

jemalloc in firefox

jemalloc, the new default memory allocator in FreeBSD and set to become the internal allocator in Firefox 3, was turned on by default for Linux today. That means by tonight Linux builds should go live on the aforementioned nightlies page with jemalloc enabled. The reason we are integrating our own allocator is that we've found jemalloc to be better than all the default allocators of our three main platforms (Windows, Mac OS X and Linux). Not only is it faster (and it shows in Javascript tests!) but it causes less fragmentation, so you should see a significant memory reduction after using Firefox for a lengthy period of time.

ZOMG WTF?

Dec 06, 2007 - Alpine 0.999999 is released to the Alpine alpha testers.

Nov 08, 2007 - Alpine 0.99999 is released to the Alpine alpha testers.

Aug 31, 2007 - Alpine 0.9999 is released to the Alpine alpha testers.

Jun 28, 2007 - Alpine 0.999 is released to the Alpine alpha testers.

May 02, 2007 - Alpine 0.99 is released to the Alpine alpha testers.

ertem en, hogy technikailag kozeliti az 1.0-t, de keremszepen.

Compatibility

I named the project VAX-11[4] or virtual address extension to the “11” to keep us on track. It was going to be an evolution on the “11”. The way we dealt with compatibility was to put a PDP-11 in the instruction set to run all the RSX-11 software. This gave us a tremendous head start on software as well as a base. VAX ran a lot of PDP software for a long time, including many compilers. This allowed us to get all kinds of software done in another environment and then simply moved over rather than having to do it all from scratch.

This story was repeated at Microsoft when Dave Cutler, a member of VAX A, went to Microsoft to invent Microsoft’s NT. He made that system also compatible with the PC hardware and all the apps. In that case, it was nearly impossible because of the lack of discipline and definition of the PC and the various interfaces because of the way the PC evolved in a chaotic, free market. Microsoft was left to make it all these loosely compatible components work! I claim nobody but Dave could have done this.

GNU gyongyszem :)

/* Should we use malloc or alloca?  If REGEX_MALLOC is not defined, we
   use `alloca' instead of `malloc'.  This is because using malloc in
   re_search* or re_match* could cause memory leaks when C-g is used in
   Emacs; also, malloc is slower and causes storage fragmentation.  On
   the other hand, malloc is more portable, and easier to debug.

   Because we sometimes use alloca, some routines have to be macros,
   not functions -- `alloca'-allocated space disappears at the end of the
   function it is called in.  */