Skip to main content

Getting the phone number of your SIM card

If you need to know the phone number of a Sun Cellular SIM card, dial *99# from your phone and it will respond with the phone number. Thanks to suncelltweets for replying. The phone number can be stored in the SIM card and some phones are able to display that. For Globe on a Blackberry, it displayed Unknown number when you press the green phone key. I also tried this on Smart but it did not work. This seems like an operator specific feature and Sun has been able to provide that.

Comments

Popular posts from this blog

iReport Default Date Parameter

If you want to set a default date for a jasperreports parameter, you can enter the following in the default value expression of the parameter. new Date() However, if you wanted the default to be relative from today, for example, 3 days ago, you will need to do go outside of the standard java date libraries (Date, Calendar) because JR parameter does not allow you to have multiple statements. You can write your own utility package or you can use Joda , a replacement library for the JDK date and time library. To use Joda in iReports, you need to extract the jar file and add it to Options -> Classpath. You may also drop the jar file in iReports' lib directory. You will also need to add this library to your application or report server. For setting a default date 5 days prior from today, use this: new org.joda.time.DateTime().minusDays(5).toDate() or this if you want the time part set to the beginning of the day: new org.joda.time.LocalDate().toDateTimeAtStartOfDay().minusDays(5).to...

Migrating Moniwiki to MoinMoin

I had been using Moniwiki for our company for a while because the installation was quite easy as it was PHP based. However, I found out that document versioning didn't really work. It may have been a configuration issue but I took this opportunity to take a look at MoinMoin, as it was being used by Ubuntu and looked well supported. The server was running Debian stable and MoinMoin was in the repositories. Installing was simple using aptitude. Configuration was a bit more involved as it required copying and editing files. The new wiki site was pleasantly more responsive. The next task was to move the data in Moniwiki to MoinMoin. Upon inspecting the data repositories, I realized that Moniwiki stored the data in individual files with the WikiWord as the filename while MoinMoin organized that data with the WikiWord as a directory with the actual content under the revisions directory. I cooked up a quick script to migrate the data. I also ran the previous file through a 'tr' to...

Navigating the Future: 5 Supply Chain Trends to Watch in 2026

The world of supply chains is in a constant state of flux, but the next year is shaping up to be particularly transformative. As we head into 2026, the pressures of global uncertainty, new technologies, and increasing regulations are forcing companies to be more resilient, agile, and transparent than ever before. So, what are the key trends that will define the supply chain landscape in 2026? Let's take a look. 1. The AI Revolution Hits Full Swing Artificial intelligence is no longer a futuristic buzzword; it's becoming a core part of modern supply chains. In 2026, we're going to see AI move beyond pilot programs and into the mainstream, changing the way decisions are made. We're talking about AI-powered forecasting that analyzes historical data and market trends to predict demand with incredible accuracy. This means less downtime and more efficient use of resources. AI will also be used to optimize logistics, from finding the best delivery routes to monitoring disrup...