|
Haha... Not that it's on topic, but I just wanted to share another one of the great names that occur in code. We run a web tv site based on ASP.NET MVC. And every time I come across our "RandomController" I get that special feeling of awesomeness. Apart from us, only God (and Chuck Norris, some may add) controls randomness.
|
|
Haha... Not that it's on topic, but I just wanted to share another one of the great names that occur in code. We run a web tv site based on ASP.NET MVC. And every time I come across our "RandomController" I get that special feeling of awesomeness. Apart from us, only God (and Chuck Norris, some may add) controls randomness.
|
|
If you wonder why this blog has been so quiet lately, it not (just) that I’m getting lazier. Together with several of my colleagues at Steria Norway, I’ve started up a blog at http://sterkblanding.no. “Sterk blanding” is Norwegian for “potent mix”, and we hope that as representatives for several disciplines, we will be able to give a broad perspective on IT and management issues. I’ve not yet decided what posts to publish here and what post..
|
|
I’ve pair programmed the Java EE spike kata in Eclipse with a number of people, I’ve found that a number of keyboard short cuts and preference settings recur as useful new information. I’ve compiled the most popular ones in this article. The article is subject to change, but I won’t change the number of shortcuts. Top five shortcuts There are some keyboard short cuts that everyone who uses Eclipse should know:
|
|
Here’s an article of mine, explaining some of the Oracle internals and the OS touch point. It actually goes beyond explaining just commands for canceling SQL. I have written a couple of updates into the beginning of this article about SQL cancellation commands, but if you want to learn the internals, scroll down to The original article section. Update 1: As the beginning says, this article was meant as something interesting about ..
|
|
Here’s an article of mine, explaining some of the Oracle internals and the OS touch point. It actually goes beyond explaining just commands for canceling SQL. I have written a couple of updates into the beginning of this article about SQL cancellation commands, but if you want to learn the internals, scroll down to The original article section. Update 1: As the beginning says, this article was meant as something interesting about ..
|
|
When it comes to working in the software industry, I believe I can best summarize what the majority of developers and teams do by quoting Pink Floyd’s song “Breathe”: Run, rabbit run Dig that hole, forget the sun And when at last the work is done Don’t sit downIt’s time to dig another one I think that the verse goes quite well with the default behavior of developers when faced with an overwhelming amount of work on a project.
|
|
Java conversions and 7 Golden rules of widening, boxing & varargs
-
studiofreya.org
-
16 years ago
-
eng
Here is a very useful java conversion table that I’ve created while preparing for the Certified SE Java Programmer exam. Read also: What is and how to use Java varargs .
And here is a complete overview of the Java Golden rules of widening, boxing & varargs:
1. Primitive Widening > Boxing > Varargs. 2. Widening and Boxing (WB) not allowed. 3. Boxing and Widening (BW) allowed. 4. While overloading Widening +..
|
|
New versions of LatchProf and LatchProfX for latch contention troubleshooting and tuning
-
tanelpoder.com
-
16 years ago
-
eng
The LatchProf and LatchProfX scripts allow you to be more systematic with latch contention troubleshooting and tuning. No more guesswork is needed as these scripts give you exact session IDs and in this version also SQLIDs of the troublemaking applications. You can download the new versions here: LatchProf (reads V$ views) LatchProfX (reads X$ tables, but gives better info, run as SYS) Example output (with SQLID info) is below: S....
|
|
New versions of LatchProf and LatchProfX for latch contention troubleshooting and tuning
-
tanelpoder.com
-
16 years ago
-
eng
The LatchProf and LatchProfX scripts allow you to be more systematic with latch contention troubleshooting and tuning. No more guesswork is needed as these scripts give you exact session IDs and in this version also SQLIDs of the troublemaking applications. You can download the new versions here: LatchProf (reads V$ views) LatchProfX (reads X$ tables, but gives better info, run as SYS) Example output (with SQLID info) is below: S....
|
|
In user-interface design, always address the user as "you" (and never "me")
-
www.databasesandlife.com
-
16 years ago
-
eng
Computers, if they are addressing the user, should address the user as "you", not as "me". Computers need, from time to time, to address the user, for example “You have updated your setting successfully”. Some programs use the word “you” to address the user, some use the word “me” on the grounds that the user is reading it, and to them, they are “me”. However, using “me” to address someone is ridiculous! That’s as logical as a human u..
|
|
I just finished reading Mountains Beyond Mountains: The Quest of Dr. Paul Farmer, a Man Who Would Cure the World . I’ve known of the book for a couple years but never quite got around to reading it, likely because I knew it would challenge me. After the Haitian earthquake about a month ago, I remembered the book, decided I must read it, and then Barnes & Noble had it on sale. So here I am. Read More
|
|
I just finished reading Mountains Beyond Mountains: The Quest of Dr. Paul Farmer, a Man Who Would Cure the World . I’ve known of the book for a couple years but never quite got around to reading it, likely because I knew it would challenge me. After the Haitian earthquake about a month ago, I remembered the book, decided I must read it, and then Barnes & Noble had it on sale. So here I am. Read More
|
|
I’ve been looking for a good solution for versioning and synchronizing my dotfiles between machines for some time. I experimented with keeping all of ~ in subversion for a while, but it never worked out well for me. I’ve finally settled on a solution that I like using git, and so this is a writeup of my workflows for working with my dotfiles in git, in the hopes that someone else might find it useful.
|
|
I’ve been looking for a good solution for versioning and synchronizing my dotfiles between machines for some time. I experimented with keeping all of ~ in subversion for a while, but it never worked out well for me. I’ve finally settled on a solution that I like using git, and so this is a writeup of my workflows for working with my dotfiles in git, in the hopes that someone else might find it useful.
|
|
Oracle Troubleshooting: How to read Oracle ERRORSTACK output?!
-
tanelpoder.com
-
16 years ago
-
eng
I have written the first article to the troubleshooting section of my new website tech.E2SN.com: It’s about a very valuable Oracle troubleshooting tool -> ERRORSTACK trace. I cover 4 frequently asked questions there: Reading the current executing SQL statement text from errorstack trace Reading the current executing PL/SQL package and PL/SQL source code line number from errorstack trace Reading the current bind variable values from er..
|
|
Oracle Troubleshooting: How to read Oracle ERRORSTACK output?!
-
tanelpoder.com
-
16 years ago
-
eng
I have written the first article to the troubleshooting section of my new website tech.E2SN.com: It’s about a very valuable Oracle troubleshooting tool -> ERRORSTACK trace. I cover 4 frequently asked questions there: Reading the current executing SQL statement text from errorstack trace Reading the current executing PL/SQL package and PL/SQL source code line number from errorstack trace Reading the current bind variable values from er..
|
|
Why in the world do some programming languages include optional syntax? To a true type A engineer, this is incomprehensible and unacceptable. For example, in Adobe's ActionScript, statements may optionally be terminated with a semicolon. Usually this is not required, except in a few situations you need it. Evil. The statement that our number one job as software engineers is to manage complexitity really resonates with me, and willy nilly al....
|
|
Many projects reference environment variables at either build time, install time, or run time to handle configuration that can't be made to work across all of the target environments. It is better to use plain text simple configuration files for the reasons that follow. First, let's quickly review common usage of environment variables. Directory path to supporting tools and libraries (JAVA_HOME, LD_LIBRARY_PATH, CATALINA_HOME, etc) Cust....
|
|
ouch. just... ouch. but awesome. but I'm glad to hear that bandcamp is still going strong behind-the-scenes!
|
|
ouch. just... ouch. but awesome. but I'm glad to hear that bandcamp is still going strong behind-the-scenes!
|
|
I have an Nginx frontend to serv everything but confluence which was not happy with my SSLized conf, here is the solution ! This doc is related to confluence but will works with any java apps in a tomcat First don’t use the standalone version of confluence (which is a Tomcat 5.5), use the EAR/WAR tar gz archive. We need Tomcat 6 cause we will use a “Valve” [RemoteIPValve](http://tomcat.apa che.org/tomcat-6.0-doc/api/org/apache/catalina/valv..
|
|
Software testing is a powerful tool when creating all types of applications. That’s why it is also so important to test it in details so that a chance of an unexpected fail is minimal. We say it so: all code you write must be tested with minimum 2 types of tests: positive and negative. A positive test is a test that verifies a correct functionality, a negative test verifies that a function will fail or throw an exception. Let’s see how it w..
|
|
Using Process Memory Matrix script for calculating Oracle process memory usage on Solaris
-
tanelpoder.com
-
16 years ago
-
eng
I just published a new script and article about calculating the real Oracle process memory usage on Solaris. The problem with V$PROCESS* views (and the V$SESSTAT) is that they will tell you what Oracle thinks it’s using, not the real amount of memory used. There will be discrepancies due how memory is actually allocated in OS, libraries out of Oracle’s control, the static memory areas inside Oracle binary and of course bugs.
|
|
Using Process Memory Matrix script for calculating Oracle process memory usage on Solaris
-
tanelpoder.com
-
16 years ago
-
eng
I just published a new script and article about calculating the real Oracle process memory usage on Solaris. The problem with V$PROCESS* views (and the V$SESSTAT) is that they will tell you what Oracle thinks it’s using, not the real amount of memory used. There will be discrepancies due how memory is actually allocated in OS, libraries out of Oracle’s control, the static memory areas inside Oracle binary and of course bugs.
|
|
If you want to generate code, make sure your target language is not Java
-
www.databasesandlife.com
-
16 years ago
-
eng
I tried to write a program using Java; it all seemed to be going well but then I hit a ridiculous limit. Java cannot be used for this type of problem. I have now completely re-written it in a different programming language, and that works fine. Be aware of this limit. I was unaware of it when I started this project. But it makes Java completely unsuitable for a whole class of problem.
|
|
I am currently actively interested in new opportunities due to changing circumstances with my current role. I’ve therefore uploaded a current curriculum vitae to this site .
|
|
I am currently actively interested in new opportunities due to changing circumstances with my current role. I’ve therefore uploaded a current curriculum vitae to this site .
|
|
Kyle Hailey has started putting together a much needed Oracle wait event reference. You can access it here . By the way, Oracle documentation also has a wait event reference section, it has more events, but it’s less detailed…
|
|
Kyle Hailey has started putting together a much needed Oracle wait event reference. You can access it here . By the way, Oracle documentation also has a wait event reference section, it has more events, but it’s less detailed…
|
|
Sometimes the interfaces you need just aren’t well documented, but thanks to the internets , some websearches , and a useful dictionary , you can often decipher random web documentation jargon to help you produce useful code . You can hire James and his team at m9rx corporation . You can follow James on Mastodon for more frequent updates and other random thoughts. You can follow James on Twitter for more freque..
|
|
Sometimes the interfaces you need just aren’t well documented, but thanks to the internets , some websearches , and a useful dictionary , you can often decipher random web documentation jargon to help you produce useful code . You can hire James and his team at m9rx corporation . You can follow James on Mastodon for more frequent updates and other random thoughts. You can follow James on Twitter for more freque..
|
|
I've updated the browser plugin to finally support full online multiplayer! Go try it! I think the plugin is now stable enough that I am promoting it as the officially recommended method of playing the game. :) Of course, there are still some problems. Namely, in Internet Explorer the mouse control doesn't work. Testing so far has shown Firefox 3 and Chrome (on Windows) handle the game very well. So give it a whirl, and please post an..
|
Bugs are fun but this time I want to talk about win. Recently I finished work on a recursive descent expression evaluator in the Bandcamp code. (That’s a mouthful and I enjoy slinging that whenever I can—it’s up there with binary space partitions.) An expression evaluator is something that can take a sequence of characters […]
|
|
A scientist builds in order to learn, an engineer learns in order to build.” (Fred Brooks) Java Introduction Tutorials Java Basic Programs: 5 Simple Examples Java Hello World - How to Run Java 9 Tutorials Java 9 Strings Java 8 Tutorials How to sort a Set in Java example Java 8 parallel streams API Java regex by example: strings Java Best Practice Prefer two-element enum types to boolean parameters Recipe f....
|
|
CVE-2007-4573 is two years old at this point, but it remains one of my favorite vulnerabilities. It was a local privilege-escalation vulnerability on all x86_64 kernels prior to v2.6.22.7. It’s very simple to understand with a little bit of background, and the exploit is super-simple, but it’s still more interesting than Yet Another NULL Pointer Dereference. Plus, it was the first kernel bug I wrote an exploit for, which was fun.
|
|
CVE-2007-4573 is two years old at this point, but it remains one of my favorite vulnerabilities. It was a local privilege-escalation vulnerability on all x86_64 kernels prior to v2.6.22.7. It’s very simple to understand with a little bit of background, and the exploit is super-simple, but it’s still more interesting than Yet Another NULL Pointer Dereference. Plus, it was the first kernel bug I wrote an exploit for, which was fun.
|
|
Here we’ll look at an example of a simple light. We draw a static ball in the middle that will serve us as a background. Four small balls will move around the big one and represent different lights. These small balls are not actually lights, but are there to show the color and position of the light.
|
|
Not dead... just really busy. Been doing a lot of network debugging and optimization; I added zlib compression to the network packets, which cut down network bandwidth by about a fourth. I also streamlined a few network issues, added a simple network performance logger, and implemented simple client-side interpolation; everything moves much smoother now, even if there is a slight delay. It's basically a fact of life these days in online gam..
|
|
sooner or later you’ll end up needing to do some argument parsing. the foolish end up writing their own yucky parser that ends up having a big if statement filled with things like: if len(sys.argv) > 1 in it. don’t do this unless you have a really good excuse. sooner or later, someone directs you to getopt , and you happily continue on with buggy manual parsing thinking you’ve “ found the way ”. useful in some circumstances, but sh..
|
|
sooner or later you’ll end up needing to do some argument parsing. the foolish end up writing their own yucky parser that ends up having a big if statement filled with things like: if len(sys.argv) > 1 in it. don’t do this unless you have a really good excuse. sooner or later, someone directs you to getopt , and you happily continue on with buggy manual parsing thinking you’ve “ found the way ”. useful in some circumstances, but sh..
|
|
Coskan Gundogar and Karl Arao have written two interesting articles about Oracle performance analysis and visualization, check these out! Coskan’s article: http://coskan.wordpress.com/2010/01/27/working-with-statspack-part-1a-diagnosis/ Karl’s article: http://karlarao.wordpress.com/2010/01/31/workload-characterization-using-dba_hist-tables-and-ksar/ Note that in March I will be releasing PerfSheet v3.0, which will have lot..
|