[HTML] Code to embed your Facebook Videos in a web page

OK so this took me a long time to find for the last post so I am posting it here for future reference and to share with you guys xD

Step 1,
Post or find your you tube video and get its full link.
i.e. http://www.facebook.com/#!/video/video.php?v=1821187132424
(to get this click on the title of the video, it should open in a new window)

Step 2,
Now we have our full URL we just want the ID this is the group of numbers after “video.php?v=”
Meaning that the ID for this video is 1821187132424

Step 3,
Now to post it on our webpage/blog etc..

Simply copy the code below and replace XXXXXX with your ID.


 

 
 

 

 

End Result

BFBC2 Stats

bfbc2 logo header




OK so yesterday I woke up to a Message on Facebook from my friend SAS Chimera saying to look at my stats on Battlefield Bad Company 2.



Well that score was as follows:
djekl (me) = 199
SAS Chimera = 200 (MAX)
xx SwiTcHed xx = 200 (MAX)
Gangster James = 189





So this has lead me to find a stats engine so I don’t need to keep looking on the xbox to see my stats.
Here are the links xD
djekl (me)
SAS Chimera
xx SwiTcHed xx
Gangster James


bfbc2 logo footer

Can you help me with my Dropbox Account?

Dropbox Image

If you don’t know what dropbox is have a look here – About Dropbox | Tour Dropbox

If you can please sign up and install Dropbox using my referral URL you will get your standard FREE 2GB Dropbox, and a free 256mb. And I will also.

Here is my referral URL – Dropbox Referal Link

OH, and it works in Windows/Linux/OSX

Dropbox just works!

VIDEO TOUR!

Merry Christmas

I would like to wish everyone a merry Christmas, hope you all got everything you asked for off Santa.

If asked I can post some pics of what I got with my new camera I got today xD

Merry Christmas

[VB.Net] BackgroundWorker

Here is some code I have found on the net to send email’s via SMTP through VB.Net. Untested, so if you use please let me know if it works.

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

BackgroundWorker Class

Executes an operation on a separate thread.

Sample Code

1.Create event DoWork.

Private Sub BackgroundWorker1_DoWork(ByVal sender As Object, ByVal e As DoWorkEventArgs)
'Sample how to disable button send before send email method after that enabled button.
DisableSendButton()
' to do SendEmail method
EnabledSendButton()
End Sub

2. Show how to invoke method when use BackgroundWorker control.

Private Sub DisableSendButton()
If Me.InvokeRequired Then
Me.Invoke(New MethodInvoker(DisableSendButton))
Else
btnSend.Enabled = False
btnCancelSend.Visible = True
End If
End Sub

Private Sub EnabledSendButton()
If Me.InvokeRequired Then
Me.Invoke(New MethodInvoker(EnabledSendButton))
Else
btnSend.Enabled = True
btnCancelSend.Visible = False
End If
End Sub

3.Start BackgroundWorker

BackgroundWorker1.RunWorkerAsync()

[VB.Net] Send Email By SMTP

Here is some code I have found on the net to send email’s via SMTP through VB.Net. Untested, so if you use please let me know if it works.

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

Imports System.Net.Mail


Public Sub SendEmail()

    Dim client As New SmtpClient()
    Dim sendTo As New MailAddress("sendToAccount@gmail.com")
    Dim from As MailAddress = New MailAddress("from@address.com")
    Dim message As New MailMessage(from,sendTo)

    message.IsBodyHtml = True
    message.Subject = "Test SMTP"
    message.Body = "Got it!!"

    ' Use the same account in app.config to authenticate.
    Dim basicAuthenticationInfo As New System.Net.NetworkCredential("yourAccount@xxx.com", "YourPassword")


    client.Host = "smtp.xxx.com"
    client.UseDefaultCredentials = False
    client.Credentials = basicAuthenticationInfo

    '' For smtp config
    '' google use EnableSsl=True and Port = 587

    client.EnableSsl = False
    client.Port = 25

    Try

        client.Send(message)
        Console.WriteLine("SUCCESS")

    Catch ex As Exception

        Console.WriteLine("SEND FAIL")

    End Try

End Sub

New Theme

OK so I am looking at my Blog, and I think I might change my theme.

Any suggestions?

Either reply to my Blog or Twitter.