Tec Bar

Main menu

Skip to primary content
Skip to secondary content
  • Home
  • Java
  • JDBC
  • Hibernate
  • Algorithms
  • Design Patterns
  • Linux
  • Database
  • Others
  • Terms of Service
  • About
  1. Pages:
  2. «
  3. 1
  4. 2
  5. 3
  6. 4
  7. 5
  8. 6
  9. 7
  10. 8
  11. 9
  12. 10
  13. 11
  14. 12
  15. 13
  16. »

Implement strStr() – LeetCode

Posted on May 7, 2015 by James
Reply

strstr (a.k.a find sub string), is a useful function in string operation. You task is to implement this function. For a given source string and a target string, you should output the “first” index(from 0) of target string in source string. Continue reading →

Posted in Algorithms | Leave a reply

How to check if a radio button is checked using JQuery

Posted on April 26, 2015 by James
1

It is easy to check if a radio button is checked using JQuery.

For Example:

XHTML
1
2
3
4
 
<input type="radio" name="gender" value="Male" />
<input type="radio" name="gender" value="Female" />
 

Continue reading →

Posted in Others | 1 Reply

How to display double or float data with 2 decimal places in Java?

Posted on April 24, 2015 by James
Reply

There are multiple approaches to display double or float data with 2 decimal places in Java. The post presents a way using DecimalFormat. Continue reading →

Posted in Java, Others | Leave a reply

Proxy Pattern

Posted on April 21, 2015 by James
1

The intent of Proxy Pattern is to provide a placeholder for an object to control access to it, and add a wrapper and delegation to protect the real component from undue complexity. Continue reading →

Posted in Design Patterns | Tagged Design Pattern | 1 Reply

Deny visitors by IP address using Apache .htaccess file

Posted on April 20, 2015 by James
Reply

.htaccess is a configuration file for use on web servers running the Apache Web Server. Continue reading →

Posted in Linux | Tagged Linux | Leave a reply

Command Pattern

Posted on April 17, 2015 by James
1

Command pattern encapsulates a request under an object as command, and passed to invoker object. It allows the parameterization of clients with different requests, queue or log requests. Continue reading →

Posted in Design Patterns | 1 Reply

Java Properties File Processing

Posted on April 16, 2015 by James
Reply

Java properties file (with extention .properties) is normally used to store the configurable parameters or strings for Internationalization and localization. In the file, each parameter is stored as a key/value pair of strings. Continue reading →

Posted in Others | Leave a reply

Template Method Pattern

Posted on April 13, 2015 by James
1

Template Method pattern defines the skeleton of an algorithm, and defer some steps to subclasses. Template Method lets subclasses redefine certain steps of an algorithm without changing the algorithm’s structure. Continue reading →

Posted in Design Patterns | Tagged de, Design Pattern | 1 Reply

Difference between String, StringBuffer and StringBuilder

Posted on April 10, 2015 by James
Reply

In Java, String, StringBuffer and StringBuilder classes are widely used. In many scenarios, any of them can be used. However, there are minor differences between these classes. Continue reading →

Posted in Java | Leave a reply

Difference between Session get and load in Hibernate

Posted on April 8, 2015 by James
Reply

Hibernate Session provides two methods to retrieve object e.g. get() and load() both looked quite similar to each other but there are subtle difference between load and get method.

The major difference between two methods is: Continue reading →

Posted in Hibernate | Leave a reply
  1. Pages:
  2. «
  3. 1
  4. 2
  5. 3
  6. 4
  7. 5
  8. 6
  9. 7
  10. 8
  11. 9
  12. 10
  13. 11
  14. 12
  15. 13
  16. »

Categories

  • Algorithms (29)
  • Database (3)
  • Design Patterns (12)
  • Hibernate (8)
  • Java (40)
  • JDBC (15)
  • Linux (17)
  • Others (18)

Recent Posts

  • UML Class Diagram and Relationships
  • Java Date Format Pattern
  • Gmail SMTP debug: error “please log in via your web browser”
  • Install Sendmail Server on CentOS
  • Difference between @Component, @Repository & @Service annotations in Spring

Recent Comments

  • Nagesh on Java HTTP client crashes on HTTPS connections
  • Uli on Java HTTP client crashes on HTTPS connections
  • Guest on How to check if a radio button is checked using JQuery
  • Burns on RAID 1 Repair on Linux
  • prateek on Java HTTP client crashes on HTTPS connections

© 2025 tecbar.net