(compliments of LifeHacker)
If you a developer, programmer or IT geek in general, sometimes we get caught ‘trying to solve a problem’ that can leave us bound to our desks for a period longer than we would like. Occasionally I find myself developing for up to 3 hours at a time. But this is bad, how bad?
Read the article below:
PS. I’ve downloaded WorkRave and going to start implementing a one-hour schedule.
This may appear a silly question, but I wanted to know if I opened a file using the RandomAccessFile implementation found within Java would cause an Access Violation if a program externally accessed or edited this file
Logic in my head dictated ‘NO’ it wouldn’t. So I put it too the test, attached below:
Here I’m basically spawning a 4 threads to open a file and start getting information from the file.he Thread class implementation:
After running this, and even making an edit to the file via NOTEPAD, this is the result:
As you can see now ACCESS VIOLATION within my PROGRAM, and even alterations outside the program do not affect the END RESULT, as all the above RandomAccessFile constructs were initialized at more or less similar moment in time, with a snapshot of the ‘textfile’, thus it does not reflect new changes I have made, since the ‘initialization’.
RandomAccessFile fileHandler = new RandomAccessFile(file, “r”);
Ok, enuff said!
I’ve just only started dipping my feet into the world of Mac OS X.
Not too far from grasping all the concepts around the OS, as it’s based on BSD, and yes down to console when trying to secure it, I found the old ‘ipfw’.
A great GUI for Mac OS X is “WaterRoof”, I had great fun in using it, and it’s dead simple – not to mention the handy little tools it has built in.
*rant rant rant – get it*
<form name=”form1″ method=”post” action=”Default.aspx” id=”form1″>
<input type=”hidden” name=”__VIEWSTATE” id=”__VIEWSTATE” value=”/wEPDwUJMjgzMDgzOTgzZGQfI8LfDKmcT0TXZj8jwrxqI6TOIA==” />
In the above html snippet, we can see the script embedded before the page controls but after form open tag.
In the above html snippet, we can see the script embedded after the page controls but before form close tag thus making the script able to access the page controls as I said earlier.
An excellent debate between 2 highly bright minds….a philosopher vs. a mathematician
Atheism vs Theism (Christianity).
[ Click Here ]