I went to the doctor today and after they took a scan of my body, the lab assistant just gave me a card with "Follow the Nurse"* written on it.
Was it a slightly modified version of following the White Rabbit? Nobody asked me to eat any pills, have I failed somewhere?
* (taking into account the context, 'Go to the Nurse' would be a better translation, but that wouldn't fit as nicely to the Matrix theory)
Wednesday, March 24, 2010
Advanced Patch Management
Nowadays not only have the patches be fully functional, fixing the breakage; the users require them to be a piece of art and fun.
Here's one of my recent creations:
Here's one of my recent creations:
Monday, March 22, 2010
Kooky returns
The guy behind Samorost, Samorost 2 and Machinarium is making a movie and it looks really great. Check it out!
I found a service that allows to add subtitles to YouTube videos and added English subs for the Teaser and Trailer. Enjoy!
I found a service that allows to add subtitles to YouTube videos and added English subs for the Teaser and Trailer. Enjoy!
Friday, March 19, 2010
pkgbuild and publishing via the file protocol
pkgbuild is the tool the kde-solaris project uses for building its packages. After a package is built and properly generated, it needs to be published to an IPS repository.
Here's an example of the publishing script generated by pkgbuild:
But ... while publishing via http does not require any extra privileges, for the file protocol one has to have write permissions to the ips repository. Not really keen on using pfexec all the time, I first made sure the pkg server on the build machine is running under the same user who runs the build.
Then I patched pkgbuild so that if the environment variable PKG_REPO is set, it's value will be used for publishing.
As a result I can just do
Here's an example of the publishing script generated by pkgbuild:
#/usr/bin/bashDue to an old bug, publishing packages with files bigger than ~100MB fails. This is the case of the Qt src package and also some Qt libraries when compiled with debug information. In such cases one has to resort to publishing the packages via the file protocol.
export PKG_REPO=${PKGBUILD_IPS_SERVER:-http://localhost:10000/}
eval `pkgsend open soprano@2.3.70,5.11-3` || exit 1
pkgsend include /export/home/test/packages/PKGMAPS/manifests/FOSSsoprano.manifest || exit 2
pkgsend close || exit 3
But ... while publishing via http does not require any extra privileges, for the file protocol one has to have write permissions to the ips repository. Not really keen on using pfexec all the time, I first made sure the pkg server on the build machine is running under the same user who runs the build.
Then I patched pkgbuild so that if the environment variable PKG_REPO is set, it's value will be used for publishing.
As a result I can just do
export PKG_REPO=file:///export/home/test/repoNot only are we able to painlessly publish packages with big files now, there's also a noticeable speedup. The full KDE4 build (72 packages, ~10 hours on a 16 core machine) is 30-50 minutes faster since when the change was implemented.
make KDEgdm-integration
Anyone Else addicted to Territory War Online?
The game Territory War Online is a simple turn based stick figure assault. You build your team very simply by picking names and hats. Then you play against other people worldwide while trying to eliminate their stick figure team first. It amuses me greatly. Anyone else play? What's your handle?
Thursday, March 18, 2010
Running pkg server as regular user
I wanted to run the pkg server a regular user, to be able to publish into the repository via the file protocol without giving the user any extra privileges. It turned to be quite easy to achieve:
Export the current configuration to a file:
Modify the file so that it looks like the below example. I added the <method_context> and modified the inst_root property. Also the port has to be > 1024 to be usable by ordinary user.
And import the settings back:
Do not forget to make the service log file writable for the user, otherwise the pkg server will not start:
Export the current configuration to a file:
svccfg export pkg/server > pkg.xml
Modify the file so that it looks like the below example. I added the <method_context> and modified the inst_root property. Also the port has to be > 1024 to be usable by ordinary user.
<?xml version='1.0'?>
<!DOCTYPE service_bundle SYSTEM '/usr/share/lib/xml/dtd/service_bundle.dtd.1'>
<service_bundle type='manifest' name='export'>
<service name='application/pkg/server' type='service' version='0'>
<create_default_instance enabled='true'/>
<dependency name='fs' grouping='require_all' restart_on='none' type='service'>
<service_fmri value='svc:/system/filesystem/local'/>
</dependency>
<dependency name='autofs' grouping='optional_all' restart_on='none' type='service'>
<service_fmri value='svc:/system/filesystem/autofs'/>
</dependency>
<dependency name='ntp' grouping='optional_all' restart_on='none' type='service'>
<service_fmri value='svc:/network/ntp'/>
</dependency>
<dependency name='network' grouping='require_all' restart_on='none' type='service'>
<service_fmri value='svc:/milestone/network'/>
</dependency>
<exec_method name='start' type='method' exec='%{pkg/pkg_root}/lib/svc/method/svc-pkg-depot %m' timeout_seconds='0'>
<method_context>
<method_credential
user='test'
group='staff' />
</method_context>
</exec_method>
<exec_method name='stop' type='method' exec='%{pkg/pkg_root}/lib/svc/method/svc-pkg-depot %m %{restarter/contract}' timeout_seconds='30'/>
<property_group name='pkg' type='application'>
<propval name='cfg_file' type='astring' value=''/>
<propval name='content_root' type='astring' value='usr/share/lib/pkg'/>
<propval name='debug' type='astring' value=''/>
<propval name='log_access' type='astring' value='none'/>
<propval name='log_errors' type='astring' value='stderr'/>
<propval name='mirror' type='boolean' value='false'/>
<propval name='pkg_root' type='astring' value='/'/>
<propval name='proxy_base' type='astring' value=''/>
<propval name='readonly' type='boolean' value='false'/>
<propval name='socket_timeout' type='count' value='60'/>
<propval name='sort_file_max_size' type='astring' value=''/>
<propval name='ssl_cert_file' type='astring' value='none'/>
<propval name='ssl_dialog' type='astring' value='smf'/>
<propval name='ssl_key_file' type='astring' value='none'/>
<propval name='threads' type='count' value='10'/>
<propval name='writable_root' type='astring' value=''/>
<propval name='port' type='count' value='10000'/>
<propval name='inst_root' type='astring' value='/export/home/test/repo'/>
</property_group>
<property_group name='pkg_secure' type='application'>
<property name='read_authorization' type='astring'/>
<property name='ssl_key_passphrase' type='astring'/>
</property_group>
<property_group name='startd' type='framework'>
<propval name='duration' type='astring' value='child'/>
</property_group>
<stability value='Unstable'/>
<template>
<common_name>
<loctext xml:lang='C'>image packaging repository</loctext>
</common_name>
</template>
</service>
</service_bundle>
And import the settings back:
svccfg import pkg.xml
Do not forget to make the service log file writable for the user, otherwise the pkg server will not start:
pfexec chown test /var/svc/log/application-pkg-server:default.log
Wednesday, March 17, 2010
Refreshing the file list in kde-solaris
Often when we upgrade a package or change something in the build process (e.g. recently we started putting the debug information into separate files), the build fails because either some files are missing or new files appear or both.
In the log something like this is found:
pkgbuild: ## Validating control scripts.
pkgbuild: ## Packaging complete.
pkgbuild: error: Installed (but unpackaged) file(s) found:
pkgbuild: /opt/foss/bin/amd64/imginfo.debug
pkgbuild: /opt/foss/bin/amd64/tmrdemo.debug
pkgbuild: /opt/foss/bin/amd64/imgcmp.debug
pkgbuild: /opt/foss/bin/amd64/jasper.debug
pkgbuild: /opt/foss/bin/jasper.debug
pkgbuild: /opt/foss/bin/tmrdemo.debug
pkgbuild: /opt/foss/bin/imgcmp.debug
pkgbuild: /opt/foss/bin/imginfo.debug
pkgbuild: /opt/foss/lib/libjasper.so.1.0.0.debug
pkgbuild: /opt/foss/lib/amd64/libjasper.so.1.0.0.debug
pkgbuild: pkgbuild: FOSSjasper.spec(118): Installed (but unpackaged) file(s) found
--- command output ends --- finished at Wed Mar 17 03:44:06 CET 2010
Fixing the file list manually can lead to errors and is time-consuming, so it's easier to use the scripts available in the repository:
First, the file names are extracted from the log:
Of course you can join them into a oneliner:
In the log something like this is found:
pkgbuild: ## Validating control scripts.
pkgbuild: ## Packaging complete.
pkgbuild: error: Installed (but unpackaged) file(s) found:
pkgbuild: /opt/foss/bin/amd64/imginfo.debug
pkgbuild: /opt/foss/bin/amd64/tmrdemo.debug
pkgbuild: /opt/foss/bin/amd64/imgcmp.debug
pkgbuild: /opt/foss/bin/amd64/jasper.debug
pkgbuild: /opt/foss/bin/jasper.debug
pkgbuild: /opt/foss/bin/tmrdemo.debug
pkgbuild: /opt/foss/bin/imgcmp.debug
pkgbuild: /opt/foss/bin/imginfo.debug
pkgbuild: /opt/foss/lib/libjasper.so.1.0.0.debug
pkgbuild: /opt/foss/lib/amd64/libjasper.so.1.0.0.debug
pkgbuild: pkgbuild: FOSSjasper.spec(118): Installed (but unpackaged) file(s) found
--- command output ends --- finished at Wed Mar 17 03:44:06 CET 2010
Fixing the file list manually can lead to errors and is time-consuming, so it's easier to use the scripts available in the repository:
First, the file names are extracted from the log:
perl tools/extract-plist.pl < ~/logs/FOSSxz.log |sort -u> aAnd then a new plist is constructed:
perl tools/extract-plist-2.pl < a
Of course you can join them into a oneliner:
perl tools/extract-plist.pl < ~/logs/FOSSxz.log |sort -u|perl tools/extract-plist-2.pl
Friday, March 12, 2010
Copying a zone
I wanted to play a bit with the KDE4 build flags and I needed a playground. The idea I had was to use a copy of the existing KDE build zone, so as to save time configuring it and downloading all the dependencies.
Well, I have to admit I sort of failed in this one ...
I spent a lot of time with zfs send|zfs receive, esp. with the idea of
So in the end I hacked it like this:
Not really a clean way, since I had to waste some extra bandwidth and time, but a working one.
Well, I have to admit I sort of failed in this one ...
zoneadm clone
wasn't really an option as I need to have freedom creating and destroying snapshots on both zones. zoneadm clone -m copy
probably never worked. I spent a lot of time with zfs send|zfs receive, esp. with the idea of
# /usr/sbin/zfs snapshot -r tank/zones/build@1movebut it never worked. I spent hours trying, looking into the scripts in
# /usr/sbin/zfs send tank/zones/build/ROOT/zbe@1move > build.backup
# zfs create tank/zones/debugbuild
# zonecfg -z debugbuild
zonecfg:debugbuild> export
create -b
set zonepath=/tank/zones/debugbuild
set brand=ipkg
set autoboot=true
set ip-type=shared
add fs
set dir=/home
set special=/export/home
set type=lofs
end
add net
set address=10.10.2.44
set physical=e1000g0
end
# cat build.backup|zoneadm -z debugbuild attach -r zfs
/usr/lib/brand/ipkg/
, but it was probabaly not meant to be working anyway.So in the end I hacked it like this:
# /usr/sbin/zfs snapshot -r tank/zones/build@1move
# /usr/sbin/zfs send tank/zones/build/ROOT/zbe@1move > build.backup
# zfs create tank/zones/debugbuild
# chmod 700 tank/zones/debugbuild
# zonecfg -z debugbuild
# zoneadm -z debugbuild install
# cat build.backup| pfexec /usr/sbin/zfs receive -F tank/zones/debugbuild/ROOT/zbe@1test
# zoneadm -z debugbuild boot
Not really a clean way, since I had to waste some extra bandwidth and time, but a working one.
KDE 4.4.1 on OpenSolaris
A screenshot of KDE 4.4.1 running on OpenSolaris b132. Some things still crash, but we're definitely improving.
Wednesday, March 10, 2010
Welcome to the ghetto
One week after the renewed (and reinforced) train station shelters were put in place and we're in a ghetto again.
The yellow rectangle in the middle is the timetable - wisely put to the place of least interest of the grafitti heroes. It stayed there about two more days ...
The yellow rectangle in the middle is the timetable - wisely put to the place of least interest of the grafitti heroes. It stayed there about two more days ...
Cincinnati Bell Wireless (CBW) Comes through again
Hopefully, you read my post from early this morning about the issues I was having with my phone, CBW, and their insurance.
The phone issue has been resolved by some very diligent CBW employees. The beginning of the resolution comes quite abnormally.
This morning I received a comment on my previous CBW blog post from a CBW rep named Katie asking me to contact her via email. After verifying the email was valid and not a scam, I emailed her my phone number.
Two hours later the manager, Kent, from the Fairfield Commons CBW store called me to find a solution. He was quite helpful, friendly, and knowledgeable. He offered to replace my phone on a tiered pricing scale. That means I was given the choice of a nice discount on the 2 better models and offered the most similar model at no cost. I decided to go with the 8520 Blackberry (no cost) as I really just wanted my 8320 replaced. I certainly tried to justify my price of the newest model, but ultimately sided with the more financially practical.
I went to the store to pick up the phone and everything was ready for me. The employee, Shaun, was also friendly and professional. Since I didn't need my data copied, I was out of there in 3 minutes.
And this is why I always recommend CBW. It is this high level of service that always leaves me smiling. Aside from the initial snafu, CBW has always made sure I felt appreciated as a customer. And as a long time customer, I can say that I have never had a problem with their network coverage.
That is saying a lot as I have had issues with TMobile, Verizon, and AT&T (a long time ago). Furthermore, I used to work for Sprint, so I know they blow.
Lastly, another commentor suggested I wasn't aware of how the insurance worked. Quite the opposite actually. Granted I was more familiar with Sprint's insurance (their TEP is pretty good), but my issue was expecting to much from what is not a Total equipment protection plan. The insurance I HAD was basically a discount plan. I am also very familiar with equipment warranties. As a technology contractor, I deal with them frequently. The problem with dealing directly with the manufacturer is that they are usually intentionally slow. It forces you to buy a replacement.
Anyway, I am a happy CBW customer again. Thanks everyone
If you aren't reading this at http://beavmetal.blogspot.com, you should be.
The phone issue has been resolved by some very diligent CBW employees. The beginning of the resolution comes quite abnormally.
This morning I received a comment on my previous CBW blog post from a CBW rep named Katie asking me to contact her via email. After verifying the email was valid and not a scam, I emailed her my phone number.
Two hours later the manager, Kent, from the Fairfield Commons CBW store called me to find a solution. He was quite helpful, friendly, and knowledgeable. He offered to replace my phone on a tiered pricing scale. That means I was given the choice of a nice discount on the 2 better models and offered the most similar model at no cost. I decided to go with the 8520 Blackberry (no cost) as I really just wanted my 8320 replaced. I certainly tried to justify my price of the newest model, but ultimately sided with the more financially practical.
I went to the store to pick up the phone and everything was ready for me. The employee, Shaun, was also friendly and professional. Since I didn't need my data copied, I was out of there in 3 minutes.
And this is why I always recommend CBW. It is this high level of service that always leaves me smiling. Aside from the initial snafu, CBW has always made sure I felt appreciated as a customer. And as a long time customer, I can say that I have never had a problem with their network coverage.
That is saying a lot as I have had issues with TMobile, Verizon, and AT&T (a long time ago). Furthermore, I used to work for Sprint, so I know they blow.
Lastly, another commentor suggested I wasn't aware of how the insurance worked. Quite the opposite actually. Granted I was more familiar with Sprint's insurance (their TEP is pretty good), but my issue was expecting to much from what is not a Total equipment protection plan. The insurance I HAD was basically a discount plan. I am also very familiar with equipment warranties. As a technology contractor, I deal with them frequently. The problem with dealing directly with the manufacturer is that they are usually intentionally slow. It forces you to buy a replacement.
Anyway, I am a happy CBW customer again. Thanks everyone
If you aren't reading this at http://beavmetal.blogspot.com, you should be.
Breaching a patent
I came across a post on cnet linking to my ooooold blog post on silecing the mouse clicks. The interesting stuff is that the post also linked a patent that is covering the same issue albeit with a slightly different approach.
So was I breaching the patent? Would I be if I started producing silenced rodents? I don't know, there's just too many things to consider
1) Is the patent same as my hack? To me it looks like there are big-enough differences
2) I published it before the patent was published, but after it was filed. How does it work in such cases?
3) Fortunately, I'm not US citizen (the patent was filed in the USA). However there are international treaties regarding IP, so who knows ...
Was the hack worth commecializing?
Quick googling revealed that Gregory Maroun (the guy behind the patent) registered the quietmouse.com domain about the same day he filed the patent application. He was selling the silenced mice for 40-50$ and right now his site states that he's preparing a second generation of the mice that should be out in Spring this year.
So it seems one can do a business around this :-)
Good luck Greg and don't sue me :-)
So was I breaching the patent? Would I be if I started producing silenced rodents? I don't know, there's just too many things to consider
1) Is the patent same as my hack? To me it looks like there are big-enough differences
2) I published it before the patent was published, but after it was filed. How does it work in such cases?
3) Fortunately, I'm not US citizen (the patent was filed in the USA). However there are international treaties regarding IP, so who knows ...
Was the hack worth commecializing?
Quick googling revealed that Gregory Maroun (the guy behind the patent) registered the quietmouse.com domain about the same day he filed the patent application. He was selling the silenced mice for 40-50$ and right now his site states that he's preparing a second generation of the mice that should be out in Spring this year.
So it seems one can do a business around this :-)
Good luck Greg and don't sue me :-)
Sunday, March 7, 2010
KDE 4.4.1 on Solaris 10 (Amarok2 included)
Mark Wright and Ben Taylor did enormous amounts of work on porting KDE4 to Solaris 10. About half of the known universe had to be rebuilt, but the result was definitely worth it. Yesterday Mark sent a screenshot of his KDE 4.4.1 session to the mailing list.
As you can see, Amarok2 is there as well - we weren't building it for some time due to the unresolved dependency on MySQL embedded, but fortunately Mark found a workaround.
As of now there are no binary packages available, Ben will probably publish them at some point, although he might need more +1s to motivate him.
As you can see, Amarok2 is there as well - we weren't building it for some time due to the unresolved dependency on MySQL embedded, but fortunately Mark found a workaround.
As of now there are no binary packages available, Ben will probably publish them at some point, although he might need more +1s to motivate him.
Saturday, March 6, 2010
iPad Killer from Microsoft
Check out this link, this thing looks badass :)
Microsoft's Courier 'digital journal': exclusive pictures and details (update: video!) -- Engadget
Friday, March 5, 2010
Myspace blocks shortened URL's and blogspot...wtf?
I just checked my myspace account to verify my links are going through. They are not. All the other sites I auto-update are working fine as far as I know. I want to apologize for the slew of broken links and false malicious site warnings.
However, I have come to learn that myspace blocks all shortened URL's such at bit.ly. That is very annoying. Myspace claims it is because spammers were abusing the service, but I think it is to force people to log on to the actual site to update statuses. It also doesn't allow http://beavmetal.blogspot.com or other blogspot addresses. Which is even more annoying. Ihaven't found or received a good reason for this. It says it is a malicious website which is false. What is the point of using a social service that doesn't let me share my work? I am coming to find Myspace even more anti-social than Facebook.
The way I update my accounts to let you know I posted a blog post consists of 3 steps. First, I post the actual blog. Then twitterfeed.com parses my RSS feed and sends it to ping.fm. Ping.fm then sends a message to all my social networking services stating a blog has been posted, so you can see them.
I would like very much if I could turn off link shortening in twitterfeed, but we can't, so I have to deal. I have changed from bit.ly to digg. So we will see if myspace blocks that one too.
However, I have come to learn that myspace blocks all shortened URL's such at bit.ly. That is very annoying. Myspace claims it is because spammers were abusing the service, but I think it is to force people to log on to the actual site to update statuses. It also doesn't allow http://beavmetal.blogspot.com or other blogspot addresses. Which is even more annoying. Ihaven't found or received a good reason for this. It says it is a malicious website which is false. What is the point of using a social service that doesn't let me share my work? I am coming to find Myspace even more anti-social than Facebook.
The way I update my accounts to let you know I posted a blog post consists of 3 steps. First, I post the actual blog. Then twitterfeed.com parses my RSS feed and sends it to ping.fm. Ping.fm then sends a message to all my social networking services stating a blog has been posted, so you can see them.
I would like very much if I could turn off link shortening in twitterfeed, but we can't, so I have to deal. I have changed from bit.ly to digg. So we will see if myspace blocks that one too.
Subscribe to:
Posts (Atom)