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. »

Searching and Replacing in vi Editor

Posted on February 17, 2015 by James
Reply

In Linux, vi is powerful to search and replace the text. Vi provides the :s (substitute) command for search and replace. Continue reading →

Posted in Linux | Leave a reply

Frequently Used GET and POST Commands in curl

Posted on February 17, 2015 by James
1

Several frequently used GET and POST commands in curl are listed here. Continue reading →

Posted in Linux | 1 Reply

Send HTTP Get Request in Java

Posted on February 17, 2015 by James
Reply

The post will give two examples to send HTTP GET requests using Java standard API or using Apache HttpClient.

1. The example using Java API URLConnection Continue reading →

Posted in Java | Leave a reply

Send HTTP POST request in Java

Posted on February 15, 2015 by James
Reply

The post will give two examples to send HTTP POST requests using Java standard API and Apache HttpClient.

1. The example using Java API HttpURLConnection Continue reading →

Posted in Java | Leave a reply

Synchronized vs ReentrantLock in Java

Posted on February 14, 2015 by James
Reply

Synchronized, ReentrantLock and AtomicInteger are used in many projects to help solve concurrency issue and thread safety. The post will compare Synchronized and ReentrantLock. Continue reading →

Posted in Java | Leave a reply

Convert Byte to Bit String (Java)

Posted on February 13, 2015 by James
1

It will give one implementation on how to convert byte to bit string (8 bits). For example: byte 5 will change to “00000101”, byte 8 will be “00001000”. Continue reading →

Posted in Java | 1 Reply

How to Change Hostname under CentOS / Redhat

Posted on February 12, 2015 by James
Reply

This post describes how to change / modify host name / hostname under Redhat / CentOS. Continue reading →

Posted in Linux | Leave a reply

Configure c3p0 Connection Pool in Hibernate

Posted on February 12, 2015 by James
1

Normally, opening a connection to a database consumes more time than executing an SQL statement. Connection pools can help to reuse some connections without creating the connections frequently. In DAO layer, it will help to improve your system performance. Continue reading →

Posted in Hibernate, Java | 1 Reply

Find Files Containing a Text String (Linux)

Posted on February 11, 2015 by James
Reply

There are multiple ways to find files containing a text string. Here is one simple command (grep) to achieve the goal. Continue reading →

Posted in Linux | Leave a reply

How to Remove Meta Generator WordPress

Posted on February 11, 2015 by James
Reply

Assuming you are using WordPress 4.x, and want to remove the meta tag in each page like:
<meta name="generator" content="WordPress 4.1" /> Continue reading →

Posted in Others | 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