Skip to main content

Posts

Android ASCII Art

G G GG GG G G GG GG GG GGGGGGGGGGGGG GG GGGGGGGGGGGGGGGGGGGGG GGGGGGGGGGGGGGGGGGGGGGGGGGG GGGGGGGGGGGGGGGGGGGGGGGGGGGGGGG GGGGGG GGGGGGGGGGGGGGGGG GGGGGG GGGGGG GGGGGGGGGGGGGGG GGGGGG GGGGGGG GGGGGGGGGGGGGGG GGGGGGG GGGGGGGG GGGGGGGGGGGGGGGGG GGGGGGGG GGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGG GGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGG GGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGG GG GGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGG GG GGGGGG GGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGG GGGGGG GGGGGGG GGGGGGGG...

Active Directory with JXplorer

For folks who do not read the manual. If you encounter this error using JXplorer: [LDAP: error code 1 - 00000000: LdapErr: DSID-0C090627, comment: In order to perform this operation a successful bind must be completed on the connection., data 0, vece] Do not use your login name. Use your full name instead.

On an obsolete road

I have already forgotten these things. 1. Inner join versus outer join 2. Simple select statement for getting the max value of a column + another column 3. Definition of Object Oriented programming 4. Exact figure of the limitation of HTTP GET. 5. Differences between GET and POST. 6. The default method of an HTML form when submitted. I have made time to review them. Here they are. 1. Inner join will return matched results between two tables while outer join will return all regardless if there is a match or none between the two tables. Here’s a good article by Jeff Atwood, A Visual Explanation of SQL Joins . 2. Given a table Person with two columns, Name and Age. To get the eldest, SELECT Name, Age FROM Person WHERE Age = max(Age); 3. Object oriented programming is a programming paradigm that uses objects. These objects consist of fields, methods and their interaction. 4. 256 characters. 5. Given the size limit of GET, POST is used to overcome that. POST is used if ...

HTML5 Web SQL Database

HTML5 has a bunch of cool APIs. In one of my previous posts, I have written a simple demonstration of the Web Storage JavaScript API. In this post I will be showing another demonstration, the Web SQL Database JavaScript API. What is so fascinating about these APIs is they are “crash-safe.” Now you can lessen the load of your web servers and perform SQL tasks like, sorting, joining, etc. on the client side. Click [here] for the demonstration.

Removing while Iterating a Collection in Java

Let us say you have a list and you want to remove items while iterating through it if a certain condition satisfies. for (Object object : listOfObjects) { if (isConditionSatisfied) { listOfObjects.remove(object); } } What is wrong with this code above? Try it and you will get this, Exception in thread "main" java.util.ConcurrentModificationException You might want to do this instead, Iterator<Object> iterator = listOfObjects.iterator(); while (iterator.hasNext()) { Object object = iterator.next(); if (isConditionSatisfied) { iterator.remove(); } } Have a nice day.

HTML5 Web Storage

Here is a simple demonstration of HTML5’s Web Storage. The code is quite straightforward. One thing to experiment is after entering any string and hitting save, try closing the browser entirely and opening it again visiting the same page to see if the data persisted. Click [here] for the demonstration.