First of you can find the system at my github repo --------> Here
The project homepage can be found ----> Here
For this release, the build system incorporates two modes. One which downloads a full, human readable version of the C3DL library, and a minimized version which has had all the comments and white space removed for the sake of size.
If you want to test this system out for yourself, go to the git hub repo and download the system. Open up the web page contained within the download and choose to download the full or minimized version.
*Note this system is designed to be used on a linux system, so either host it on a linux server or run it local through your favourite distro*
**Also don't forget to set the permissions for the c3dlbuildbot or else you'll just end up with an error message!**
Update: Minimized version to be added in upcoming patch due to time constraints
Thursday, October 21, 2010
Updating Local repos from Github
I had Steven contribute a web interface to my C3DL build bot the other day, so I had to get my git to update to the new changes on Github.
I'll make this a short post, I had a bit of trouble getting my local repo to update.
I tried using
- git fetch - This basically just ran but I saw no results, and nothing actually changed so not totally sure what happened.
- git push - This gave me an error message when I tried running it just like so:
So, finally I figured out my dilemma, if you've only created one repo it *should* be named "origin". To be sure use the command
git remote -v - This will give you a listing of all the current remote repos stored by Git, and their symbolic names in the first column that you can use.
So in my case by updating my push command, it ended up becoming
git pull origin master - Which to decipher means, I'm pulling from my origin remote repo and merging it with my local master branch, if you're using multiple branches here is where you would change master to whichever branch you're working on.
So much for short post ufta.
I'll make this a short post, I had a bit of trouble getting my local repo to update.
I tried using
- git fetch - This basically just ran but I saw no results, and nothing actually changed so not totally sure what happened.
- git push - This gave me an error message when I tried running it just like so:
So, finally I figured out my dilemma, if you've only created one repo it *should* be named "origin". To be sure use the command
git remote -v - This will give you a listing of all the current remote repos stored by Git, and their symbolic names in the first column that you can use.
So in my case by updating my push command, it ended up becoming
git pull origin master - Which to decipher means, I'm pulling from my origin remote repo and merging it with my local master branch, if you're using multiple branches here is where you would change master to whichever branch you're working on.
So much for short post ufta.
Tuesday, October 19, 2010
Bash troubles and their solutions
First off I have not had to do bash scripting since first semester in ULI101, because of this I remembered approximately 0.01217% of how to bash script!
So after a lot of googling, I finally feel fairly comfortable working with bash again. I'll list the issues that came up in case anyone else is perusing this and comes upon them.
1 - I've gotten super used to programming languages, therefore I forgot that shell scripting is essentially just calling command after command. So something like sending a string of text into a file isn't as simple as
"This is a string of text" > thisisafile
In order to do something simple like this we have to use a command like echo
echo "This is a string of text now not generating errors!" > stillafile
2 - Similar to my first issue, I was stuck firmly in a programming frame of mind, and was repeatedly attempting to read in a bunch of test files into arrays so that I could merge them together and send them off into a new merged file. Although you can do this, it makes much more sense to just cat everything together and call it a day
cat file1 file2 > muchsimplerthanreadingstuffin
3 - White space fun! Alright, not really fun, bash is a pretty grumpy gus about white space, take this example:
if [ "$variable" = "this works" ]
then
#do something
fi
if ["$variable" = "this doesn't"]
then
#do nothing because you'll get an error message!
fi
4 - The error messages are not very helpful at all, for instance the error I continued to get for was command not found.
After figuring out all of these little inconveniences, I'm feeling pretty confident about shell scripting again.
So after a lot of googling, I finally feel fairly comfortable working with bash again. I'll list the issues that came up in case anyone else is perusing this and comes upon them.
1 - I've gotten super used to programming languages, therefore I forgot that shell scripting is essentially just calling command after command. So something like sending a string of text into a file isn't as simple as
"This is a string of text" > thisisafile
In order to do something simple like this we have to use a command like echo
echo "This is a string of text now not generating errors!" > stillafile
2 - Similar to my first issue, I was stuck firmly in a programming frame of mind, and was repeatedly attempting to read in a bunch of test files into arrays so that I could merge them together and send them off into a new merged file. Although you can do this, it makes much more sense to just cat everything together and call it a day
cat file1 file2 > muchsimplerthanreadingstuffin
3 - White space fun! Alright, not really fun, bash is a pretty grumpy gus about white space, take this example:
if [ "$variable" = "this works" ]
then
#do something
fi
if ["$variable" = "this doesn't"]
then
#do nothing because you'll get an error message!
fi
4 - The error messages are not very helpful at all, for instance the error I continued to get for was command not found.
After figuring out all of these little inconveniences, I'm feeling pretty confident about shell scripting again.
First reactions to using Github
I'll start off -- my git repo for the C3DL build system can be found here C3DL Build Bot.
So far, I've only gotten the library files all set up, and a preliminary building system that isn't quite ready to go yet, but regardless the idea and template for what it should look like is starting to take shape.
Dave was adamant about the complexity of using Git, but I actually found it fairly easy and logical to use. So much so that I'm considering moving all projects I end coming up with onto my Git account just so I can access them anywhere and easily get help from others.
Now that I've gotten my two mid-term exams for the week over, work on this build system should start ramping up quickly, keep an eye out here or keep tabs on my github repo.
So far, I've only gotten the library files all set up, and a preliminary building system that isn't quite ready to go yet, but regardless the idea and template for what it should look like is starting to take shape.
Dave was adamant about the complexity of using Git, but I actually found it fairly easy and logical to use. So much so that I'm considering moving all projects I end coming up with onto my Git account just so I can access them anywhere and easily get help from others.
Now that I've gotten my two mid-term exams for the week over, work on this build system should start ramping up quickly, keep an eye out here or keep tabs on my github repo.
Monday, October 18, 2010
Holy smokes! Canvas TD
My highschool CS days consisted almost entirely of playing the flash version of tower defence in class.
Canvas Tower Defence
And now here it is in canvasical(??) glory!
Canvas Tower Defence
And now here it is in canvasical(??) glory!
Sunday, October 17, 2010
Getting Github off the Ground
So, I needed to get my github repo up and running, which for the most part went super smoothly, I only had one minor hiccup where I missed adding my publickey to my github account so I couldn't connect to the repo in order to push my first readme file.
If anyone has a problem, and gets the error "publickey denied", go ahead and check out this link
Publickey Setup
It'll walk you through generating your publickey on git and then adding it to your account on github
If anyone has a problem, and gets the error "publickey denied", go ahead and check out this link
Publickey Setup
It'll walk you through generating your publickey on git and then adding it to your account on github
Thursday, October 14, 2010
OSD600 Project Changed
After my initial meeting with Cathy, it was decided that it would be better for me to work on a build system for the C3DL library rather then work on re factoring the library itself.
Essentially, what I will now have to do is create a system that will be able to interact with a web interface and allow users to select which parts of the library they want to include, and combine them into one single file available for download on demand.
For the 0.1 release, I'm going to have to offer two choices to users, one being the full library with everything included, and a simplified version with only the core stuff left in.
Essentially, what I will now have to do is create a system that will be able to interact with a web interface and allow users to select which parts of the library they want to include, and combine them into one single file available for download on demand.
For the 0.1 release, I'm going to have to offer two choices to users, one being the full library with everything included, and a simplified version with only the core stuff left in.
Wednesday, October 6, 2010
Javascript tutorial
Hey there, while I was browsing Reddit today I found this link to a pretty comphrensive looking tutorial from Mozilla on javascript, you can check it out below if you're looking for a guide.
Javascript Tutorial
Javascript Tutorial
Subscribe to:
Posts (Atom)