9 December 2014

Find rank of matrix using SR modulus Method

Find rank of matrix using SR modulus Method:
In engineering mathematics it is not easy to find rank of matrices. SR Modulus method give us flexibility and  easy way to find rank of matrices. This method is working under the project “LOCO POCO SOCO”, developing by S.K. Chakravarti since 2009.
SR Modulus method:
If a matrix A= , then find the prime modulus of matrix A.
B=A%(Prime Number P)
Let prime number be 2. Then matrix B will be
B=
Apply elementary row and column elimination. Try to do (n-1) elements of  any one row or column of matrix B to be 0.
If Maximum elements are in the form of 2n,3n,5n,7n…..,  then take prime number P as upper prime.
Apply these Modulus and elimination till every elements gets  {-1,0,1}.
Rank(A)=Number of none zero rows or columns of matrix B.

Example:
Given that a 3x3 matrix A=. Find the Rank of matrix A.
Solution:
Applying modulus 2, then B=A%2.
B=~~
Number of none zero rows or column = 2
Hence, Rank(A)=2    ANS.
If you have any problem regard this you can contact me via comments are email.




Read More...

All the Wget Commands You Should Know:Downloader

How do I download an entire website for offline viewing? How do I save all the MP3s from a website to a folder on my computer? How do I download files that are behind a login page? How do I build a mini-version of Google?
Wget is a free utility – available for Mac, Windows and Linux (included) – that can help you accomplish all this and more. What makes it different from most download managers is that wget can follow the HTML links on a web page and recursively download the files. It is the same tool that a soldier had used to download thousands of secret documents from the US army’s Intranet that were later published on the Wikileaks website.


Spider Websites with Wget – 20 Practical Examples
Wget is extremely powerful, but like with most other command line programs, the plethora of options it supports can be intimidating to new users. Thus what we have here are a collection of wget commands that you can use to accomplish common tasks from downloading single files to mirroring entire websites. It will help if you can read through the wget manual but for the busy souls, these commands are ready to execute.
1. Download a single file from the Internet
wget http://example.com/file.iso
2. Download a file but save it locally under a different name
wget ‐‐output-document=filename.html example.com
3. Download a file and save it in a specific folder
wget ‐‐directory-prefix=folder/subfolder example.com
4. Resume an interrupted download previously started by wget itself
wget ‐‐continue example.com/big.file.iso
5. Download a file but only if the version on server is newer than your local copy
wget ‐‐continue ‐‐timestamping wordpress.org/latest.zip
6. Download multiple URLs with wget. Put the list of URLs in another text file on separate lines and pass it to wget.
wget ‐‐input list-of-file-urls.txt
7. Download a list of sequentially numbered files from a server
wget http://example.com/images/{1..20}.jpg
8. Download a web page with all assets – like stylesheets and inline images – that are required to properly display the web page offline.
wget ‐‐page-requisites ‐‐span-hosts ‐‐convert-links ‐‐adjust-extension http://example.com/dir/file
Mirror websites with Wget
9. Download an entire website including all the linked pages and files
wget ‐‐execute robots=off ‐‐recursive ‐‐no-parent ‐‐continue ‐‐no-clobber http://example.com/
10. Download all the MP3 files from a sub directory
wget ‐‐level=1 ‐‐recursive ‐‐no-parent ‐‐accept mp3,MP3 http://example.com/mp3/
11. Download all images from a website in a common folder
wget ‐‐directory-prefix=files/pictures ‐‐no-directories ‐‐recursive ‐‐no-clobber ‐‐accept jpg,gif,png,jpeg http://example.com/images/
12. Download the PDF documents from a website through recursion but stay within specific domains.
wget ‐‐mirror ‐‐domains=abc.com,files.abc.com,docs.abc.com ‐‐accept=pdf http://abc.com/
13. Download all files from a website but exclude a few directories.
wget ‐‐recursive ‐‐no-clobber ‐‐no-parent ‐‐exclude-directories /forums,/support http://example.com
Wget for Downloading Restricted Content
Wget can be used for downloading content from sites that are behind a login screen or ones that check for the HTTP referer and the User Agent strings of the bot to prevent screen scraping.
14. Download files from websites that check the User Agent and the HTTP Referer
wget ‐‐refer=http://google.com ‐‐user-agent=”Mozilla/5.0 Firefox/4.0.1″ http://nytimes.com
15. Download files from a password protected sites
wget ‐‐http-user=labnol ‐‐http-password=hello123 http://example.com/secret/file.zip
16. Fetch pages that are behind a login page. You need to replace user and password with the actual form fields while the URL should point to the Form Submit (action) page.
wget ‐‐cookies=on ‐‐save-cookies cookies.txt ‐‐keep-session-cookies ‐‐post-data ‘user=labnol&password=123′ http://example.com/login.php
wget ‐‐cookies=on ‐‐load-cookies cookies.txt ‐‐keep-session-cookies http://example.com/paywall
Retrieve File Details with wget
17. Find the size of a file without downloading it (look for Content Length in the response, the size is in bytes)
wget ‐‐spider ‐‐server-response http://example.com/file.iso
18. Download a file and display the content on screen without saving it locally.
wget ‐‐output-document – ‐‐quiet google.com/humans.txt
19. Know the last modified date of a web page (check the Last Modified tag in the HTTP header).
wget ‐‐server-response ‐‐spider http://www.labnol.org/
20. Check the links on your website to ensure that they are working. The spider option will not save the pages locally.
wget ‐‐output-file=logfile.txt ‐‐recursive ‐‐spider http://example.com

Wget – How to be nice to the server?

The wget tool is essentially a spider that scrapes / leeches web pages but some web hosts may block these spiders with the robots.txt files. Also, wget will not follow links on web pages that use the rel=nofollow attribute.
You can however force wget to ignore the robots.txt and the nofollow directives by adding the switch ‐‐execute robots=off to all your wget commands. If a web host is blocking wget requests by looking at the User Agent string, you can always fake that with the ‐‐user-agent=Mozilla switch.
The wget command will put additional strain on the site’s server because it will continuously traverse the links and download files. A good scraper would therefore limit the retrieval rate and also include a wait period between consecutive fetch requests to reduce the server load.
wget ‐‐limit-rate=20k ‐‐wait=60 ‐‐random-wait ‐‐mirror example.com
In the above example, we have limited the download bandwidth rate to 20 KB/s and the wget utility will wait anywhere between 30s and 90 seconds before retrieving the next resource.
Finally, a little quiz. What do you think this wget command will do?
wget ‐‐span-hosts ‐‐level=inf ‐‐recursive dmoz.org


Read More...

6 October 2014

The smarter online payment gateway: Google wallet


 -

Get more online e-commerce options out of your wallet on your online WordPress shop. Pay fast. Save smarter. Use the same wallet whether buying in-store or online.
Google Wallet (or Google Checkout) is a service similar to PayPal that allows buying products online via Google account. Online shoppers often use Google for searching of products, which they want to buy and Google Wallet will help to do it.
Integration of Google Wallet is done online and is easy to configure. Benefits of Google Wallet: easy in setup, ready to receive payment at once; guarantees safe money transactions on Google Servers;
enables Google’s users to buy goods at your store; secures your personal data due to strict privacy policy; user-friendly. There is no need to re-enter you account information every time you want to buy something online. Your data is kept in system. Google Wallet charges fee for money transaction, but it is not higher then the other major merchants have. Google Checkout has NO: sign-up fee monthly fee gateway fee
Make sure that you use US Dollars or Pounds because Google Wallet Payment Gateway supports only these two currencies. Otherwise buyers will receive an error when proceeding to Google Wallet from WordPress Shopping Cart

In the settings of the payment system you will see this settings

1
Read More...

2 August 2014

How to Share Files Between Mobile Phones and Computers

Your files are spread across phones, tablets and computers. Find the right apps to transfer files between Windows PCs, Macs, iPhone, iPad and Android devices. 
Your digital photos, documents, music, and other files are spread across a range of devices from your mobile phones to tablets and your computers.For instance, how you do you transfer a file from your Android mobile phone to your iPad? Or how will you send a snippet of text copied on your Windows computer to your iPhone without emailing yourself? What is the quickest way to move multiple files from one Android tablet to anotherShare Files Between Android, iOS, Mac & Windows

The following how-to guide discusses apps, both web-based and mobile apps, that will help you transfer files, photos, web pages and everything else between your desktop computers and mobile devices easily without needing a USB cable.

The popular and most obvious solution for sharing files across devices is email. Send a file to yourself from one device and then download that email attachment on the other device. For bigger files, you can upload them to Dropbox, OneDrive or Google Drive from one device and download on your other device(s). If you are on a Wi-Fi network, prefer Dropbox since it will download the file over LAN instead of the cloud and thus the transfer would happen at a much faster rate.

If you wish to transfer text snippets, web page URLs or even clipboard content from one device to another, Google Keep is a recommended option. You can copy-paste text inside Keep and it instantly becomes available on your Android device. iOS and Mac users can install Scribe or BeamApp to effortlessly copy web page links and text notes from the Mac to your iPhone or iPad.

Like Keep, Push Bullet is another very handy app for sending web pages, map directions, text notes and even small files from your computer to phone, phone to phone or between computers. Push Bullet supports push notifications. It is available for iPhone, Android and desktop computers (as a Chrome add-on) while the iPad version will be available soon.

AirDroid is probably the only app you’ll ever need for moving files in and out of your Android phone and tablet wirelessly. Launch the AirDroid app on your Android, open web.airdroid.com on your desktop browser and scan the QR code to make the connection. Mac can install Droid NAS to access your Android phone’s folders and the SD card inside Finder as a Bonjour computer.

Unlike Android, Apple does not provide access to the iOS file system except for the media gallery. You can use Documents or Good Reader to transfer documents, photos and other files from the computer to your iPad and iPhone (or vice versa) over the local Wi-Fi network. These apps can be mounted as a network drive on your computer and they have a built-in browser to help you download and save web files that won’t download in the Safari browser.

Computer maker Lenovo recently introduced the ShareIt app for sharing files and everything else between your Android, iOS and Windows PCs. The app creates an ad-hoc network for sending files from one device to another and requires no Wi-Fi network, Bluetooth or data connection. The interface is beautiful, uncomplicated and all the recipient has to do is connect their device to the Wi-Fi network created by the app on the sender’s device for transferring files.

The popular JustBeamIt service offers an Android App to help you transfer files from your phone to the computer. Just select a file on the phone inside the JustBeamIt app and it will generate a unique URL. Open this URL on your desktop and the transfer would happen directly between your phone and computer over a P2P connection.

SuperBeam is another useful app for transferring files between Android devices. Select one or more files inside any file manager app and choose SuperBeam from the system-wide sharing menu. It will generate a QR code that you can scan with SuperBeam on your other device and the file transfer will happen automatically. If the two Android devices are not connected to the same Wi-Fi network, SuperBeam will transfer files using Wi-Fi Direct or NFC. The pro version also lets you send files from Android to your Mac, Windows or Linux computer (requires Java).

Any Send also makes it very easy to transfer files or even entire folders between devices over Wi-Fi. It’s more like a cross-platform version of AirDrop. You can copy a file or folder to the clipboard and paste it on your other devices visible inside Any Send. You can share files between Mac and PCs or between your Android phone and desktop computers.

Apple’s AirDrop is the perfect option for transferring files between your Macbook and iMac or between your iPhone and iPad. The upcoming version of AirDrop will also let you send files from Mac to iOS devices but until that happens, you can the free InstaShare app. All you have to do is drag the file from your computer to the target device. It works over Wi-Fi or Bluetooth and, unlike AirDrop, supports older iPhones and Macs as well.

If you need to transfer files between your Android phone and iPhone or iPad, Send Anywhere is a good option. You can send files of any size over peer-to-peer (when the two devices are on the same network) else it uses the cellular connection. All you have to do is pair the two devices by entering a 6-digit key and begin the transfer. They have a web-app as well allowing you to send (or receive) files from the desktop to your iOS or Android device.


Finally, you’ve BitTorrent Sync for automatically syncing folders between Windows, Mac, iPhone, iPad, Windows Phone and Android devices. The transfers do not involve the cloud – you put a file in the folder of one device and it magically appears on all your other devices.

Choose the Right App for Sharing Files

ShareItThe devices are running different operating systems and therefore there’s no starard method that will allow you to easily copy files from one device to another.
Read More...

10 March 2014

How to increase speed of online video


This is normal stuff to play an online video much faster than the normal speed or in slow internet connection. Maximum online video broadcasting channel uses flash player, which is slower than the Html5 video broadcasting. Either, you can use html5 media player or use your own installed media player in PC. Let’s do this stuff using VLC media player, which is more popular media player.
There are same steps to increase speed as:
    1.       Open VLC media player
    2.       Open media->Stream

    3.       Open Network
    4.       Add your online video link(Example of youtube  video link is: http://www.youtube.com/watch?v=bDHFDK3x4Uo)
    5.       Click on Play. Take stream output as stream.
    6.       Now go to Playback->speed->faster. This will boost your speed of arrival frames. 

    7.       Increase speed up to 4.0x.

 you can also play a youtube video on html5:
    1.       Open http://youtube.com/html5
    2.       Do request for it default player.
    3.       Open http://youtube.com , now it will open as html5 player.     



Read More...