Devour Skateboards

A new welsh Skateboard company has just been born:

www.DevourSkateboards.com

Check back for mroe info soon!

VB.net check if CAPS LOCK is on

Place this code Within your public class, if you have a password box then it will let the user know if CAPS is in the on or off state:

Private Declare Sub keybd_event Lib “user32″ (ByVal bVk As Byte, ByVal bScan As Byte, ByVal dwFlags As Integer, ByVal dwExtraInfo As Integer)

Code to toggle CAPS LOCK state

‘Turn on CAPS
Call keybd_event(System.Windows.Forms.Keys.CapsLock, &H14, 1, 0)

‘Turn Off CAPS
Call keybd_event(System.Windows.Forms.Keys.CapsLock, &H14, 3, 0)

VB.NET My.Settings

Want to store some user settings in vb.net?This could be used for any number of things, I used this to store the length of a barcode that was being read from a text file, the user could change the default of 12 to any custom value:

 

Open My Project / Settings
Name = message
Type = integer
Scope = user
Value = 10

Add this code below our Public Class:

Public Sub New()
‘ This call is required by the Windows Form Designer.
InitializeComponent()

End Sub
On you form load add (to display the value):
Try

txtbox1.text = My.Settings.message

Catch ex AsException

MsgBox(ex.Message)

End Try
 

To Update the setting(put this on a button, reads new value from textbox):

Try
My.Settings.message = CInt(txtNewValue.Text)
My.Settings.Save()
My.Settings.Reload()
Msgbox(”New Setting Saved.”)

Catch ex As Exception

MsgBox(ex.Message)

End Try

VB.net Create file name from date

The following code will produce a unique text file name:

 _____________________________________________________________
 Dim FileTime As Long = DateTime.Now.ToFileTime() 

 Dim FILENAME = “Log-” & FileTime & “.txt”

 ___________________________________________________________
Usefule for creating a uniqye file name for a program log

JavaScript Hack/view Autocomplete Password

Myspace: javascript:alert(document.forms(1).elements(3).value)
https://login.facebook.com/login.php:
javascript:alert(document.forms(0).elements(1).value)

Have you clicked to remember a password into a website like myspace and forgotten what it actually is?

Go to the website:
www.myspace.com

copy and paste this into the address bar:
javascript:alert(document.forms.length)

This will tell you how many forms are on the page:

The popup alert will tell you there are 5 forms.

javascript:alert(document.forms(0).name)
Now we find there names of the forms…

0 = srch
1 = aspnetForm (we are interested in this one)
2 =
3 = SearchFormTop
4 = srch

I then ran:

javascript:alert(document.forms(1).elements(1).name) = nextpage
javascript:alert(document.forms(1).elements(2).name) = Email
javascript:alert(document.forms(1).elements(3).name) = Password

Enter some info into the log in:

Email: billy
Password: Bob

Now run this:

javascript:alert(document.forms(1).elements(3).value)

the alert box will show Bob, so its read what is stored behind the dots!!!

ASP.net RadioButtons Text Align

Want to know how to Align you RadioButton List text so that it is in line with the button image?

Create a css file and reference it in the head:

 

 

< link rel=”stylesheet” type=”text/css” href=”media/css/reset-fonts-grids.css”>

 

 

 

Put this in a css file:

/* ——————————————-
* Flow Layout List
* RadioButtonList RepeatLayout=”Flow”
  ——————————————- */
.flowLayoutList
{
display: block;
height: 25px;
}
.flowLayoutList INPUT,
.flowLayoutList LABEL
{
line-height: 20px;
vertical-align: middle;
}
.flowLayoutList INPUT[type=”radio”]
{
float: left;
    width: 20px;
    padding: 0;
    vertical-align: middle;     }

.flowLayoutList LABEL
{
clear: right;
margin-right: 4px;   white-space: nowrap;
}

 

Set CSSClass on the Radiobutton list to: flowLayoutList

And you text will vertically align!

JD

Topgun according to Tarantino

vb.net Check for valid UK postcode

Who said you cant validate a UK postcode? Ill tell you who

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

Automatic validation of postcodes on the basis of pattern feasibility is therefore almost impossible to design, and the system contains no self-validating feature such as a check digit. Completely accurate validation is only possible by attempting to deliver mail to the address, and verifying with the recipient.

The function will return True of False

Download Source code here

Play.com Security Policy

I am curious to whether Play will make any changes to their site after my email.

Email Sent to Paypal regarding password reminders being sent in plain text:

Hello,
 
A friend has had his account hacked / logged into by an unauthorised user and items ordered off their cash card, this prompted me to log in and change my password. I thought I would check my history of purchases to ensure this had not happened to my account and only saw one item ordered. I realised I had an old account and needed the password to log in, so I had the password emailed to me which to my suprise was in PLAIN TEXT!
 
Most online shops / secured sites would email a reset link so that the password never exists in plain text format. I have logged in and changed the password so that is not really an issue but many users would retrieve the password and not change it, I feel this is a big hole in your security policy and should be addressed. My debit card on your system is out of date, I wont be updating it until I feel that your system is more secure.
 
This is not a complaint just thought I would give my view.
 
Thank You

Their response:

Dear Ryan Tyler

Thank you for your email.

We are grateful for your suggestions and will forward your request onto the relevant department for their investigation. If we feel that our customers will benefit from your suggestion, we will update our website so it is worth periodically checking it for any further information.

If you have any further queries please check the FAQ section on our Helpdesk

 

www.play.com/helpdesk

Susan Balaka goes full length

Susan Balaka: Bound to the Reload

Taken from URL: http://www.bbc.co.uk/wales/southeast/sites/blaenaugwent/pages/susanbalaka.shtml

 

Packino Productions have found internet fame with their Wing Wing Shoot Bag series of short comedy films. Angus Rogers tells how they made the leap to making a full-length community movie in Blaina…

In January 2008, the weather forecast predicted snow in our area of the South Wales valleys. We wrote a short film to film in the snow, featuring our most beloved character, Susan Balaka - the transgender Russian super spy.

However, the forecast snow never arrived, and we were left feeling robbed of our creativity. As a way of making ourselves feel better, we decided to write a bigger, better sketch for our character. It was about time for Susan’s legs to stretch anyway.

Susan Balaka posterLike the back-catalogue of Susan Balaka shorts, this new sketch was originally only meant to last a few minutes. Our intention was to increase the production qualities to make our new work excel from our previous shorts.
But during the writing process we decided to fuse several ideas together, boosting the project up to something which would last around twenty minutes.

Over the next few months and after several scenes were filmed, our friends started to take an active interest in the project, pitching in with aesthetic and practical help. As our friends involvement grew, so did interest from the community and then the media. As a result of this, the film too grew, until it became a feature length production.

Filming of Susan BalakaBeing no-budget film-makers, we would use anything we could our hands on. Equipment, props and costumes were borrowed and we would gain permission to film in locations for free.
People who had no experience or even thoughts of acting before would step forward and help us. Everyone did everything they could in order to better the film, and we’re proud to say that we think the final product is a testament to the hidden talent and beauty of the South Wales valleys.

On July 25th we hope that the audience will see something very new and very, very funny. If you want to find out more join the Susan Balaka Film group on Facebook.

Susan Balaka: Bound to the Reload is being shown at the Beaufort Theatre, Ebbw Vale, on Friday 25th July. Doors 7pm, admission free.