Much safer way to restart your frozen Linux

Somehow, you crashed your Linux. It’s completely frozen. You try pressing Ctrl + Alt + Backspace, but doesn’t help.

What to do? Someone would press the power button and restart or shut down the system.You shouldn’t do this. This can make you a lot of problems.

What you can do, is to perform a gentle Linux restart.  This is much safer way to restart your frozen Linux.  To do this, you need to press:

Ctrl + Alt + PrtSc (SysRq) + reisub

Just to make it clear. You need to press and hold Ctrl, Alt and PrtSc(SysRq) buttons, and while holding them, you need to press r, e, i, s, u, b

This will restart your Linux safely.

It’s possible that you’ll have problem to reach all the buttons you need to press. I’ve seen people type reisub with their nose 🙂

So, here’s my suggestion: With your smallest finger on the left hand, press Ctrl. With your thumb on left hand, press Alt. With the smallest finger on your right hand press PrtSc(SysRq) button. This way, you’ll be able to access to reisub buttons with your other fingers.

Okay, but what this REISUB means?

  • R: Switch the keyboard from raw mode to XLATE mode
  • E: Send the SIGTERM signal to all processes except init
  • I: Send the SIGKILL signal to all processes except init
  • S: Sync all mounted filesystems
  • U: Remount all mounted filesystems in read-only mode
  • B: Immediately reboot the system, without unmounting partitions or syncing

You can find the complete list here. There you can see that o shuts down the system. So, if you want to turn off your PC when your Linux crash, you can use this combination:

Ctrl + Alt + PrtSc (SysRq) + reisuo

Do you know what is “The Deep Web”? I’m sure you’ll love it ;-)

What we commonly call the Web is really just the surface. Beneath that is a vast, mostly uncharted ocean called the Deep Web (See Image).

By its very nature, the size of the Deep Web is difficult to calculate. But top university researchers say the Web you know — Facebook, Wikipedia, news — makes up less than 1% of the entire World Wide Web.

When you surf the Web, you really are just floating at the surface. Dive below and there are tens of trillions of pages — an unfathomable number — that most people have never seen. They include everything from boring statistics to human body parts for sale (illegally).

Shopping for LSD and AK-47s online (Click here)

Though the Deep Web is little understood, the concept is quite simple. Think about it in terms of search engines. To give you results, Google, Yahoo and Microsoft’s Bing constantly index pages. They do that by following the links between sites, crawling the Web’s threads like a spider. But that only lets them gather static pages, like the one you’re on right now.

What they don’t capture are dynamic pages, like the ones that get generated when you ask an online database a question. Consider the results from a query on the Census Bureau site.

“When the web crawler arrives at a [database], it typically cannot follow links into the deeper content behind the search box,” said Nigel Hamilton, who ran Turbo10, a now-defunct search engine that explored the Deep Web.

Google and others also don’t capture pages behind private networks or standalone pages that connect to nothing at all. These are all part of the Deep Web.

So, what’s down there? It depends on where you look.

The vast majority of the Deep Web holds pages with valuable information. A report in 2001 — the best to date — estimates 54% of websites are databases. Among the world’s largest are the U.S. National Oceanic and Atmospheric AdministrationNASA, thePatent and Trademark Office and the Securities and Exchange Commission’s EDGAR search system — all of which are public. The next batch has pages kept private by companies that charge a fee to see them, like the government documents on LexisNexis and Westlaw or the academic journals on Elsevier.

Another 13% of pages lie hidden because they’re only found on an Intranet. These internal networks — say, at corporations or universities — have access to message boards, personnel files or industrial control panels that can flip a light switch or shut down a power plant.

Then there’s Tor, the darkest corner of the Internet. It’s a collection of secret websites (ending in .onion) that require special software to access them. People use Tor so that their Web activity can’t be traced — it runs on a relay system that bounces signals among different Tor-enabled computers around the world.

It first debuted as The Onion Routing project in 2002, made by the U.S. Naval Research Laboratory as a method for communicating online anonymously. Some use it for sensitive communications, including political dissent. But in the last decade, it’s also become a hub for black markets that sell or distribute drugs (think Silk Road [Pic]), stolen credit cards, illegal pornography, pirated media and more. You can even hire assassins.

While the Deep Web stays mostly hidden from public view, it is growing in economic importance. Whatever search engine can accurately and quickly comb the full Web could be useful for Big Data collection — particularly for researchers of climate, finance or government records.

Stanford, for example, has built a prototype engine called the Hidden Web Exposer, HiWE. Others that are publicly accessible are InfopleasePubMed and the University of California’s Infomine.

And if you’re really brave, download the Tor browser bundle. But, surf responsiblyTo top of page

 

DeepWeb

Add Your Own Page Load Progress Bar With Pace.Js

For some users, a progress bar can be a very useful thing. It informs them of how much closer they are to completing tasks. Normally, this is used to give a more user-friendly experience. When you open a webpage on your favourite browser, there is already a default progress bar in the browser tab to see if the page is completely loaded.

With Pace.js, you can now incorporate the page load progress bar into your own page.

Pace.js is a jQuery plugin to create a beautiful page load progress bar in a website. The progress is established automatically by inspecting ajax requests, document ready state, event loop lag (showing that javascript is being executed) and the existence of specific elements on a page.

When an ajax navigation or a pushState event takes place, the progress bar will also be restarted again.

Getting Started

Pace.js is very easy to implement. It can be used even without having jQuery library in your site. You just need to incorporate pace.js and a CSS theme of your choice as early as possible into your document:

  1. <head>
  2.   <script src=”../pace.js”></script>
  3.   <link href=”../themes/pace-theme-corner-indicator.css” rel=”stylesheet” />
  4. </head>

That’s it! You’re done and your site now has a beautiful page loading progress bar.

Configuration

Substance wise, there’s no need for additional configuration as Pace.js comes with full automation. But if the default setting doesn’t meet your needs, you can use your own configuration as well.

To customize further, there are two simple methods you can choose. First, by including configuration inside window.paceOption like the following.

  1. <script>
  2. paceOptions = {
  3.   // Configuration goes here. Example:
  4.   elements: false,
  5.   restartOnPushState: false,
  6.   restartOnRequestAfter: false
  7. }
  8. </script>

A second method is where you can easily add data-pace-options inside a script tag then define the configuration and call the pace.js resource like so.

  1. <script data-pace-options='{ “ajax”: false }’ src=’pace.js’></script>

You can find the complete list of available configurations you can use in the source page.

Final Thought

This plugin comes with a bunch of ready-to-use themes. To see the full list and demo of the themes, you can head on over to the plugin site. If those themes don’t suit you, you can easily create your own. With the help of a plugin like Pace.js, now you don’t have to worry about difficulties in implementing a loading page progress bar into your site.

Dreaming in Code

I found this interesting to read… A small excerpt…

In June of this year, the World Cup in Brazil will begin not with a flashy musical number or a team of flying acrobats but with a simple scientific demonstration. A paralyzed teenager will make the ceremonial first kick. This feat will be accomplished through an “exoskeleton” directly controlled by the teenager’s thoughts and read through a helmet-mounted EEG machine. That kick, guided by an extraordinary brain-to-machine interface, may be our initiation into our post-human future. In that brave new world our memories will be recorded and swapped like old videotapes, self-aware robots will be our companions, and our consciousness, downloaded onto machines, will live forever. It’s a future Michio Kaku, the string theorist turned popular scientist, believes is inevitable and closer than we think.

Read More…

Bonus..

29 Incredible Colorized Historical Photos. Number 8 Is Terrifying.

Awesome trick to validate Email Address in C# .Net (without Regular Expression)

 

Holla,

Recently I came across this fine, precise, code by Rion Williams, to check and validate an Email Address.
The code uses System.Net.Mail Namespace to check email address and returns True/False.

Very Effective and Easy!

Source Link

bool IsValidEmail(string email)
{
    try {
        var addr = new System.Net.Mail.MailAddress(email);
        return true;
    }
    catch {
        return false;
    }
}

Please feel free to share your thoughts, Or similar code you’ve encountered recently in Comment section.

India: Now Call to any Mobile for free with no internet plan!!

FreeKall-624x351

For those who have been using smartphones, making calls over the internet, through services like Skype and Viber are not unfamiliar territory. But now a Bangalore-based startup FreeKall has brought the same to feature phones with no internet connection.

The idea for FreeKall came about in the dormitories of M S Ramaiah Institute of Technology in Bangalore. “The response has been phenomenal. Our servers crashed about seven times and we had to bring it back up,” Yashas Shekar, the 23-year-old co-founder told Economic Times. Shekar cofounded the company with college-mates Vijayakumar Umaluti and Sandesh Eshwarappa, and FreeKall was launched last week. It’s still in beta, but around four lakh calls have been made so far using the service.

The concept is quite simple and easy for anyone to understand, which could be the key to its success. To make a FreeKall, all you have to do is dial 080-67683693, which connects you to the cloud-powered service. The call is disconnected after just one ring, but the user will receive a call back from the system. Here they can input the number they wish to call and the system will connect it. It’s very much like a trunk call service, but for the internet age. The amazing part is you don’t need an internet-enabled handset to make a FreeKall.

But it’s a business after all and even free services need to support the business. Freekall has tied-up with Streetsmart Media Solutions for this. The service will play ads instead of the dial tone and also interrupts the call every two minutes so both speakers can listen to ads. If you have not registered, you can make a FreeKall for up to three minutes, while for those who have signed up, the calls can last up to 12 minutes. The company plans to remove these restrictions soon and will also be introducing international calls soon.

The ET report states that FreeKall aims to enable 10 million calls a day in India and expects to make $30 million by the end of next year. The company raised Rs 10 lakh in seed capital from Ranjith Cherickel, a telecom professional with experience in the field and is planning to take FreeKall international, starting with Africa. “I expect them to expand internationally in less than a year. This will work well in developing countries and potentially in high-tariff developed markets,” Cherickel was quoted as saying by the report.

While call costs have come down in India over the past few years, there are still markets where calling over a cellular connection is significantly more expensive than in India. Here is where FreeKall can make an impact.

FreeKall is targetted at feature phone users and those who are on a pre-paid plan. However, as we all know feature phone adoption has fallen dramatically in the face of smartphones that can be bought for under Rs 5,000. While FreeKall is no doubt a big deal for feature phone users, it is just another app for smartphone users. Here, the extra step of dialling a number is an entry barrier, which is what apps like Viber and Skype aim to remove. So while the initial success has to be congratulated, FreeKall has its work cut out when it comes to the smartphone battleground.

Source Link ^^