Register | Log in | RSS channel for codegravity.com homepage Bookmark!

233/3NEW projects | 71 services | 212 websites | 712/4NEW freelancers | 1994 topics | advertise



Login:



Forgot your password?
Forgot your username?
Create an account


Countries

17.7%United States United States
17.3%India India
8%Germany Germany
6.1%United Kingdom United Kingdom
5.3%France France

Visitors

Today: 2521
Yesterday: 3655
This Week: 6176
Last Week: 23671
This Month: 53754
Last Month: 41679
Total: 126738


Users

Most active users today from total of 81:
nitewind, magdoom, denoapte, Torkelator, theochambers24, jamesburns00, bolaji, vaiduoklis99, cfcamerica, Unknown98, iapinun, nono91, Aven, palmita, ervede, hasan5054, gmwasaru, margat, ognoo, ddhjkk
JoomlaWatch Stats 1.2.10_04 by Matej Koval
Partners:

Freelance ColdFusion, Flex, PHP

Olejomalby, abstraktne obrazy

Camping Europe

WinAsm Studio

Vyšné Ružbachy

Sochy, Reštaurovanie

R.E.M.

Valid XHTML 1.0 Transitional

RSS feed:
rss feed

Statistics:
Search Engine Genie Promotion Widget
Home
Programming
Email as Image in PHP

This is a class which is different than every other class you can find regarding coverting an email address to image.

This is because it uses the encryption of the email addresswhich is being passed to the script which renders the image. The renderer decrypts this parameter produces an image output.

 

 

Read more...
 
Custom JSF component - Birthday

One of the powerful feature of JSF is to extend its tag library and create custom tags. Developers can use this feature and enhance the tags that are provided by JSF implementations (e.g. sun, myfaces, etc). Or they can straight away start writing the tags of their own. Today we’ll see how easy it is to create a custom tag in JSF. Let’s try out with an example, to create a tag, which will display today’s date and a list of people who has birthday today.

Read more...
 
JSF, Icefaces and custom components experiences

I got the task to evaluate the new web-frameworks in the company I work for.  There were many candicates that might enhance the web user interface and move away from the old struts framework. If you want to know some of my experiences, just read on..

Read more...
 
Icefaces custom tag with facelets

I've been struggling with creating my own icefaces tag that I could use everywhere it's needed. There are many tutorials on the internet, BUT.. I couldn't get it work anyway.

When I looked at the sourcecode on the webpage, the tag     <ticker:ticker />  was there directly in the HTML sourcecode. This is wrong, because I expected the rendered ouput there.

One whole week I tried to solve this problem trying almost everything. But then, finally, I found it.

So, what was the problem? When you are using Facelets with your JSF/Icefaces, the TLD (tag library descriptor) files are for nothing. Even if I tried to place them everywhere. You have to create the equivalent of the TLD file for the Facelets - the XML file describing the tag structure. In this case it's ticker.taglib.xml

 

ticker.taglib.xml
The tag descriptor for the facelets

 

 There you specify the component's class - Ticker, and it's renderer - TickerRenderer. Now, you don't need the TickerTag as suggested when using JSP in many tutorials around the internet.


Also don't forget to tell the JSF to recognize your taglib and place this XML snippet into web.xml (just the first reference to xml, the second is when you want to use also another taglib - eg. the tomahawk components)
web.xml facelets libraries
Put the reference to your tag descriptor into web.xml

  

    <context-param>
        <param-name>facelets.LIBRARIES</param-name>
        <param-value>
            /WEB-INF/ticker.taglib.xml;/WEB-INF/tomahawk.taglib.xml
        </param-value>
    </context-param>

 

  JSF source
JSF source with a custom tag



rendered output
Rendered output

 

I wonder why this 'trick' hasn't been described yet in some tutorial. So, I hope you will find this remark useful and it will help you when creating your own JSF components.

 

 

 
Firefox extensions - useful XUL resources

 

I've been reading something about firefox extensions programming. There are many tutorials on the web showing just the basics - how to create the .xpi file, and describe contents of this archive. None of these tutorials showed something more about the XUL programming and theory behind it.

Check out these cool XUL presentations I found: 

http://www.xmlaustin.org/wk/385/4/Eitan_Suez_XUL.pdf

 

http://media.wiley.com/product_data/excerpt/04/04714158/0471415804.pdf

 
Practical usage of AJAX on this website
ajax

 

I found a great CSS dropdown menu on a website http://www.cssplay.co.uk/menus/drop_variation.html

It allows you to include the dropdown menu as one you can see on the top of this website. One great advantage is that it's in a plain HTML with the usage of CSS styling and therefore no javascript coding is required.

Ok, so I made a module that generates the set of HTML links from the Joomla CMS which are then transformed into this nice menu.
Every page of my website usually contains less than 100 links (internal+external) because I want the pages to be the search engine friendly.  But using this feature the number of links on every webpage increased to 200 or so.

Read more...
 
Google web toolkit (GWT) useful links

Currently I am evaluating the Google Web Toolkit technology (GWT) for our project and I'm trying to compare it to other approaches like the ICEfaces technology from the Icesoft company.

If you are about to start with the google web toolkit (gwt), I can recommend you the following presentation from Intellij:

http://www.jetbrains.com/idea/training/demos/GWT.html

It features the Intellij IDEA's support for GWT. I have to say here that working with GWT with IDEA is very easy and intuitive. IDEA's got lots of helpers, code generators, and error reporting. I was nicely surprised that IDEA hilighted the non-existing CSS style used with the GWT ! Creating the remote servlets is also a piece of cake! It registers your servlet automatically in web.xml and does other neat stuff.

UPDATE: Great presentation from the Prodyna GmbH:
http://jax.prodyna.de/jaxdocs/jaxgwt.ppt

UPDATE: GWT presentation video from Bruce Johnson:
http://www.infoq.com/presentations/gwt

To learn some theory - have a look here:
http://www.maximilien.org/presentations/2006/AJAX_and_GWT_Public_07052006.pdf

Read the whitepaper form the IBM:
ftp://ftp.software.ibm.com/software/dw/wes/hipods/Advanced_AJAX_with_GWT_wp16Feb.pdf

And a great presentation from javapassion.com:
http://www.javapassion.com/ajax/GWT.pdf

and it's version with the speaker noted there.
http://www.javapassion.com/ajax/GWT_speakernoted.pdf

I found the development with GWT quite easy, it's quite similar to the swing development with it's actionlisteners etc.. My task now is to create the form which would have it's fields expanded regarding to the role of the user that logged in. With icefaces it was the matter of an hour, GWT learning curve seems to be quite longer, but maybe it's because I knew JSF before. Anyway.. it's worth to have a look at these technologies, because they allow you to combine the AJAX and Java approach, without any painful javascript coding. If you'd have some experiences with the GWT, or other web technologies, feel free to comment ! Thank you

 
Amazing Flex 3d demo

Check out this amazing 3D Flex demo: 

 

 
ICEfaces JSF components presentation
Here is a flash presentation of the components bundled with the ICEfaces framework from the icesoft.com. It features functionality like text autocompletion, calendars, menus, forms partial submit, trees, drag&drop and many various effects.
Click the image to see the icefaces components flash presentation
 
 
Swing text antialiasing
Want to antialias all the text on your Swing application without touching your code? No problem, just add the following definition to the command line when you invoke your application: java -Dswing.aatext=true MyStartClass
 
Java Tips
Here are some of my tips and notes, that could be useful for you
Read more...
 
Programming in J2EE
I'm focusing on Java2 Enterprise Edition (J2EE), and have the following experiences
Read more...
 
JavaServer Faces notes
Here are some of the notes from the JSF training. You can see here some tricks and important remarks.
Read more...
 
Cannot find FacesContext

While developing JSF pages, I got following error: "javax.servlet.
ServletException: Cannot find FacesContext". The solution is: You cannot access the .jsp page directly, always you have to access .jsf or .faces instead. For example, if you have index.jsp with a view, you should access it via index.jsf or index.faces.
 
Hibernate
Notes from the Hibernate training. Basic information about hibernate configuration, mapping and queries
Read more...
 
Microsoft SQL server course overview
Read more...
 
Java 6.0 applets initialization
Have you noticed that initialization of applets in the Java 6.0 runs faster than ever? I don't know if it's just my personal feeling, but it starts pretty fast. But there is one unpleasant thing that happened to me. When I opened a page with some applets and time to load one of them was very long (because of the internet connection and it's size), the whole firefox browser did not respond at all. I had to kill it via the task manager. I was nearly happy that it would be finally possible to replace all the flash-like web components. If such a behavior would persist - the common user would be annoyed everytime. Where is the root of unresponsiveness problem ? Is it so hard to fix in JVM, or is it just a problem of firefox? Feel free to comment.
 
JSP and Servlet Tips
Read more...
 
Links to Free Programming Manuals
This is good resource of links for beginners or also advanced programmers. Enjoy!
Read more...
 
Programming in Java
My practical skills in Java Programming
Read more...
 
PHP and MySQL hosting
Most website programming beginners are asking where they can try their PHP scripts for free. Here are some of free web hosting services
Read more...
 
Programming in PHP
PHP is widely used scripting programming language specially designed for web development. In these times it grows on popularity. Advantage of PHP is specialy in that, that it's like other programming language (very simmilar to C++ and perl) and allows programmer to put dynamically generated pages on server.
Read more...
 
Idea shortcuts
Here are some useful shortcuts of IntelliJ IDEA that I have found. These shortcuts are useful when you have a large project and want to browse it's methods.
  • Ctrl+Q - quick lookup in the Javadoc documenation. It shows up a popup box with the javadoc comment
  • Ctrl+P - shows the parameters of the method. This is useful when you are not sure about parameters of the constructor or some method. It gives you the list of the all available parameters.
  • Ctrl+B - go to declaration. If you are not sure where the variable is defined, this shortcut jumps to that place.
  • Shift+F1 - View External Javadoc - opens a browser with the method in the javadoc
 
Java certification - fundamentals
Keywords are special reserved words in Java that you cannot use as identifiers (names) for classes, methods, or variables. Access Modifiers
  • private - accessible only from within it's own class
  • protected - only to classes in the same package or subclasses of the class.
  • public - from any other class
Class, methods, and variable modifiers
  • abstract - cannot be instantiated, must be implemented by a nonabstract subclass.
  • class - keyword that specifies a class
  • extends - indicates the superclass that a suclass is extending
  • final - impossible to extend a class, override a method, or reinitialize a variable
  • implements - indicates the interfaces that a class implements
  • interface - specifies the interface
  • native - a method is written in a platform-dependent language
  • new - instantiating, invoking the constructor
  • static - variable belong to a class as opposed to an instance
  • strictfp - will follow FP-strict rules in all expressions
  • synchronized - method can be accessed only by one thread
  • transient - prevents fields from ever being serialized
  • volatile - may change out of sync
Flow Control
  • break - exits from the block of code in which it is
  • case - executes a block of code, dependent on the switch
  • continue - begins the next iteration of the loop
  • default - executes if none of the switch-case statements match
  • do - conjuction with the while statement
  • else - if an if test is false
  • for - conditional loop for a block of code
  • if - logical test for true or false
  • instanceof - whether an object is an instance of a class, superclass, or interface
  • return - returns from method
  • switch - variable to be compared with the case statements
  • while - repeats while a certain condition is true
Error Handling
  • catch - declares the block to handle an exception
  • finally - is executed no matter what program flow occurs
  • throw - used to pass an exception
  • throws - indicates the method will pass an exception
  • try - block that will be tried, and which may cause an exception
  • assert - evaluates an expression to verify the assumption of the programmer
Package control
  • import - statement that says which packages or classes to import
  • package - specifies the package to which the sourcecode belongs
Primitives
  • boolean - a value true or false
  • byte - 8-bit signed integer
  • char - unicode character (16-bit)
  • short - 16-bit integer which is signed
  • double - 64-bit floating-point number which is signed
  • float - 32-bit floating-point number which is signed
  • int - 32-bit integer number which is signed
  • long - 64-bit integer which is signed
Variable keywords
  • super - refers to the superclass
  • this - refers to the current object
Void return type
  • void - indicates no return type
Unused reserved words
  • const - use public static final instead
  • goto - not implemented !
null, true and false are technically not keywords, but literal values ! Range of the primitives Six number types in Java are signed. The positive range is one less than the negative range. Zero is stored as a positive binary number. Boolean can be only true or false. Most of the ranges are virtual-machine depentent. The char type is a single unsigned 16-bit Unicode character. A primitive literal - is a source code representation of the primitive data types. Integer literals There are three ways how to write an integer primitive: as a
  • decimal
  • octal - by placing the zero in front of the number (up to 21 digits)
  • hexadecimal - by the prefix 0x or the optional suffix extension L (up to 16 digits)
Floating point defined as double (64 bits) by default. If you want to use the float, you must attach the suffix F or f to the number. You may also also attach a D or d to touble literals, but it's not necessary. Boolean literals can only be defined as true or false. Character literals char literals are represented by a single character in single quotes. You can use the escape code like \n for a new line. Literal values for Strings strings are not primitives, they can be represented as literals (typed directly into the code) Arrays are objects that store multiple variables of the same type. There are three important steps:
  • make an array reference (declaration) eg. int test[]; It is recommended to put the brackets after the type.
  • construct the array object eg.
  • initialize the array
 
JSF and GET parameters
I was curious how could JSF be imporved to use GET, instead of using POST and saving it's state into URL parameters. GET is important also for the search-engine optimization when you combine it with the url rewriting. Great discussion is on the TheServerSide.com:http://theserverside.com/
news/thread.tss?thread_id=38601
Eg. You can then get the paramater value injected to your backing bean using: orderId #{param[orderId]} From my point of view, this is Just Perfect. How could anything be easier? http://wiki.apache.org/myfaces/InvokingJsfPagesWithStandardUrls JSF rules, and I think it should be more and more the basic web user-interface framework.
 

Add URL of a programming website
register as a freelancer
submit your project
open freelance projects you can work on
webmaster resources
write for us tips, articles

Recommended: (advertise)
Advertise Here -
Promote your services and get the new customers from the community of webmasters / programmers visiting CodeGravity.com

Add URL of your website -
Submit your programming or software development website to webmaster resouces directory and share it with everyone.

Web hosting -
Rioserver Web Hosting provide ultra-reliable. We offer a range of packages which we believe are better than any other web host simply a cost-by-cost basis.

Outsource your project -
Submit your project description with all the requirements to more than 600 freelancers from around the world for FREE.

Register as a Freelancer -
Submit your project experiences, programming languages and your other skills


Download Joomlawatch 1.2.9

Download the NEW* JoomlaWatch 1.2.9 official from 20.04.2009 available for Joomla 1.5 and Joomla 1.0

RSS Feeds:new

rss Freelance
rss Projects
rss Forum
rss Resources

Popular:
MathGuard
download mathguard
Random screenshot:

linoopz15.jpg


Poll
I've installed JoomlaWatch 1.2.9 and:
 

News:

Registration required
I know that people don't like registering on websites, but I had to do it. From this moment you have to register first, before you download any file. This is better, because this way I can give you quick info about new version of downloadable files (eg. MathGuard) or some necessary security fixes. Thanks for understanding. (26.08.2007)

Books about investing and finance
I'd like to recommend you to read a book by Robert T. Kiyosaki - "Rich Dad, Poor Dad". However many people say it's quite a controversial book, it gave me a good motivation to improve my financial intelligence. (23.08.2007)

Fighting with the spam
All of the forms were protected with my own PHP antispam class - MathGuard, including the forms in the joomla modules I use. (02.05.2007)

Forum
Converted posts from the old punbb forum to the new joomlaboard (25.02.2007)

Improvement
Fixed some issues with the freelance registration, added a possibility to add a new programming resource, reorganized the structure of the programming resources. (24.02.2007)

New content management system
Codegravity.com is now running on joomla cms :) Added features like comments, forum etc. I hope you'll like it. Today I fixed the problem with the comment module which was not showing the correct images. There is also a new URL structure. For the old urls there is a 301 (Moved permanently) http redirect. (10.02.2007)

Moved to another hosting
Codegravity.com has been moved to another web hosting - CustomHosting.sk, from the previous pipni.cz, mainly because of the mod_rewrite problems and slow loading of the website. Sorry for some problems that lasted for about an hour. (19.01.2007)

Bookmark feed
The new feed from the del.icio.us has been added to the homepage codegravity.com. You 'll always have the latest information about the sites I like and you should visit as well! (21.11.2006)

News improved
Today I improved the news feeds. They are sorted into categories and I also added some other feeds that may be interested for you. (31.03.2006)

The Antispam verification
My email form was hijacked by the spam bots and I was recieving a lots of junk into my mailbox everyday. So, I decided to put a simple verification in the end of the form. You have to answer the result of addition of two numbers. Thank you for your understanding. (07.03.2006)

Java SE 6 Beta Mustang is out !
This beta release is a major milestone in the development of Mustang. It provides a complete stable snapshot of the final release functionality. http://mustang.dev.java.net (20.02.2006)

Google analytics, apply online
Apply online to google-analytics.com. They offer the new way of analysis of your website visitors. It is very promising, and when you will recieve the invitation code, you can send me one :) Thank you :) (13.02.2006)

Money Manager 2 - software for mobile accounting

FaceRSS - simple JavaServer Facer (JSF) component
I registered my new project - FaceRSS on freshmeat.net, here is the description: FaceRSS is a simple JavaServer Faces (JSF) component that allows you to display news from a specified URL source in one configurable JSP tag. This allows you to place news feeds on a Web site in a very simple way. It uses rsslib4j and therefore supports RSS version 0.9x, 1.0, and 2.0 with Dublin Core and Syndication namespaces. (06.01.2006)

My new blog :)
Check out my new [jroller.com/page/matto3c] blog on jroller.com website. Here is the RSS feed [http://jroller.com/rss/matto3c] if you'd like to add it into your news reader. (14.12.2005)

Optimizations
Thanks to the SEO company SeoVisions, for the basic optimization of this website. (11.12.2005)

ERM-II and Slovakia
SLOVAKIA, my home country, is now one step closer to adopting the common European currency - EURO. At midnight between November 25 and November 26, the country joined the Exchange Rate Mechanism 2 (ERM-II) (30.11.2005)

www.jground.com
I established a new website - http://www.jground.com, it's all based on JSF and it should be all about Java and all other related things. Enjoy! (25.11.2005)

Swing text antialiasing

Java webhosting
I'm trying a new http://www.move.cz java webhosting on www.move.cz, but it seems they don't respond to my questions about JSF ;( (16.11.2005)

Migration from Weblogic to JBoss
Currently I am working on a task: Migration of one J2EE application from Weblogic to JBoss application server. So, if you have any suggestions or resources, I would be glad if you'll send me some. Thanks (15.11.2005)

Increased Java performance
Java increased its performance on desktop by 58% : [http://www.javalobby.org/java/forums/t54006.html] Java Performance
Improvement (15.11.2005)

Exadel Studio Pro
At this time I'm playing with JSF (Java Server Faces). I want to recommend you a great IDE - Exadel JSF Studio Pro. It costs about $99, and there is 15 days trial available. You can also try MyEclipse which has also like Exadel - WYSIWYG editor for editing JSP, JSF pages. It can save you a lot of time. For more info, visit www.exadel.com (27.09.2005)

Programming directory
added a new programming resources directory, where you can submit your own programming website (14.09.2005)

Programming forum
Now the Programming forum is included in website design. I put there some topics from previous version of this forum. (19.08.2005)

Ubytovanie, podnajom Poprad
Ponuka na podnajom, ubytovanie: Zrekonštruované podkrovie - rodinny dom Poprad-Matejovce - 2 izby + pracovna + kúpelna s kuchynou, strešné a plastové okná, samostatné plynové kúrenie, drevené plávajúce podlahy, garáž, velká záhrada a samostatný vchod. . . Cena: dohodou
Kontakt: 0908 190 372 (18.02.2008)

Stavebny pozemok
Predám stavebný pozemok v prijemnom prostredí kúpelov Vyšné Ružbachy v blízkosti lyžiarskych vlekov. Inžinierske siete v blízkosti. Vhodný na relax ale aj podnikanie. 1767+27m2. 0908 190 372
Privacy policy | Advertise | Donate

Locations of visitors to this page


©2003-2009 Codegravity.com - Home