web-programming

You are currently browsing articles tagged web-programming.

Best Web Code Comment Ever

This applies to HTML, JavaScript, and CSS equally well. Concerned about someone being able to see your code? Get over it.

Minification v Obfuscation » Yahoo! User Interface Blog
Then finally, there is that question of code privacy. This is a lost cause. There is no transformation that will keep a determined hacker from understanding your program. This turns out to be true for all programs in all languages, it is just more obviously true with JavaScript because it is delivered in source form. The privacy benefit provided by obfuscation is an illusion. If you don’t want people to see your programs, unplug your server.

Tags:

Heartbreaking Retrospect

How refreshing it is to read about mistakes made in designing web applications! In Getting it Right, Ari Paparo waxes on why del.icio.us had success with giving users functionality, while his company blink, did not.

Great one for the web geeks in my audience.

Tags:

phpMyAdmin working on OS X

This horrible error message on phpMyAdmin:


Client does not support authentication protocol requested by server; consider upgrading MySQL client

On my local MySQL installation. I am running PHP 4 and MySQL 4.1 and phpMyAdmin on Mac OS X 10.4 “Tiger” worked like a charm, despite the fact that I’m not using 10.4, I’m running 10.3.9.

Huzzah for tools that work locally when one has no net connection!

Tags:

Yahoo! Acquires Delicious

Please, please, please, PLEASE don’t screw it up

Tags:

Upgrade to lab.artlung.com

New item: Make a larger checkbox using CSS. Silly and small, but the Lab has undergone a new reorganization.

The thing missing right now is cross-references and a means to “see other CSS tips” or “see other validation tips.” It’s on my to-do list.

Tags:

Found Object of the Day

Learn HTML, Make $$$

Tags:

Go Read Brian Dear

This wonderful set of posts deflates “Web 2.0 Hype™”, reinforces the awesomeness of those folks (like EVDB) who are working to remake the web to actually use these wonderful syndication tools and browser technologies to the fullest extent: Part I, Part II.

Backstory: I’ve actually met both Andy Baio (briefly) and Brian Dear (less briefly, we had lunch once. Smart fellow and a nice guy.) and have read them for a while. I think both Upcoming and EVDB are kickass tech.

And if you hadn’t noticed, this post was for geeks.

Tags:

Cleaning out the hard drive, from March, 2000:

*EMPLOYEE PROPRIETARY INFORMATION AND INVENTIONS AGREEMENT *

Bidland.com, Inc.
3990 Ruffin Road
San Diego, CA 92123

The following confirms an agreement between bidland.com, Inc., a Delaware corporation (the “Company”) and *Name (referred to in this agreement as “I” or “me”). I understand that this agreement is a material part of the consideration for my employment with the Company:

1. Proprietary Information. I understand that the Company possesses and will possess Proprietary Information which is important to its business. For purposes of this Agreement, “Proprietary Information” is information that was or will be developed, created, or discovered by or on behalf of the Company, or which became or will become known by, or was or is conveyed to the Company, which has commercial value in the Company’s business. “Proprietary Information” includes, without limitation, information (whether conveyed orally or in writing) about algorithms, application programming interfaces, protocols, trade secrets, computer software, designs, technology, ideas, know-how, products, services, processes, data, techniques, improvements, inventions (whether patentable or not), works of authorship, business and product development plans, the salaries and terms of compensation of other employees, customer lists and other information concerning the Company’s actual or anticipated business, research or development, or which is received in confidence by or for the Company from any other person. I understand that my employment creates a relationship of confidence and trust between me and the Company with respect to Proprietary Information.

I don’t remember anything from bidland’s technology other than that they had their own in-house templating language and that every transaction with the (Oracle) database was handled in stored procedures that the DBA wrote.

Bidland has not existed for several years.

Tags: ,

Dinner @ Turf Supper Club 10

I look like a goofball in this picture. Nonetheless, a grand time was had by all at San Diego’s famous Turf Supper Club last Friday on our little trip to San Diego.

It only took us a few hours to get there from our Simi Valley home.

We took the new van, which runs good. Leah drove, whilst I worked on building a function to convert latitude and longitude in degrees and minutes to a decimal value. The PHP code I hacked together was this:


function convertEnglishDegrees($minutes_seconds)
{

$out = “”;
if (trim($minutes_seconds)!=’‘)
{

$out = trim($minutes_seconds);
$out = strtolower($minutes_seconds);
$out = str_replace(‘deg’,’‘,$out);
$out = str_replace(‘degrees’,’‘,$out);

$allowedcharacters = ‘0123456789.- ‘;

if(stristr($out,’s’))
$sign = “-”;
else if(stristr($out,’w’))
$sign = “-”;
else
$sign = “”;

$temp = “”;

for($i=0;$i {

$char = substr($out,$i,1);
if(stristr($allowedcharacters,$char))
$temp .= $char;
}

$out = trim($sign . $temp);
$temp = “”;
$parts = explode(’ ‘,$out);

$e = 0;
foreach($parts as $p)
{

if($e==0)
$temp .= $p;
else
$temp .= $p + ($p/60);
}

$out = str_replace(’ ‘,’.’,$out);

}
return $out;
}

Not pretty, but it worked well enough on the sample lats and lons I had. This was all so I could get some more data points to work on the 3ones map. Why not just require decimal formats of people? It’s in the spirit of “Postel’s Law” aka the “Robustness Principle: “be conservative in what you do, be liberal in what you accept from others”

Anyway, we met M & M at the Club, grilled our own steaks (Matt is a master griller and helped perfect Leah’s steak). We stayed at their place that night and slept there.

Morning brought a great breakfast in La Mesa whose name escapes me now. There’s even an inexplicable short film to show for it. Great chorizo.

Aside: Why can’t I get Soyrizo in Simi Valley?

After we said our farewell to M&M, we went to see my Grandmother, who was in the hospital all last week with various health problems and we were quite worried about. It’s a mixed bag, being close but not too close to my San Diego family. It feels like we can just pop down there anytime, in reality it takes some planning. Were we in San Diego we’d simply drop on in. As it was we had to wait till Saturday. We hope my grandmother continues to recover, she’s getting excellent care from the family, and has some surgeries scheduled in the upcoming weeks. I don’t often reference prayer here, what with me being primarily skeptical and secular, but I’d appreciate any prayers you have on offer for the sick.

After visiting my Grandma, Leah dropped me off at ye olde San Diego Comic Con. Unlike last year, I did not take photos. But I did get in free (yay!). I served as the attendant (read: wheelchair driver) for my pal E.

I was not sure it was possible, but we were able to cover the whole Con floor, which is significantly huge. I’‘ve been attending cons since I was a teenager, and it is bigger every year.

My usual Con modus operendi is to cover the booths at the con with my own methodology. If you’d like to carry out my method, here are the instructions:


Materials
1 notebook
1 pen or other writing instrument

Method
Start at the westernmost part of the convention center, and go up and down each aisle of the con. While doing this keep your notebook at the ready to mark the “address” of booths which look promising, you can also include a brief note about why it’s promising, like “50% off graphic novels” or “good antique action figures” or “cool t-shirts” There are numerical addresses above each aisle (seen here). This year they were numbered from 100 to 5300. That’s 53 aisles of densely packed comics, movie, gaming, art, movie and other fandom stuff. If you have limited time, taking stock before diving in is a good idea.

Then after running all the different booths and making your marks, you can then go to presentations as much as you want, then between the times there are good presentations being shown, sneak back down to all the addresses you made a note of.

It’s that simple!

It was a great time for me, though I was a bit tired at the end of Con. I only made two purchases, but I made notes and grabbed schwag from the places that interested me for future online research.

Continues in The Weekend, You Say, Part II.

Tags: ,

Newer entries »