Showing posts with label in. Show all posts
Showing posts with label in. Show all posts

Sunday, 30 July 2017

copy paste in ubuntu unix linux using key board shortcuts commands

copy paste in ubuntu unix linux using key board shortcuts commands





First to copy, select the text that you want to copy using mouse and then press ctrl + shift + c ( This make the text to copy to clip board)

Then simply to paste this content into a file press  ctrl + shift + v
{ Read More }


Saturday, 29 July 2017

Create static library for C program in Linux

Create static library for C program in Linux


Consider your C program has three files, which are addSub.c, mulDiv.c and main.c

addSub.c : 
int add(int x, int y)
{
    return x + y;
}
 
int sub(int x, int y)
{
        return x - y;
}
mulDiv.c : 
int mul(int x, int y)
{
    return x * y;
}
 
int div(int x, int y)
{
        return x / y;
}
main.c : 
#include <stdio.h>
 
int main(int argc, char *argv[])
{
    printf("%d ", add(10, 15));
    printf("%d ", sub(50, 15));
    printf("%d ", add(10, 3));
    printf("%d ", add(100, 4));
    return 0;
}

1 . Compile and create object file for addSub.c and mulDiv.c 
gcc -c addSub.c mulDiv.c -Wall
2.  Create static library( liboperation.a ) for compiled files 
ar -cvq libopeartion.a addSub.o mulDiv.o
3.  We can list the available files from library file using following
ar -t libopeartion.a
4. Compile the main program with linking the library 
gcc -o output main.c libopeartion.a
5. Run the created output executable file
./output 

{ Read More }


Creating libraries and linking to libraries in Vala

Creating libraries and linking to libraries in Vala


This is an example of how to create a library in vala, and how to access it using several different methods. This example includes:
  1. A shared library written in vala, including
    • shared object (.so), and how to install it
    • headers (.h), and
    • bindings (.vapi)
  2. A command-line tool that uses the library by direct-linking
  3. A dbus server that uses the library by direct linking
    • makes the library available to other dbus-aware applications
    • self-terminating process after use (not a daemon)
  4. A command-line tool that uses the library via dbus and the dbus-server.

The first half of the example is based on the official vala tutorial library example,
I have added dbus connectivity and a bit more explanation that I found helpful.





1) Create an empty directory. These steps create a lot of files!

 $ mkdir test_library
$ cd test_library



2) Create the library. Save this file as libtest.vala:

// BEGIN
public class MyLib : Object {

public string hello() {
return "Hello World from MyLib";
}

public int sum(int x, int y) {
return x + y;
}
}
// END



3) Create the .c, .h (C header), and .vapi (vala binding) files:
 -C --ccode Output C code instead of compiled
-H --header=file Output C header file
--library=name Assign name to library
--vapi Assign name to vapi file
-b --basedir=dir Use dir as the base source dir (For me, this is unnecessary)

$ valac -C -H libtest.h --library libtest libtest.vala --basedir ./



4) Compile the library using:

 -shared Create a .so shared object
-fPIC Position Independent Code (PIC) suitable for use in a shared library
$(pkg-config --cflags gobject-2.0)
Output: -I/usr/include/glib-2.0
-I/usr/lib/i386-linux-gnu/glib-2.0/include
-o filename Output filename

$ gcc -shared -fPIC -o libtest.so $(pkg-config --cflags --libs gobject-2.0) libtest.c



5) Create the command-line application that uses the library by linking.
   Save this file as hello.vala:

// BEGIN
void main() {
var test = new MyLib();

// MyLib hello()
stdout.printf("%s ", test.hello());

// MyLib sum()
int x = 4, y = 5;
stdout.printf("The sum of %d and %d is %d ", x, y, test.sum(x, y));
}
// END




6) Compile the command-line application.
Using vala, there need to be TWO links:
  • The vala link to a .vapi file (in this example, test.vapi)
  • The gcc link to a C library (in this example, -X -ltest to add libtest.so)

 - The vala link to a .vapi file (in this example, test.vapi)
- The gcc link to a C library (in this example, -X -ltest to add libtest.so)

-X --Xcc=-I. Pass the -I. (include current directory) to gcc.
GCC will look for shared libraries in the current directory first
-X --Xcc=-L. Pass the -L. (add current directory to search path) to gcc.
-X --Xcc=-ltest Link library "libtest" which we just created in the current directory.

If we had the libtest.so in the local directory, we could use:

$ valac -X -I. -X -L. -X -ltest -o hello hello.vala libtest.vapi



7) Test the command-line application that uses the library:
The library is in the local directory (uninstalled):

 $ LD_LIBRARY_PATH=$PWD ./hello
Hello World from MyLib
The sum of 4 and 5 is 9



8) We cannot easily use the local library for dbus.
So install the library to the expected location.
Copy the library to /usr/lib using:

 $ sudo cp libtest.so /usr/lib/



9) Test the (installed) command-line application:

 $ ./hello
Hello World from MyLib
The sum of 4 and 5 is 9



10) Create the dbus server that uses the library.
A server listens for requests from other applications. This server acts as a gateway: It translates other application requests for library methods into a library call, and then sends the response back across dbus to the original requestor.

Save this file as dbus_server.vala:

// BEGIN
// Source: https://live.gnome.org/Vala/DBusServerSample#Server

[DBus (name = "org.example.Demo")] // dbus interface name
public class DemoServer : Object {

/* Functions that access the library on the Demo interface
* Note the LACK of in the return strings.
* Vala automatically mangles my_function_name into the
* standard Dbus camelcase MyFunctionName
* So a function is "hello()" here, but "Hello" on Dbus
*/
public string sum () {
var test = new MyLib();
int x = 4, y = 5;
return "The sum of %d and %d is %d".printf( x, y, test.sum(x, y));
// Note the LACK of in the return strings
}

public string hello () {
var test = new MyLib();
return "%s".printf( test.hello());
}

}

[DBus (name = "org.example.DemoError")]
public errordomain DemoError { SOME_ERROR }

/* Dbus functions */
void on_bus_aquired (DBusConnection conn) {
try {
string path = "/org/example/demo";
conn.register_object (path, new DemoServer ());
} catch (IOError e) {
stderr.printf ("Could not register service "); }
}

void main () {
GLib.MainLoop loop = new GLib.MainLoop ();
GLib.TimeoutSource time = new TimeoutSource(3000); // 3 sec
GLib.BusType bus = BusType.SESSION;
string destination = "org.example.demo";
GLib.BusNameOwnerFlags flags = BusNameOwnerFlags.NONE;

Bus.own_name ( bus, destination, flags,
on_bus_aquired,
() => {},
() => stderr.printf ("Could not aquire name "));

// Use timeout to quit the loop and exit the program
time.set_callback( () => { loop.quit(); return false; });
time.attach( loop.get_context() ); // Attach timeout to loop

loop.run (); // Listen for dbus connections

}
// END



11) Compile the dbus server:
 Dbus requires the gio package (--pkg gio-2.0)
-X --Xcc=-I. Pass the -I. (include current directory) to gcc.
GCC will look for shared libraries in the current directory first
-X --Xcc=-L. Pass the -L. (add current directory to search path) to gcc.
-X --Xcc=-ltest Link library "libtest" which we just created in the current directory.

Since the library is installed, we can ignore those local directory flags:

$ valac --pkg gio-2.0 -X -ltest dbus_server.vala libtest.vapi



12) Create a dbus .service file, so dbus knows how to find our new dbus_server.
Save this file as dbus.service. Your third line will vary - use the real path:

// BEGIN

[D-BUS Service]

Name=org.example.demo

Exec=/home/me/vala/library/dbus_server

// END



13) Install the dbus service file:

 $ sudo cp dbus.service /usr/share/dbus-1/services/org.example.demo.service



14) Test the dbus server using an existing command-line application, dbus-send.
This is a command-line application using the library via dbus, using dbus_server for its intended purpose as a gatetay.

The sender is different each time because dbus-send creates a new process and connection each time it is used.
The destination is different because the server terminates after 3 seconds.

 $ dbus-send --session --type=method_call --print-reply 
--dest="org.example.demo" /org/example/demo org.example.Demo.Hello
method return sender=:1.3173 -> dest=:1.3172 reply_serial=2
string "Hello World from MyLib"

$ dbus-send --session --type=method_call --print-reply
--dest="org.example.demo" /org/example/demo org.example.Demo.Sum
method return sender=:1.3175 -> dest=:1.3174 reply_serial=2
string "The sum of 4 and 5 is 9"


15) Clean up:
Remove the dbus service file:
Remove the test library from /usr/lib

 $ sudo rm /usr/share/dbus-1/services/org.example.demo.service
$ sudo rm /usr/lib/libtest.so
{ Read More }


Friday, 28 July 2017

Creating Desktop Launchers in 11 10 Ubuntu Oneiric

Creating Desktop Launchers in 11 10 Ubuntu Oneiric


As you might have already noticed, Oneiric doesnt let you create launchers by right-clicking the desktop. Different people have different needs, but I love to have CCSM and compiz --replace launchers (at least) at my desktop so I can just double-click those whenever disaster strikes. Thankfully, there is a workaround for creating launchers at the desktop in Oneiric.

First of all, make sure that the package gnome-panel is installed. It would do no harm, sitting there quietly. So, get to a Terminal and run:

sudo apt-get install --no-install-recommends gnome-panel

Now from the Alt + F2 run dialog or, even more conveniently, from a Terminal, run:

gnome-desktop-item-edit ~/Desktop/ --create-new

Name your launcher and enter the command to be launched as shown in the screenshot below. Clicking the OK button would immediately create the launcher.


Copying Existing Launchers

The above method you primarily need to create custom launchers that arent already present on your system; for creating launchers based on existing ones, there is a much easier method: simply copying them!

Therefore, navigate in Nautilus to /usr/share/applications, there youll find the vast majority of existing, system-wide launchers, and theyll be presented to you with the names and icons with which they also turn up in the Dash, Unity Launcher, and menus.

Now, you only got to do a simple copy & paste onto your desktop, whether directly on it or into its corresponding directory in your home directory. Done!

The executable bit will be automatically set, making the newly created copy of the concerning .desktop file a working launcher - it isnt set on the files in /usr/share/applications in the first place, since those arent executed, but sourced. Fortunately, Nautilus automatically takes care of that; but if you copy the launcher files via the command line, e.g. the Terminal, youd need to set it yourself!

User-Specific Launchers

User-specific launchers, including those of Wine and your possibly earlier created custom ones, are located in ~/.local/share/applications in your home directory (press Ctrl + H to see the hidden files/directories). Their executable bit also isnt set by default, but unlike the system-wide launchers, they turn up in Nautilus with their actual file names and generic icons (Wine launchers have at least their public names in their file names). Also unlike system-wide launchers, Nautilus wont automatically set the executable bit upon creating the copy, so youd need to set it yourself via Right-Click > Properties > Permissions.
{ Read More }


Thursday, 27 July 2017

Create Bash Aliases With Arguments In Ubuntu

Create Bash Aliases With Arguments In Ubuntu


The scenario here may not be the same with you but the point is you want your bash alias to work with parameters.

Say I want to display a files content in colors and I want the output to display line numbers as well.

For the color part, I used pythons syntax highlighter called pygments and I used bash built-in line numbering command called nl.

Now to achieve my goal, I have to pipe nl to the result of pygmentize:

pygmentize test.php | nl

This is quite a hassle especially if you have to do it frequently only with different files. Unfortunately, bash alias does not directly accept parameters. The solution is to create a bash function.

ccat() { pygmentize $1 | nl }

or multi-line:

function ccat() { 
pygmentize $1 | nl
}

I named the function ccat (custom cat) because it works like a cat command but the syntax is highlighted.

Put this function in ~/.bashrc and then restart your terminal or use source:

ccat test.php

{ Read More }


Wednesday, 26 July 2017

Create New Document context menu item missing in Nautilus 3 6 3

Create New Document context menu item missing in Nautilus 3 6 3


I recently installed the new Ubuntu Gnome 13.04 which comes with Nautilus(Files) 3.6.3.  While I am loving Ubuntu Gnome one annoying thing missing from Nautilus(Files) is the ability to right click and create a blank file(previously called "Create New Document" in the context menu) .  It was decided that this feature would be removed in the newer versions of Nautilus which seems like a strange feature to remove to me as it is incredibly useful.

If you would like to add the option back in you simply need to run the following command at the Terminal:

touch ~/Templates/Text File.txt

NOTE: you can add other types of files to the templates folder and they will also appear n the context menu.

{ Read More }


Creatures Raised in Space

Creatures Raised in Space



CreaturesRaised in Space is the second game for the PlayStation in the Creatures series, being the sequel to Creatures PS1
{ Read More }


Tuesday, 25 July 2017

Converting mp4 to mp3 in Ubuntu

Converting mp4 to mp3 in Ubuntu



Converting mp4 files to mp3 can easily be done via the terminal. First install ffmpeg and the necessary codecs by typing:

sudo apt-get install libav-sudo apt-get install ffmpeg libavcodec-extra-52
sudo apt-get update
sudo apt-get install ffmpeg libavcodec-extra-53
Than you can convert your file via:
ffmpeg -v 5 -y -i inputfile.mp4 -acodec libmp3lame -ac 2 -ab 192k outputfile.mp3

For example go to the video folder and convert your file like this:
cd Videos
ffmpeg -v 5 -y -i writelikethewind.mp4 -acodec libmp3lame -ac 2 -ab 192k writelikethewind.mp3

This should look something like this:

Note that I use ls to get a listing of alle the files in the current directory.

Also read my article on converting between different video format.
{ Read More }


Sunday, 23 July 2017

Count number of characters in file from command line and Vim

Count number of characters in file from command line and Vim


The command wc prints several file statistics: bytes, lines, words, etc. Using the -m option we can count the number of characters in a text file.

Install

Open a terminal window and run:

wc -m FILE

We can count the number of characters from Vim editor using this ex command:

:!wc -m %

References

wc(1) - Linux man page
{ Read More }


Friday, 21 July 2017

Create a comma separated string in shell a b c a b c no not sed

Create a comma separated string in shell a b c a b c no not sed


Well, the title does not really explain the real issue but I couldnt find a better one.

Another try: assume you have a list of tokens in a shell script and you want to build a comma separated list out of those tokens and you want to do this in a loop there is usually an issue with one comma too many at the beginning or at the end.

For simplicity I use a simple token list.
This example of course could be solved faster with sed.
I add a more complex example at the end.

A first approach is as follows and will create a list with an empty first element so to speak:
TOKENS="a b c" LIST="(" for token in $TOKENS ; do LIST="${LIST},${token}" done LIST="${LIST})" echo $LIST (,a,b,c) 
So how does one get rid of the extra empty element at the beginning of the list?

One might add an if-statement:
TOKENS="a b c" LIST="(" for token in $TOKENS ; do if [ "x$LIST" = "x(" ] ; then LIST="${LIST}${token}" else LIST="${LIST},${token}" fi done LIST="${LIST})" echo $LIST (a,b,c) 
In my search for a shorter one line solution I found the following approach using shell paremeter substitution.
TOKENS="a b c" LIST="" for token in $TOKENS ; do LIST="${LIST:-(}${LIST:+,}${token}" done LIST="${LIST})" echo $LIST (a,b,c) 
This is admittedly not easy to understand on the first glance unless you are very familiar with the parameter substitution.
Im using the complementary idea of :- and :+ .
${LIST:-(} will put out either the current value of LIST (if it exists and is not empty) or a ( .
So in the first invocation of the loop LIST is not yet set and thus ( is put out.
In the next rounds LIST is set and will be put out as is.
${LIST:+,} will put out either a comma (if LIST exists and is set) or nothing at all.
In the first invocation of the loop LIST is not yet set and nothing is put out.
In the next rounds LIST is set and a comma will be put out.

In all cases the token is appended at the end.

Here is a an example with more complex tokens which contain a space and they should be surrounded by quotes in the resulting list.
A="sam smith" B="jane jones" C="gabe miller" LIST="" for token in "$A" "$B" "$C" ; do LIST="${LIST:-(}${LIST:+,}${token}" done LIST="${LIST})" echo $LIST (sam smith,jane jones,gabe miller) 
{ Read More }


Thursday, 20 July 2017

Create Symbolic Links in Ubuntu

Create Symbolic Links in Ubuntu


The 2 types of links are hard links and soft links .

A hard link is essentially a file with multiple names, there are multiple copies of the file. So that if one of the hard links is deleted, the file persists to exist.

A soft link (also called symlink or symbolic link) is a file system entry that points to the file name and location. Deleting the symbolic link does not remove the original file. If, however, the file to which the soft link points is removed, the soft link stops working, it is broken.

Symbolic links can be created both from the terminal and from nautilus (file manager, GUI). 
 

Terminal

 

The syntax for creating a symbolic link is,
ln -s target source
where,
  • target - The existing file/directory you would like to link TO.
  • source - The file/folder to be created, copying the contents of the target. The LINK itself.
For more help see ln --help

Example:
ln -s /home/nargren/Pictures /home/nargren/Pictures_Backup
This would create a symbolic link directory called "Pictures_Backup" to my "Pictures" directory. All the content in either of the 2 directories would appear in the other one as well.

GUI

 

You can easily create a symbolic link to a folder or file by middle clicking on the folder with the mouse and dragging it to its new location, while holding the middle mouse button.

Remove Symbolic Links

 

To remove a symbolic link, be it a file or directory, simply remove the created link. This can be done either through nautilus (GUI) or using the rm and rm -f commands in the terminal.

Use of Symbolic Links

 

Symbolic links are especially useful on computers with dual-boot, running for example Windows and Linux. As symbolic links can be created across partitions and file systems, windows folders can be linked to appropriate Ubuntu folders.

I will bring my own example of using Mozilla Thunderbird as e-mail client. I would like to have my emails and profiles available, including all my downloaded emails on both operating systems. This could be done either by downloading all new e-mails when I start the software on any of the two operating systems, or via symbolic links. As I had problems downloading new emails with multiple clients, I have chosen to make a symbolic link.

I have linked my Windows
[USER]AppDataRoamingThunderbird
 folder to the Ubuntu directory
 home/.thunderbird
This allowed me to download my emails only once and have them available on both Windows and Linux while keeping my entire profile.
{ Read More }


Create Aliases in Windows!!

Create Aliases in Windows!!


Hey!! guys i like to share this pretty cool knowledge with you that we can also create aliases in windows as we create in linux .... in windows we call it DOS key!!

DOSKEY  (Wikipedia crap :p)

               
DOSKEY is a utility for DOS and Microsoft Windows that adds command history, macro functionality, and improved editing features to the command line interpreters COMMAND.COM and CMD.EXE. It was included as a TSR program with MS-DOS and PC DOS versions 5 and later, Windows 9x and Windows XP or later.
In early 1989 functionality similar to DOSKEY was introduced with DR-DOS 3.40 with its HISTORY CONFIG.SYS directive. This enabled a user-configurable console input history buffer and recall as well as pattern search functionality on console driver level, that is, fully integrated into the operating system and transparent to running applications. In summer 1991 DOSKEY was introduced in MS-DOS/PC DOS 5.0 in order to provide some of the same functionality. DOSKEY also added a macro expansion facility, which, however, required special support to be implemented in applications like command line processors before they can take advantage of it. Starting with Novell DOS 7 in 1993 the macro capabilities were provided by an external DOSKEY command as well. In order to also emulate DOSKEYs history buffer functionality under DR-DOS, the DR-DOS DOSKEY works as a frontend to the resident history buffer functionality, which remained part of the kernel in DR-DOS.
In current Windows NT-based operating systems DOSKEYs functionality is built into CMD.EXE, although the DOSKEY command is still used to change its operation.

Practical Work 

In this pic i wanna make a short and simple alias for sublime text as you can see i made it using the following command

doskey s1 = sublime_text.exe $* 

and thats it ... remember i have sublime_text.exe file in my environment path variable 
so now instead of typing the whole bullshit(i.e sublime_text) i just have to enter the alias that i have setted in the particular command prompt

Problem 

The main problem is that if the close the session or can say when you close the cmd you doskey setup is lost :( :(  and it will not work in other command prompt

Dont be sad i have a solution for it

Solution 

 1.) Create a new folder in the c:windows directory called bin.
 2.) Run notepad as Administrator.
 3.) Enter the following command in it

 @echo off
@doskey sl = sublime_text $*

4.) Now save the file as doskey.bat in the c:windows in folder that we actually created
5.) press control + r and run box will open
6.) type regedit in the run box and hit enter
7.) search for HKEY_CURRENT_USERSoftwareMicrosoftCommand Processor
8.) Add a new String Value called AutoRun and set the absolute path in the value of c:windows indoskey.bat.



The doskey.bat file will now be executed before opening a new cmd session which will set all of your alias ready for you to use.

Now i have alias for windows same that i used in linux environment

Thanks for giving your valueable time in reading this post
Thank you !!
{ Read More }


Tuesday, 18 July 2017

Create Matrix Effect in CMD BY a simple C program

Create Matrix Effect in CMD BY a simple C program


Creating Matrix Effect in CMD by a Simple C Program:




          Guys today Im providing you a simple .exe file which can create Matrix effect in CMD(Win32bit OS only).
  
So Download this .exe file from here

This is a sample for checking purpose.

And this is the source code for changing name in place of my name.

Download source code from here.

Open this .C file with TurboC Compiler and modify it and then click on compile button.

Modify only Name as in this program as I write ******Khattak******.

Now click on Compile Button and this time click on make option.It will create  *.exe file (i.e. ktk.exe).

So if you like my post then share it with friends and everyone.


{ Read More }


Saturday, 15 July 2017

Create shortcut icons for shutdown restart and logout in windows 8

Create shortcut icons for shutdown restart and logout in windows 8


In windows 8, to access shutdown, restart and logout, we need to move our mouse in the top right corner and then use these options from the Settings>Power button. But what if you could get extra buttons for shutdown, restart and logout right on your desktop or in your taskbar, or in your taskbar?
Well, In this post, Ill tell you how to create shortcuts for shutdown, restart and logout in your task bar from where you can perform these actions just in a single click. simply follow the steps:
1. Right click on your desktop and click New > Shortcut.

new shortcut
2. Now type shutdown.exe /s /t 0 in the create shortcut box and click NEXT.

create shortcut

3. Now type the name of the shortcut, such as shutdown and click FINISH.

shutdown

4. Now a shortcut icon will be created on your desktop. Right click over this icon and click PROPERTIES. Then click CHANGE ICON.

change icon

5. Now select any icon you like and click OK. The icon of your shortcut will be changed.

select any icon

6. Now, you can drag it and drop into your taskbar to make it a shutdown button. In the same way, you cancreate shortcut buttons for logout and restart also. Use the following text for step 2:
Logout : shutdown.exe /l
Restart : shutdown.exe /r /t 0
Thats it. You have created your shortcut icons for shutdown, logout and restart. You can download the buttons from this link also.
{ Read More }


Friday, 14 July 2017

Create Classy Slow Motion Videos In Linux With slowmoVideo

Create Classy Slow Motion Videos In Linux With slowmoVideo


slowmoVideo is a Qt application for Linux and Windows that can be used to create beautiful slow motion videos. But dont think all it does is change the video playback speed! The tool can smoothly slow down and speed up the video with optional motion blur.

slowmoVideo Ubuntu

The application is not new and is actually quite popular, but I just realized I never covered it on failsdownloads, so I though Id let you know about this cool application, in case youre not familiar with it.

To get an idea on what the application can do, you can watch a video created by the slowmoVideo developer from an image sequence:


Timelapse retiming (slow motion) from Simon A. Eugster.

He explains:

"Source material for this video was an image sequence shot with a Nikon D90. The clouds were moving so quickly that even with shorter intervals (9 seconds; For a different timelapse I used 20 s which was still enough for the clouds there) the video was playing too fast."

Heres another video which has only some parts in slow motion:


Short dream � Hair in slow-motion from Simon A. Eugster


slowmoVideo features:
  • can be used with any video format supported by ffmpeg;
  • supports loading image sequences;
  • motion blur can be added to the videos.

As you can see, the application doesnt offer a huge amount of features and instead its specialized on doing one thing only: creating amazing slow motion videos from your footage.

slowmoVideo isnt exactly intuitive, but the documentation available on its website should be enough to get you started. Youll find it HERE.

One note though: I recommend trimming your video before importing it into slowmoVideo because it extracts frames from the video when importing it and that will take a long time if your video is relatively large.


Install slowmoVideo in Ubuntu


slowmoVideo can be installed in Ubuntu by using its official PPA (there are no packages for Ubuntu 14.04 yet!). To add the PPA and install slowmoVideo, use the commands below:
sudo add-apt-repository ppa:brousselle/slowmovideo
sudo apt-get update
sudo apt-get install slowmovideo


Download slowmoVideo


Arch Linux users can install slowmoVideo via AUR.

Download slowmoVideo (for Windows or source files). The downloads page includes build instructions for Debian/Ubuntu, Fedora, and openSUSE.
{ Read More }


Thursday, 13 July 2017

Create A Personal Screen Saver In Win Xp

Create A Personal Screen Saver In Win Xp



This isnt a tweak, but a great little feature! For a great way to put your digital photos to work, try creating a slide show presentation for use as a screen saver. Heres how:

1. Right-click an empty spot on your desktop and then click Properties.

2. Click the Screen Saver tab.

3. In the Screen saver list, click My Pictures Slideshow.

4. Click Settings to make any adjustments, such as how often the pictures should change, what size they should be, and whether youll use transition effects between pictures, and then click OK.

Now your screen saver is a random display of the pictures taken from your My Pictures folder.
{ Read More }


Wednesday, 12 July 2017

Create a website in Rs1500 only

Create a website in Rs1500 only



We Have Best Packages For You
 Specifications
  • 10,000 MB disk space.
  • 100 GB monthly bandwidth
  • Free 24/7 support
  • Base.pk Domain
  • Money back Guaranty
  • 2 month Maintenance 

For More Details Contact Us

Mobile:   (92)0302-5021886
Email:     mrkm554@gmail.com







{ Read More }


Monday, 10 July 2017

Create a shortcut to lock a PC in Vista

Create a shortcut to lock a PC in Vista


Slice steps off your system log-off routine by putting a log-off shortcut on your desktop.

Start by right-clicking an empty space on the desktop and then selecting New shortcut. In the space below Type the location of the item, type in rundll32.exe user32.DLL, LockWorkStation (remember to watch your spacing and case).

Finally, create a clever name for the icon besides the default "rundll32"�how about "Lock PC"? Then click the shortcut to lock your computer with ease.
{ Read More }


Sunday, 9 July 2017

COUNT column is fast in DB2

COUNT column is fast in DB2


Antonio Cangiano just set up a simple benchmark comparing COUNT(column) performance between untweaked DB2 Express-C and MySQL.

The results:
DB2 has very quick COUNT(column) performance
{ Read More }


Thursday, 6 July 2017

Cron to be deprecated in favor of Upstart in Ubuntu

Cron to be deprecated in favor of Upstart in Ubuntu


Ubuntus Upstart is an init daemon replacement, quite analagous to OS Xs launchd. Launchd also replaced cron on OS X - and upstart plans to replace cron on Ubuntu. No telling when, but all my cron jobs will need to be reformatted.

Update: Sept 2011. Three years later and still waiting...

{ Read More }