Jump to content


Check out our Community Blogs

Brandon W

Member Since 28 Sep 2008
Offline Last Active Apr 09 2016 01:49 AM
-----

#644832 Computer Screens

Posted by Brandon W on 19 November 2012 - 09:09 PM

Agreed with Winged on the comment about the TV - I've always questioned why people would like HD televisions when you pay a few 1000 dollars more (all TV's I see on sale now are 1080p so really, there is no choice now) for something that you might not even realise. I watched a DVD the other day then watched a Blu-Ray DVD and yes, I could notice a difference but was extremely slim.

Comparing that to my old iPhone 3G and my iPhone 5 though, you can see a significant difference. And not that I would intentionally go out and buy a retina display phone just for the retina display. Crisp but only looks prettier.

The comment BenW makes about the new Macbook Pro though is amazing. The screen on those machines are just incredible and absolutely beautiful! That and then playing around with some general internet browsing was also incredible. Unfortunately, I didn't have the opportunity to play around on one with XCode but just writing some random jibberish was nice, let alone programming and debugging.

Retina displays are quite pricey though and that's why Apple has not added it to their iPad Mini for cost reasons. They've managed to add it to the Macbook Pro's but at a significant cost. Let alone adding it to a (let's just be generous here) 21" screen would bump up the price a few hundred dollars. In saying that though, the day is coming and I'll continue to drool over that Macbook Pro screen until I can get my hands on a 21" Retina Display screen!


On the note of vertical displays. The ones at uni are 24", I think, and can be made vertical. Mate does it all the time for Reddit. The ideal setup though: one vertical screen on the left, widescreen display in the middle and another vertical screen on the right. Internet Browsing/Documentation, Application Testing/Viewing, actual program code.... *drools*
  • 1


#644621 The power of codecall!

Posted by Brandon W on 16 November 2012 - 03:10 PM

CodeCall's reputation stings again :) Well done!
  • 1


#633384 Returned V2

Posted by Brandon W on 07 July 2012 - 11:42 PM

Evening all!

This is my 'Returned' thread and by looking around, there is many new members, many changes at CodeCall (or should I say CODECALL?) from what I remember at least... Interesting to see and looking at coming back to my old Internet home :)

As you can see from my posts, use to be fairly active despite most of those posts actually being in the Lounge, wrote a few blog posts (which Jordan encouraged many, many times), a few tutorials here and there, the favourite among them was the jQuery series.

Back then though, my programming skills were in the minority among the members here considering I was only 15 or so then. Now, I've actually managed to get into University studying Software Engineering, currently in my second year and loving every minute of it! Well, except the all nighters anyway haha :)

Learned quite a bit and it has pushed me back to this programming community. Like minded people full of knowledge that they wish to share! So, instead of posting something about me, if you'd like to get to know my immature self a little bit better:
Ask me: Brandon (read through the new Guidelines and didn't see anything wrong with linking to threads at Codecall... So, please let me know if there is a change I've missed).

However... I plan to re-build and show my more matured, programmer self now so time to browse the forums and get posting :) Let's hope I get to know you all better and contribute to this new community.


Take care,
Brandon
  • 1


#487501 Choosing whats best for me?

Posted by Brandon W on 21 July 2009 - 12:00 AM

I don't know many programs that have actually been made using the .NET framework as such and I couldn't find the right terms to search for in Google to find any. I did however remember reading that Paint.NET was made using the .NET framework, I did a little look around and yes it is. Not sure which language but it is made using that network.

As for the Adobe products, I couldn't find much on that either. I believe that they would be in C++ as I remember reading that Adobe Flash was programmed in C++. Which leads me to guess that quite a few of their products would be programmed in the same way.

I just looked at the jobs that Adobe is hiring and I looked at the programming ones. In seems to me that Adobe products are made in C/C++, a bit of low level code as well because some of them require knowledge of Assembly. They were also asking for one of the requirements that the job applier should have experience in proxies written in Java, C/C++.

Interesting so yes I would say C/C++ with a bit of low level code thrown around in there too.

EDIT: I was doing some reading around at Game Designing thanks to Andrew G. While I was, I was looking at some vacancies in some companies. I remember looking at Blizzards a while ago so I decided to see again and I came across this;

Lead Software Engineer, .NET

Blizzard Entertainment's corporate applications team is currently looking for an experienced software engineer and manager to lead our corporate applications engineering team.

This person will lead a team that designs and develop internal applications that aid the company and our players. The ideal candidate is a .NET expert, has successfully managed high-performing development teams, and isn't scared of ambiguity or tight deadlines. You must have a passion for new technology and keep up to date with industry tools and trends. We're looking for someone who always strives for elegance and simplicity, loves games, and wishes to help Blizzard Entertainment retain its position at the forefront of game development and customer service.

Requirements:

* 6+ years working on the .NET platform, including experience with .NET 3.5
* Experience managing high-performing teams through the entire development lifecycle.
* Experience architecting and developing integration projects using WCF and web services
* Experience with both ASP.NET and Windows Forms applications
* Experience developing and optimizing SQL Server based applications
* Microsoft development certification
* Bachelor's degree or higher in computer science or a related field
* Ability to manage multiple projects at once
* Excellent communication skills
* Working knowledge of various SDLC methodologies (waterfall, agile, SCRUM)

Plusses:

* Experience working with applications geared toward customer service
* Experience with MySQL and/or Oracle
* Fluency in another language

No follow-up calls or e-mails, please. This is a full-time position in Irvine, CA; part-time positions are not available at this time.

Please send code samples in text files as well as a cover letter, resume, and salary history in separate Word format documents to resumes@blizzard.com.

Link: Blizzard Entertainment - Employment Opportunities

It seems like Blizzard uses online web technologies in the .NET framework.

EDIT2:

Tools Software Engineer
Description

Neversoft Entertainment is looking for a Tools Programmer whose primary focus will be the development of productivity tools for in-house use. Such tools might include a Windows-based script debugger, a Windows-based GUI for scripting/previewing sound logic, a command-line utility for analyzing in-game memory usage, a data mining tool to parse crash dump files for common errors, etc.



This is an ideal opportunity for someone with a Windows programming background and a firm grasp of console game development needs.
Qualifications

· Bachelor's degree in Computer Science or related field. Equivalent experience is also applicable.

· Demonstrable proficiency in C++.

· At least 1 year of professional C++/MFC experience.

· Self motivated, with strong verbal and written communication skills.

· At least 2 years of professional experience in the games industry.

· Proven record of designing tools for non-technical customers.

· Solid understanding of good user interface design principles.

· Strong requirements-gathering skills.

· Experience using Perl, Python, Ruby, or some other scripting language.

· Experience using C# or Visual Basic.
Job
Programming
Primary Location
California-Woodland Hills
Organization
Neversoft

Link: http://activision.ta...3/jobdetail.ftl

Seems like they use C# for some part of their company :)
  • -1


#485898 on click add text at I beam in a input filed

Posted by Brandon W on 19 July 2009 - 04:47 AM

Only 4 comments on this script but from the looks of it, it should work;
JavaScript: Caret Index - ZeroSleep

This one doesn't look like it would work in IE according to the comments;
Vishal Monpara’s Blog Javascript : Getting and Setting Caret Position in Textarea
  • 1


#484534 One Hundred Push Up Challenge

Posted by Brandon W on 15 July 2009 - 11:14 PM

I HAVE A CHALLENGE FOR YOU ALL


one hundred push ups

I remember reading about this a while ago on an app for my iPhone, I was going to get it but then I decided not too. Now since I'm getting into the working out sessions again, I've gone out and I've got it. Reason is I read the thread on how you stay fit, which I found a link to Jordans blog post which then leaded to this website.

I believe it was originally posted my John here on the forums but I am posting it again :) I'll also make a blog post upon this.

What's going to happen is, you basically follow this 6 week program and by the end, hopefully, you'll be able to do 100 push-ups. If not, just repeat a few weeks and eventually you can do it. This is a challenge, there is no doubt about it.

Which is why I calling this challenge out to anyone on CodeCall!! Anyway that has completed this will go on the list below to say you have completed it. If you haven't, well why not start it and get your name put on this list!

I'm going to attempt it so anyone that is willing to do it with me, let's join together and we shall do it together :D

Simply just visit this link, do the initial test and post your results here. Then when you completed the challenge, I shall put your name, your initial test value and your final value all here for everyone to see!

[TABLE=head]Name|Initial Test|Final Test
Brandon W|38|In the process
BlaineSch|16|In the process
BlaineSch's girlfriend|2|In the process
Showstopper|50|In the process
TcM|11|In the process
SterAllures|In the process|In the process
Arctic Fire|18|In the process[/TABLE]

Let's get started on those push-ups!!
  • 1


#438072 PHP Question

Posted by Brandon W on 02 March 2009 - 03:10 AM

To use PHP code in .html/.htm files you must use the tags;

<?php
//The above line is the opening tag and the line below is the closed tag. This is a comment.
?>


You must also use the file extension .php which is telling the server there is PHP in this page. You can still use all your normal HTML tags and everything as well. Makes no difference ;)
  • 1


#437872 Square Roots

Posted by Brandon W on 01 March 2009 - 12:31 AM

Code;
#include <math.h>
y = sqrt(x);

Description;
"sqrt" returns the square root of "x". If "x" is negative, "sqrt" returns zero and sets "errno" to EDOM.
  • 1


#437847 jQuery: Validation

Posted by Brandon W on 28 February 2009 - 08:51 PM

G'day everyone.

Welcome to another one of my jQuery tutorials that many people seem to love. This is the fourth tutorial and I will be showing you how to use your
FIRST jQuery plug-in, unless you have done it before. These plug-ins are really easy to find and use thanks to the dedicated people that made them
this way. There is a plug-in for nearly anything you can think of, so I will be showing you how to validate your user inputs the easy way ;)

Let's get started. The name of this plug-in is "Validation", it is one of the oldest plug-ins for jQuery and has been proven to be the best validator.
This should hopefully encourage you to get into using it and don't rely on Server side programming languages as much. I will be showing you how to
make sure a user inputs some data, only enter numbers, valid email and a URL which will be optional.

To use the plug-in you need to download the JS file, attached at the bottom of the post or visit their homepage, also at the bottom. Let's get started
by creating the form, all explained below.

<form type="GET" action="" class="form" id="form">
<p>
<label for="name">Name:</label>
<input type="text" id="name" name="name" size="30" class="required" minlength="2" maxlength="25" />
</p>
<p>
<label for="rank">Rank:</label>
<input type="text" id="rank" name="rank" size="30" class="required" minlength="4" maxlength="15" />
</p>
<p>
<label for="postCount">Post Count:</label>
<input type="text" id="postCount" name="postCount" size="6" class="required digits" maxlength="6" />
</p>
<p>
<label for="postCount">Email:</label>
<input type="text" id="email" name="email" size="30" class="required email" maxlength="30" />
</p>
<p>
<label for="postCount">URL:</label>
<input type="text" id="url" name="url" value="http://" size="30" class="url" maxlength="40" />
</p>
<p>
<input class="submit" type="submit" value="Submit" />
</p>
</form>


You might not understand what all this means yet, nor will most of you ever found use for the label tag but here it is required. We create our
normal form tags and add our type, the action can be added if you wish to do something with this information (this tutorial we will not) we must add
a class and an id. Make sure they are the same.


<label for="name">Name:</label>

Now we have created our form, we must add labels so Validation knows what to look for. We must add the "for" attribute to the label which
will be equal to the name and the id of the input field followed. Now we have created our label, we need create our input field.

We need to just create a normal input field, but the name and id must be the same and they have to be the same as the label tag that was just before
it. You can add anything else you wish to add to the input tag, but one thing you may not change is the class. The plug-in reads the class and that
is how it knows what to validate. In our first example we only wish to make sure the user inputs something so you just have to add the class
"required". But I don't want them to input more than 25 characters, so I just added;

maxlength="25"

Which is an atttribute of the input field for text. There are many other words you can add to validate it further. Here I have used;
digits - Only numbers which is required
email - A valid email which is required
url - A valid url, must start with "http://" set by the plugi-in so I have used "value" to help them out. The URL is not required.

There are many others which can be found here.

If it is not validated correctly, it will show an error message next to the textbox. When you click on submit, if one is not valid it will show the
message and not complete the action.


More about the plug-in can be found here;
Plugins/Validation - jQuery JavaScript Library

Plug-in homepage (includes download);
bassistance.de » jQuery plugin: Validation

More plug-ins can be found here;
Plugins - jQuery JavaScript Library

Hope you enjoyed this tutorial. +rep if you liked

Regards,
Brandon
  • 2


#437071 jQuery: Events

Posted by Brandon W on 26 February 2009 - 04:55 AM

Your welcome mate, take your time :)
  • 1


#436853 jQuery: Events

Posted by Brandon W on 25 February 2009 - 02:21 AM

G'day everyone.

This is the third sequence of my jQuery tutorials. The first one was all the selectors, the second was making a table stripey, now this one will be
using events such as onclick, onkeyup etc. in jQuery. I said in my previous tutorial I would be showing you how to sort data easily in jQuery, but I
decided to change my mind. The next tutorial will show you one of the ways you can sort the table data, using AJAX and MySQL. The one after that, it
will be even MORE simple! We will be using a jQuery plugin.

As I mentioned in the previous tutorials, you must have the jQuery.js file. This can be found in the first tutorial. Another thing you might need for
this tutorial will be the previous source code from tutorial 2. If you have been following you might have created your own code, but here is mine if
you didn't;

<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>Zebra Stripes</title>

<style type="text/css">
thead tr th {
background-color: #93008E;
}

tr {
background-color: #FFADFC;
}

tr.alt td {
background-color: white;
}

tr.over td, tr:hover td {
background-color: #93008E;
}
</style>

<script src="jQuery.js" type="text/javascript"></script>

<script type="text/javascript">
$(document).ready(function() {
$(".zebra tr:even").addClass("alt");
});
</script>
</head>
<body>

<table width = "650" class = "zebra">
<thead>
<tr>
<th>
Name
</th>
<th>
Rank
</th>
<th>
Post Count
</th>
<th>
Avatar Rating
</th>
</tr>
</thead>
<tbody>
<tr>
<td>
Jordan
</td>
<td>
Administrator
</td>
<td>
12,447
</td>
<td>
8
</td>
</tr>
<tr>
<td>
Xav
</td>
<td>
Code Slinger
</td>
<td>
12,146
</td>
<td>
7
</td>
</tr>
<tr>
<td>
TcM
</td>
<td>
Code Warrior
</td>
<td>
8,450
</td>
<td>
9
</td>
</tr>
<tr>
<td>
WingedPanther
</td>
<td>
Super Moderator
</td>
<td>
5,079
</td>
<td>
7
</td>
</tr>
<tr>
<td>
chili5
</td>
<td>
Code Warrior
</td>
<td>
4,431
</td>
<td>
9
</td>
</tr>
<tr>
<td>
marwex89
</td>
<td>
Guru
</td>
<td>
3,995
</td>
<td>
6
</td>
</tr>
<tr>
<td>
John
</td>
<td>
Co-Administrator
</td>
<td>
3,762
</td>
<td>
10
</td>
</tr>
<tr>
<td>
Egz0N
</td>
<td>
Guru
</td>
<td>
3,674
</td>
<td>
9
</td>
</tr>
<tr>
<td>
amrosama
</td>
<td>
Code Warrior
</td>
<td>
3,283
</td>
<td>
7
</td>
</tr>
<tr>
<td>
v0id
</td>
<td>
Retired
</td>
<td>
2,697
</td>
<td>
5
</td>
</tr>
<tr>
<td>
MathXpert
</td>
<td>
Guru
</td>
<td>
2,263
</td>
<td>
8
</td>
</tr>
<tr>
<td>
mendim.
</td>
<td>
Guru
</td>
<td>
2,032
</td>
<td>
8
</td>
</tr>
<tr>
<td>
Brandon W
</td>
<td>
Guru
</td>
<td>
2,004
</td>
<td>
10
</td>
</tr>
<tr>
<td>
MikeM
</td>
<td>
Guru
</td>
<td>
1,494
</td>
<td>
10
</td>
</tr>
</tbody>
</table>

</body>
</html>


What we will be doing in this tutorial, is adding a onhover effect to the elements with the class "over". As you can see there is no elements, but
if you read the previous tutorial, I highly suggest you do, you will understand why there isn't an element, yet, with the class over. Also the hover
effect already works because we added it the CSS, but what about the browsers that don't support :hover *cough*IE*cough*? jQuery can do this too.

So let's get started;
Here is some new jQuery code you must insert;

$(".zebra tr").mouseover(function() {
$(this).addClass("over");
});


This must still fall into the function that checks when the DOM is ready, so the new code looks like this;

$(document).ready(function() {
$(".zebra tr").mouseover(function() {
$(this).addClass("over");
});
$(".zebra tr:even").addClass("alt");
});

Now comes the explanation. The beginning part of this new code selects all the elements with the class zebra (only our table) then every tr element
inside that class. Once they are all selected when add a new funtion, mouseover. This will mean when the element is hovered over the function after
will be ran. In our case. It will run;

$(this).addClass("over");

The selector "this" will select the element last time an element was selected so it will select our table's tr elements. Then it will add the class
"over" to that element. In summary, the class "over" will be added to the tables tr elements when they are hovered over.

Now we need to add a new event which will remove the class when the mouse is left. This is basically the same as above, but we will remove the class.

$(".zebra tr").mouseout(function() {
$($this).removeClass("over")
});


All this code can be cut down to very few lines. But that is more advanced, probably the hardest jQuery gets, so I will show you in another tutorial.
If you would like to see how to do it, you can just Google "jQuery chains".

Hope you enjoyed the tutorial. Tutorial one and two can be found in my signature.

Good luck ;)

+rep if you liked.

Regards,
Brandon
  • 2


#436584 jQuery: Zebra striped table

Posted by Brandon W on 24 February 2009 - 03:16 AM

G'day everyone. Welcome two my second tutorial on jQuery, this one is a follow up from the other one. The first tutorial was based around learning all
the selectors that jQuery has to offer, but in this tutorial we will be using some of those selectors to style a table and add zebra stripes to it.

Most would think, isn't CSS3 implementing this new feature anyway? To answer that yes it is. Then why are we using jQuery? We are using jQuery because
it's so very simple to do something like this, and we all know how slow IE can be to implement these new CSS features ;)

I will not be explaining any of the HTML in this tutorial, some CSS I will make exceptions. But most of the CSS explanations will be in comments. I
will explain ALL the jQuery, considering this is what it's based on.

Enough chit chat, let's get started.

So I have gone ahead and created a simple table of some CC members. I got all of them from the order of post count ;) You can use whatever information
your heard desires, but this was the easiest for me. Also, if you do decide to create your own. Keep it, the next tutorial will be based on sorting
this data the quick way :)

Here is the code for my table;

<table width = "650">
<thead>
<tr>
<th>
Name
</th>
<th>
Rank
</th>
<th>
Post Count
</th>
<th>
Avatar Rating
</th>
</tr>
</thead>
<tbody>
<tr>
<td>
Jordan
</td>
<td>
Administrator
</td>
<td>
12,447
</td>
<td>
8
</td>
</tr>
<tr>
<td>
Xav
</td>
<td>
Code Slinger
</td>
<td>
12,146
</td>
<td>
7
</td>
</tr>
<tr>
<td>
TcM
</td>
<td>
Code Warrior
</td>
<td>
8,450
</td>
<td>
9
</td>
</tr>
<tr>
<td>
WingedPanther
</td>
<td>
Super Moderator
</td>
<td>
5,079
</td>
<td>
7
</td>
</tr>
<tr>
<td>
chili5
</td>
<td>
Code Warrior
</td>
<td>
4,431
</td>
<td>
9
</td>
</tr>
<tr>
<td>
marwex89
</td>
<td>
Guru
</td>
<td>
3,995
</td>
<td>
6
</td>
</tr>
<tr>
<td>
John
</td>
<td>
Co-Administrator
</td>
<td>
3,762
</td>
<td>
10
</td>
</tr>
<tr>
<td>
Egz0N
</td>
<td>
Guru
</td>
<td>
3,674
</td>
<td>
9
</td>
</tr>
<tr>
<td>
amrosama
</td>
<td>
Code Warrior
</td>
<td>
3,283
</td>
<td>
7
</td>
</tr>
<tr>
<td>
v0id
</td>
<td>
Retired
</td>
<td>
2,697
</td>
<td>
5
</td>
</tr>
<tr>
<td>
MathXpert
</td>
<td>
Guru
</td>
<td>
2,263
</td>
<td>
8
</td>
</tr>
<tr>
<td>
mendim.
</td>
<td>
Guru
</td>
<td>
2,032
</td>
<td>
8
</td>
</tr>
<tr>
<td>
Brandon W
</td>
<td>
Guru
</td>
<td>
2,004
</td>
<td>
10
</td>
</tr>
<tr>
<td>
MikeM
</td>
<td>
Guru
</td>
<td>
1,494
</td>
<td>
10
</td>
</tr>
</tbody>
</table>


NOTE: If you do create your own information, make sure you create the thead and tbody tags. And in the thead section make sure you use the th tags.
This can all be seen in my example. The table looks like this;
Posted Image

As you can see this is quite boring. But we will improve that in the next section.

Now that we have our basic table, we have to add some "style" to it. Let's create two classes, both of them for our table rows. I am going to
call mine "over" and "alt". DO NOT go through the table and add those two classes to every table row! jQuery will make it very easy for us :) Let's
also give our table a class, I named mine zebra.

Now let's add some shnazzy CSS to the classes we created. You won't quite understand what they will do yet, so you can just copy mine now and after
you can come back and change it to the way you like it. Since I know the outcome, I am going to make my table purple :)


thead tr th {
background-color: #93008E;
}

tr {
background-color: #FFADFC;
}

tr.alt td {
background-color: white;
}

tr.over td, tr:hover td {
background-color: #A1009B;
}


As you can see, if you used my code, we have a little hover effect going now which is great! We also have a good looking table, I love purple hehe.
Posted Image

If you think this is a zebra yet, it looks colourful, but it's still not stripey :( jQuery will fix that :)

So let's get started with the jQuery. Before we can use it, we must include the jQuery.js file into out page (link found in previous tutorial, link
at bottom).


<script src="jQuery.js" type="text/javascript"></script>


Now it's included we can now start to use the power of it. Here is the first line of code we will be using.

$(document).ready(function() {

});

This code you will see many times during jQuery. What this does is, the $ stands for jQuery. Then we use a selector that will select the document.
And when it is ready it will fun the function that is enclosed between the {}. So in basic, all this is saying is when the DOM (document) is ready
do the code in the function. Which we will now add some code too it :)

$(document).ready(function() {
$(".zebra tr").addClass("alt");
});


This means; when the DOM has finished loading, use a selector to select all the elements with the class of zebra (the table) and all the tr elements
inside that element with the class of zebra. This will select all the table row elements in our table. Now we want to do something to that selector.
We will use a predefined class named addClass() which will then go through and add;

class = "alt"

To every element it had selected. But this doesn't solve our problem of making it striped, we must choose every second table row to stripe. How can
we do this? If you read through the previous tutorial, we only have to add a filter to the tr element in the jQuery selection process.

$(document).ready(function() {
$(".zebra tr:even").addClass("alt");
});


Now in just three lines of jQuery we have a stripped table! As you have noticed, in the CSS there is a class mentioned, over. This will also be
used in the next tutorial ;)

Hope you enjoy playing around with your newly created striped table. Have fun :)
Final result;
Posted Image

+rep if you liked.

Regards,
Brandon

Tutorial 1 can be found here;
Tutorials - CodeCall Programming Forum
  • 3


#436583 jQuery: Selectors

Posted by Brandon W on 24 February 2009 - 03:12 AM

G'day everyone.

In this tutorial I will be teaching you all the selectors of jQuery. jQuery is a very powerful AJAX/Javascript based framework, that can be downloaded freely (link at the bottom of the tutorial). If you wish to use jQuery, you don't need to have any knowledge of Javascript at all. As long as you have 10 minutes you can learn it :) I am not joking! 10 minutes is all it takes!

This is a fairly basic and straight forward reference, but I am writing this one so you can refer back to this when you stuck on my future tutorials. I hope to start writing many jQuery tutorials, so I am starting from the very basics.

jQuery supports most of the CSS2 and CSS3 selectors, so if you already have a background in CSS, you have already got a head start.

Enough chit chat and let's get started.

Basics
#id
This will match any element with the given ID.

element
This will match any element supplied.

.class
This will match any element with the given class.

*
This will match any element, also known as the wildcard.

Hierarchy
ancestor descendant
This will match any elements descendants of the ancestor given.

parent > child
This will match any elements child of the parent given. (similar to above)

prev + next
This will match any element that is given next to the previous. Both must be given.

prev ~ siblings
This will match any elements siblings after the previous element.

Basic Filters
:first
This will match any first selected element given.

:last
This will match any last selected element given.

:not(selector)
This will filter out any given selector.

:even
This will match any even elements, zero indexed

:odd
This will match any odd elements, zero indexed.

:eq(index)
This will match a single element indexed by the given index.

:gt(index)
This will match all elements with the index above the given one.

:lt(index)
This will match all elements below the given one.

:header
This will match all header elements eg. h1, h2, h3 etc.

:animated
This will match all animated elements.

Content Filters
:contains(text)
This will match all elements with the contained text.

:empty
This will match all elements that have no children. (includes text nodes)

:has(selector)
This will match all elements which contain at least one of the given selector.

:parent
This will match all elements which have children. (includes text)

Visibility Filters
:hidden
This will match all elements that are hidden.

:visibile
This will match all elements that are visibile.

Attribute Filters
[attribute]
This will match all elements with the given attribute.

[attribute=value]
This will match all elements with the given value that equals the given attribute.

[attribute!=value]
This will match all elements that do not have the given value that equals the given attribute.

[attribute^=value]
This will match all elements that either don't have the given attribute or do have the given attribute but not with a certain value.

[attribute$=value]
This will match all elements that have the given attribute and ends with the given value.

[attribute*=value]
This will match all elements that have the given attribute and it contains the given value.

[attributeFilter1][attributeFilter2][attributeFilter3]
This will match all elements that have the given attributes.

Child Filters
:nth-child(index/even/odd/equation)
This will match all elements that are the nth-child of their parents or that their parent's even or odd children.

:first-child
This will match all the elements that are the first child of the given parent.

:last-child
This will match all the elements that are the last child of the given parent.

:only-child
This will match all the elements thare the the only child of the given parent.

Forms
:input
This will match all the input, textarea, select and button elements.

:text
This will match all the input elements of type text.

:password
This will match all the input elements of type password.

:radio
This will match all the input elements of type radio.

:checkbox
This will match all the input elements of type checkbox.

:submit
This will match all the input elements of type submit.

:image
This will match all the input elements of type image.

:reset
This will match all the input elements of type reset.

:button
This will match all the button elements and input elements of type button.

:file
This will match all the input elements of type file.

Form Filters
:enabled
This will match all elements that are enabled.

:disabled
This will match all elements that are disabled.

:checked
This will match all elements thare are checked.

:selected
This will match all elements that are selected.


That is just about every selector jQuery supports. And as mentioned above, if you have a background of CSS, you already have a head start.

Over the next couple of weeks, we will be using a fair bit of these selectors but not all of them. So you don't need to memorize them ;) It's a good idea to save them somewhere or even print them for easier finding :)

I hope my next tutorial will be on adding certain CSS styles to a table row without having to write a class for each and every one of them ;)

+rep if you found this information useful


Regards,
Brandon

jQuery latest;
Downloading jQuery - jQuery JavaScript Library
  • 3


#405045 Huge list of Geek Quotes

Posted by Brandon W on 09 November 2008 - 03:16 AM

Well a mate of mine on MSN sent me this link out of the complete blue and it had HEAPS of geek quotes. I have seen some around here so here is a big list of them all :D Enjoy!!

The site:
Rafael Trindade » Best Geek Quotes

OR the quotes - Go to the site!

There are 10 types of people in the world: those who understand binary, and those who don’t
If at first you don’t succeed; call it version 1.0
I’m not anti-social; I’m just not user friendly
My software never has bugs. It just develops random features
Roses are #FF0000 , Violets are #0000FF , All my base belongs to you
In a world without fences and walls, who needs Gates and Windows?
Hand over the calculator, friends don’t let friends derive drunk
I would love to change the world, but they won’t give me the source code
Enter any 11-digit prime number to continue…
The box said ‘Requires Windows 95 or better’. So I installed LINUX
A penny saved is 1.39 cents earned, if you consider income tax
Unix, DOS and Windows…the good, the bad and the ugly
A computer lets you make more mistakes faster than any invention in human history - with the possible exceptions of handguns and tequila
The code that is the hardest to debug is the code that you know cannot possibly be wrong
UNIX is basically a simple operating system, but you have to be a genius to understand the simplicity
Ethernet (n): something used to catch the etherbunny
C://dos
C://dos.run
run.dos.run
You know it’s love when you memorize her IP number to skip DNS overhead
JUST SHUT UP AND REBOOT!!
1f u c4n r34d th1s u r34lly n33d t0 g37 l41d
Alcohol & calculus don’t mix. Never drink & derive
How do I set a laser printer to stun?
There is only one satisfying way to boot a computer
Concept: On the keyboard of life, always keep one finger on the escape button
It’s not bogus, it’s an IBM standard
Be nice to the nerds, for all you know they might be the next Bill Gates!
The farther south you go, the more dollar stores there are
Beware of programmers that carry screwdrivers
The difference between e-mail and regular mail is that computers handle e-mail, and computers never decide to come to work one day and shoot all the other computers
If you want a language that tries to lock up all the sharp objects and fire-making implements, use Pascal or Ada: the Nerf languages, harmless fun for children of all ages, and they won’t mar the furniture
COFFEE.EXE Missing - Insert Cup and Press Any Key
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning
LISP = Lots of Irritating Silly Parentheses
The beginning of the programmer’s wisdom is understanding the difference between getting program to run and having a runnable program
Squash one bug, you’ll see ten new bugs popping
Everytime i time i touch my code, i give birth to ten new bugs
boast = blogging is open & amiable sharing of thoughts
We are sorry, but the number you have dialed is imaginary. Please rotate your phone 90 degrees and try again
Cannot find REALITY.SYS. Universe halted
If it weren’t for C, we’d all be programming in BASI and OBO
Bad command or file name! Go stand in the corner
Bad or corrupt header, go get a haircut
Unrecognized input, get out of the class
Warning! Buffer overflow, close the tumbler !
WinErr 547: LPT1 not found… Use backup… PENCIL & PAPER
Bad or missing mouse driver. Spank the cat? (Y/N)
Computers make very fast, very accurate mistakes
Best file compression around: “rm *.*” = 100% compression
Hackers in hollywood movies are phenomenal. All they need to do is “c:\> hack into fbi”
BREAKFAST.COM Halted…Cereal Port Not Responding
I survived an NT installation
The name is Baud……James Baud
My new car runs at 56Kbps
Why doesn’t DOS ever say “EXCELLENT command or filename!”
File not found. Should I fake it? (Y/N)
Cannot read data, leech the next boy’s paper? (Y/N)
CONGRESS.SYS Corrupted: Re-boot Washington D.C (Y/n)?
Does fuzzy logic tickle?
Helpdesk : Sir, you need to add 10GB space to your HD , Customer : Could you please tell where I can download that?
Windows: Just another pane in the glass
Who’s General Failure & why’s he reading my disk?
RAM disk is not an installation procedure
Shell to DOS…Come in DOS, do you copy? Shell to DOS…
The truth is out there…anybody got the URL?
Smash forehead on keyboard to continue…..
E-mail returned to sender — insufficient voltage
Help! I’m modeming… and I can’t hang up!!!
All wiyht. Rho sritched mg kegtops awound?
Once I got this error on my Linux box: Error. Keyboard not attached. Press F1 to continue
Once I got this error on my Linux box: Error. Mouse not attached. Please left click the ‘OK’ button to continue
Press any key to continue or any other key to quit…
Press every key to continue
Helpdesk: Sir if you see the blue screen, press any key to continue. Customer : hm.. just a min.. where’s that ‘any key’..
Idiot, Go ahead, make my data!
Old programmers never die; they just give up their resources
To err is human - and to blame it on a computer is even more so
(001) Logical Error CLINTON.SYS: Truth table missing
Clinton:/> READ | PARSE | WRITE | DUMP >> MONKIA.SYS
(D)inner not ready: (A)bort ®etry (P)izza
Computers can never replace human stupidity
A typical Yahoo! inbox : Inbox(0), Junk(9855210)
(A)bort, ®etry, (P)anic?
Bugs come in through open Windows
Penguins love cold, they wont survive the sun
Unix is user friendly…its just selective about who its friends are
Artificial intelligence usually beats real stupidity
Bell Labs Unix — Reach out and grep someone.
To err is human…to really foul up requires the root password.
Invalid password : Please enter the correct password to (Abort / Retry / Ignore )
FUBAR - where Geeks go for a drink
I degaussed my girlfriend and I’m just not attracted to her anymore
Scandisk : Found 2 bad sectors. Please enter a new HD to continue scanning
Black holes are where God divided by zero
Hey! It compiles! Ship it!
Thank god, my baby just compiled
Yes! My code compiled, and my wife just produced the output
Windows 98 supports real multitasking - it can boot and crash simultaneously
Zap! And there was the blue screen !
Please send all spam to my main address, root@localhost
MailerD(a)emon: You just received 9133547 spam. (O)pen all, ®ead one by one, ©heck for more spam
A: Can you teach me how to use a computer? B: No. I just fix the machines, I don’t use them
PayPal: Your funds have been frozen for 668974 days
1-800-404 : The subscriber you are trying to call does not exist
1-800-403 : Access to that subscriber was denied
Error message: “Out of paper on drive D:”
If I wanted a warm fuzzy feeling, I’d antialias my graphics!
A printer consists of three main parts: the case, the jammed paper tray and the blinking red light
“Mr. Worf, scan that ship.” “Aye Captain. 300 dpi?”
Smith & Wesson: The Original Point And Click Interface
Shout onto a newsgroup : It echoes back flames and spam
Firewall : Intruder detected. (A)llow in (D)eactivate the firewall
Real programmers can write assembly code in any language
Warning! Perl script detected! (K)ill it , (D)eactivate it
Firewall : Do you want to place a motion detector on port 80 ?
Helpdesk: Sir, please refill your ink catridges Customer : Where can i download that?
All computers run at the same speed… with the power off
You have successfully logged in, Now press any key to log out
Sorry, the password you tried is already being used by Dorthy, please try something else.
Sorry, that username already exists. (O)verwrite it ©ancel
Please send all flames, trolls, and complaints to /dev/toilet
Shut up, or i’ll flush you out
Cron : Enter cron command \ Now enter the number of minutes in an hour
We are experiencing system trouble — do not adjust your terminal
You have successfully hacked in, Welcome to the FBI mainframes.
I’m sorry, our software is perfect. The problem must be you
Never underestimate the bandwidth of a station wagon full of tapes hurling down the highway
Webhost livehelp: Sir you ran out of bandwidth, User: Where can I download that?
If Ruby is not and Perl is the answer, you don’t understand the question
Having soundcards is nice… having embedded sound in web pages is not
My computer was full, so I deleted everything on the right half
You have received a new mail which is 195537 hours old
Yahoo! Mail: Your email was sent successfully. The email will delivered in 4 days and 8 hours
I’m sorry for the double slash (Tim Berners-Lee in a Panel Discussion, WWW7, Brisbane, 1998)
Ah, young webmaster… java leads to shockwave. Shockwave leads to realaudio. And realaudio leads to suffering
What color do you want that database?
C++ is a write-only language, once can write programs in C++, but I can’t read any of them
As of next week, passwords will be entered in Morse code
earth is 98% full … please delete anyone you can
A typical yahoo chat room: “A has signed in, A has signed out, B has signed in, B has signed out, C has signed in, C has signed out..”
When someone says “I want a programming language in which I need only say what I wish done,” give him a lollipop
Warning! No processor found! Press any key to continue
Failure is not an option. It comes bundled with your Microsoft product
NT is the only OS that has caused me to beat a piece of hardware to death with my bare hands
Warning! Kernel crashed, Run for your lives !
NASA uses Windows? Oh great. If Apollo 13 went off course today the manual would just tell them to open the airlock, flush the astronauts out, and re-install new one
JavaScript: An authorizing language designed to make Netscape crash
How’s my programming? Call 1-800-DEV-NULL
Yes, friends and neighbors, boys and girls - my PC speaker crashed NT
root:> Sorry, you entered the wrong password, the correct password is ‘a_49qwXk’
New linux package released. Please install on /dev/null
Quake and uptime do not like each other
Unix…best if used before: Tue Jan 19 03:14:08 GMT 2038
As you well know, magic and weapons are prohibited inside the cafeteria — Final Fantasy VIII
Man is the best computer we can put aboard a spacecraft…and the only one that can be mass produced with unskilled labo
Unix is the only virus with a command line interface
Windows 95 makes Unix look like an operating system
How are we supposed to hack your system if it’s always down!
God is real, unless declared integer
I’m tempted to buy the slashdot staff a grammar checker. What do they do for 40 hours a week?
Paypal : Please enter your credit card number to continue
It takes a million monkeys at typewriters to write Shakespeare, but only a dozen monkeys at computers to run Network Solutions
Please help - firewall burnt down - lost packet - reward $$$
If Linux were a beer, it would be shipped in open barrels so that anybody could piss in it before delivery
Thank you Mario! But our princess is in another castle
Perl, the only language that looks the same before and after RSA encryption
Norton: Incoming virus - (D)ownload and save ®un after download
I had a dream… and there were 1’s and 0’s everywhere, and I think I saw a 2!
You sir, are an unknown USB device driver
C isn’t that hard: void (*(*f[])())() defines f as an array of unspecified size, of pointers to functions that return pointers to functions that return void


  • 1


#399947 Need help on a project:)

Posted by Brandon W on 25 October 2008 - 09:40 PM

How's this?
An Introduction to Python - if Statements
  • 1




Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download