Archiv rubriky: pc

Citáty 6 (převaha IT citátů pro tentokrát)

Povzdech Bolka Polívky:
To jsou samé drogy, čuchání, injekce, člověk je rád, když se mu podaří vychovat normálního alkoholika!


“Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the universe trying to build bigger and better idiots. So far, the universe is winning.”
– Rick Cook


“Perl – The only language that looks the same before and after RSA encryption.”
– Keith Bostic


“Walking on water and developing software from a specification are easy if both are frozen.”
– Edward V Berard


“I think Microsoft named .Net so it wouldn’t show up in a Unix directory listing.”
– Oktal


“Talk is cheap. Show me the code.”
– Linus Torvalds


“If McDonalds were run like a software company, one out of every hundred Big Macs would give you food poisoning, and the response would be, ‘We’re sorry, here’s a coupon for two more.’ “
– Mark Minasi


“Sometimes it pays to stay in bed on Monday, rather than spending the rest of the week debugging Monday’s code.”
– Christopher Thompson


“Measuring programming progress by lines of code is like measuring aircraft building progress by weight.”
– Bill Gates


“Most software today is very much like an Egyptian pyramid with millions of bricks piled on top of each other, with no structural integrity, but just done by brute force and thousands of slaves.”
– Alan Kay


“Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live.”
– Martin Golding

Synaptics Touchpad – not working in debian 7 (Jessie)

Create a file: /usr/share/X11/xorg.conf.d/synaptics.conf

In that file put..

Section "InputClass"
     Identifier "Touchpad" # required
     MatchIsTouchpad "yes" # required
     Driver "synaptics" # required
     Option "MinSpeed" "0.5"
     Option "MaxSpeed" "1.0"
     Option "AccelFactor" "0.075"
     Option "TapButton1" "1"
     Option "TapButton2" "2" # multitouch
     Option "TapButton3" "3" # multitouch
     Option "VertTwoFingerScroll" "1" # multitouch
     Option "HorizTwoFingerScroll" "1" # multitouch
     Option "VertEdgeScroll" "1"
     Option "CoastingSpeed" "8"
     Option "CornerCoasting" "1"
     Option "CircularScrolling" "1"
     Option "CircScrollTrigger" "7"
     Option "EdgeMotionUseAlways" "1"
     Option "LBCornerButton" "8" # browser "back" btn
     Option "RBCornerButton" "9" # browser "forward" btn
EndSection

Restart XServer

Instalace vSphere Command Line Interface na Debianu

Chyby co dostanete:

Openssl-devel is not installed on the system.
openssl-devel 0.9.7 is required for encrypted connections.
Please install openssl-devel version 0.9.7 or greater.

e2fsprogs is not installed on the system

e2fsprogs 1.38 is required for UUID.
Please install e2fsprogs 1.38 or greater.

http_proxy not set. please set environment variable ‘http_proxy’ e.g. export
http_proxy=http://myproxy.mydomain.com:0000 .

ftp_proxy not set. please set environment variable ‘ftp_proxy’ e.g. export
ftp_proxy=http://myproxy.mydomain.com:0000 .

 

Jak to vyřešit:

 

32 bit
apt-get install build-essential gcc uuid uuid-dev perl libssl-dev perl-doc liburi-perl libxml-libxml-perl libcrypt-ssleay-perl

64 bit
apt-get install ia32-libs build-essential gcc uuid uuid-dev perl libssl-dev perl-doc liburi-perl libxml-libxml-perl libcrypt-ssleay-perl

export http_proxy=
export ftp_proxy=

echo ubuntu > /tmp/*-release && sudo mv /tmp/*-release /etc

Povolení VNC připojení v VMWare ESXi

Postup

 

Přidejte do .vmx něco jako tuto:

RemoteDisplay.vnc.enabled = “TRUE”
RemoteDisplay.vnc.port = “5901”
RemoteDisplay.vnc.password = “password”

 

Poznámka

Ve vetšině klientů je podivné číslování portů takže pro připojení na port 5901 se zadává IP_mašiny:1 a NE IP_mašiny:5901!

 

Microsoft uvolnil zdrojové kódy Windows 98

 The Win98 source code has been released recently; Per MicroSoft
  CopyRights, you can only view the code, but should not change it!

  Windows '98 source code:
           /*
                TOP SECRET Microsoft(c)  Code
                Project: Chicago(tm)
                Projected release-date: Summer 1994
            */

            #include "win31.h"
            #include "win95.h"
            #include "evenmore.h"
            #include "oldstuff.h"
            #include "billrulz.h"
            #define INSTALL = HARD

            char make_prog_look_big[1600000];

            void main()
            {
                while(!CRASHED)
                {
                    display_copyright_message();
                    display_bill_rules_message();
                    do_nothing_loop();

                    if (first_time_installation)
                    {
                        make_50_megabyte_swapfile();
                        do_nothing_loop();
                        totally_screw_up_HPFS_file_system();
                        search_and_destroy_the_rest_of_OS/2();
                        hang_system();
                    }

                    write_something(anything);
                    display_copyright_message();
                    do_nothing_loop();
                    do_some_stuff();

                    if (still_not_crashed)
                    {
                        display_copyright_message();
                        do_nothing_loop();
                        basically_run_windows_3.1();
                        do_nothing_loop();
                        do_nothing_loop();
                    }
                }

                if (detect_cache())
                    disable_cache();

                if (fast_cpu())
                {
                    set_wait_states(lots);
                    set_mouse(speed, very_slow);
                    set_mouse(action, jumpy);
                    set_mouse(reaction, sometimes);
                }

                /* printf("Welcome to Windows 3.11"); */
                /* printf("Welcome to Windows 95"); */

               printf("Welcome to Windows 98");

                if (system_ok())
                     crash(to_dos_prompt);
                else
                    system_memory = open("a:\swp0001.swp", O_CREATE);

                while(something)
                {
                    sleep(5);
                    get_user_input();
                    sleep(5);
                    act_on_user_input();
                    sleep(5);
                }

                create_general_protection_fault();
            }
 

Bluetooth restart adapter

root@Queeq:/home/xsimi# hcitool scan
Scanning …
Inquiry failed: Invalid argument
root@Queeq:/home/xsimi# hciconfig hci0 reset
root@Queeq:/home/xsimi# hcitool scan
Scanning …
0C:.:..:..:..:.. Jachym 2330c
34:..:..:..:..:.. XSimi
root@Queeq:/home/xsimi#

Pana Music Player for Debian Squeeze 64 bit

Install necessary packages

# aptitude build-dep amarok
# aptitude install kdelibs4c2a qt3-dev-tools libqt3-mt-dev kdelibs4-dev ruby1.9.1-full libxine-dev

Download and unpack source file

# wget http://launchpad.net/pana/1.4/1.4.17/+download/pana-1.4.17.tbz
# tar xvfj pana-1.4.17.tbz

Configure and make

# cd pana-1.4.17/
# ./configure -prefix=`kde-config -prefix` -disable-debug -disable-warnings -with-mp4v2 -with-libmtp -with-libnjb -with-libkarma -with-ifp -with-libgpod
# make -j 4

Create and install package

# checkinstall

Download created package Package

For lyrics to work it is necessary to install ruby-qt and plug-in wiki_lyrics script (download down)

# aptitude install libqt4-ruby1.8
Script