Category Archives: Homeschool

PHP Arrays

Arrays are sets of data; can be defined in a PHP Script. Arrays can contain other arrays inside them without any restriction, hence building multidimensional arrays. Arrays can be referred to as tables or hashes.

You can create Arrays in two different ways. The first involves using the function array. The second involves using square brackets.

First is The Array Function Method

In the array function method you create a array in the scheme of:

$foo = bar()

For example, to set the array up to make the keys sequential numbers (Example: “0, 1, 2, 3”), use:

$foobar = array($foo, $bar);

This would produce the array as follows:

$foobar[0] = $foo
$foobar[1] = $bar

It is also possible to define the key value:

$foobar = array(‘foo’ => $foo, ‘bar’ => $bar);

This would set the array as follows:

$foobar[‘foo’] = $foo
$foobar[‘bar’] = $bar

And,

Second is The Square Brackets Method

The square brackets method allows you to set up by directly setting the values.

For example:

To make $foobar[1] = $foo, what you should do is:

$foobar[1] = $foo;

The same applies for setting up the key value:

$foobar[‘foo’] = $foo;

Other Array Lessons:

Surf The Web From Keyboard Without Using Mouse

DeadMouse, a Google Chrome extension lets you to follow webpage links directly from keyboard without using mouse.

If you want to check it live then click here

Features:

  • Follow any link by typing
  • Fuzzy-matching on link text
  • Press Enter to follow the link
  • Tab-cycle through multiple matches
  • Shift+Enter to open link in a new tab

Download:

 Note: If you don’t use this extension then also you can visit any web page by typing and pressing enter after you open Google Chrome or its new tab.

Use tab (keyboard key) for moving your selection to various links, enter for opening them and shift + enter for opening them in a new tab.

Google Maps Now Comes In 22 American Museums

Google maps are becoming prevalent to Cultural places. There are 22 museums using Google Maps:

  • The de Young in San Francisco
  • The Philadelphia Museum of Art
  • Cincinnati Museum Center
  • The Indianapolis Museum of Art
  • The American Museum of Natural History
  • Smithsonian museums

And 17 largest museum complex all over the world, consisting of 19 buildings, one national Zoo, galleries and outside Washington it will be visible on Android machines. The number of extensions of maps on the mobile system of Big G touches it the target of 10 000. The art pieces are tens of millions.

Kubuntu Office Suites

LibreOffice is GPL-licensed free and open source office suite , with Writer, Impress, Calc spreadsheet, Base relational database frontend
Install using sudo apt-get install libreoffice-kde

Open Office was installed by default in older versions of (K)Ubuntu. It has been replaced by LibreOffice (which is similar) and is no longer available in (K)Ubuntu.

KOffice suite is part of the KDE project and provides capabilities of OpenOffice suite without the licensing restrictions of OpenOffice. It can be used in any version of (K)Ubuntu. Install using: sudo apt-get install koffice

AbiWord is a fast, collaboration-enabled word processor. For the most current version see the AbiWord web site. For install from repositories: sudo apt-get install abiword

GoldenDict is multi-lingual dictionary and translator that supports Babylon and StarDict translation dictionary files and has multiple modular plugins. Install using: sudo apt-get install goldendict

Xournal is a free (GPL-licensed) GTK/Gnome-based application for notetaking, sketching, or keeping a journal using a stylus. Install using( Remember: universe repositories must be enabled): sudo apt-get install xournal

Introducing Mozilla Persona An Identity System For The Web

Mozilla Introduced Mozilla Persona An Identity System For The Web with three newly updated features:

A Better Way To Sign In:  Improved way of signing in to your websites. Instead of managing multiple usernames and passwords across your favorite sites and devices, you get more time to do the useful stuff.

You Own Your Data: Many sign-ins carry your profile data and some even share that info with other sites and social networks. Persona lets you get started with only your email address and you get the option to add profile data later on where you think it’s appropriate.

Ease for publishers: Enabling Browser ID, the underlying Persona technology, on your site only takes a few lines of code and helps build good relationships by providing users with a trusted sign-in option.

You may also try it yourself, visit here.

Also Check Personas Themes in Firefox here.

Facebook Groups Start Showing Who Saw Each Post

Yesterday Facebook introduced a new group feature on Facebook’s Newsroom. Facebook groups are the places for similar interests, activities, ideas where your are free to share things with the people having common interest on a particular subject. You can join a group to get connected with the communities, organisations etc.

Now when you visit any group  you can view who’s seen each post and you can easily get updated with the group’s ongoing activity. Like in Open Source Council (a Facebook group) if you share a link or may be your blog post then you will see who got its update.

Get Twitter Service Updates Through Its Different Accounts

@twitter: Always wondering what’s happening.

@twitterapi: The Real Twitter API. I tweet about API changes, service issues and happily answer questions about Twitter and our API. Don’t get an answer? It’s on my website.

@twittermobile: To get Mobile Updates

@spam: Suspect Twitter spam? Let us know (http://bit.ly/Tweport)! Follow @spam & @safety for helpful info, and check out our favorite tips: http://bit.ly/spamfav

@feedback: Collecting ideas and feature requests! We can’t reply to everyone but we do actively read your @mentions!

@support: Updates from Twitter User Support. We’re unable to assist with account suspension/verification.

@safety: Twitter’s Trust and Safety Updates! Twitter HQ · http://help.twitter.com/forums/10711/entries/76036 

@fledgling:A Twitter wine project that promotes literacy around the world. San Francisco · http://www.fledglingwine.com

@hope140: Now @TwitterGood Highlighting forces of good in the Twitter community.

@twitterbusiness: Twitter for your business, community group, government organization or school

@twitterads: We tweet for brands. San Francisco, CA · http://advertising.twitter.com

@twittercomms: Talking to everyone, all at once! · http://blog.twitter.com/

@twitterSF: San Francisco born and bred. Looking to make a positive impact on our hometown.

@mobilesupport: Updates from Twitter Mobile Support. · http://support.twitter.com/groups/34-mobile

@twi: The official Twitter India account

@twitter_kr: 트위터 관련 다양한 소식을 전해드리는 공식 트위터 대한민국 계정입니다! 대한민국 · http://blog.kr.twitter.com/

@twitter_es: ¡Bienvenidos a la cuenta oficial de Twitter en español! ¿Eres nuevo? Empieza aquí https://twitter.com/#!/welcome San Francisco, CA · http://blog.es.twitter.com

@twitter_fr: Bienvenue au compte officiel de Twitter en France ! Pour plus d’infos rendez-vous sur http://blog.fr.twitter.com ! San Francisco CA · https://twitter.com/welcome

@twitter_de: Der offizielle deutsche Twitter Account!———http://blog.de.twitter.com Bei Support-Fragen findet ihr Antworten unter https://support.twitter.com/forms

@twitter_pt: Bem-Vindos à conta oficial do Twitter em português!http://blog.pt.twitter.com/

@twitter-ru: Приветствуем вас на официальной учётной записи Твиттера на русском языке! Сан-Франциско, Калифорния

@twitter-tr: Twitter Türkçe resmi hesabı http://blog.tr.twitter.com

@twitter_twj: 日本語版Twitter公式アカウントです。東京 · http://blog.jp.twitter.com

@twittermedia: Tracking cool, meaningful uses of Tweets in media, tv, sports, entertainment and journalism. Send us tips! San Francisco ·  http://media.twitter.com

@jointheflock: Twitter Recruiting: All the deets about who we’re hiring, what we’re doing and why you should come and work here! Check out www.twitter.com/jobs for more. San Francisco, CA · http://www.youtube.com/watch?v=vccZkELgEsU

@gov: Updates from the Twitter Government & Politics team, tracking creative & effective uses of Twitter for civic engagement. RTs & examples≠political endorsements.

Ubuntu Linux System Backup Tools

Rsync

Rsync is the directory backup and transfer tool for Linux. Installed as default in Ubuntu. It can provide any type of backup, and options are extensive.

GRsync

GRsync is a GTK-based GUI  for Rsync. Install this by following command:

sudo apt-get install grsync

Bacula

Bacula is the most widely-used GTK-based open source (GPL-licensed) network backup utility that is used in both server and desktop installations. A catalogue of backups can be maintained using MySQL, PostgreSQL, or SQLite. For more info see the Ubuntu documentation. Both text-based and GUI frontends are available. Install the MySQL version:

sudo apt-get install bacula

SBackup

SBackup is a common backup and restore utility for the GTK-desktop. Install using following command:

sudo apt-get install sbackup

Creating WordPress Multisite Network

    • Install WordPress
    • Add the following line just above /* That’s all, stop editing! Happy blogging. */
    • define(‘WP_ALLOW_MULTISITE’, true);
    • Last step enables the Network Setup item in your Tools menu.
    • Go to Dashboard => Tools => Network Setup.
    • Do as directed. It will ask you to choose from the following two network options:
  • Sub-domains — a sub-domain based network in which sub-sites use subdomains. Example: http://lamp.sangkrit.net
  • Sub-directories — a path-based network in which sub-sites use directory path. Example: https://sangkrit.net/lamp
    • If you choose sub-domain network option then you will need to generate wild card from your c-panel check this tutorial: Subdomain Network: Adding A Wild-Card DNS In DNS Server
    • Network details get filled in automatically but you are free to make changes:
  • Server Address: The domain of the URL to access your WordPress installation.
  • Network Title: The title of your multisite network.
  • Admin E-mail:  Super admin’s email address for whole network.
  • Click the Install button.
  • Follow on screen instructions.  It provides you with cold blocks to add on your site’s wp-config.php and .htaccess files and prompts you to create a directory:
  • Create a directory for media file uploads. Directory should be writable by webserver.
  • Add the specified lines to your wp-config.php file
  • Add the specified lines to your .htaccess file
    If you do not have a .htaccess file, then create it in root directory.
  • Clear your browser’s cache and login to your site.
  • From your Dashboard at the top left corner you will see My Sites menu. Now you may visit your Network Administration from My Sites => Network Admin => Dashboard.

Google+ iPad App Is Now Available

Google+ new app for iPad is now available at iTunes App Store. Today Google announced this app’s release on its blog.

The best feature of this app is  Google+ “Hangouts”. Using this app one can start video chat with up to 9 friends anywhere, anytime. You may turn on ringing notifications to make your friends know about the Hangout. Google recently launched events feature on Google Plus, using this app you can manage them right from your iPhone.

Introducing New Features of this App. Google writes:

The Google+ app for iPad was designed with the device in mind. Your stream styles content based on popularity, type and orientation. We’ve also added unique ways to interact with the app—lean back and try these out:

  • Pinch and expand posts right in your stream to add your comments
  • Use two fingers to drag a post from your stream to easily re-share it
  • Start a Hangout from your iPad and stream it to your TV using AirPlay

Setting Up Linux Media Server And Sharing Files Between Multiple Linux Machines

You can connect your multiple machines for sharing multimedia files through a centralized web server. In this tutorial you will learn how to set up Firefly Media Server on Ubuntu Server.

What is Firefly Media Server?

Firefly Media Server (formerly mt-daapd) is an free and open-source media server or daemon for the Roku SoundBridge and iTunes. It serves media files using Roku Server Protocol (RSP) and Digital Audio Access Protocol (DAAP).

Features of Firefly Media Server

  • Support for running on Unix/POSIX platforms
  • Support for running on Microsoft Windows and Mac OS X
  • Support for running on the Apple Inc. iPhone and iPod touch
  • Support for MP3, AAC, Ogg, FLAC, and WMA
  • Support for Roku SoundBridge via RSP
  • Support for on-the-fly transcoding of Ogg, FLAC, ALAC, and WMA
  • On Windows platforms, on-the-fly transcoding of WMA Lossless, WMA Pro and WMA Voice.
  • Web-based configuration
  • Support for user-created smart playlists
  • Integration with iTunes library including reading playlists
  • Supports serving streaming radio stations

Installing Firefly Media Server

Since we are installing on a Ubuntu Server, the installation is simple:

  • Open Linux terminal
  • Run the command sudo apt-get install mt-daap
  • Enter the user password

Configuration

Open configuration file and look for this line:

mp3_dir = /home/media/music

In this line you need to change to reflect the directory from where you will serve your media.

Here I created a new sub-directory in /opt called music.  Perform this action by this command:

sudo mkdir /opt/media

Now make that directory DAAP server readable by using this command:

sudo chmod ug+r -R /opt/media

Other than this there are many more options available in the configuration file like server name, password protection, port, extensions, codec types and many more. Few options are described below:

  • Servername: Name your DAAP server will broadcast. Default is Firefly RELEASE_NUMBER HOSTNAME.
  • Password Protection: Limit access of users to the DAAP server.
  • Port: You may use a port other than the default (3689).
  • Extensions: The file types to be served by DAAP server.
  • Valid Codectypes: Configurations for the format conversion.

Starting Daemon

Complete configuration file, go ahead and move your media files into the directory and start the server using this command:

sudo /etc/init.d/mt-daap start

With this running server you can fire up a DAAP enabled client, just like iTunes or Songbird. DAAP server installation is good for small internal network where you can share multimedia files. It requires a running Linux server.

Migrating Multiple Blogs To WordPress Multisite

  • Export content of your existing WordPress installations from Dashboard=> Tools=> Export
  • Install WordPress
  • Activate Multisite by adding define(‘WP_ALLOW_MULTISITE’, true); in your wp-config.php
  • Open Dashboard of your new WordPress installation.
  • Open Tool=> Network Setup from Dashboard and do as directed.
  • Create blog for each site you like to import.
  • Import each site’s content you exported from old installations from Dashboard=> Tools=> Import
  • Install all themes and plugins of your old site if you like and network activate them.
  • If your old installations have their own domain names then Map domains to your main site using MU Domain Mapping

Embedding RSS Feed In Your WordPress Posts And Pages

Open Your themes function.php and add the following code at the bottom:

include_once(ABSPATH.WPINC.’/rss.php’);

function readRss($atts) {
extract(shortcode_atts(array(
“feed” => ‘http://‘,
“num” => ‘1’,
), $atts));

return wp_rss($feed, $num);
}

add_shortcode(‘rss’, ‘readRss’);

Save function.php and whenever you need to embed RSS in any of your post or page write the following short code inside your post:

[ rss feed=”https://sangkrit.net/feed” num=”5″ ]

In the above give short code replace https://sangkrit.net/feed with your feed address and in num=5 replace 5 with the number of posts you like to show.

Note: Remember there is no space between [ and rss feed and num=”5″  and  so after you copy the short code; check the space, remove it (if there is some space) and then publish it.

Network Monitoring With Etherape

EtherApe is a graphical utility that allows you to see in real-time where connections are being made on your network, or between your network or computer and the Internet. If you are experiencing unexpected network activity on your computer or LAN and wish to see where the activity is occurring. Both “local” user and “root user” installations are created; in general you must use the root user installation to see all your network traffic.

sudo apt-get install etherape

Features:

  • Network traffic is displayed graphically. The more “talkative” a node is, the bigger its representation.
  • Node and link color shows the most used protocol.
  • User may select what level of the protocol stack to concentrate on.
  • You may either look at traffic within your network, end to end IP, or even port to port TCP.
  • Data can be captured “off the wire” from a live network connection, or read from a tcpdump capture file.
  • Live data can be read from ethernet, FDDI, PPP, SLIP and WLAN interfaces, plus several other incapsulated formats (e.g. Linux cooked, PPI).
  • The following frame and packet types are currently supported: ETH_II, 802.2, 803.3, IP, IPv6, ARP, X25L3, REVARP, ATALK, AARP, IPX, VINES, TRAIN, LOOP, VLAN, ICMP, IGMP, GGP, IPIP, TCP, EGP, PUP, UDP, IDP, TP, ROUTING, RSVP, GRE, ESP, AH, EON, VINES, EIGRP, OSPF, ENCAP, PIM, IPCOMP, VRRP; and most TCP and UDP services, like TELNET, FTP, HTTP, POP3, NNTP, NETBIOS, IRC, DOMAIN, SNMP, etc.
  • Data display can be refined using a network filter using pcap syntax.
  • Display averaging and node persistence times are fully configurable.
  • Name resolution is done using standard libc functions, thus supporting DNS, hosts file, etc.
  • Clicking on a node/link opens a detail dialog showing protocol breakdown and other traffic statistics.
  • Protocol summary dialog shows global traffic statistics by protocol.
  • Node summary dialog shows traffic statistics by node.
  • Node statistics export to XML file.
  • Scrollkeeper/rarian-compatible manual integrated with yelp.

Don’t Buy Leon Max Lederman’s Book, “The God Particle: If the Universe Is the Answer, What Is the Question?”

People outside the scientific community call Higgs Boson as God Particle due to Leon Lederman’s book The God Particle where he calls Higgs Boson a God Particle. Nobody knows why this Nobel prize winner has done such an idiotic thing but it seems like Leon M. Lederman was more interested in the promotion of his book rather than  explaining particle physics.

Although he explains his ploy by saying that he gave Higgs Boson the nickname “God Particle”  for this, this and this reason but what you see on the cover is misleading language of  Leon M. Lederman with Dick Teresi.

Don’t Buy Samsung Galaxy

Galaxy S III owners have already complained that they are unable to hear the person on the other side of the connection due to malfunctioning of  microphone, around 30% of users are having battery problem (Check Here). 

Top 5 Problems In Samsung Galaxy SIII:

  1. Microphone Malfunction – 50%
  2. Battery Life – 15%
  3. Device Gets Hot – 15%
  4. Internet Connection Issues – 10%
  5. Other – 10%

Read “Samsung Galaxy S III top 5 issues revealed” by NDTV

Read “Samsung Galaxy S3, iPhone problems revealed by huge survey

Following are the complain lists made by Samsung Mobile Customers from India. There are two links, first link gives complain record from 2008 to 2010 and the second link from 2010 to 2012:

I have already changed my mind from New Samsung Galaxy Note Sporting 5.5 Inch Screen to Nexus 7 .

Tips For Successful WordPress Site Submission To Search Engine

  1. You can submit your site to search engines through many resources. You may do so manually. Whatever method you choose search engine welcomes the site if your content is good.
  2. Search engine scans all content whenever a site is submitted. So be sure about content, it should be there in your site.
  3. Your site should have at least 9 posts so that search engine can get something to examine and evaluate.
  4. Never submit your site to same search engine more than once a month. Never let a search engine note your anxiousness.
  5. Always be ready to copy-paste or write a brief description of your site in about 200 words.
  6. Submit those categories that belong to search engine’s directory.
  7. Keep a list of your website’s various “addresses/URLs” .
  8. You can submit your site’s root directory,  various categories and feeds to search engines. This expands your search coverage.
  9. Keep a track of what you have submitted and when to avoid random re submission.

WordPress Blogging From Android, iOS, BlackBerry, Nokia, WebOS

Making your website’s theme mobile compatible or installing any mobile theme for your WordPress site is good but you can also choose from different mobile apps available for WordPress blogging through smartphone.

WordPress for Android

You can use this for publishing new posts to your blog, responding to comments, getting notified and much more from you Android machine.

Website | Download

WordPress for iOS

iOS app lets you write posts, upload photos, edit pages, and manage comments on your blog from your iPhone, iPad, or iPod touch.

Website | Download

WordPress for BlackBerry

Post to your WordPress blog from your BlackBerry. Manage comments and media, upload videos and more with this BlackBerry native app.

Website | Download

WordPress for Nokia

Nokia app allows you to edit your existing blog content, add new posts and pages, manage comments, and more — directly from your S60 or Maemo-powered Nokia device.

Website | Download

WordPress for WebOS

WebOS represents a different way to blog. It uses Sliding Panels that makes managing existing content on your blog intuitive and powerful.  You can use visual editor for posting content to your blog.

Website | Download

Brief History Of The Universe, The Big Bang

1. The Planck time: 10-43 seconds. After this time gravity can be considered to be a classical background in which particles and fields evolve following quantum mechanics. A region about 10-33 cm across is homogeneous and isotropic, The temperature is T=1032K.

2. Inflation begins. In Linde’s chaotic inflation model inflation starts at the Planck time, although it could start when the temperature falls to point at which the symmetry of Grand Unified Theory (GUT) is spontaneously broken. This occurs when the temperature is around 1027 to 1028K at 10-35 seconds after the Big Bang.

3. Inflation ends. The time is 10-33 seconds, the temperature is again 1027 to 1028K as the vacuum energy density that drove inflation is converted into heat. At the end of inflation the expansion rate is so fast that the apparent age of the Universe [1/H] is only 10-35 seconds. Because of inflation, the homogeneous regions from the Planck time are at least 100 cm across, a growth by a factor greater than 1035 since the Planck time. However, quantum fluctuations during inflation also create a pattern of low amplitude inhomogeneities with a random pattern having equal power on all scale

4. Baryogenesis: a small difference between the reaction rates for matter and antimatter leads to a mix with about 100,000,001 protons for every 100,000,000 antiprotons (and 100,000,000 photons).

5. Universe grows and cools until 0.0001 seconds after the Big Bang with temperature about T=1013 K. Antiprotons annihilate with protons leaving only matter, but with a very large number of photons per surviving proton and neutron.

6. Universe grows and cools until 1 second after the Big Bang, with temperature T=1010 K. The weak interaction freezes out with a proton/neutron ratio of about 6. The homogeneous patch is now at least 1019.5 cm across.

7. Universe grows and cools until 100 seconds after the Big Bang. The temperature is 1 billion degrees, 109 K. Electrons and positrons annihilate to make more photons, while protons and neutrons combine to make deuterons. Almost all of the deuterons combine to make helium. The final result is about 3/4 hydrogen, 1/4 helium by mass; deuteron/proton ratio 30 parts per million. There are about 2 billion photons per proton or neutron.

8. One month after the Big Bang the processes that convert the radiation field to a blackbody spectrum become slower than the expansion of the Universe, so the spectrum of the Cosmic Microwave Background (CMB) preserves information back to this time.

9. Matter density equals radiation density 56,000 years after the Big Bang. The temperature is 9000 K. Dark matter inhomogeneities can start to collapse.

10. Protons and electrons combine to form neutral hydrogen. Universe becomes transparent. Temperature is T=3000 K, time is 380,000 years after the Big Bang. Ordinary matter can now fall into the dark matter clumps. The CMB travels freely from this time until now, so the CMB anisotropy gives a picture of the Universe at this time.

11. The first stars form 100-200 million years after the Big Bang, and reionize the Universe.

12. The first supernovae explode and spread carbon, nitrogen, oxygen, silicon, magnesium, iron, and so on up through uranium throughout the Universe.

13. Galaxies form as many clumps of dark matter, stars and gas merge together.

14. Clusters of galaxies form.

15. The Solar System and Sun form 4.6 billion years ago.

16. Now The time is 13.7 Gyr after the Big Bang, and the temperature is T=2.725 K. The homogeneous patch is at least 1029 cm across, which is larger than observable Universe.

Twitter Introduced Search Autocomplete And Search Within People You Follow

Twitter has introduced new search features.

  • Search Autocomplete And
  • Search Within People You Follow

In addition to recent updates to searching feature these two new features would be making twitter search more complete by putting you closer to what you are looking for.

Search Autocomplete displays a dropdown set of like keywords while you enter them in the search box. It is more useful if you are searching any topic with hash-tag.

Following list gives a brief introduction to new features. List was released by Twitter with its new search update:

  • Spelling corrections: If you misspell a term, we’ll automatically show results for your intended query.
  • Related suggestions: If you search for a topic for which people use multiple terms, we will provide relevant suggestions for terms where the majority of that conversation is happening on Twitter.
  • Results with real names and usernames: When you search for a name like ‘Jeremy Lin,’ you’ll see results mentioning that person’s real name and their Twitter account username.
  • Results from people you follow: In addition to seeing ‘All’ or ‘Top’ Tweets for your search, you can also now see Tweets about a given topic from only the people you follow when you select the ‘People you follow’ view. Viewing Tweets about a topic from just the people you follow is a great way to find useful information and join the conversation.

Here are some tweets showing how people reacted on this new feature:

Features of related search suggestions, search autocomplete and spelling corrections are also available in Twitter for iPhone and Android.