Rss Feed Like Us on facebook Google Plus

June 13, 2013

Book your Train Ticket with SMS : IRCTC

IRCTC is planning to launch SMS service to book your train ticket.From July onwards booking rail tickets will be as simple as sending an SMS Any mobile user can operate this system using handsets ranging from feature phones to smartphones.

According to a newspaper report quoting a senior IRCTC official, "The bookings can be made from anywhere and at any time in a secure manner without a need to log onto the internet or stand in a queue."

The report further added that any mobile user can operate this system using handsets ranging from feature phones to smartphones.


It all started in January 2012, when IRCTC started working on revamping its mobile apps for booking tickets from smartphones ( different OS).

Though not much clarity is there about how will the new ticket booking system work but as the launch date approaches IRCTC will be sharing further information of the same.

In the last couple of months IRCT has been has been adopting mobile technology in a big way to make the rail journey of passengers, right form booking a ticket to reaching destination, a smooth experience.
Read More

June 10, 2013

CSS3 Media Queries for Screen

CSS3 @media Screen  Queries..
 CSS3 added support for the media="screen" way of defining which stylesheet to use for which representation of the data. CSS3 adds a new feature to this functionality, by adding media queries.
Basically, this means you can change stylesheets based on for instance the width and height of the viewport. In a broader sense, this means as the spec puts it: “by using Media Queries, presentations can be tailored to a specific range of output devices without changing the content itself.”
Below are two tests, for min-width and max-width, currently only functional (and thus green) in Safari 3, Opera, and Firefox 3.1 (Alpha). This is however the future of web development, and could make building pages that are usable in both the mobile as the normal web a lot easier.
min-width 640px
max-width 1100px

The CSS which should color the two divs above is as follows:
@media all and (min-width: 640px) { #media-queries-1 { background-color: #0f0; } } @media screen and (max-width: 2000px) { #media-queries-2 { background-color: #0f0; } }
MEDIA QUERIES FOR STANDARD DEVICES
/* Smartphones (portrait and landscape) ----------- */
 @media only screen 
and (min-device-width : 320px) 
and (max-device-width : 480px) {
/* Styles */
}

/* Smartphones (landscape) ----------- */
 @media only screen 
and (min-width : 321px) {
/* Styles */
}

/* Smartphones (portrait) ----------- */
 @media only screen 
and (max-width : 320px) {
/* Styles */
}

/* iPads (portrait and landscape) ----------- */
 @media only screen 
and (min-device-width : 768px) 
and (max-device-width : 1024px) {
/* Styles */
}

/* iPads (landscape) ----------- */
 @media only screen 
and (min-device-width : 768px) 
and (max-device-width : 1024px) 
and (orientation : landscape) {
/* Styles */
}

/* iPads (portrait) ----------- */
 @media only screen 
and (min-device-width : 768px) 
and (max-device-width : 1024px) 
and (orientation : portrait) {
/* Styles */
}

/* Desktops and laptops ----------- */
 @media only screen 
and (min-width : 1224px) {
/* Styles */
}

/* Large screens ----------- */
 @media only screen 
and (min-width : 1824px) {
/* Styles */
}

/* iPhone 4 ----------- */
 @media
only screen and (-webkit-min-device-pixel-ratio : 1.5),
only screen and (min-device-pixel-ratio : 1.5) {
/* Styles */
} 
Read More

June 4, 2013

Generate Excel to Export Data using Datatable

Generate Excel is a Major Feature which is used frequently in Web Applications as well as
in Console Applications. So i am going to present an article about generating excel with MS-Excel installed on and without MS-Excel installed on target computer.

Problem with Excel Automation
The technique that is most frequently used to transfer data to an Excel workbooks is Automation. With Automation, you can call methods and properties that are specific to Excel tasks, but this solution has many drawbacks. Some of them are described in the Microsoft Knowledge Base. Additionally, you have to manage the lifetime of the temporary Excel files(.xls) created on the server. Also, it is slow, because Excel runs in a separate process.


  • You can generate excel without MS-Office installed on target computer..
  • You Can Export Data Table data to created Excel

class GenerateExcel
 
{
//  This function will Genereate Excel without MS-Office installed on target computer
 public void CreateExcel(string fileName)
        {
            if (File.Exists(fileName))
            {
                File.Delete(fileName);
                Console.WriteLine("** Excel Deleted ***");
            }
            if (!File.Exists(fileName))
            {
                FileStream stream = new FileStream(filename, FileMode.OpenOrCreate); 
                stream.Close();
                Console.WriteLine("** Excel Created ***");
            }
        }
  
        public void createExcelwithMSOffice(string fileName)
        {
            if (File.Exists(fileName))
            {
                File.Delete(fileName);
                Console.WriteLine("** Excel Deleted ***");
                swlog.WriteLine("***  Excel Exists....Excel Deleted.....  ***");
            }
            if (!File.Exists(fileName))
            {
                Application xl = null;
                _Workbook wb = null;
                object misValue = System.Reflection.Missing.Value;
 
                xl = new Application();
                xl.SheetsInNewWorkbook = 1;
                wb = (_Workbook)(xl.Workbooks.Add(Missing.Value));
                wb.SaveAs(fileName, Microsoft.Office.Interop.Excel.XlFileFormat.xlWorkbookNormal, misValue, misValue, misValue, misValue, Microsoft.Office.Interop.Excel.XlSaveAsAccessMode.xlExclusive, misValue, misValue, misValue, misValue, misValue);
                wb.Close(true, misValue, misValue);
                Console.WriteLine("** Excel Created ***");
                swlog.WriteLine("***    New Excel Created     ***");
            }
        }
 
 //  This function will export Datatable Data to Created Excel......

        public void ExportToSpreadsheet(System.Data.DataTable table, string name)
        {
            StreamWriter sw = null;
            sw = new StreamWriter(name);
            string ColValue;
            string ColName = "";
            if (table.Rows.Count > 0)
            {
                for (int i = 0; i < table.Columns.Count; i++)
                {
                    ColName = table.Columns[i].ColumnName.ToString() + "\t";
                    sw.Write(ColName);
                }
                sw.WriteLine("\t");
                foreach (DataRow row in table.Rows)
                {
                    for (int i = 0; i < table.Columns.Count; i++)
                    {
                        ColName = table.Columns[i].ColumnName.ToString();
                        ColValue = row[i].ToString();
                        ColValue = ColValue.ToString().Replace(",", string.Empty) + "\t";
                        ColValue = ColValue.ToString().Replace(Environment.NewLine, " ");
                        ColValue = ColValue.ToString().Replace("\n", " ");
                        //ColValue = ColValue.ToString().Replace(" ", "");
                        ColValue = ColValue.ToString().Replace("-Select-;", "");
                        if (table.Columns[i].DataType.Name == "Boolean")
                        {
                            ColValue = ColValue.ToString().Replace("True", "Yes");
                            ColValue = ColValue.ToString().Replace("False", "No");
                        }
                        sw.Write(ColValue);
                    }
                    sw.WriteLine("\t");
                }
                sw.Close();
                Console.WriteLine("** Data Exported to Excel ***");
            }
            else
            {
                Console.WriteLine("** No Data to Export in Excel ***");
                Environment.Exit(0);
            }
        }
}

Calling the functions..


class Program
    {
        static void Main(string[] args)
        {
           System.Data.DataTable dt = new DataTable();
           GenerateExcel oexcel = new GenerateExcel ();
           string filename=@"C:\demo.xls";
           oexcel.CreateExcel(filename);
           oexcel.ExportToSpreadsheet(dt,filename);
         }
    } 
I hope this article gives you a head start in working with Excel files from .NET and C#.
Read More

June 1, 2013

Gmail New TAB Look : Get it Now

GMAIL got a new tab look with automated filter mails...mail will be automatic filter to respective tab..you can also move mails one tab to another..you can also change the tab settings...

To get it Now..
>> Go to Setting >> Configure Inbox



Google announced the new look on its Gmail blog and says that it will be rolling out the update "gradually" on the desktop. Updates for iOS and Android will be available in the next few weeks. Users that don't want the new look on the desktop can switch back to the classic view.
 
Clicking on one of the tabs will show all the messages from that view. Users can also customize the new tabs to always show certain senders in a particular tab or for starred messages to always appear in the primary tab.


The new default categories, based on Gmail's existing Label system, are Primary, Social, Promotions, Updates, and Forums. They appear as large tabs on the Gmail site, easy to use for touch screens and fully customizable. You can also drag-and-drop messages between them, and Google will automatically "learn" how you want them filtered.


Read More

Check Indian Train Current Location : Track Indian Train

To all Indian Rail Passengers, those want to know the current status/location of running train, now you can easily track train.

The Indian Railways has just launched RailRadar, a useful website that shows the current geographical location of any train on a Google Map.
To get started, you can zoom-in to any location /city on the map to see all the trains which are arriving at the station or have just departed. Or you can use expand the left sidebar to search trains by name, by train number or by the station name.
If you click a particular train, the map will also show the exact route of the train including all the stops and the current location of the train. The train markers highlighted in blue indicate trains that are running on time while the red markers indicate trains that are delayed or behind schedule.
The press release says that the train data is refresh every 5 minutes and the displayed location and running status of any trains displayed on the Google will always be delayed by at least 5 minutes.
The site is extremely useful and it will work on your mobile phone as well.
 There are also another useful websites to track train...

Read More

May 31, 2013

Windows 8 Keyboard Shortcuts

With Windows 8 and Windows RT, you can use the keyboard shortcuts you're already using, and you'll find new ones too. For example, the easiest way to search on the Start screen is to simply start typing. Not on the Start screen? Press the Windows logo key‌ Windows logo key and you can quickly switch between Start and the app you're in.  

Some Shortcuts are Below:::
 
      1. Windows key to open the Start screen or switch to the Desktop (if open).
      2. Windows key + D will open the Windows Desktop.
      3. Windows key + . to pin and unpin Windows apps on the side of the screen.
      4. Windows key + X to open the power user menu, which gives you access to many of the features most power users would want (e.g. Device Manager and Command Prompt).
      5. Windows key + C to open the Charms.
      7. Windows key + I to open the Settings, which is the same Settings found in Charms.
      8. hold the Windows key + Tab to show open apps.
      9. Windows key + Print screen to create a screen shot, which is automatically saved into your My Pictures folder.



Press this To do this
Windows logo key‌ Windows logo key+start typing

Search your PC
Ctrl+plus (+) or Ctrl+minus (-)

Zoom in or out of a large number of items, like apps pinned to the Start screen
Ctrl+scroll wheel

Zoom in or out of a large number of items, like apps pinned to the Start screen
Windows logo key‌ Windows logo key+C

Open the charms
Windows logo key‌ Windows logo key+F

Open the Search charm to search files
Windows logo key‌ Windows logo key+H

Open the Share charm
Windows logo key‌ Windows logo key+I

Open the Settings charm
Windows logo key‌ Windows logo key+J

Switch the main app and snapped app
Windows logo key‌ Windows logo key+K

Open the Devices charm
Windows logo key‌ Windows logo key+O

Lock the screen orientation (portrait or landscape)
Windows logo key‌ Windows logo key+Q

Open the Search charm to search apps
Windows logo key‌ Windows logo key+W

Open the Search charm to search settings
Windows logo key‌ Windows logo key+Z

Show the commands available in the app
Windows logo key‌ Windows logo key+spacebar

Switch input language and keyboard layout
Windows logo key‌ Windows logo key+Ctrl+spacebar

Change to a previously selected input
Windows logo key‌ Windows logo key+Tab

Cycle through open apps (except desktop apps)
Windows logo key‌ Windows logo key+Ctrl+Tab

Cycle through open apps (except desktop apps) and snap them as they are cycled
Windows logo key‌ Windows logo key+Shift+Tab

Cycle through open apps (except desktop apps) in reverse order
Windows logo key‌ Windows logo key+PgUp

Move the Start screen and apps to the monitor on the left (Apps in the desktop won’t change monitors)
Windows logo key‌ Windows logo key+PgDown

Move the Start screen and apps to the monitor on the right (apps in the desktop won’t change monitors)
Windows logo key‌ Windows logo key+Shift+period (.)

Snaps an app to the left
Windows logo key‌ Windows logo key+period (.)

Snaps an app to the right
Read More

May 30, 2013

Aged programmers are better than youth :survey

A recent study from North Carolina State University has finally revealed an unconventional truth for a youth obsessed industry- Computer programmers actually gets better with age.


The results from this study will surely spread light into the dark corners of tech companies, especially start-ups, who had a general notion of favoring the youth for employment.

“The older developers seemed to know more than the younger developers did,” says Emerson Murphy-Hill, co-author of the study. “That runs contrary to what the popular expectation is.”


“Particularly traits like vocabulary, knowledge of history and life experience — skills key to programming — improve with time. But programming knowledge, too, can be maintained at a high level into a person’s 50s and 60s,” he continued.

However the present conditions at start-ups and tech firms seem hard to change. Tech hiring is not just about the skills and experience now, these companies always look for a breed of programmers, who are free from responsibilities, family and don’t have high salary expectations. Unfortunately, the seasoned programmers don’t fit into any of those categories.
Read More

May 12, 2013

Most Popular Data Recovery Softwares


It has become a necessity for every business to have a back-up. Today, the amount of data stored in computers has drastically increased and there is no guarantee that a system won’t crash. There is a big need for every computer user, either at home or at an enterprise, to have a Data Recovery Software to safeguard and restore all files.

Data Recovery Wizard - Cost $69.95
 

 Pros and review
Data Recovery Wizard is enabled to recover data from different storage devices. The software has the ability to scan and recover deleted files or data emptied from the recycle bin and is capable of recovering the RAW data even after a hard disk crash. It can also recover files from memory cards, USB drives, camera cards, damaged disks, formatted disks and external disks.
The software also has a helpful sort tool which tells exactly the files you need and thereby, saves the time. The recovery software supports FAT32, FAT16, FAT12, NTFS/NTFS5 file systems.

Power Data Recovery 6.6 - Cost $59.00
 

 This software can restore data from various devices, such as, USB flash drives, Blu-ray Discs, DVDs, memory cards and much more. It has the ability to recover data from media memory cards, iPods and restore damaged partitions or altered partitions and recover deleted files. It supports IDE, SCSI, SATA, and USB connections. Power Data Recovery has unique tools for restoring from external drives and discs. It includes a Power Data Recovery tool, which has 5 file search options; undelete recovery, lost partition recovery, damaged partition recovery, digital media recovery and CD/DVD recovery.
For product inquiries the company provides one direct technical support option, which is through Emails.

GetDataBack 4.2 - $69.00

 

 The software provides professional recovery services. It can recover data through a network connection or a serial cable. So, if a disk is unable to remove this feature comes in very handy. GetDataBack includes lifetime updates; whenever there is an upgrade, there is no requirement to purchase it.

The software can restore deleted files, files lost from a partition change, and much more. It runs the scans, by enquiring on how the data was lost, thereby, increasing the chances to restore files. GetDataBack has the ability to create disk images for data backup.
For any queries the customer can contact the company through telephone or email and provides support from the US and Europe in German, English and French.

Recover My Files 5.2 - 69.95
 

 The software supports all FAT and NFTS file systems, thereby, making it easy to recover Windows files that have been deleted or lost. Recover My Files has the ability to restore over two hundred file types deleted or lost from a corrupted disk, partition change or by Windows reinstallation. It has text filtering, a customizable interface, validation checks and a new preview window. The software is also enabled with ability to create disk images at the sector level. The recovery software has an improvised gallery view, enabling to find lost images easier.

Recover My Files comes with help files that cover all aspects of using the software. For any queries the company provides support by telephone, email and chat.




Read More

© 2011-2016 Techimpulsion All Rights Reserved.


The content is copyrighted to Tech Impulsion and may not be reproduced on other websites.