Wednesday, September 29, 2010

Tarada C++ API 1.3

I just finished writing version 1.3 of the Tarada C++ API. You can download it here. The CRC checksum is 2460391383. You can check the CRC checksum of your copy using the cksum command.


Changes

  • Lots of bug fixes
  • Fixed problem with palindromecheck() function


Contributions

If you have any functions you would like included in the Tarada C++ API, put it in the comments. Also leave a name and possibly email and website so I can properly credit you in the header file.

Tarada C++ API 1.2

I just finished writing version 1.2 of the Tarada C++ API. You can download it here. The CRC checksum is 3593776818. You can check the CRC checksum of your copy using the cksum command.


Changes

  • Serious bug fixes
  • New functions
  • New init function
  • Even better documentation


Contributions

If you have any functions you would like included in the Tarada C++ API, put it in the comments. Also leave a name and possibly email and website so I can properly credit you in the header file.

Tarada C++ API 1.1

Download the latest release of the Tarada C++ Application Programming Interface (version 1.1) here.


Changes

I have redocumented the entire API. It is a lot easier to understand what each function in the library does.

Tuesday, September 28, 2010

Tarada C++ Application Programming Interface

Recently, I have been writing a lot of functions in C++. I've decided to combine them all into one monster library called the Tarada C++ Application Programming Interface. Currently, the API only has two functions, but I plan to add more as the library matures. If you have any functions you would like to contribute, please leave it in the comments.


Installation

You can download the API here. To install it, follow the instructions in the README file. To view the API, install it, then type less [C++_LIBRARY_LOCATION]/tarada/taradalib.h. This will show the header of the API.


If you are a C++ programmer running Linux, please download and install the API. Leave feedback in the comments so I can make the API better.

Sunday, September 12, 2010

Mini PC Scripts Daily - 09/12/2010

PC Scripts JavaScript Updates

I have added quite a bit of URL shortcuts to PC Scripts. Here is the most current list of them:


Weekly Jeopardy

Look at the standings either by here or going to http://pcscripts.webs.com?url=jstandings and answer this week's questions either by clicking here or going to http://pcscripts.webs.com?url=jeopardy.

Saturday, September 11, 2010

Some More Updates

I've made a few more changes to the JavaScript on PC Scripts. A new feature I have implemented is URL arguments. This allows you to jump directly to a page rather than selecting it in the dropdown menu. I've only made a few shortcuts so far and here they are:

Friday, September 10, 2010

A Few Updates

I know I haven't been posting recently but I have school so I am no longer able to prepare stuff for this blog during the weekdays. I will try to continue posting on the weekends (no weekend homework!) though. I have been working very hard on PC Scripts during my computer class (it's not really a class, just a free time to do anything I want on the computer) and I have a few updates today.


PC Scripts JavaScript Updates

I have been working REALLY hard to optimize the JavaScript on PC Scripts. The size of the JavaScript is now very small.


PC Scripts CSS Updates

I finally got around to learning CSS. I have customized PC Scripts a little by changing the font of some of the pages (with so many pages, it's hard to change them all!) and changing the link colors. Also, PC Scripts used to use some depreciated tags to format the layout before. Now, all of that has been changed to CSS so PC Scripts no longer has depreciated tags.


PC Scripts Ad

As you have probably noticed already, I have added an advertisement for PC Scripts on the homepage. The images in this advertisement were created by one of our partners, gSword Creative. More advertisements will come soon in that slideshow. All of our partners are making images that will be displayed in that same ad.


Funny Quotes Section

There is a new funny quotes section on the homepage. It displays a random quote that I found funny every time you load the page. You can also get a new random quote by clicking the "New Quote" button. This will go through the database of quotes and randomly select one. I am constantly adding new quotes to this so check that section every once in a while.


Tabbed Sidebar

The sidebar now has a tabbed interface. This has significantly reduced the amount of clutter in the sidebar. Currently, the "Countdowns" tab is acting up, saying it's a new decade even though the new decade doesn't start until 2011. I had put a countdown to 2011 on that tab but it claims it is already 2011! I am trying to debug this.


Weekly Jeopardy

I have greatly improved the Weekly Jeopardy page's layout over the last week and I also added a standings page. Many people have answered at least one question this week! If you haven't answered a question yet but you want to, click here and fill out the form. I will email you (provide a valid email address!!) telling you whether you got the questions correct or not.

Sunday, September 5, 2010

PC Scripts Daily - 09/05/2010

Welcome to PC Scripts Daily! I've decided to drop the edition number from the intro now. Today I have some more updates and a (not) new segment called Weekly Jeopardy! I am not doing part six of the Bash tutorial today. I will start doing a C++ tutorial and rotate between Bash and C++. Today, I don't have a tutorial at all but I will begin the rotation tomorrow, starting with C++. Also, because of some issues with one of our partner sites, I have renamed Apps Weekly to App News.


PC Scripts JavaScript Updates

I tried to combine some of my JavaScript files and it didn't really work so well so I am sticking to multiple file JavaScript. I was able to successfully combine one entire file with the main file but I didn't have any luck with the others. Oh, well. All of the files are extremely compressed anyways so it doesn't matter that much.


Weekly Jeopardy!

A long time ago, I used to do Weekly Jeopardy through email. I took three real Jeopardy questions, one from the first round, one from the second round, and the only one in the third round, and emailed it to ten people. They would email me back their answers and in a week, I would email a leader board to everyone so they could see who got the questions right and who got them wrong.

Today, I decided to start Weekly Jeopardy again but on PC Scripts (PC Scripts didn't exist when I did Weekly Jeopardy). This way, it isn't limited to ten people. Fill out the form here and I will email you to tell you whether you got it right or not. You only have one chance for each question. You may submit the answer to each question separately if you wish but I will count your first response for each question as your final answer. This means you cannot change your answer. Next week, I will post the answers and a leader board to show who got it right and who didn't. If you don't answer the question, it doesn't count against you. If you answer and get it wrong, it goes on the leader board that you got the answer wrong. The leader board will be ordered by the percentage of questions you have gotten right.


Next Edition

I know today's edition is extremely short but tomorrow is the start of the C++ tutorial. After tomorrow, I will stop posting every day because my school (look at the counter on the sidebar) starts and I will be busy every weekday. I will try to post on the weekends though.

Command Command Revolution 3.0 Released!

It's been ten days since my post about Command Command Revolution 3.0! Now that my computer is up and running again, I have finally been able to package the already finished CCR 3.0 for upload. Now it's on the Sourceforge project.

Download Command Command Revolution 3.0 here. The tar file containing ccr is now compressed with 7zip to make it even smaller than before. Please make sure you have the following packages so you can unpack the file:
  • tar
  • p7zip

If you do not have either of these packages, download and install them by typing sudo aptitude install tar && sudo aptitude install p7zip.

Updates:
  • Lots of bug fixes
  • Completely redesigned kernel
  • New level format


Click here to view the warranty and here to view the license.

To install Command Command Revolution, follow these instructions:
  1. Download the tar.7z file here or type wget http://sourceforge.net/projects/cmdcmdrev/files/Source/ccr3-0.tar.7z/download
  2. Open terminal and navigate to the location of the tar file
  3. Type p7zip -d ccr3-0.tar.7z && tar xvf ccr.tar && rm ccr.tar
  4. Type cd ccr
  5. Run ./install.sh as a superuser
  6. Make sure /usr/local/bin/ is in your path
  7. Run ./settingsinstall.sh on all users you want to play ccr on. Make sure you do not run it as a superuser! Run it as the user you want to play ccr on.
  8. Delete the ccr install folder by typing cd .. && rm -r ccr
  9. To play ccr, type ccr.sh in the terminal.

To run Command Command Revolution without having a superuser install it, follow these instructions:
  1. Download the tar.7z file here or type wget http://sourceforge.net/projects/cmdcmdrev/files/Source/ccr3-0.tar.7z/download
  2. Open terminal and navigate to the location of the tar file
  3. Type p7zip -d ccr3-0.tar.7z && tar xvf ccr.tar && rm ccr.tar
  4. Type cd ccr
  5. ./settingsinstall.sh
  6. To run, navigate to ccr/bin/ and type ./ccr.sh.

To install Command Command Revolution on a jailbroken iDevice, follow the instructions below. If you have the package Aptitude, replace apt-get with aptitude in the commands below.
  1. Make your you have either Mobile Terminal or OpenSSH installed
  2. SSH into your iDevice or open Mobile Terminal
  3. Type su
  4. If you do not have the package Tape Archive, install it by typing apt-get install tar. If you don't know whether or not you have it, install it. If you already have it, it will not install anything.
  5. If you do not have the package 7-zip, install it by typing apt-get install p7zip. Again, if you don't know whether or not you have it, install it. If you already have it, it will not install anything.
  6. If you do not have the package wget, install it by typing apt-get install wget.
  7. Type exit
  8. Type wget http://sourceforge.net/projects/cmdcmdrev/files/Source/ccr3-0.tar.7z/download
  9. Type 7z e ccr3-0.tar.7z
  10. Type rm ccr3-0.tar.7z
  11. Type tar xvf ccr.tar
  12. Type rm ccr.tar
  13. Type cd ccr
  14. Type su
  15. Type ./install.sh and hit return when prompted to
  16. Type exit
  17. Type ./settingsinstall.sh and hit return if prompted to
  18. Type cd ..
  19. Type rm -r ccr
  20. Type ccr.sh to play ccr


Credits

Everyone who helped me make CCR better is listed here.

Nanduhirion

Levels
  • Shell Slave: The Servitude
  • Shell Slave: The Rescue

Saturday, September 4, 2010

PC Scripts Daily - 09/04/2010

Hello and welcome to the seventh edition of PC Scripts Daily! Today I have some update, a new segment called Apps Weekly, and part five of the Bash tutorial.


PC Scripts JavaScript Update

I have updated the JavaScript code that runs on PC Scripts. I have fixed some errors and made it more efficient. I have also added the code for the slideshow and I am waiting for our friends at gSword Creative for the images that will go into the slideshow.

I am going to combine as many JavaScript files as possible to shorten the time it takes to load PC Scripts.


Apps Weekly - Simple Note Review

Yes, Apps Weekly is back. Today, I have a review of Simple Note. I can't make screenshots because when I press the Home and Sleep buttons, nothing happens.

Simple Note is similar to Apple's built-in Notes app but it syncs with a cloud. There is a web interface with which you can access your notes. If you have an iPhone & and iPad, your notes can be synced between them, as long as you use the same account on both.

I write PC Scripts Daily on Simple Note and now I edit it on my computer. It's a hassle to edit documents on my iPod Touch. I just write it on my iTouch, go to my computer, edit it, and copy & paste it onto my blog.

Unfortunately, there is no built-in spell checker. It uses Apple's spell checker. It does have a built in HTML parser. It doesn't parse everything but if I type an HTML character (starts with a &, has a word, then a ; ), it will convert it to its parsed equivalent. This isn't normally a problem but since I do PC Scripts Daily in HTML, I have to fix all of the characters that Simple Note changed. Since their web interface doesn't parse HTML, I change the characters back to the HTML code on my computer. Before I got my computer working, I had to do this on my iPod Touch and that took quite a long time. I couldn't do it in Simple Note or else it would be parsed again so once I pasted it into Blogger, I changed them back. This took a very long time and I wouldn't have to do it if Simple Note didn't parse the HTML. I haven't found a way to turn off the HTML parsing but if it's already there, somebody, TELL ME!

If you aren't writing in HTML, Simple Note is a very good application. If you are writing in HTML, it's going to be a hassle to change the characters back but otherwise, it's great. Simple Note is on the App Store for free.


Bash Tutorial - Part 5: Arithmetic

A useful thing to know in any programming language is how to do arithmetic. This is a very simple operation in other programming languages but in Bash, it is very complicated. The syntax for doing an arithmetic operation is varname=$(($var1 operator $var2)). This will apply the operator to $var1 and $var2 and set the value of varname to the answer. For example, to add $a & $b and put the answer into $c, you would type c=$(($a+$b)). $var1 and/or $var2 can also be a numerical number rather than a variable. The operators you can use are: +, -, *, and / for addition, subtraction, multiplication, and division.


Next Edition

That's all for today. Today's edition isn't very long l but I hope you enjoyed it!

Friday, September 3, 2010

PC Scripts Daily - 09/03/2010

Welcome to the sixth edition of PC Scripts Daily! There isn't much content today but I do have some status updates.


PC Scripts Updates

I have updated the JavaScript that runs on PC Scripts. All of the code has been extremely compressed to shorten loading times. The code is now object oriented as well. The page rendering links have been changed to buttons. I am also going to add a new slideshow to the sidebar. Please make sure you have JavaScript enabled and that PC Scripts is allowed to execute JavaScript code.

If you are interested in viewing the source code of the JavaScript on PC Scripts, do not try to go to the actual executed source files. These files are compressed. To view an uncompressed source file, change the bin/js/*name of source file*.js in the URL to bin/js/source/*name of source file*.js. I tried to document the code as well as I could.


My Computer's Status

My computer has been dead for quite a long time. I have finally been able to start rebuilding the system from scratch and I will be able to do PC Scripts Daily from there. Once I can do that, the posts will be longer because I will be able to type a bit faster than I can on my iPod Touch. Every PC Scripts Daily post out right now has been created on my iPod Touch.


Bash Tutorial - Part 4: File I/O 2

Even if you use the > to redirect output, the next time you redirect to the same file, it will overwrite the old file. Because of this, it is never a good idea to use >. You should use >>. This will create the file if it doesn't exist and add to it if it does exist. This way, you can create a log file for you scripts.


Next Edition

I know today's edition of PC Scripts Daily was short. Tomorrow, I will have part five of the Bash tutorial, an app review on the new Apps Weekly section, and some Apple news.

Wednesday, September 1, 2010

PC Scripts Daily - 09/01/2010

Welcome to the fifth edition of PC Scripts Daily. I know I use the same introduction every time but I can't think of anything else! Today was the traditional Apple September event so I have a very large article. I am going to hold off on Bash tutorial part four until tomorrow.


Apple Retail Stores

Apple just opened a new store in Paris. This store is their second one there. The second store in China was also opened recently in Shanghai. Apple's 300th store in the world was opened in London. They are going to open another one in Spain soon.


Sales Figures

So far, Apple has shipped 120 million iOS devices. According to them, they activate 230,000 new iOS devices each day, not including upgrades. 6.5 billion apps have been downloaded from the App Store. 275 million iPods (including the iPod Touch) have been sold to date. The songs, TV episodes, movies, and eBooks on iTunes have been downloaded 11.7 billion, 450 million, 100 million, and 35 million times, respectively, by 160 million accounts.


iOS 4.1

iOS 4.1 is going to come out next week for the iPhone & iPod Touch. Apple claims they have fixed a few bugs including:

  • Proximity sensor
  • Bluetooth bugs
  • Extreme lag on iPhone 3G

A new feature called HDR dramatically improves photos on the iPhone. It takes 3 rapid photos with different exposures and combines all three of them to make the best possible image. 2 copies are saved to the camera roll; a normal, non-HDR photo with no changes in exposure, and the image created with HDR, allowing the user to choose which one looks better.

The Game Center is finally out! Features include:

  • Ability to challenge your friends live
  • An automatcher that matches you and your friends with some other people with equal ability if you don't have enough friends to play with
  • Ability to compare scores with your friends
  • Leaderboards
  • Achievements
  • Social integration done without developers having to do so much work


iOS 4.2

In November, iOS 4.2 will bring all of the new features of iOS 4 to the iPad. It will also include a few more features for all iOS devices. These features are:

  • Wireless printing (iPad only - I think)
  • AirPlay (More about that later)


iPod Shuffle

Many people have complained about the iPod Shuffle's design - no buttons. Some people haven't upgraded to the third generation because of the absence of buttons and many others have upgraded because of VoiceOver and the ability to have multiple playlists. Now, the fourth generation iPod Shuffle has the best of both! It is way smaller than the second generation but has the same buttons as the second gen. It also has VoiceOver and the ability to have multiple playlists. Apple also added in Genius mixes. I think Apple has nailed it this time. The iPod Shuffle has 15 hours of battery life and comes in 5 different colors. It ships in a week in the smallest packaging ever. It will cost a mere $49!


iPod Nano

The iPod Nano has been made smaller! How, you ask? By getting rid of the click wheel! How did they do that, you say? By making the display multi-touch! The iPod Nano is VERY small! It's so small, they've added a clip so people can "wear" it like the iPod Shuffle. The iPod Nano is now a touch-based version of the iPod Shuffle. You can rotate the screen by putting two fingers on the screen and rotating them. This tiny iPod has 24 hours of battery life packed into it! The new iPod Nano comes in 6 different colors, including (Product) RED, and is sold in two different models. The 8GB model sells for $149 and the 16GB model sells for $179.


iPod Touch

As suspected, the iPod Touch has been completely redesigned! According to Steve Jobs, it's even thinner than its predecessor. It has a Retina display (960x640), a front & rear facing camera, and a three axis gyroscope, all powered by the Apple A4 processor. The rear facing camera can record full 720p video and the the front facing camera can record in 640x480. These videos can be edited on iMovie on the device itself, just like its 3G enabled counterpart. 3G enabled counterpart. It can conduct FaceTime calls with other iPod Touches & iPhones. The fourth generation iPod Touch will ship in a week with iOS 4.1 pre-installed. The 8GB, 32GB, and 64GB models sell for $229, $299, and $399, respectively.


iTunes 10

iTunes 10 has been released. It is available right now on Apple's website. Apple has ditched their ten year old iTunes logo and use a new one now. iTunes 10 has a better interface than its predecessor. It also has a new built-in social network called Ping. Ping is a social network that's music-centered. Steve Jobs says it's a better way to notify your friends about concerts you're going to and keep track of your favorite artists. Ping is also available on the iPhone and iPod Touch.






Apple TV

No, Apple didn't rename it iTV! The second generation Apple TV is smaller, a lot smaller! It even has the power brick built into it! There are only four connectors on the back; a power connector, an HDMI port, an optical audio port, and an Ethernet port. It also has 802.11n networking built in. It comes with an aluminum remote. The Apple TV is very HD oriented. In fact, it is so HD oriented that it doesn't even have non-HD ports! Like all other iDevices, the Apple TV boasts an Apple A4 processor.

According to Apple, there are no purchases on the Apple TV! You can only rent things. Also, there is no hard drive. Everything is streamed on the fly. HD movies can be rented on the same day as their DVD release for only $4.99, getting cheaper as the movie gets older. HD TV shows can be rented for $0.99 per episode. Currently, only ABC and FOX have their shows for that cheap. Apple is trying to make deals with the other studios to get more shows for $0.99.

Rather than syncing to your computer, the Apple TV streams music and videos from it. It can also turn your iPhoto library into a photo slideshow. It can also stream movies from Netflix, HD videos from YouTube, photos from Flickr and MobileMe. AirPlay allows streaming from your iOS devices. This means that you can be watching a movie on your iDevice while someone else is watching something on your HDTV and when they are done, you can go over to the TV, touch a button on your iDevice, and the movie will instantly appear on your TV!

The Apple TV will ship in four weeks for $99 and can be pre-ordered today.






Next Edition

That's all for today! I will probably post the sixth edition of PC Scripts Daily tomorrow. Hopefully, I will have more than just the Bash tutorial.