Archive for the ‘Tech Tips’ Category
Rich Internet Applications. They are the Internet’s inevitable future, but what advanced technology drives this advanced paradigm? JavaScript? No thanks. But this is not the time to escape to a fallout bunker, and hide yourself until the web’s nuclear winter is over. Flex is here, come to save the day.
Don’t get me wrong: JavaScript and Flex have a lot in common. One, JavaScript and Flex run at the client (browser) level. Two, ECMAScript is the basis for both the JavaScript and ActionScript programming languages. Heck, Flex even uses a teeny tiny bit of JavaScript to establish the application’s focus at run-time. But we can’t kid ourselves. JavaScript is not a very good language. There are some major differences between web browsers, particularly between Internet Explorer and, well, every other browser. Flex is just Flex. As long as you have the right version of Flash to support the code, the application will work. JavaScript is not very robust or error-handling friendly. Flash’s builder is a godsend, with everything you’d expect in a true application IDE: syntax checking and debugging tools. JavaScript RIAs use the innovative but wonky (if nothing but the fact that it uses JavaScript) AJAX idea. Flex has built-in support for true WSDL and SOAP support, net connections, HTTP services, and the like. It even gets better with the work of AMFPHP, which is a low load, low complexity juggernaut that makes data connectivity a snap. What would RIAs be without data connectivity? That is what makes them Rich Internet Applications, and not just Rich Applications.
So I encourage all web developers to try working with Flex. Test it out. You may even like it. And perhaps, given time, we never have to hear the words JavaScript and RIA in the same sentence ever again!
PHP made me upset today. I’ve noticed this issue for a while, and it’s been addressed in forums, but few know of what seems to be the second most common reason for it. First, check the symptoms of you ill-returned web document. Does it ever popup as a download dialog box instead of the usual I-trust-you-Zend handling? Did you then download it only to find it is nothing more than a blank page? Stop sifting through your http.conf file! Stop changing those permissions! Well, you could do all this, but it’s most likely not the problem. For me, it was the amount of memory I had allocated to PHP script execution, specifically the memory_limit value. Oddly as it sounds, sometimes giving your PHP a little more memory seems to clear up this problem right away. Works so far for me with all the times I’ve seen this issue. You can either change the value in your ini file as:
memory_limit = 32M
…in your .htaccess file like…
php_value memory_limit = 32M
…or directly in your PHP file if you wanted to.
ini_set('memory_limit', '32M');
Hopefully, this can help someone out there.
One of the most singularly powerful and useful aspects of Adobe Photoshop is the brush sets. What makes this so portent is the dynamics that are possible with many of the tools when paired with the stylus of a WACOM. The size adjustment and opacity changes that occur depending on the pressure you apply to the pen makes for a near perfect imitation of traditional art techniques. Brush sets however are the patterns in which you are laying your strokes down with, regardless of the tool you use to do this. These brush sets are typically just referred to as brushes though they can be applied to many of the tools in Photoshop. The default brush is some size of rounded pattern with either a hard or soft edge. This default brush is usually enough to suit most situation you are dealing with, but if you are trying to imitate a paintbrush, pallet knife, chalk/charcoal, pastels, etc. it is often not acceptable. The best ways to mimic these mediums is to use differently textured brushes.
In traditional art these methods are also affected by what you are applying them to. Wood obviously would cause a different effect than paper should you write on it with a pen. The same applies to different grades of paper, boards, canvases, etc. to mimic this typically some sort of patterned or faux texture is applied to the layer beneath the one that the actual “art� is being produced on to simulate the correct canvas type. Generally though, the brush itself can produce the desired effect. Because of this versatility and flexibility the brush is, in my opinion, the most important aspect of Photoshop. Knowing how and when to use it is the next.
A lot of my friends tell me that my job sounds easy (that’s the job of programming if you don’t know who I am), and I happily nod and smile. Because friends just don’t know any better. Sure, anyone can program like anyone can perform open-heart surgery or fight a bear, but like anything, there’s a lot more to it to become a professional at it. In fact, the more-of-it is what keeps a lot of people from programming in the first place. Programming is a blend of art and math, but it also is anal-retentive. A single character will throw off the entire program and you will (yes, you WILL) be racking your head around a single line of code for most of your time working on that program. But that is programming, so what I say to you would-be programmers is to relax and have patience when you program, because it can get nerve-racking.
As promised, here is more on CSS techniques and graphic element implementations. To start I would like to explain what “Sliding Doors� are that I mentioned in my last post.
Simply it is a method of using CSS positioning to fake a rollover with one image that has both instances of the button and there by on the rollover it slides the image over to show the other state of the button. This greatly reduces loading time because there is no preloading required and you only have one image that you are working with instead of a separate instance for each button. The drawback is that you cannot use styled fonts. If you want a non-standard font (e.g. serif or sans serif along with the classic Arial, Helvetica, Veranda, Times New Roman, etc.) this is not the way you want to go because this effect is made by changing the a:link, a:visited, and a:hover background-image position.
I am impatiently awaiting a full support for CSS 3. Just some of the nifty things the newest version of CSS can do is rounded corners through the definition of only two numbers you can define an elliptical radii and thereby set the curvature of your container. This will also set the background to a rounded state even it you have your border set to none. Speaking of borders, CSS 3 has a new “wavy� boarder style that applies a wavy line to the boarder. You can also define images to your borders now just to increase the customization that so many designers have been using hacks and other less desirable methods to achieve the aesthetic quality they demand in their work. Unfortunately this presents us the same problem that exists now with the IE (Internet Explorer) browser support of the PNG file format. IE 6 does not support the alpha channel required to correctly display transparent PNG images. IE 7 however does. Because IE 6 does not we still must avoid the PNG and settle for the GIF format because IE 6 is still widely in use. If we were to try to use a PNG image then we would not be able to make a good design for IE 6, so for now we must ignore the advancements made in IE 7. So Until CSS 3 becomes supported by all browsers we will still have to use our workaround methods and hacks to get a display that will work for everyone. Even CSS 2 isn’t fully supported by all the browsers, or it is rendered differently because of the functionality of that particular browsers interpretation of the CSS.
Some CSS 3 properties are supported by some browsers, but not all. Transparency is one such property. One of the main focuses of CSS 3 was better text / font control for the designers that have wanted to implement some more typographical elements into their web designs. These text / font properties are almost all fully supported, but some workarounds are required still.
To take a look at the new CSS 3 properties for backgrounds and borders follow this link. http://www.w3.org/TR/css3-background/
To view a tutorial for the “Sliding Door� technique follow this link. http://www.expertsrt.com/tutorials/Cd/CSSrollovers.shtml
When most people ponder over bugs, glitches, and weekends with the in-laws, they tend to look unfavorably upon them. But that doesn’t mean you should (speaking for the first two at least), because they help us learn to become better programmers. Everyone’s heard before on how Edison found out how to make the light bulb after a hundred or so ways on how to make it not work. Well, the same applies to coding. Errors, although malicious time-consuming devils, can tell us what we’ve done wrong, so we can attempt to learn from these mistakes and understand more about the nuisances of the language itself. In effect, it makes us better programmers by forcing us to correct our flaws IN our coding. To me, that just seems to be more beneficial than just learning to code well alone.
One of the things I personally struggle with in design is getting the right balance of graphic interest and clean-cut minimalism. I tend to lean a bit to the aesthetic side and toe the line with too many images. My design style is to build it up aesthetically first and then pare down to the essentials based on the function of the site and the user demographic that will be utilizing it. Recently I have been working at paring down my code as well. The less bulky the files, the faster the load time, the happier the users! In achieving this I also need to lessen both the file size and number of graphics being used, so in looking for ways to do this I have found a few “nifty� tricks. Nifty Corners Cubed is a process of making rounded corners without images. Sadly this utilizes and heavily relies upon JavaScript making it unusable for a designer attempting to avoid JavaScript as well as trying to keep code size down. Still a good solution for avoiding images though! CSS is my primary tool in achieving low file and code size. If I can keep my designs to solid colors, borders, and a few simple one pixel backgrounds then I will have achieved that balance between functionality and aesthetic design.
Recently while browsing through good-tutorials.com for inspiration with a possible tip or trick to add to my skill-set, I came across a nifty little tutorial about using the “Golden Ratio” or “Golden Proportion” in layouts. For those who don’t know what the Golden Ratio is. I have started subtly implementing this ratio into my designs and have found 2 things about this technique. First, the banners tend to be a little too large. Not grossly overstated, but just a slight bit uncomfortable for the content body of text. The second is that even though this ratio does help the natural aesthetics of the layout. it tends to not lend it’s self well to multiple column layouts. I am still using the Golden Proportion in my layouts but much more sparingly and only as a subtle addition. I am not trying to rely on it to be a rule or a guide to build the layouts from as a quick or easy tool. Rather I am happy to say that it has merely made me that much more conscience of how the sizes and proportions of the layout can effect the emotions of the viewer. One more step toward being the best designer has just been taken!
Do you have a virus, spyware or adaware on your computer? If so these are the products that we recommend that you use:
AVG is a FREE anti-virus program that we use for our machines and we install on the computers that people bring in. One of the first things that we do is ask the customer to uninstall Norton Anti-virus. This is a worthless program. It really eats up your memory in your computer and it doesn’t catch all of the viruses that are out today on the market.
Lavasoft and Spybot Search & Destroy are the programs that we suggest that you use to eliminate spyware on your machines. Most of the spyware that people receive are from music sharing sites. Some of the files that you download from their sites could contain a virus or spyware so you want to be sure when you are downloading files from music sites. Almost all of the peer-to-peer music file sharing sites are really bad. Here are a few example sites to stay away from:
Kazaa
And there are many more BAD sites to avoid going to. So be VERY careful on what sites to browse because you could end up getting a virus or having your computer filled with spyware.
If you have any problems installing these programs or if you have a virus that needs to be removed, we CAN help you. Give us a call at 260.569.0260 and we will get your problem solved.
We get these kinds of questions all of the time from computer users:
How did I get that virus?
How did I get that spyware program?
Where did that come from?
It’s easier to tell you how NOT to get these things than it is for me to tell you where they come from. They come from all over the place. All over the net and from a variety of downloads and sources.
So here is my guide on what NOT to do with your computer:
1) NEVER leave a floppy disk in your drive. Booting to an infected floppy is a sure way to infect your computer with a virus. Better yet – turn boot to floppy off in your system settings (BIOS). If you don’t know how to do this – let us know – we can help.
2) NEVER turn off your firewall or connect your machine directly to the Internet without a firewall on. Doing so puts your computer in danger of being hacked or hijacked. You might wind up having a webserver or gameserver on your machine you never planned on. Some viruses are also spread to open ports on a computer (but only a very few).
3) NEVER turn off your virus checker (and ALWAYS keep it updated). Mine is updated every day.
4) NEVER forget to run a spychecker program – like AdAware or SpyBot Search and Destroy. Do this religiously.
5) NEVER click anything while surfing the net that pops up and says, “You have spyware – click here to delete it!” Even if it looks like it is from your Windows system – Windows will never tell you this! Wait until you are completely off the net and run AdAware and SpyBot Search and Destroy just to be sure. Many of these popups only INSTALL spyware – not remove it.
6) NEVER download music from a site you don’t know and don’t install any programs from similar sites. If you aren’t sure of the site you are on – you can bet it is going to infect you with something if you download something from there.
7) NEVER accept free gifts or send anyone your bank information. If it looks too good to be true it probably is. You will never see your money again if you help out the banker from Nigeria that wants to pay you 10 million dollars to help him get the money out of the country that used to belong to a dead dignitary.
NEVER use your credit card on the net UNLESS you know who you are dealing with. PayPal – OK, Ebay – OK, IBM – OK, Visionary – OK – Joe Bob’s Surplus Store in Brooklyn – NOT OK, etc.
If you don’t know how to tell if you are on the right site or not – DON’T USE YOUR CREDIT CARD. Anyone can fake a web site – they do it all the time – Don’t fall for those emails from Bank of America or Ebay that ask you to confirm your bank account info – they are a fraud. The site might look like Bank of America, but it is NOT!
You can tell the legitimate site because it will say: http://www.bankofamerica.com or http://www.ebay.com
These are NOT legitimate sites: http://123.134.3.234/Ebay.com/Something or other
If the URL does not start with www.ebay.com or www.bankofamerica.com BEWARE. And don’t be fooled by: http://a.www.ebay.com that is not Ebay’s site that is a.com’s site. AND if you don’t know how to tell the difference – you need to come to one of our safety siminars.
9) NEVER tell anyone your personal information over Internet Chat – this goes double for younger children and teens. A recent Dateline undercover operation caught 64 men ages 20-69 trying to pick up young girls and boys – many of these got caught when they showed up at the girl’s house! Keep your children safe – many of these men posed as younger boys to get the girl to tell them her information. This was in 9 total hours online! In 9 hours they ran into 64 predators online. So will your kids. Keep them and yourselves safe.
10) NEVER EVER EVER throw your computer through the window because it is a dirty, vile thing, that is slow and leads only to pornography etc. Of course that stuff is out there, of course there are viruses, but by:
a) Keeping your virus checker and spyware detectors up to date
b) Keeping your firewalls on
c) Monitoring your children
d) And following the other rules outlined here you can freely enjoy all of the great things the Internet has to offer without worry – or with less worry than you otherwise had.
|