Sawfish Media

jQuery, AJAX, News
jQuery, AJAX, NewsWhat?I recently implemented jQuery into the website, mostly in the comment section. I responded to an earlier request to be able to delete comments. Now you can not only just delete comments (yours), but you can also edit them. When you are logged in and you go to a post that you have commented on you can either "edit" or "delete" (delete can't be undone). How?Using jQuery, which makes ajax really easy and I also found some good tutorials (which I'll post) and maybe I'll compile everything I've learned into a tutorial. Not only does jQuery have nice effects, but it's well implemented and selectors are a great idea. To learn more check out jQuery. What else?This also showed me that .Net's AJAX is very poorly implemented. Not only is it not as easy to set up, but what it does is it clears the content and puts it back, clearing all binded events and also taking more time/bandwidth. jQuery ajax is much faster and very instant. I switched to jQuery for the comment editing because it was faster and recognized elements better than C#. Of course there were some problems with re-binding events after a .Net AJAX update.12/12/2008Web Design0
PHP or ASP.Net?
PHP or ASP.Net?It's the age old question: "Which is better, php or .Net?" This "article" will go over a broad overview of each (I mostly have experience with .Net/C#), but I'll try to go over things well. Both are server-side programming languages. C#/.Net.Net or ASP.Net was developed by Microsoft and (.Net) is used in all their applications and as a programming language for both applications online and for a OS. So if you develop C# web apps/sites, you are also familiar with a language that can be used to make games or any other application that runs on your computer. ASP.Net only applies to online website/apps. Lets go over a general structure of a page. First there's the HTML and ASP.Net, this lets you create the overall look to the site but includes ASP.Net elements, which are basically HTML element that are set up (automatically) to be compatable with C# serve-side. Second there is the C#, which is the more complex code that runs on loading and postbacks (or on AJAX postback). This can be in a separate file or in the aspx file. The Good C# has a very good language structure, and was adopted by ECMA (the standard that Actionscript 3 is based on). It's easy to get started with C# because it is pretty easy to understand, espically if you have used AS3 or Javascript. It also is very powerful. It comes with many built-in functions and classes that can be used to do a large amount of things. It has a strong graphical class as well as membership (user) classes. ASP.Net also has a pre-made membership system, which is intergrated into C# as well. This makes it very easy to create a web application or user website. It also has password encryption built-in so you don't have to worry about the user system. The BadC# and ASP.Net, don't really communicate with other languages (for the web) that well. C# can only access ASP.Net elements (easily) and it has problems communicating with other languages. For instance, AJAX, is not intergrated into C# as well as in PHP and it cannot communicate with javascript. This means that more tasks require a postback (of course there are ways around this). Since C#/ASP.Net is run and maintained by Microsoft it is not opensource and therefore costs more for hosting and setup. If you buy hosting online, Linux (opensource) hosting usually costs much less than Windows hosting (and usually Linux hosting is easier to find). Windows packages also usually offer less features, bandwidth and storage. PHPPHP (Hypertext Preprocessor) is an opensource server-side language developed for the web. It is can be embedded in HTML as well as being a stand-alone file. Much of its syntax is borrowed from C, Java and Perl. The GoodPHP is opensource! Which means that hosting is cheaper and usually has more features, bandwidth and storage. It also means that updates come more often (and are free). It also communicates very well with other languages (meant for the web). It communicates very well with javascript, and therefore also communicates well with HTML. It also supports AJAX very well, and many of PHP apps/websites usually have little postbacks. This also means that it works well with javascript libraries, such as jQuery. These can be used to achieve effects that you can (easily) get with C#/ASP.Net. It also has most of the features of C#/ASP.Net, but some might not have the same amount of power, but this can be more than made up with other languages (javascript, flash etc). The BadThe syntax and structure for PHP is very confusing (I'm just getting into it, so I'm sure that it is fine once you understand it), starting out can be a harder process than C#. PHP is not as "put together" as C#/ASP.Net. It doesn't have as many built-in (or premade) classes, this means it will take longer to develop a website/app (of course there are frameworks etc).  Since PHP doesn't have it's own elements, like ASP.Net, it makes it hard to achieve some things, that are easier in ASP.Net. ConclusionBoth are great languages and are capable of make amazing websites/apps. Each also has their own weaknesses and strengths. PHP is very good for people who don't want to spend as much money on hosting (or setting up a server) but also want the nearly the same amount of power of ASP.Net. It is also for people who want good integration with javascript and other languages. ASP.Net is mostly for people who want a little more power and also is possibly familiar with working with ECMA-like languages. It is also a good choice for large businesses, of course PHP can also be used. 12/5/2008Web Design0
Speedometer
SpeedometerAs the title suggests, I'm working on a new project (outside of games) which is a speedometer for a bike. This will use a PIC (microcontroller) which will do the calculations and the also display the speed. The programming of the PIC is very interesting because it will be done in Assembly. Assembly (which I'm still learning a bit) is basically the lowest a programming language can go because you are manipulating data directly, moving binary/hex numbers to different registers etc. Also there is no math functions except for addition/subtraction (which 8-bit numbers), so I will also have to program in a division function so that I can calculate the speed. The speedometer will use a reed switch to register "pulses", made by magnets and the PIC will time and calculate the speed. If I am able to complete the speedometer early this year, I'm thinking of using it to make an automatic shifting bike. This would have some other componets, but mostly be the same.11/5/2008Cool0
New New New!
New New New!I haven't posted I a while because I've been kind of busy. Anyway, there's a lot of new things to talk about. The first is Adobe CS4 (I know I'm late on talking about this). Adobe's new creative suite is even better with improvements to photoshop, illustrator and maybe the most interesting, Flash. For a while, not much has been added to Flash, but in this version you can see that Adobe is taking a lot of ideas from their other products such as Premier Pro and After Effects. First of all, manipulating movieclips in 3D is now supported, which means no more "fake" 3D like animations. Also there is the "bones" tool which lets you join objects together like bones. This could be good for some types of animation. Also there is another view of the timeline which gives more control over tweens and the manipulation of objects.     Relating to CS4 is the release of Flash player 10. This new build supports many new features. One is working with 3D much papervision (though papervision is probably still much ahead of 3D in actionscript 3.0). Also the ability to create sound from actionscript is supported, but not as much as it was in the beta.     In other news I've updated the site a bit (just some little updates). First I've added more tags and if more are needed just comment on any of my posts. Also the main pages will support more tags, and the side panels won't get to big. Also I'm adding some help portions to the site. Lastly I've been trying to add comment edit ability but it isn't working at this time.     The last piece of info is that I'm making a new game (which will probably take a while + I'm busy with other things). The game is based off of the computeSpectrum() function and will record the info, as well as beats from me pushing the spacebar and put it into a array. The array will be used in the game for the creation of the world as well as game play (no computeSpectrum() during the game means it's faster). The game will be in 3D, but using more 2D objects, I will used papervision3d to accomplish this. Basically the game is a rhythm avoid-er game. Based on the music you will have a certain distance from earth, in which there will be different objects to dodge (ex: air: airplanes, clouds | ground: trees, bushes, buildings etc). I will be using concepts from by other post about color, so that the color will be determined by the sound.    10/25/2008News1
All SM Posts (22)

SM Community

It
It's Been a While...So all, it's been a while. I haven't had the chance to go here very often anymore. School work, college applications work, blah, blah, *Insert excuse*. But you know what? It's been a couple of days into the new year, and I figure, I'll write about some things. Although, what's there really to write about anymore? Oh yeah, just letting you know, "June Bug" will most likely never take off. I had an idea for it, but I doubt I have time for it. Especially since I'm terrible at drawing on the computer, everything takes me hours to draw. Also, I'd like to mention that I'm having tacos tonight. Yessss...! Sooo...you know, I've never really understood what blogs are for. I mean, what do you write about? Is there a specific prompt you have to follow? Do you actually have to entertain others with your writing, or is it just for you? Sometimes, I wonder why I'm writing. And the answer? Boredom. Yes, boredom has a way with a person's mind. Quite interesting, this thing we call "boredom." Makes you talk about things in a nonsensical manner, as if you actually know what you're talking about. Indeed. Yes. I concur. Today's the last day of winter break for most of us high schoolers. It's a shame really, but I guess it'll get rid of the boredom. Oh wait, no it won't. Well, I think that's enough random tidbits for today. Nothing really contributing to the website, but nonetheless, you got to know a little more about me and the fact that I'm having tacos tonight. Yessssssss...! P.S. NOM NOM NOM NOM NOM!!! :D P.P.S. Also, Sawfish, your website hates me. I keep getting errors. >_<1/5/2009Fun1
bct blog
bct blognew digital underground album. shock g put out another digital underground album with 13 or so tracks, some are just remastered and some are new. their music is quite scurrilous, however if you dig their style, this will be a good album for you, its avalliable on iTunes for purchase. good solid album. eat boiled peanutz.11/21/2008Music0
quickest blog ever
quickest blog everOBAMA WON!11/6/2008News0
BCTBLAG
BCTBLAG  OMG!!! google's homepage is soooo cool today!! take a look at it... because today is election day, they did a whole thing-a-ma-jig.! is awsome. just working on a CRLE for bct today. Awsome ness11/4/2008Cool0
All Community Posts (37)

Ad

© Sawfish Media 2008 | Created by Sawfish Design
Unless otherwise noted, content is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 United States License.
 
 
Cancel