Automate generation of _id for array elements in MongoDB

The great MongoDB doesn’t generate _id for array elements automatically unless it’s schema is defined separately. The below is the example to define a separate schema for the subdocuments.

const arrayElementSchema = new mongoose.Schema({...});

const mainDocument = new mongoose.Schema({
  children: [arrayElementSchema]
})

With the above Schema, MongoDB will generate _id for every element you insert into the “children” array.

Having _id for array elements makes it easy to find, delete and update the same. Otherwise, they have to be found by the index which will not be the same as always.

YouTube Capture – A New Mobile App To Capture And Share

YouTube Capture is the new app from YouTube which is currently available only for iOs. The app allows users to Capture, Edit, and Upload Video’s on the go. The app has the access to the local storage and camera which uses camera to capture and you could find the recorded videos from “Photos” app on your device. You could record videos of any length through this App. This App provides you editing options which include Trimming a part of the videos, Rearranging the recorded clips and Adding soundtrack directly from the music collection or from audio library. Continue reading

WordPress || Redirect Non-WWW URL’s to WWW

Redirecting Non-WWW URL’s to WWW became simpler through the wordpress settings. This may be a tiny tip but it’s very much useful. No need of creating or editing “.htacess” or “web.conf” files. You just need to go to your settings page of your wordpress blog. Logon to your wordpress blog and go to the settings page. Here is a screenshot for you.

Before Editing The Url: Continue reading

Awesome Features Of iOs 7

The most awaited Os has been released today and its installation is successful on my iPhone 4S. Today, morning i noticed the packaged update of iOs 7 and iTunes 11.1.It is impossible to connect your iPhone (installed with iOs 7) to iTunes 11.0 and hence you require iTunes 11.1 or higher version. However, the new OS includes many new features including Control Center, AirDrop, Multitasking, and re-modified camera. Take a look at the new features if you haven’t updated to 7th version.

Updated Features:

Capturing A Screen Shot On iPhone 4

Capturing screen on iPhone is as easy as pressing buttons on your phone.  First of all, let me explain about the buttons used to capture a screenshot.

Lock Button (On/Off Button): Lock button is situated on the top right of your iPhone, which is used to Lock and Unlock your iPhone. It is also referred to On/Off Button.

Home Button: This is what the button you use every second to move to your home screen. Continue reading

USB 3.0 Upgraded To 3.1 || Experience The Speed

The USB 3.0 is fast, but the new version is faster than that. The upgrade came in the form of 3.1 version. Move on to 3.1 if you need to experience the new transfer speed. The upgrade is not going to work with the old USB 2.0 and 3.0 kit’s. You can achieve the high speed only if you are upgraded to USB 3.1 kit.

The USB Implementers Forum says it has 800 members, and the space fiend alone knows how many products they collectively offer. Continue reading

Youtube Video Downloader Online

Most of the people download youtube videos by installing necessary tool’s on their machine. Some work, some does not, and some others may be spam. How it will be if there is an online tool instead of installing a software to download videos? It will be great and effortless method to download what the video you need. here is the link of the online tool: http://www.savevid.com/ Continue reading

How To Rewrite URL’s || The Basic Concept

Having simple and clean URL’s will add an advantage to your website. It helps search engines to understand the content of your website easily. Creating meaning full URL’s allow user’s to search the content on your website easily. URL rewriting plays a major role in producing dynamic sitemap (where sitemap.xml will be mapped to sitemap.php which produces sitemap dynamically). Now, it is possible to submit sitemap.xml to google rather submitting sitemap.php which is not possible. URL rewriting method is different for different type’s of hosting. Continue reading

Blackberry || Best Way To Copy Contacts From Phone To Sim or To Another Phone

          The main disadvantage in blackberry phone’s is not allowing the user to copy all contacts from phone to sim. I am going to teach you  an easiest way to copy contacts from Blackberry phone to sim of from device to another device. Any basic phone which has an option to copy contacts from phone to sim is necessary.

Why they haven’t provided an option to copy all contacts from phone to sim?

Download Facebook Videos Using Online Tool

          Almost every day, We usually watch and share videos on Facebook. What to do if we like a video much and want to see whenever we need? It’s Better to download into our PC. There may be different ways to download videos on Facebook. But, what i am going to share here is about “An easy online tool which allows us to download videos soon.” Better, don’t waste time on finding Tools, Checking whether they are spam, Installing them on your pc, and finally downloading them. Continue reading

Dynamic Pagination Plugin For PHP Scripts

          I was recently engaged with a PHP application where dynamic pagination is needed. I faced many problems and took much time to build dynamic pagination function. If you are a person who involved in developing a site with pagination, here is the right plugin. Don’t waste your time by building it from scratch. Here, I have provided the function and methods to use. The script is user-friendly and allows you to style as you need.
Continue reading

Facebook Upgrades Messenger App To Allow Free Voice Calls

Facebook Messenger is one of the top application’s used by the mobile user’s. Facebook Messenger allows user’s to send messages freely through data connection. However, the charges may apply as per your data plan. Facebook is updating the application constantly, to provide a new features to it’s user’s. The recent upgrade to the Messenger app is allowing user’s to record and send voice-mail type message to friends. Now, Facebook is preparing to add up a new feature to its messenger in which it allows user’s to make voice call’s to friends. Continue reading