Home
 

Login Form



Buy Me a Coffee

I need a coffee constantly so, if you're enjoying this site, please buy me a cup!

Article Tags


The Joys of Motoring PDF Print E-mail
Written by Xander   
Tuesday, 31 August 2010 12:53
AddThis Social Bookmark Button

essopumpsThis is the house I was born in, although the pumps had gone when I arrived. This picture was taken around 1954.

Last Updated on Tuesday, 31 August 2010 12:17
 
Installing Android SDK and Eclipse PDF Print E-mail
Written by Xander   
Wednesday, 18 August 2010 13:44
AddThis Social Bookmark Button

SOURCE: http://androidforums.com/developer-101/2321-installing-eclipse-android-sdk-ubuntu-8-04-8-10-a.html

"This tutorial worked for me, with a few deviations, lol, posting it here for my reference and so I can find it easily! along with all the other stuff on my site"

Note: In this tutorial, I’m using Xubuntu 8.04. These steps are the same for Ubuntu and Kubuntu as well. They’re also the exact same for [Xu|Ku|U]buntu 8.10.

The first thing we need to do is download all of the needed files. First up, the Android SDK. You can download it fromhttp://code.google.com/android/download.html

We’re also going to need Eclipse. Head over tohttp://www.eclipse.org/downloads/. The version we want isEclipse IDE for Java Developers. The JEE version will work as well.

Next, we’re going to need Java. Bring up a terminal window (Applications -> Accessories -> Terminal). We can install it using apt, by running...

sudo apt-get install sun-java6-bin

devolio01

(If you’re using a 64 bit distribution, you’ll also need to install the ia32-libs as well)

Once it’s done downloading the files, it will prompt you about the license.



Press tab, and then enter. It will tell you that you have to accept the license to continue, and then prompt you again. Select yes, and press enter to continue.



Now that Java is installed, we can get started on Eclipse. First, let’s untar/gzip Eclipse. In our terminal window...

cd ~/Desktop

And then untar/gzip the file.

tar xvfz eclipse-jee-ganymede-SR1-linux-gtk.tar.gz



Finally, move it into your home folder.

mv eclipse ~



Now, if you want to add eclipse to your menu, right click on Applications and Edit Menu. Click on Programming, and then click New Item. Type in the name, and the full location to Eclipse (/home/yourusername/eclipse/eclipse), and finally, click OK.

Personally, I just made a launcher for it on my Desktop.



Now, let’s extract the Android SDK. Back in the terminal again...

unzip android-sdk-linux_x86-1.0_r1.zip



Let’s move the resulting folder into our home folder.

mv android-sdk-linux_x86-1.0_r1/ ~



Now,this is the single most important step. Without this, we’ll encounter all sorts of odd problems later. Open up your ~/.bashrc in your favorite editor (because I’m doing this in Xubuntu, I’m using mousepad. You can use whatever you’d like.)

sudo mousepad ~/.bashrc

And we’re going to add the following at the bottom of the file (making sure you replace yourusername with your actual username.)

export PATH=${PATH}:/home/yourusername/android-sdk-linux_x86-1.0_r1/tools



Save the changes, and exit your editor. Now, we can start up Eclipse.

Eclipse will prompt you to choose a workspace location.



This is where all of your project files will be stored. Set it where you want, and click OK.

Once Eclipse is started up, we can add the ADT plugin. In the menu,Help -> Software Updates.



Click on the Available Software tab, and then Add Site. For the location, we’re going to enterhttp://dl-ssl.google.com/android/eclipse/



And click OK. Eclipse will go find the list of available software, and update your list.



Click the checkbox next to the Location we just added to select all of the software, and click Install.



Eclipse will calculate all of the requirements and download the needed files. Then you’ll be greeted by the Install window.



Click Next to install the selected tools. You’ll be asked to agree to the license.



Accept the license agreement, and then click Finish. Eclipse will install everything...



...And then will prompt you to restart, click Yes. Eclipse will restart.

The last thing we need to do is point the ADT plugin to our Android SDK folder. In the top menu, go toWindow -> Preferences, and then click on the Android tab.



Click Browse, choose the Android SDK folder, and then click OK. Now click Apply and let Eclipse crunch on it for a second or two.



And click OK. You’re finished!

To run a quick test and make sure everything is working properly, go toFile -> New -> Project. Expand Android, click on Android Project, and click Next.



Now we’ll have to fill in our project information. Because this is a test run, we’ll call the project testrun. For the package name, we’ll use com.android.test. And last but not least, the activity name will be test.



Click Finish.

Eclipse will crunch on that for a second, and open the project in the left pane. Expand the main tree to see the file structure of a default new project. The last thing we need to do before we run our test application is set up a run configuration. In the menu, go toRun -> Run Configurations...

Double click on Android Application and it will create a new configuration. Give the configuration a name, and click browse for the project.



Choose your project, click OK. Now click Apply, then Run.

You’ll notice the bottom pane switches over to Console. This will let you know what’s going on with the emulator. After a few seconds, the emulator will start up.



Note that the first run will take *much* longer than usual to start up, as it’s setting up the Android OS while it starts up for the first time. Depending on the specs of your computer, it can take anywhere from a few minutes to over half an hour.

After awhile, you’ll arrive at the starting screen. Usually, you’ll get a few errors as things start up and can’t be started.



I usually just click wait. In the console, you’ll see it install, and then start up your application.





And with that, it’s time for you to dive into the code and start making your application.

 
VBA's Most Useful Built-in Functions FunctionWhat It Does AbsReturns a number's absolute value ArrayReturns a PDF Print E-mail
Written by Xander   
Monday, 09 August 2010 13:18
AddThis Social Bookmark Button

VBA’s Most Useful Built-in Functions

Function

What It Does

Abs

Returns a number’s absolute value

Array

Returns a variant containing an array

Asc

Converts the first character of a string to its ASCII value

Atn

Returns the arctangent of a number

Choose

Returns a value from a list of items

Chr

Converts an ANSI value to a string

Cos

Returns a number’s cosine

CurDir

Returns the current path

Date

Returns the current system date

DateAdd

Returns a date to which a specified time interval has been

added — for example, one month from a particular date

DateDiff

Returns an integer showing the number of specified time intervals between two dates, for example the number of months between now and your birthday

DatePart

Returns an integer containing the specified part of a given

date — for example, a date’s day of the year

DateSerial

Converts a date to a serial number

DateValue

Converts a string to a date

Day

Returns the day of the month from a date value

Dir

Returns the name of a file or directory that matches a pattern

Erl

Returns the line number that caused an error

Err

Returns the error number of an error condition

Error

Returns the error message that corresponds to an error number

Exp

Returns the base of the natural logarithm (e) raised to a power

FileLen

Returns the number of bytes in a file

Fix

Returns a number’s integer portion

Format

Displays an expression in a particular format

GetSetting

Returns a value from the Windows registry

Hex

Converts from decimal to hexadecimal

Hour

Returns the hours portion of a time

InputBox

Displays a box to prompt a user for input

InStr

Returns the position of a string within another string

Int

Returns the integer portion of a number

IPmt

Returns the interest payment for an annuity or loan

IsArray

Returns True if a variable is an array

IsDate

Returns True if an expression is a date

IsEmpty

Returns True if a variable has not been initialized

IsError

Returns True if an expression is an error value

IsMissing

Returns True if an optional argument was not passed to a procedure

IsNull

Returns True if an expression contains no valid data

IsNumeric

Returns True if an expression can be evaluated as a number

IsObject

Returns True if an expression references an OLE Automation object

LBound

Returns the smallest subscript for a dimension of an array

LCase

Returns a string converted to lowercase

Left

Returns a specified number of characters from the left of a string

Len

Returns the number of characters in a string

Log

Returns the natural logarithm of a number to base e

LTrim

Returns a copy of a string, with any leading spaces removed

Mid

Returns a specified number of characters from a string

Minute

Returns the minutes portion of a time value

Month

Returns the month from a date value

MsgBox

Displays a message box and (optionally) returns a value

Now

Returns the current system date and time

RGB

Returns a numeric RGB value representing a color

Right

Returns a specified number of characters from the right of a string

Rnd

Returns a random number between 0 and 1

RTrim

Returns a copy of a string, with any trailing spaces removed

Second

Returns the seconds portion of a time value

Sgn

Returns an integer that indicates a number’s sign

Shell

Runs an executable program

Sin

Returns a number’s sine

Space

Returns a string with a specified number of spaces

Sqr

Returns a number’s square root

Str

Returns a string representation of a number

StrComp

Returns a value indicating the result of a string comparison

String

Returns a repeating character or string

Tan

Returns a number’s tangent

Time

Returns the current system time

Timer

Returns the number of seconds since midnight

TimeSerial

Returns the time for a specified hour, minute, and second

TimeValue

Converts a string to a time serial number

Trim

Returns a string without leading or trailing spaces

TypeName

Returns a string that describes a variable’s data type

UBound

Returns the largest available subscript for an array’s dimension

Ucase

Converts a string to uppercase

Val

Returns the numbers contained in a string

VarType

Returns a value indicating a variable’s subtype

Weekday

Returns a number representing a day of the week

Year

Returns the year from a date value



Read more: http://www.dummies.com/how-to/content/understanding-vba-functions-and-their-uses.html#ixzz0w6uCcXXt
 
Program for joining parts of PDF files? PDF Print E-mail
Written by Xander   
Wednesday, 18 August 2010 10:38
AddThis Social Bookmark Button
There is a very good console tool for this: pdftk

To combine pages you could use a command like this.

pdftk A=first.pdf B=second.pdf C=third.pdf cat A1-20 B3 C17-20 B4 output new.pdf
You will get a new file, called "new.pdf" that has the first 20 pages of PDF A, than Page 3 of PDF B, than the pages 17-20 from PDF C and finaly page 4 from PDF B.
 
Election... PDF Print E-mail
Written by Xander   
Thursday, 06 May 2010 14:13
AddThis Social Bookmark Button

I’ve been doing a little surfing and found and excellent website which appears more unbiased than your average newspaper/TV channel/politician! It’s www.voterpower.org.uk, and details lots of interesting facts about your MP. I took a look at my constituency http://www.voterpower.org.uk/lanark-hamilton-east and was shocked to see just how little influence my vote’s going to have, take a look at yours! Another site giving some facts n figures about your MP is www.theyworkforyou.com, again I was interested to see how much/little my MP seems to do (the fact he’s only been present for about 50-60% of the votes speaks volumes to me - just wonder how the rest of the MPs do, much the same I imagine). Lots of other interesting stuff on both sites, even when it’s not election time, take a look, you’ll be surprised

http://www.theyworkforyou.com/mp/jimmy_hood/lanark_and_hamilton_east Jimmy Hood’s my MP (though why the change to "Jim" after being known as "Jimmy" for so long?)

Anyway, I doubt if anyone’s ever going to look at this page, but I hope you take a look at this, quite interesting answers to some commonly asked questions:

http://election.theyworkforyou.com/quiz

 
<< Start < Prev 1 2 3 4 5 6 7 Next > End >>

Page 1 of 7

Polls

Having a fish Supper? Do you take "salt and ....
 

Who's Online

We have 8 guests online

Advertisement

Featured Links:
Joomla Templates by Joomlashack