6. October 2011

Debian – dpkg problem – tar exists on unknown argument —warning=no-timestamp

I was upgrading Linux Debian. Everything went ok until upgrade of dpkg.

After upgrading dpkg package I was not able to install anything, because of error with tar command.

Tar was complaining that –warning=no-timestamp is unkwnown parameter and program terminated with error.

So I made small trick. I renamed /bin/tar to /bin/tar.original:

mv /bin/tar /bin/tar.original

Then I wrote simple script into /bin/tar file:

#!/bin/bash

tar.original xf -

Add permission:

chmod a+x /bin/tar

The last step is reinstallation of broken packages:

apt-get install --reinstall dpkg
apt-get install --reinstall tar

5. October 2011

FlashPlayer 11 for 64bit Linux is available

Yes! It is true! We were waiting long time for official 64bit version of FP for Linux. Now it’s here! :-)

You can download the latest version from: http://www.adobe.com/support/flashplayer/downloads.html

Here is install info for users who need tarball:

mkdir fp-11
cd fp-11
tar xvzf ../path-to-tarball/install_flash_player_11_linux.x86.64.tar.gz
cp libflashplayer.so ~/.mozilla/plugins

Enjoy! You can read about further new features at kb2.adobe.com.

7. September 2011

Debian – apt-get install perl problem

I wanted to install new package on Debian. But what a funny message:

E: Could not perform immediate configuration on 'perl-modules'.
Please see man 5 apt.conf under APT::Immediate-Configure for details. (2)

How to solve it?

Type:

apt-get install perl -o APT::Immediate-Configure=0

29. August 2011

Managing LDAP with Apache Directory Studio

One of key downsides of LDAP in past was lack of cross-platform tools for managing directory structure.

Recently I found very good implementation of LDAP management tool based on Eclipse. It is Apache Directory Studio.

It is possible to connect it also to Microsoft Active Directory. Good work!

28. August 2011

Windows and Linux as one Desktop – Seamless mode

Sometimes it’s necessary to work with Linux and Windows in the same time. Switching between OS is not a big problem with VirtualBox.

VirtualBox has very neat feature – Seamless Mode. Just install Guest Additions into guest systems and you can turn on Seamless Mode from View menu:

Your desktop environment from Linux and Windows will merge in seamless way:

27. June 2011

The end of RIA era as we know it

RIA erra was annouced several years ago by companies like Adobe, Microsoft and Sun. Those companies had special software “fixtures” that move web behind static HTML. Flash player, Silverlight or JavaFX carried promise of more interactive future.

The only problem was that technologies like Flash Player and Silverlight were under control of companies. Yes, there were a lot of things that you could do with RIA tools. Building video player, complex enterprise apps and so on.

Adobe took even further step and made this technology available for Linux community. Unfortunately some managers took measures and decided that they won’t ship Eclipse based plugin for Linux and as a result this led company to cancelling support for Linux in Adobe AIR. The glorious promise of one code multiple platform was broken.

Flex/Flash/AIR and Silverlight are very advanced technology. They can do a lot. The price for that is hidden in their complexity. The web learned from mistakes of those technologies.

It happens that when you write code for the first time then you make a lot of mistakes. Once you do it again you can make it even more efficient. RIA era was great starting point for open technologies that we have today.

I would like to add further points to Flex, because I invested huge amount of my time into this technology. Flex is great piece of technology art. There is no question about that. Flex is even open source. Unfortunately it is complex. Complexity is good when you want to sell enterprise software. Let me formulate it in other way: It was good when you wanted to sell enterprise software. Complexity of projects were blocking Innovation. Take jQuery do some fancy stuff in 5 minutes and you won’t be able to do it in Flex in 4 days.

The primary trap of Flex was one big untrimmed framework. Adobe found out that Flex 3 is too big to fit on mobile devices and therefore Flex 4.5 has completely different architecture. It is so different that it took several days or weeks to port application. That is expensive and result is questionable. My advice is do not try to port app to Flex 4. Write a new one.

The last hope for Adobe Flash player was to promise something great. They promised wonders of 3D in Flash player “soon” at Adobe MAX 2010. Today is summer 2011. No 3D was launched in official version of Flash Player. Meanwhile WebGL and Canvas took off. Open technologies are taking over the ground of 3D and people are doing real creative stuff with great performance even without Flash.

Adobe focused Flex 4.5 on mobile development. I doubt that it was right step how they did it. In order to meet the promise of mobility they had to broke a lot of backward compatibility stuff and to be honest you have to rebuild apps from the scratch again. Another problem is that many good Flex/RIA developers left Adobe in last months. It’s a big challenge for Flex team to keep the ball rolling. I wish them good luck.

I do not regret time invested into Adobe technologies. It taught me a lot. The only thing that I saw as a weak point of Adobe is communication with community. Voices from Linux community were overlooked for many years. Even minor bugfixes took 2 years to implement. Adobe was not able to off-load this development and testing to community. jQuery and other JavaScript frameworks did this in much better fashion.

As far as I understand actual situation Adobe is now moving toward more “safer” enterprise world. Adobe bought Day software and other companies that are focused on enterprise world. But that is different story.

To tell long story short: This is the end of the RIA era as we know it. There are new challenges :-)

20. June 2011

ImageMagick – quick way how to resize and auto-orient photo

ImageMagick is quite handy tool for batch image conversion from command line.

Let’s say that there are 50 photos in one directory. We want to fix orientation based on Exif info and shrink images to 50% of size. We can achieve it by this shell command:

for i in *.jpg; do convert -auto-orient "$i" -resize 50% "$i"; done

If you need version for Windows then I recommend installing Cygwin.

19. April 2011

AIR apps for BlackBerry tablets

Adobe Flash Platform was released for BlackBerry tablets.

You can download BlackBerry emulator, SDK and further useful stuff from BlackBerry web site.

Supported systems are Linux, Mac and Windows.

17. April 2011

How to store video stream from Airlive camera

Airlive OD-325HD is quite good outdoor camera with night vision. This feature is quite useful when you need to monitor shop or outdoor areas.

OD-325HD camera is able to send video stream and images via TCP/IP.

How to dump image from the camera?

Wget can do all the magic.

wget "http://192.168.1.1/image.cgi?resolution=1280x1024" \
 --user=username\
 --password=somepass

What about video stream?

In this case we will need mencoder. This tool is able to read RTSP stream and store it into the file. I was playing with parameters until I found configuration for OD-325HD.

Note for Debian users: I suggest to use version from debian-multimedia.org. You can add following line into /etc/apt/sources.list:

deb http://www.debian-multimedia.org/ stable main

You can dump stream using following command:

mencoder  -v rtsp://username:somepass@192.168.1.1:554/video.mp4 \
 -rtsp-stream-over-tcp \
 -oac copy -ovc lavc -lavcopts vcodec=mpeg4 -o dump.avi

VLC plays stored video without problem. Note: Windows Media Player has some problems with playing this kind of data.

I found a lot of useful information at Covex page.

9. April 2011

UNetbootin – quick way how to create bootable USB

Imagine situation: Boot procedure on Linux server is broken. You have SystemRescueCD, but CD-ROM is not working. You have notebook with Windows and USB key.

How to fix that server?

We can use USB key! :-)

It’s quite tricky to create bootable Linux key from Windows. It requires several steps… It’s hard.

No, it’s quite easy! Just download simple tool UNetbootin and create bootable USB in few steps.

UNetbootin provides several Linux distributions. My choice was ISO image of Debian Live, because it’s quite small and it has support for XFS and other useful stuff.

Note: SystemRescueCD 2.0 ISO is not booting correctly.

  • Babel fish

      Translate from:

      Translate to:

  • Where’s the fish?

  • Starfish

  • Fish for you

  • Further info

  • Badges

  • Video channel

  • Learning

    Grow your brain.
  • Tags

  • Topics

  •  

    May 2012
    M T W T F S S
    « Apr    
     123456
    78910111213
    14151617181920
    21222324252627
    28293031  
  • Comments