Archives

Date

Getting started on To YouTube

YouTube is a popular free video sharing website which lets users upload, view, and share video clips. Videos can be rated; the average rating and the number of times a video has been watched are both published.

Founded in February 2005 by three former employees of PayPal, the San Bruno-based service utilizes Adobe Flash technology to display video. The wide variety of site content includes movie and TV clips and music videos, as well as amateur content such as videoblogging and short original videos.

On October 9, 2006, it was announced that the company would be purchased by Google for US$1.65 billion in stock. The deal to acquire YouTube closed on November 13. It is Google's biggest purchase to date.

Getting Started on YouTube:

Sign up for a free account while you're there. You're going to need it to put these strategies into action. It's pretty easy to use the site. Once you're logged in, there's a tab to Upload your videos, and it takes you through the process in a few easy steps. There's also a search box at the top righthand corner of the page for you to perform keyword searches on YouTube.

Using the Videos present on the YouTube.

On YouTube:
Users may submit videos in several common-file formats (such as .mpeg and .avi). YouTube automatically converts them to Flash Video (with extension .flv) and makes them available for online viewing.

Outside YouTube:
Each video is accompanied by the full HTML markup for linking to it and/or embedding it within another page. These simple cut-and-paste options are popular particularly with users of social/networking sites.

Downloading videos:
YouTube itself does not make it easy to download and save videos for offline viewing or editing, but several third-party applications, browser extensions (e.g. the UnPlug or VideoDownloader Firefox extensions or Free YouTube Converter) and web sites exist for that purpose.

Viewing deleted videos:
YouTube videos which are flagged as deleted are not necessarily deleted physically. It is possible to recover and download these videos by using web applications such as the Deleted YouTube Video Viewer.

Index sites:
Websites are available that offer an index service and arrange the content on YouTube by relativity, i.e. links arranged by order of seasons and episodes of a certain show. Examples include TVLinks, NetworkOne Australia, and WikiRemote.

Reference used to creating this article :

http://en.wikipedia.org/wiki/Youtube

http://www.clickadrevenue.com/youtube-introduction.html


Recommended Reading :

MySpace Tips and Tricks

Here are few tips and tricks related to MYSpace.com

MySpace Code: How to hide personal information

Click on Edit Profile and enter the following code in the About Me section.

<style type="text/css">
table td
.text {visibility:hidden;} td.text td, td.text span, td.text a {visibility:visible;}
<
/style>

MySpace Tip: How to hide and make a profile private

Just change your birthday so that you are younger than 16 years of age.

MySpace Code: How to hide and make a profile private

Click on Edit Profile and enter the following code in the About Me section.

<style type="text/css">
td
.text td.text table table table,
td
.text td.text table .orangetext15,
td
.text td.text .redlink,
td
.text td.text span.btext {display:none;} td.text td.text table td,
td
.text td.text table {height:0;padding:0;border:0;} td.text td.text table {background-color:transparent}
<
/style>

 

MySpace Code: How to hide the last login

Put this in your about me section.

<style type="text/css">.lastlogin {visibility:hidden;}</style>

Edit your City in Basic Information, paste the following code

<span class=lastlogin><a href="http://developersvoice.com/" target="_blank"></a>

 

MySpace Code: How to the Hide Extended Network

<style type="text/css">
table tbody td table tbody tr td
.text table {visibility:hidden;} table tbody td table tbody tr td.text table table,
table tbody td table tbody tr td
.text table table tbody td.text {visibility:visible;}
<
/style>

 

Popular Layout Codes :

Seems everyone's looking for a way to make their profile standout, and here are what seem to be the most popular.

Resize Comment Images:

Place code anywhere

<style type="text/css">
td
.text td.text table table table td a img {width:100px;}
td
.text td.text table table table td div img {width:80px;}
td
.text td.text table table td img {width:260px; max-width:260px; width:auto;}
td
.text td.text table table td div img {width:80px;}* html td.text td.text table table td img {width:260px;}*
html td
.text td.text table table td a img {width:90px;}*
html td
.text td.text table table td div img {width:80px;}
<
/style>

Remove Add Comment Link:

Place code anywhere

<style>
td
.text td.text td td a, .redlink, td.text td.text td b a
{visibility:visible!important;}td.text td.text td a {visibility:hidden;}
<
/style>

Lower Case Links:

Place code anywhere

<style type="text/css">
<!-- a
:link { text-transform: lowercase;} a:visited { text-transform: lowercase;} a:hover { text-transform: lowercase;} a:active { text-transform: lowercase;} -->
<
/style>

Table Switch Sides:

Paste In "About Me"

<style type="text/css">
<br
/>table {direction:rtl;}<br />table table table {direction:ltr;}<br />
<
/style>

Scrolling Friends and Comments :

<br><br><br><br>
<DIV style="height:475px; width:470px; overflow:auto; border:none 0px solid;">
<table><tr><td><table><tr><td>

Hide URL Box :

<style type="text/css">
table table table table div
{visibility:hidden;}
div table table table table table div input
, div a, td.text div {visibility:visible;}
<
/style>

Hide Search Form:

<style>
body div table tbody tr td font
{visibility:hidden;}body div table tbody tr td a font,
.navbar {visibility:visible;}
<
/style>

Hide Friends:

<style type="text/css">
td
.text td.text table table table, td.text td.text table br, td.text td.text table .orangetext15,
td
.text td.text .redlink, td.text td.text span.btext {display:none;}
td
.text td.text table {background-color:transparent;}
td
.text td.text table td, td.text td.text table {height:0;padding:0;border:0;}
td
.text td.text table table td {padding:3;}td.text td.text table table br {display:inline;}
<
/style>

Reference used to creating this article :

http://www.ghacks.net/2006/05/31/myspace-tips-and-tricks/

http://www.friendsonmyspace.com/archives/2007/01/popular_layout_codes.html#more


Recommended Reading :

Getting started on Myspace.com

MySpace is a social networking website offering an interactive, user-submitted network of friends, personal profiles, blogs, groups, photos, music and videos. It has revolutionized what is described as being an online community.

Fifty-four million people have profiles on MySpace as of February 2006, and 180,000 more register to use the site every day. . Incredible! It has now taken the world by storm, and is by far the largest social networking site. The best part about this is that its growth rate is phenomenal.

Online Social Networking
On MySpace, your social network starts growing from day one without much effort on your part. That's part of the draw. Basic MySpace networking works something like this:

  1. You join MySpace and create a profile.
  2. You invite your friends to join MySpace and search MySpace for your friends who are already members. These people become part of your initial "Friend Space."
  3. All of the people in your friends' Friend Space become part of your network. You now have connections to more people than you did 15 minutes ago.

When you create a profile, MySpace co-founder Tom Anderson is automatically added to your Friend Space. We're all connected through Tom. To explore your Extended Network, you can go to one of your friends' profiles, see who's in his Friend Space, click on a picture to visit one of those people's profiles, see who's in that person's Friend Space and work your way down the line.You can request to add anyone to your Friend Space, and if your invitation is accepted, you can send that person e-mail, instant messages, links to a band you discovered in MySpace Music and anything else you might share with your friends.

MySpace Background

MySpace was founded in 2003 by Chris DeWolfe and Tom Anderson. It began as social-networking site along the lines of Friendster. That same year, industry-leader Friendster had a major technology setback -- it couldn't keep up with its increased traffic. During peak hours, the site slowed to a crawl, or users just got DNS errors and couldn't access the site at all. Tons of Friendster users got fed up and ended up migrating to MySpace through word-of-mouth, which began with the founders' own friends and MySpace employees, along with some media promotion through Intermix, the company that owned a controlling share in MySpace at the time. When Anderson and DeWolfe noticed that musicians and music fans were utilizing MySpace more than any other single group, they created MySpace Music, and the site's traffic skyrocketed.

Getting Started On MySpace :

MySpace is an online community which offers members the tools they need to create a website for other members of the community to view.

Opening a MySpace Account :

The process of opening a MySpace account is fairly simple and takes place almost instantly. Members who wish to join the online community only have to provide some basic information and agree to the terms of service to be granted membership. The basic information which is required to request membership is a full name, a valid email address and a password containing alpha and numeric characters. After supplying this information and checking a box which states you agree to the terms of service your application process is complete. You are then sent an email with a welcome letter and a link which will activate your account. You only need to click on this link and enter your email address and password to activate your account.

Understanding the Terms of Service :

Reading and agreeing to the terms of service is required for membership to the MySpace community but members should review these terms regularly and should be sure they understand all of the terms. This is important because violation of these terms could result in the member

MFC Tree Control: How to use 'SetItemData()' and 'GetItemData()'?

Q: How to use 'GetItemData()' and 'SetItemData()'?

A: A tree control is just a visual representation of some hierarchical data structure. You use 'SetItemData()' and 'GetItemData()' to link each tree item to a node if this data structure.

Firstly you have to define a class or a structure that holds the data for each node. For example if your tree is supposed to show a file system, the structure you define will reflect all the properties of a file, like name, size, timestamp, whether it is a directory or not, access rights and so on. The tree will display only the name. Each of the trees items will be linked to an instance of such a structure.

struct node_data
{
//...
};

'SetItemData()' allows you to attach a 'DWORD' to each item and 'GetItemData()' allows you to get that 'DWORD' back. A plain 'DWORD' isn't of much use, but luckily under Windows a 'DWORD' and a pointer have the same size, so you can cast forth and back between them.

When you add an item to the tree, you attach a pointer to a 'node_data' structure to that item:

HTREEITEM hItem = m_tree.InsertItem(/*...*/);
node_data *node = new node_data();
// Fill up the new node
node->member = value; //...
// Attach the node to the item
m_tree.SetItemData(hItem, (DWORD) node);

When you handle an operation on some item of the tree (for example selection) you retrieve the node using 'GetItemData()':

// 'hItem' is a valid iten handle
node_data *node = (node_data *) m_tree.GetItemData(hItem);

// Retrieve, set or take decisions according to the nodes
// members
if(node->member == some_value)
some_action()
;

value =
node->member;
node->member = value;

 

Note: Most of the material in this article is taken from codeguru.com

 


Recommended Reading :

MFC Tree Control: How to disable an item in Tree Control?

Q: How to disable an item?

A: Tree items do not have enabled/disabled states. That means that you can stop searching for a function called 'SetItemEnabled()', because it does not exist. You have to simulate this by your own. Let's outline what you need to do in order to 'disable' an item:

  • You need to mark that item as 'disabled'. As the tree control itself doesn't help here, you need to reserve a flag in the underlaying structure of each item. You will use 'SetItemData()' and 'GetItemData()' to set and retrieve this structure for each item.
  • You need to give some visual feedback to your user that the item is disabled. The easiest solution is to use a special (grayed) icon for the item. You can refine this approach up to changing the items color or font, as presented in this CodeGuru article.
  • You need to prevent some operations on that item, like expanding, selecting, dragging it or dropping on it. We assume that for each item you have correctly set an underlaying data structure called 'CItemStruct', and this has a boolean member 'm_bDisabled'.
    //Preventing selection: (handle TVN_SELCHANGING)
    void CYourDialog::OnSelchangingTree(NMHDR* pNMHDR, LRESULT* pResult)
    {
    NM_TREEVIEW* pNMTreeView
    = (NM_TREEVIEW*) pNMHDR;
    if
    (((CItemStruct *) m_tree.GetItemData(pNMTreeView->iNewItem))->m_bDisabled)
    {
    *pResult
    = 1;
    return;
    }
    *pResult
    = 0;
    }

Note: Most of the material in this article is taken from codeguru.com


Recommended Reading :

MFC List Control: How to correctly delete items from a CListCtrl?

Q: How to correctly delete items from a CListCtrl?

A: Unlike the 'HTREEITEM' values returned from 'CTreeCtrl::InsertItem()', the integer values returned from 'CListCtrl::InsertItem()' aren't stable. In short, this means that you shouldn't store them anywhere. If you need to find an entry again, it's probably best to simply put something useful in 'LVITEM::lParam', and search for it using 'CListCtrl::GetNextItem()'.

Having said that, one can use the following piece of code to correctly delete items from a CListCtrl:

for (int nItem = 0; nItem < m_List.GetItemCount(); )
{
if (m_List.GetItemState(nItem, LVIS_SELECTED) == LVIS_SELECTED)
m_List.DeleteItem(nItem)
;
else
++nItem;
}

Note: Most of the material in this article is taken from codeguru.com


Recommended Reading :

MFC Dialog: How to start your dialog application in hidden mode?

Q: How to start your dialog application in hidden mode?

A: If you put the function 'ShowWindow(SW_HIDE)' in your 'OnInitDialog()', it won't have any effect, because 'OnInitDialog()' always finishes with calling 'ShowWindow(SW_SHOW)'. But there is a workaround for that. Create a 'BOOL' member variable into your dialog class and set it to 'FALSE' in the constructor.

class CYourDialog : public CDialog
{
...
private:
BOOL m_visible
;
};
CYourDialog::CYourDialog(CWnd* pParent /*=NULL*/)
: CDialog(CYourDialog::IDD, pParent)
{
//...
m_visible = FALSE;
}

 

Now override the 'WM_WINDOWPOSCHANGING' message handler. Your code should look something like this to hide the dialog:

void CYourDialog::OnWindowPosChanging(WINDOWPOS FAR* lpwndpos)
{
if(!m_visible)
{
lpwndpos->flags &
= ~SWP_SHOWWINDOW;
}
CDialog::OnWindowPosChanging(lpwndpos)
;
}

To make the dialog again visible, use the following code:

//...
m_visible = TRUE;
ShowWindow(SW_SHOW);
//...

Note: Most of the material in this article is taken from codeguru.com


Recommended Reading :

MFC Dialog: How to enable/disable the 'Close' button of your dialog at run-time?

Q: How to enable/disable the 'Close' button of your dialog at run-time?

A:

BOOL bEnable = TRUE; // To enable
BOOL bEnable = FALSE; // To disable
UINT menuf = bEnable ? (MF_BYCOMMAND) : (MF_BYCOMMAND | MF_GRAYED | MF_DISABLED);
CMenu* pSM = GetSystemMenu(FALSE);
if
(pSM)
{
pSM->EnableMenuItem(SC_CLOSE, menuf)
;
}

Note: Most of the material in this article is taken from codeguru.com


Recommended Reading :

MFC Dialog: How to add a minimize/maximize button into your dialog?

Q: How to add a minimize/maximize button into your dialog?
A:

  • At design time: use the dialogs properties in the resource editor.
  • At runtime: override the 'OnCreate()' function like this:
  • int CYourDialog::OnCreate(LPCREATESTRUCT lpCreateStruct)
    {
    if(CDialog::OnCreate(lpCreateStruct) == -1)
    return -1;
    // TODO: Add your specialized creation code here
    SetWindowLong(this->m_hWnd,
    GWL_STYLE,
    GetWindowLong(
    this->m_hWnd, GWL_STYLE) | WS_MINIMIZEBOX | WS_MAXIMIZEBOX);
    return
    0;
    }
Note: Most of the material in this article is taken from codeguru.com
Recommended Reading :

MFC Doc/View: How to modify the default 'Open' dialog?

Q: How to modify the default 'Open' dialog?

A:

  • Delete or comment the following line added in message map of CWinApp-derived class by the AppWizard:
    ON_COMMAND(ID_FILE_OPEN, CWinApp::OnFileOpen)
  • Using ClassWizard map yourself ID_FILE_OPEN command

  • Write this code in ID_FILE_OPEN handler function:

  • void CMyApp::OnFileOpen()
    {
    LPCTSTR pszFilter
    =
    _T("Bitmap files (*.bmp;*.dib;*.rle)|*.bmp;*.dib;*.rle|")
    _T(
    "JPEG files (*.jpg;*.jpeg;*.jpe;*.jfif)|*.jpg;*.jpeg;*.jpe;*.jfif||");
    CFileDialog dlgFile(TRUE, NULL, NULL,
    OFN_HIDEREADONLY,
    pszFilter,
    AfxGetMainWnd())
    ;
    if
    (IDOK == dlgFile.DoModal())
    {
    OpenDocumentFile(dlgFile.GetPathName())
    ;
    }
    }

Note: Most of the material in this article is taken from codeguru.com


Recommended Reading :




Loans - Loans - Mobile Phones - Internet Marketing