Site Sponsors:
Helicopter Attack 
It was Pope Innocent the 3rd who first noted that a little knowledge is a dangerous thing.

Whilst we can be confident that he was not talking about the Internet at the time (he lived in the 18th century ;), for the record I just wanted to let those whom might find that their site is being hijacked know about the quick fix.

Not Found

The requested URL /dom_s9k/helicopter-attack.php was not found on this server.

Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.
Apache Server at soft9000.com Port 80

Hacked as it was by obvious & rank noobs (i.e. they were unable to do anything else to my server and their date + time stamp allowed me to pinpoint their IP Address), by way of a mindless diversion this day I noted that Google Analytics had been telling me that allot of my pages were presently being 404'ed.

After looking at my .htaccess, I noted that the date was no where near when I had last messed with it's content. Indeed, since I had recently deleted the same for similar demonstrative reasons, I decided to blow the silly thing away, then re-add a new, access-constrained, .htaccess file in it's stead.


(original quote was in Latin - might have gotten it wrong ;)


So for the 'butinski who thought that it was being smart, please allow me to thank you for the opportunity to add yet another helpful blog entry to my site. Providing us with such fatuous & puerile diversions from time to time not only helps keep the day a little more interesting, but also allows us to make the Internet a better place for everyone else.


Cheers!

-Rn




[ view entry ] ( 656 views )   |  permalink
German Notation & Problematic File Names 
For years I have been popularizing the idea of using "German Notation." Formerly known as "Nazi Notation," far from conjuring-up the image of unpleasantness, I use the term whimsically; When one hears it, my hope is that we think more of "Sergent Schultz" (I know nothing!:) or "Colonel Klink" - rather than Adolph Hitler?


Ironically, in as much as standards like PEP-8 remind many software developers of the more dark-size of what being a "Nazi" was all about, the idea is that there can be far better ways to name things like variables and member functions?

Indeed, rather than blindly following the edicts of any dictator - benevolent or not - when using such a typeless language as Python, perhaps one might like to use Hungarian Notation? --Surely prefixing simple characters like a lower-case 's' for string, 'i' for integer ... or merely dropping vowels & double consonants ... can create far more succinctly-informative mnemonics?

Oh well - rather than memorize any type of rigidly defined view over how people should all be writing code the same way, by way of introducing a nice way to use keywords and built-ins as variable names, note our scattering of a simple "z" prefix around in the following code:

import os

count = 0
zRoot = "/"
print("Parsing", zRoot)
for zPath, zDirs, zFiles in os.walk(zRoot):
for zFile in zFiles:
file = os.path.join(zPath, zFile)
nodes = os.path.split(file)
for node in nodes:
if is_good_node_name(node) is False:
count += 1
print(file)
break


print("Found", count, "potential problems.")


Honoring the freedom to do what - IMHO - makes for a far better single-word mnemonic experience, allow me to complete the above example by presenting the balance of the code:

bad_chars = bytearray(":?*<>|\\/\"", "utf8")


def is_clascii(str_data):
for ss, ch in enumerate(str_data):
code = ord(ch)
if code < 32:
return False
if code > 126:
return False
return True


def is_good_node_name(str_data):
global bad_chars
str_data2 = bytearray(str_data, "utf8")
for ss, ch in enumerate(str_data2):
for ref in bad_chars:
if ref == ch:
return False
return is_clascii(str_data)


Designed to rummage around zRoot so as to find zFile that might create a problem for your cross-platform file-transferal activities (Linux? Windows? OS/X? AIX?,) my hope is that you will find the above Ptyhon3 example to be of use in planning escape attempts for our comrades in-arms in a 'Stalag near you!


Enjoy the Journey.

-Rn


[ view entry ] ( 496 views )   |  permalink  |  related link
Cloud, Client, & Browser Concepts 
For those who are entering the software and / or software testing world, here is an excerpt from our new "Testing Success" training offering.



I have been informed that there are even some new ideas for experienced software developers / testers, as well ... :)


Enjoy!

-Rn



[ view entry ] ( 551 views )   |  permalink  |  related link

<<First <Back | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | Next> Last>>