-
How To Display Blog Statistics Like This Blog?
Date: 11/17/05
Keywords: php, web
This blog displays statistics on the right-sidebar (bottom) like - There are currently #### posts and #### comments in this weblog. The data is obviously dynamic.
Andre recently asked me how I do it. Here is a simple solution.
Embed the following code in your sidebar (or elsewhere) in location of your choice:
<?php
$numposts = $wpdb->get_var("SELECT COUNT(*) [...]
Source: http://blog.taragana.com/index.php/archive/how-to-display-blog-statistics-like-this-blog/
-
How To Find Your PHP.INI
Date: 11/17/05
Keywords: php, web, apache
I often come across this question: Where is my php.ini located? Here is a simple solution.
To find out which php.ini your apache server is using please follow the steps below:
1. Type in the following in a file named say test.php and save it in document root of your webserver, normally htdocs for apache:
<?php phpinfo(); ?>
2. [...]
Source: http://blog.taragana.com/index.php/archive/how-to-find-your-phpini/
-
SimpleXML and its Not So Simple To Use Object Model: Problem & Solution
Date: 11/17/05
Keywords: xml
SimpleXML is simple to use as its name suggests. However it is a pain when you need to check the value of an element which may or may not exist.
In short using it on XML schema with optional elements is a royal pain. As SimpleXML only creates objects for which data exists, you will [...]
Source: http://blog.taragana.com/index.php/archive/simplexml-and-its-not-so-simple-to-use-object-model-problem-solution/
-
SimpleXML doesn’t Work with PHP 5.x: Problem & Solution
Date: 11/17/05
Keywords: php, xml
SimpleXML is PHP 5.x way to handle XML. It is simpler than DOMXML (which incidentally is very poorly documented in manual or elsewhere) which is available on PHP 4.x and much simpler than SAX solutions. However it doesn't work with certain installations of PHP 5.x. Let's see how we can solve it.
Problem
I first [...]
Source: http://blog.taragana.com/index.php/archive/simplexml-doesnt-work-with-php-5x-problem-solution/
-
How To Search Non-Copy Protected Music CD’s Only Or Even Tabulate Copy Protected Ones
Date: 11/16/05
Keywords: technology, database, virus, web
Copy-Protection recently came to limelight as Sony used DRM technology to copy-protect its CD's which makes them vulnerable to viruses and malware.
This website allows you to search for music CD in Amazon database which do not have any kind of copy-protection enabled. This may come in handy if you want to verify if your [...]
Source: http://blog.taragana.com/index.php/archive/tool-to-search-for-non-copy-protected-music-cds-or-tabulate-copy-protected-ones/
-
Google Web Accelerator Back With Vengeance
Date: 11/14/05
Keywords: web, google
Google Web Accelerator is back with a vengeance.
If your web site bandwidth consumption has spiked in the last couple of days, look to blame it on Google Web Accelerator.
For the last 2-3 days my site was experiencing strange page impressions in large volume. On a hunch I checked Google Web Accelerator site. And it [...]
Source: http://blog.taragana.com/index.php/archive/google-web-accelerator-back-with-vengeance/
-
Blogging + Adsense Success Story (from $200 to $3000 per day) - Weblogs Inc. Profiled by Google
Date: 11/14/05
Keywords: web, google
Weblogs Inc. is now profiled by Google as one of AdSense success stories along with Camcorderinfo.com and Askthebuilder.com.
I guess PVRBlog.com, the first AdSense darling, is now old news and probably comes nowhere near the leaders mentioned above.
According to the profile Weblogs Inc. went from 200 USD per day to 3000 USD per day on AdSense [...]
Source: http://blog.taragana.com/index.php/archive/bloggingadsense-success-story-weblogs-inc-profiled-by-google/
-
Samsung & LG Join Indian Outsourcing Bandwagon
Date: 11/14/05
Keywords: software
Samsung Electronics and LG Electronics, Korea's two global electronics makers, have reduced their Indian workforce in India, opting instead to outsource its operations to India.
"We work project-by-project, so we move between India and South Korea. We don't stay here for a long time," said Joe Antony Lawrence, software engineer from Samsung's Indian branch.
Lawrence estimates that [...]
Source: http://blog.taragana.com/index.php/archive/samsung-lg-join-indian-outsourcing-bandwagon/
-
Macromedia Flash Player 7 Remote Code Execution Vulnerability
Date: 11/14/05
Keywords: no keywords
A vulnerability has been reported in Macromedia Flash Player 7, which can be exploited by malicious people to compromise a user's system.
The vulnerability is caused due to missing validation of the frame type identifier that is read from a SWF file. This value is used as an index in Flash.ocx to reference an array of [...]
Source: http://blog.taragana.com/index.php/archive/macromedia-flash-player-7-remote-code-execution-vulnerability/
-
Using Competitive Ad Filter in AdSense
Date: 11/14/05
Keywords: no keywords
Lets talk about when to use AdSense - Competitive Ad Filter. It is very rarely used to block competitors. However you can use it to provide a better viewing experience to your site's visitors.
I noticed that there are hordes of directory sites which bid for low paying keywords on a subject and direct people to [...]
Source: http://blog.taragana.com/index.php/archive/using-competitive-ad-filter-in-adsense/
-
Developing Clean AJAX / Javascript Driven Websites; Say No To Tag-Soup
Date: 11/14/05
Keywords: css, html, java
Behaviour promotes itself as "the missing link for your AJAX apps". It allows you to use CSS selectors (like id or class) to apply Javascript behaviors to your HTML elements.
No more embedding Javascript tags in your HTML. What Behaviour (note the British spelling) does is allow you to define rules where you associate javascript [...]
Source: http://blog.taragana.com/index.php/archive/developing-clean-ajax-javascript-driven-websites-say-no-to-tag-soup/
-
Writing Obfuscated Code Using Java Generics Part 1
Date: 11/13/05
Keywords: java
Let's begin with a simple example for this installment.
import java.util.Collection;
public class TestType {
public static <Collection> Collection myMethod(Collection a) {
return a;
}
public static void main(String ... args) {
System.out.println(myMethod("Hello World"));
}
}
Note:
1. The import statement is obviously not required. It has been added for [...]
Source: http://blog.taragana.com/index.php/archive/writing-obfuscated-code-using-java-generics-part-1/
-
Tips on Java Enhanced For Loop
Date: 11/13/05
Keywords: no keywords
After enhanced for loop was introduced with J2SE 1.5.x aka J5SE, I made it a delightful habit to use it. You know what I am talking about, right?
For example previously I used to write:
private gbWay() {
....
for (Iterator<Country> i = countries.iterator(); i.hasNext();) {
[...]
Source: http://blog.taragana.com/index.php/archive/tips-on-java-enhanced-for-loop/
-
Software Outsourcing in China Hindered by IT Talent Shortage
Date: 11/13/05
Keywords: no keywords
Talent shortage will impede the development of China's outsourcing industry, despite the optimistic prediction on China's IT outsourcing industry in the coming ten years predicted Qu Zhonghua, a senior program manager of IBM China's Shenzhen branch, at the 11th Joint International Computer Conference (JICC 2005) held in southwest China's Chongqing Municipality.
The rapid growth of the [...]
Source: http://blog.taragana.com/index.php/archive/software-outsourcing-in-china-hindered-by-it-talent-shortage/
-
Class Action Lawsuit Against Sony BMG For DRM RootKit; Pest Patrol Lists Sony’s RootKit as Spyware
Date: 11/11/05
Keywords: software, technology
A class action lawsuit against Sony BMG Music Entertainment has been filed in California, and more lawsuits are expected as lawyers enter the Sony Rootkit copy protection software fiasco.
Attorney Alan Himmelfarb filed a suit in Los Angeles County Court last week on behalf of Alexander Guevara. The lawsuit claims that Sony BMG's copy-protection technology, dubbed [...]
Source: http://blog.taragana.com/index.php/archive/class-action-lawsuit-against-sony-bmg-for-drm-rootkit-pest-patrol-lists-sonys-rootkit-as-spyware/
-
World’s First Completely Java Powered Cell Phone
Date: 11/09/05
Keywords: java
LG Electronics and SavaJe Technologies Inc. announced that LG Electronics completed development of a fully Java powered cell phone using SavaJe OS™, SavaJe Technologies' Java™ Platform, Micro Edition (Java ME) Connected Device Configuration (CDC) based open OS.
The handset features a slide design with 176×220 color TFT display, 1.3MPixel camera, Bluetooth, and an SD Card [...]
Source: http://blog.taragana.com/index.php/archive/worlds-first-completely-java-powered-cell-phone/
-
The Backend of Tribal Fusion
Date: 11/09/05
Keywords: php, apache
I was in Drudge report when I saw an advertisement spot occupied by advertisement giant TribalFusion filled with Apache error message instead. The error message was rather interesting.
The requested URL /f.ad was not found on this server.
Apache/2.0.53 (Win32) PHP/5.0.3RC2 Server at a.tribalfusion.com Port 80
It uses Apache 2.x and PHP 5.0.x, so far so good. But [...]
Source: http://blog.taragana.com/index.php/archive/the-backend-of-tribal-fusion/
-
10 Tips for Surviving Ebay - Online Auction
Date: 11/09/05
Keywords: spam, ebay
Don't exchange personal information.
Read all of the information about the seller.
Verify recommendations from other buyers.
Read all of the information about the listing.
Be patient. Allow sellers to respond to your question.
Let eBay know if you receive racist, obscene or harassing language.
Report invalid e-mail addresses.
Tell eBay if you start receiving spam after a transaction.
Tell eBay if someone [...]
Source: http://blog.taragana.com/index.php/archive/10-tips-for-surviving-ebay-online-auction/
-
Linux Worm Exploits PHP XMLRPC Vulnerability
Date: 11/09/05
Keywords: php, xml, web, linux
There are few reports of an attack by a new Linux worm called Lupper which exploits a well known PHP XMLRPC implementation vulnerability.
PHP XMLRPC implementation is used in a large number of popular web applications such as PostNuke, Drupal, b2evolution, Xoops, PHPGroupWare, TikiWiki etc.
Most of these packages have updated to provide a [...]
Source: http://blog.taragana.com/index.php/archive/linux-worm-exploits-php-xmlrpc-vulnerability/
-
Be Cheerful Or Be Home Mandates IT Firm
Date: 11/09/05
Keywords: no keywords
German IT firm Nutzwerk Ltd. has come up with a solution to whining in the workplace. It made cheerfulness a contractual obligation.
Ananova reports Thomas Kuwatsch, Manager at Nutzwerk, has declared that those who don't measure up to the prescribed level of jollity in the morning should stay at home until they cheer up.
The plan was [...]
Source: http://blog.taragana.com/index.php/archive/be-cheerful-or-be-home-mandates-it-firm/