Processes in Linux: Fun with Terminal

Warning: the content may increase your appetite for interest in Linux.
It’s a myth that “processes” are a complex concept. A process is an executing set of machine level instruction or code.
Whenever you are running an application, a process that belongs to this application is running. There are some processes which runs only in the background. They are called daemons in Linux. The process status, “ps” command shows the currently running processes.
Enough with the theory, now let’s get our hands dirty. Open a terminal session on your favorite Linux distribution.

The “ps” command has mainly two options

  • -e lists all running processes
  • -f shows full process status

At the terminal type “ps -ef

full_process_list_linux

  • UID – id of user who invoked terminal
  • PID – ID of that process
  • PPID – parent process ID of the running process
  • C – no. of child processes
  • STIME – start time
  • TTY – terminal executing the process, shows “?” when it is a daemon
  • CMD – name of the process

When the system boots only one process exists – the init process, which is invoked by kernel. Kernel is the core of an operating system on which all other drivers and applications exist and run. The first process on the list is thus always be init.

At the terminal type “ps -e

process_list_linux

How to initiate a background process?

Linux is a true multi-user, multitasking OS. You can run more than one process simultaneously. Type the program name followed by an ampersand(&) separated by a space

vlc &

vlc

The “&” allows to run vlc media player in the background of our parent shell.

  • [1] shows number of child process.
  • 3120 is the process ID(PID) of vlc.

 As a side note, try “ps” command on your Android phone or tablet. Fire up a terminal emulator and see what happens

android_processandroid_process_list

http://www.vipinonline.com/blog/2013/03/processes-in-linux-fun-with-terminal/

IPHONE Battery Drainage issue | solution

Sometime when IPHONE battery is fully drained it stuck on an empty battery screen and wont charge up ,no matter  how many hours u charge it , it is not going to switched on

 

 And then u have only one option to take this to apple store , but before going read this article it might save your money and time. first of all let see what is a difference between an iphone in charging state and in not charging state. If you see above symbol   that means your  iphone is not charging , after 3 beeps iphone is going to switched off

If you see this symbol on your iphone screen that means your iphone is charging

 So here are some simple trick what should you do to solve this problem

Trick 1

 Check your cable , if possible then use it in another iphone and see if it is working or not , if you are charging from laptop/desktop then try to charge with main point  , if it is still not charging check trick 2

 Trick 2

try to blow your iphone cable ends and iphone connecting port sometime dust stuck on it and iphone is not charging

If not try trick3

Trick 3

while charging do a hard restart , press power + home button for 10 seconds ,if u see apple logo means that trick work if not working then try trick 4

trick 4

plug your iphone to main power source then do a hard restart until if u see an icon of charging leave your iphone for 2 hours ,after two hours do a hard restart again and leave it for charging let say 2-3 hours most probably your problem will be solved if not see apple store for replacement of cable or battery

  Explanation

 Here what happens, there is a backup battery of iphone when it is drained the ios reject to take any charging , it’s a bug in iphone , so when we hard restarting our iphone means we are restarting ios and we leave our iphone for few hours so it can atleast charge upto the backup level , when it is charged to the backup battery level we restart it again , at that time ios might not start but it start to accept charging ………….

we love to see your comments at   ———>           http://www.techian.com

How to handle web traffic and spikes if your website has some static content

Today the main problem we all face in the world of the internet is that sometimes the response time of a website is high and sometime it do not respond at all may be due to the fact that it is getting chocked with the number of requests and not able to handle new requests.  As we know, Internet is network of networks and they communicate to each other based upon the business deal they have, not upon the performance. So the end user’s request might take longer path to reach out origin server or the server’s response might take longer path to reach end user. The other problem is that its really difficult to predict the incoming traffic always. There might be a sudden increase in traffic because of some campaigns or change in search engine result’s traffic and its practically not possible to scale up the server’s infrastructure for this short span of time and server may get crashed because of this sudden spike of traffic. So this article will explain you how to handle web traffic and how to handle spike of web traffic using  free cdn. After reading this article you will also know how to reduce load on server.

traffic spike

One of the best solution for such problems is that to use CDN [content deliver network]. Lets discuss what a CDN is.

What is CDN?

As per the wikipedia article the definition is

A content delivery network or content distribution network (CDN) is a system of computers containing copies of data placed at various nodes of a network.When properly designed and implemented, a CDN can improve access to the data it caches by increasing access bandwidth and redundancy and reducing access latency. Data content types often cached in CDNs include web objects (text, graphics, URLs and scripts), downloadable objects (media files, software, documents), applications, live streaming media, and database queries.

free cdn

So it means if you have some static content on your websites, like images, text files or some media files then you can “cache” them on CDN’s servers which are located near to the end user and deliver to them in faster and efficient manner. This way you can also minimize the hits to your server. All of the major sites today use some kind of CDN services. eg facebook uses the world’s largest CDN Akamai.

Which CDN to go for?

Well, if you are making good amount of money and you want the best performance then you can always go for big players like Akamai which will improve your website’s performance drastically [for dynamic contents as well]. But if your budget is small or you want the free service then you can use Cloudflare. They offer free plan to cache your static content and drastically reduce the load on your webserver. As i know Cloudflare is the only free CDN in the market. They will help you to reduce load on server and also they will help you to increase the website performance.

How they work?

Once you sign up for their service all you need to do is to change your nameservers to the one provided by them so that when the request comes, it gets mapped to their network first and if the requested object is found in their cache then it will be delivered from their itself. The request will only hit your server when requested object is not available in their server’s cache. In this way you can reduce the traffic hits to your server. And if the server’s load is reduced and there is a sudden increase in traffic, what we call spike, then also all hits will not come to your server directly. Instead they will go to their server. And hence there are greater chances of handling such traffic with existing infrastructure.

I hope this atricle will help the people, specially the one who wants to reduce the load on their server at low price or for free using free CDN. If you have any doubts then feel free to comment. Thank you.

Free Online Clipboard with security: CL1P.net

Here is a hassle free service from CL1P.net, a free online clipboard. No sign ups or activations are necessary to use it. That makes it ideal to share a bunch of links quickly from a public computer.

cl1p_net

Sharing is an easy three step process:

          1. Enter a URL that starts with http://cl1p.net
            example: http://cl1p.net/vipinonline/
          2. Paste in anything you want.
            Some text, links, etc. Click ‘Save’ when done.
          3. Access the same URL from the target machine.
            You will find the information you entered in step 2.
    1. If the information is confidential, you can secure it by going to Options—> Security, then add a password. We can specify the lifetime of the clipboard from 1 hour to 9 months.

  1. It is not just a clipboard, you can do more with CL1P

  • Create a notebook and secure it with a password.
  • Have conversations, share the link with your friends. Each of you can update it.
  • Create an online community. You and your friends can create cl1ps and link them together using the cl1p link feature

Boost your torrent ratio. Increase your ratio in torrent sites for free.

This idea was share by my friend FBI in OUG. The idea is pretty simple. With the help of Pvt. torrent Ratio keeper.

All you need to do is visit www.torrentratiokeeper.com and register yourself. This service is absolutely free for 1 month. an this 1 month is more than enough for you to get your job done.

What is TorrentRatioKeeper?

Torrent Ratio Keeper increases your torrent share ratio on any tracker! It boosts up your download speed on multiple trackers at once. Your torrent client will get more seeds to download from, thus making your downloads much faster. You can configure ratio boost for each tracker! Torrent Ratio Keeper supports uTorrent, BitTorrent, BitLord, Vuze, ABC torrent clients. You can forget about days and nights spent on seeding to increase your share ratio.

Can you get banned?

You cannot be banned if you only use upload boost or “Seeder Mode” or “Emulate Upload Problems”. Torrent trackers have no way of detecting these. If you use download boost, it will show that you are only downloading portions of files. It could look suspicious, but no one is banned for it at this time. Also, don’t use the program all of the time. If your ratio is too high, it’s not good. 😉
We’ve found that several Romanian, Russian, Indian, Chinese trackers can ban their users, if the upload increase is too high. For example, let’s assume the maximum possible upload speed is 10MB/s in your country, and you are using 500% upload increase. Your speed will be 60MB/s, but admins know that there are no Internet Service Providers offering these speeds in your country. To avoid this problem, we recommend that you use “Seeder Mode”, and no upload increase.

So register now and increase your ratio on all famous torrent sites including demonoid. Thanks for reading this post of mine. Please bookmark this iste so that you may visit it later again. Thank you.

Few invites left for Diaspora, the open source “Facebook killer”

Diaspora is a “privacy-aware, personally controlled, do-it-all distributed open-source social network“. It’s a decentralized alternative to social network services like Facebook. Diaspora works by letting users set up their own server, like a hosted wordpress installation, to host content; pods can then interact to share status updates, photographs and other social data.

diaspora It’s your data and you ought to be controlling it. Diaspora is to allow participants to retain ownership of all the material they use on the site, and retain full control over how that information is shared. It categorizes the social connections into individual groups called Aspects, and the user can control which groups see which material.

Choice

Diaspora lets you sort your connections into groups called aspects. Unique to Diaspora, aspects ensure that your photos, stories and jokes are shared only with the people you intend.

Ownership

You own your pictures, and you shouldn’t have to give that up just to share them. You maintain ownership of everything you share on Diaspora, giving you full control over how it’s distributed.

Simplicity

Diaspora makes sharing clean and easy – and this goes for privacy too. Inherently private, Diaspora doesn’t make you wade through pages of settings and options just to keep your profile secure.

In short it’s the social network which respects your privacy the most.

The Alpha version of Diaspora is out !

A few invites are left. Click on the following link to sign up for Diaspora

Diaspora invites

Noobs guide of how to hide sensitive data on your system

The method which i am going to discuss here is for people who wants to hide data on their system without any special tools or softwares so that no one can easily detect it and even if they can they may not be able to decode it.

The method is pretty simple and working great. This method i adopted in one of the software company during an audit and they were unable to trace anything.

Steps:

  1. Put all the data in a folder
  2. Compress it using any tool like winzip or winrar
  3. make it password protected
  4. change the extension name to .doc or .xls or docx or xlsx [depending upon your ms office version]
  5. open a new word document
  6. embed the data whose extension you changed in step 4 using the below step
  7. Goto insert > object >click on create from file tab > check the box “display as icon” and select the file created on step 4 
  8. save that document
  9. again compress it
  10. make it password protected
  11. change its extension to .pst
  12. goto the folder where your outlook express files exist e.g. C:\Documents and Settings\username\Local Settings\Application Data\Microsoft\Outlook
  13. paste the file created in step 10 here

Your data is now secure. No one can easily trace it and even if they can they will not be able to open it. You may tweak this renaming method according to your needs and intelligence. Your data is now absolutely safe. Feel free to comment your views on this.

How to increase the internet speed

Hello Readers, This topic is useful for all the people who really want to know how they can increase their net connection speed. The truth is that you can not legally bypass the download speed of your internet connection and if you try to do so its 100% sure that you will be contacted by your ISP very soon.

What you can do at the most is that you can really “Optimize” your internet speed as per your requirements. If you have a wired line with a fixed internet speed, say 512 kbps, then you may optimize it to get the maximum out of it. You will be getting a maximum of 64 kbps download speed on a 512 kbps plan. Please note that communication speed is 512 kilo bits per second while the data transfer rate is measured in kilo bytes per second. Hence devide the communication speed number by 8 and you will get your data transfer speed because 1 Byte = 8 bits

How to optimize your internet connection?

1.Use firefox optimization technique for optimizing browsing

2.Use internet accelerators for downloading any file. I would sugest you to go for flashget as it is free to use for personal use.

3.Keep your system virus free.

4.Optimize torrent client for getting maximum download speed

5.Close those applications which are not being used by you.

6.optimize your TCP settings. Use the tool Dr TCP for this purpose. The details on how to use it can be found here

Next time i would be posting how can we further optimize the browser and torrent client. Also i am experimenting on wireless broadband and would be posting the full tutorial on how can we get better speed. Thanks for reading my post. If you like it then please share it with others by clicking the below icons.  Do not forget to join our email subscription in order to get the updates directly to your mailbox.