msgbartop
News, views, tips and tricks on Oracle and other fun stuff
msgbarbottom

The New Firefox Reporter Tool

Deer Park Alpha 1 and the latest Mozilla Firefox trunk builds include a tool for reporting broken websites. Known as Reporter, the tool is designed to make it easy for users to send details about sites that do not work well with Firefox. When a user encounters a problematic site, he or she can use the ‘Report Broken Web Site’ command in the Help menu to fill out a problem report with all the necessary details. The user’s description of the problem is then sent to the Mozilla Foundation together with some basic information about his or her version of Firefox.

All the submitted reports can be viewed at reporter.mozilla.org using a Web interface. Existing reports can be searched using a form similiar to the Bugzilla query page and it’s also possible to get a list of the twenty-five hosts responsible for the most reports.

source

Comments Off | Filed in Firefox | Tags:


Model Glue viewState tip

In your view, for example, instead of:

<cfset variables.var1 = viewState.getValue("var1") />
<cfset variables.var2 = viewState.getValue("var2") />
<cfset variables.var3 = viewState.getValue("var3") />

You can always use this alternate syntax:

<cfset variables.state = viewState.getAll() />

and then you can reference var1, var2 and var3 in your code like this: variables.state.var1, variables.state.var1 and variables.state.var1

Comments Off | Filed in ColdFusion | Tags:


Sample Macromedia Applications

If you are looking for some example ColdFusion and other Macromedia applications then I think it is worth your time checking out this list.

Comments Off | Filed in ColdFusion | Tags:


Get image dimensions

Here is a quick and dirty (and easy) way to get the width and height of an image. It should work for both JPG and GIF files:

<cfobject type="JAVA" action="Create" name="tk" 
          class="java.awt.Toolkit">
</cfobject>
<cfobject type="JAVA" action="Create" name="img" 
          class="java.awt.Image">
</cfobject>
<cfscript>
img = tk.getDefaultToolkit().getImage("c:\img.gif");
width = img.getWidth();
height = img.getHeight();
</cfscript>
<cfoutput>#width#<br />#height#</cfoutput>

That’s the beauty of ColdFusion, you have all of the Java language available to you right out of the box. ColdFusion is after all a Java application behind the scene.

source

29 Comments | Filed in ColdFusion | Tags: ,


ColdFusion and white space

If you are a ColdFusion developer, you most probably know by now that it produces lots of white space in the generated HTML file. The extraneous white space may result in a larger file size which leads to slower download speed on the client machines. So, how to get rid of this extraneous white space? First, learn how to use the following CFML tags, then use them in your code:

Continue reading…

Comments Off | Filed in ColdFusion | Tags:


Google Guide: Help with Searching

Google Guide: Help with Searching: If you’re like many people, you use only a small number of Google’s services and features. The more you know about how Google works, its features and capabilities, the better it can serve your needs.

Just as the best way to learn how to sail is to sail, the best way to learn how to search with Google is to search with Google. Consequently this Google tutorial contains many examples and exercises designed to give you practice with the material presented and to inspire you to find amusing or useful information.

In Google Guide you can learn:

  • How to select terms and search (more) effectively
  • How Google interprets your query
  • What’s included with your results
  • How to search using Google’s special tools and shortcuts
  • What to do when you can’t find the answer you want
  • When Google added services, features, and options (Google’s Feature History)
  • How Google works
Comments Off | Filed in Interesting Stuff | Tags: ,


Gmail slower?

During the past few days, Gmail has been slower than usual during the day and it gets faster at night. Am I the only one noticing this? I have also noticed that the ads in my Gmail have moved from the bottom of the e-mail thread to the side of it.

1 Comment | Filed in Interesting Stuff


del.icio.us: casting the net wider

del.icio.us: casting the net wider: If you use del.icio.us, you may be glad to know that they have introduced new “system generated” tags. Bookmarked items in del.icio.us that end in one of a number of filetypes will now automatically get some system tags added. You can use these just like normal tags. RSS feeds that have one of those system tags added will automatically become a rss-with-enclosures file.

Comments Off | Filed in Interesting Stuff | Tags:


My new camera

I have finally received my new digital camera Canon PowerShot SD500 Digital ELPH, and I Like it a lot so far. What I like most about it is:

  • Excellent photo quality
  • Compact and very stylish metal body
  • Blazing performance
  • First rate movie and continuous shooting modes
  • Powerful flash for a compact camera
  • Unique My Colors feature
  • LCD visible in low light
  • AF-assist lamp; good low light focusing
  • USB 2.0 High Speed support

If you’re out and about searching for a new camera I strongly recommend this one. Because it is in high demand, I had hard time finding it in stock. I first ordered it from dell.com but they kept on pushing the shipping date, so I kissed them good bye and cancelled my order. Then I waited until buy.com had it in stock, so I quickly nabbed it (and saved $30 over the street price). The next day, it was out of stock again. But, who cares now. Here are a couple of pictures of my new camera:

3 Comments | Filed in Personal | Tags:


CURRVAL and NEXTVAL

Here are some facts you may want to consider if you use or are planning to use sequences in Oracle.

You cannot use CURRVAL and NEXTVAL in the following constructs:

  • A subquery in a DELETE, SELECT, or UPDATE statement
  • A query of a view or of a materialized view
  • A SELECT statement with the DISTINCT operator
  • A SELECT statement with a GROUP BY clause or ORDER BY clause
  • A SELECT statement that is combined with another SELECT statement with the UNION, INTERSECT, or MINUS set operator
  • The WHERE clause of a SELECT statement
  • DEFAULT value of a column in a CREATE TABLE or ALTER TABLE statement
  • The condition of a CHECK constraint

Also, within a single SQL statement that uses CURRVAL or NEXTVAL, all referenced LONG columns, updated tables, and locked tables must be located on the same database.

When you create a sequence, you can define its initial value and the increment between its values. The first reference to NEXTVAL returns the sequence’s initial value. Subsequent references to NEXTVAL increment the sequence value by the defined increment and return the new value. Any reference to CURRVAL always returns the sequence’s current value, which is the value returned by the last reference to NEXTVAL. Note that before you use CURRVAL for a sequence in your session, you must first initialize the sequence with NEXTVAL.

Comments Off | Filed in Oracle | Tags: ,