18 April, 2011

Scriptin' with Javascript and Ajax

Charles Wyke-SmithImage by linoleum jet via FlickrI am done reading this book, and while I can say that it is almost in the same line of methodologies as the other book from Riders (Bulletproof Ajax), they have different offerings.

Scriptin' focuses on reuseable javascripts, and the final two chapters is supposed to be a working example that brings in all the discussed knowledge.

Unfrotunately for me that can't materialize. It was dealing with PHP, and I don't have a server that runs PHP.

Anyway, the javascripts I have learned just fine, expecially those nice formatting techniques, stripes, character counting, etc., etc.

And of course, these functionalities, more or less, are somewhat available in the Visual Web Developer toolkit.

So what's good about this book?

I know from the ground up how these already-available controls work. If I have to code by hand, I may struggle, but I can survive. I can continue. I won't be stuck.

I can go on Scriptin'!
Enhanced by Zemanta

12 April, 2011

Fonts to Use, in Web and in Print

Cover of "Looking Good in Print"Cover of Looking Good in PrintI've been reading the books by Charles Wyke-Smith, and once again, I have come across the idea of what font is suited best for which application.

I read it long time ago in 'Looking Good In Print' - a book that tells how to style and arrange a page, and what fonts to use, on the title, the text, the headers and footers - everything you need to know and do when it comes to printed materials, and the one thing that I can remember well from that book is when it said that the font best suited for printed matters is serif fonts.

I could have easily made the mistake of saying that that idea was confirmed in one of Wyke-Smith's books, but fortunately, I checked back again.

The book that I have just finished reading, which confirmed that idea is the book by w3schools.com: "Learn HTML and CSS with w3schools" and "Learn CSS with w3schools".

To recap, here's what it said:

For the Web, use sans serif, font size about 12.
For Print, use serif fonts, using smaller font size of about 10.

And this is done by using the '@media' style selector.

Till then!

Learn JavaScript and Ajax with w3SchoolsLearn HTML and CSS with w3SchoolsLearn CSS with w3Schools

Enhanced by Zemanta

29 March, 2011

ODP .NET installation

DLL IconImage via WikipediaI have tried my installation of the different versions of ODP .NET.

You see, I am developing applications using VS 2005, VS 2008 and finally, VS 2010.

And with much of the developments in the Oracle world, with regard to database access, I am keen to try out ODP .NET, especially since I caught the selling point where it says that ODP will be much faster, more efficient. Not to mention that MS oracle library is already deprecated, and will be gone soon.

From OTN, I am able to see that they have installer files for Ora9, Ora10, and Ora11.

I gladly downloaded all 3, and started installing.

Actually, I used the latest file, and it was to my shock!

My applications couldn't run...

As quickly as I installed, I uninstalled ODP .NET for Oracle 11i.

And fortunate enough, my applications were able to run again (like they did recover from an initial shock)!

-----

Pro ODP.NET for Oracle Database 11g (Expert's Voice in Oracle)That was about 2 days ago.

Today, as is normally my case, I cannot rest until I make things running, or I am able to "see" what is waiting, what's in store.

So after the first setback, I wanted to try again, but this time, I worked on the earlier version - Ora9.

I installed, and rebooted, and voila! It worked. My applications were running.

And sort of being able to land first base, I didn't get contented. (Sometimes I understand why the saying 'curiosity killed the cat').

I continued to install the other 2 ODP .NET softwares (ora10g, Ora11i). You see, I was able to add in as a Reference in my VS 2005 apps the dll file (Oracle, DataAccess) - ONLY. When I tried adding the reference dll file in my VS 2010 apps, I can't find it. So I proceeded to install the higher versions with the hope that I will be able to call ODP in my VS 2010 applications.

Guess what happened?

After installing, I performed a reboot.

ODP.NET Developer's Guide: Oracle Database 10g Development with Visual Studio 2005 and the Oracle Data Provider for .NET: A practical guide for ... Oracle Developer Tools for Visual Studio 2005I called up my VS 2005 editor, and tried to run one of my apps, and it didn't run! The same error message was thrown out, and the same rootcause was found: some initialization files cannot be 'read'.

I tried to compose myself, and decided to do troubleshooting.

I checked the installation folder, and I did see what changed: C:\oracle folder now has a new folder added: product folder. And inside, there are 2 more folders: \10.1.0 and \10.2.0. I compared the structure of my current \ora90 folder with the new folders, and I found that they both have the \network\admin folders.

Being the lazy troubleshooter that I am, I thought of simply copying over the sqlnet and tnsnames files into the new folders, and see if that would solve the problem.

I did just that. I copied the 2 files form the current \network\admin folder, and renamed the sqlnet files in the two new folders as sqlnet_old, then copied the files over.

Did that solve the problem?

You bet it did!

Pro .NET Oracle ProgrammingAfter that quick no-brainer troubleshooting adventure, I proceeded to see if I can call up Oracle.DataAccess dll file in my VS 2010 applications. I opened up one app, and tried to add a reference, and there it was: Oracle.DataAccess, bright and clear, ready for the taking. I did just that.

And one or two steps on, I hit another problem, but I'm past the installation and addition of the ODP .NET library/namespace in my VS 2005 and VS 2010 apps. It's the code-building issues now.

And so, with that short narrative of mine on my ODP .NET adventure, I hope that it will be of help to you who is going in the same direction as me.

Will I hear from you?

Till then!
Enhanced by Zemanta