Jul 7, 2013

Check existing user and group in linux for beginner

I've been checking through the internet to find out a simple command to find out I have what group in my Linux, Fedora:
getent group
so it'll display all the available group with user in return.

to simple return current user's group, simply use:
groups or groups <username>
to display a user's group.

User link to refer: 

May 9, 2013

Passphrase problem on the Andoird Google Chrome browser

Recently I found a Chrome browser problem in my android device and I found no solution on the internet, and so I writing one for those who need this troubleshooting.

You might need frequent syncing between your computer's Google Chrome browser and your android device, so you can bring all the "bookmarks" with you all the way you go.

But once you uninstall or get your device updated, and you're required to sign-in to your Chrome for the greatly designed syncing service, for some user who use customized passphrase may not be able to sign into the account easily.

Here's the solution for the problem:
1. At your computer's Google Chrome browser, if you've signed in beforehand,
you can found "Signed in as YOUR_OWN_EMAIL" in your option menu.
Click at the "Signed in as YOUR_OWN_EMAIL"

2. At this time you have to reset your syncing. You can do this by clicking at the "Advanced Sync Setting"
If your radio button have "All data was encrypted with your passphrase on _DATE_", Cancel the pop-up window and click at the "Google Dashboard" link right above the button you clicked just now.

3. Once you reached "Chrome Sync" page, scroll to the bottom-most of the window, click "Stop and Clear" button

4. Once done, go back to your computer's Google Chrome browser option menu again. For this time, you'll see you've been signed out from your Google Chrome browser. Next, sign back in again. After then, click at your "Signed in as YOUR_OWN_EMAIL" again to go back to the "Advanced Sync Setting"

5. Select the second radio box "All data was encrypted with your passphrase". This is the place you decide your custom passphrase.

6. Once you've entered your own passphrase. Sign out google account from your device's Chrome browser, and sign in again so your sync passphrase would be verified correctly with your newly created passphrase in your device's Chrome browser.

Sep 24, 2012

With the help of jQuery, you can do dragging of your text. For more advance developer, the dragging can response to the position you release your text.











Drag me around






<div class="ui-widget-content" id="draggable">
Drag me around</div>
<script>$(function() {
  $( "#draggable" ).draggable();
 });
 </script>

Aug 17, 2011

Moving a label like Marquee Sliding Text or Continuous scrolling text in Visual C Sharp(C#)?

A very simple scrolling text in your visual c sharp form.

Just add a Timer from your ToolBox,
in the Form Design mode, double click the Timer.
Insert the code as shown below into your Timer_tick(you can see it, after your double click):

        private void timer1_Tick(object sender, EventArgs e)
        {
            if(label1.Right > 0)
                label1.Left = label1.Left - 5;
            else if(label1.Right <= 0)
            {
                label1.Left = 107;
               
            }
            label2.Text = label1.Width.ToString();
            label3.Text = label1.Right.ToString();
        }


Jun 19, 2011

Connecting Oracle 11g to Visual Studio 2008 with ODP.NET

Connecting Oracle Database to Visual Studio with ODP.NET is easy.
Please refer Using Oracle Developer Tools for Visual Studio
And if you are only about to develop a locally hosted application with Microsoft Visual Studio...

There is one step that must keep in mind. Enter the value for Database Source Name in the format shown below.
Database Source Name : localhost:1521/<yourDatabase_SID>
eg. localhost:1521/XE

otherwise, you'll be alerted with error message: ora-12560: TNS: protocol adapter error
You can use Visual Studio in window 7 with oracle 10g through the latest ODP.NET.