Thứ Năm, 16 tháng 9, 2010

UTF-8

#include
wchar_t *replcace(wchar_t str[]) {
wchar_t *p1 = str;
wchar_t *p2 = str;
p1 = str;
while (*p1 != 0) {
if (ispunct(*p1) || isspace(*p1)) {
++p1;
} else
*p2++ = *p1++;
}
*p2 = 0;
return str;
}

Thứ Tư, 15 tháng 9, 2010

Function remove space in C

char *replcace(char str[]) {
char *p1 = str;
char *p2 = str;
p1 = str;
while (*p1 != 0) {
if (ispunct(*p1) || isspace(*p1)) {
++p1;
} else
*p2++ = *p1++;
}
*p2 = 0;
return str;
}

Thứ Bảy, 10 tháng 7, 2010

Android Gains, Apple Wanes -- Oh Yes, Yet Again

Don't look now, Apple fanatics, but Android's just made another noteworthy leap in mobile market share.

Google's Android platform grew by 44 percent from February to May, according to a report released Thursday by ComScore. During the three-month period from December to February, Android commanded an average of 9 percent of the U.S. smartphone market. In the next three-month period, from March to May, it had shot up to an average of 13.

Now, it goes without saying that 13 percent is still a relatively small piece of the pie. But the overall trends are what we're watching here -- and, gauging by a wide range of data from numerous sources, Android is showing consistent growth at a pace its competitors can't match.
Android and the Smartphone Market

For anyone who keeps an eye on mobile market trends, the pattern is quickly becoming familiar: In most time periods, and by most measures, Android makes a healthy jump, RIM shows signs of slipping, Microsoft takes a hit, and Apple stays steady or experiences a modest drop.

Android Mobile Market Share

In the case of the latest data from ComScore, Apple lost about 4 percent of its U.S. market share, falling one point to 24.4 percent. Of course, these were the months leading up to the release of Apple's iPhone 4, so it's no big shock that sales were slow. Even following the launch of the iPhone 4, though, I'd be surprised if we saw any massive surge in Apple's relative share.

Here's the thing: Apple's iPhone is a single device, on a single carrier. Android, meanwhile, is an open platform with numerous devices on every carrier. (I know, I know -- the iPhone might be coming to Verizon. But we've heard that rumor confidently stated plenty of times before. At the present moment, it isn't a reality. Even if and when it becomes one, we're still talking about a single device on two carriers vs. dozens of devices on all carriers.)

Merits of one platform over another aside, the math tells you everything: No matter how magical and/or revolutionary Apple's products may be, we're looking at a game of numbers. That's why, when considering market share data last month, I declared that Apple had fallen and couldn't get up. By that, I'm not implying that Apple is doomed or even performing poorly; obviously, the company is doing quite well and showing no signs of struggle. What I'm saying is that when it comes to relative market share, the odds are simply stacked against it; the iPhone suddenly starting to grow at a faster rate than Android seems highly unlikely.

(For the purposes of this story, we won't even get into the Windows Mobile part of the equation. I'm personally still mourning the death of the Kin, anyway.)
Battling the Android Army

All right, so what about the iPhone 4? Will it suddenly shoot Android into oblivion and help Apple regain its position as the de facto standard? I wouldn't hold your breath.

Yes, Apple sold a lot of new iPhones in those first weeks. But it only makes sense that most of those early buyers were diehard iPhone fans who, by the very nature of their fandom, already owned iPhones. As I've pointed out previously, dropping one iPhone and picking up another has no impact on the overall market split.

The reality is that new high-profile Android handsets are hitting store shelves practically every month -- handsets like Motorola's Droid X and the multicarriered Samsung Galaxy S -- and those are attracting an awful lot of new customers. Last month, Google said it was activating 160,000 new Android devices every day, and that was before the Droid X had even been announced. Older Android handsets are slowly but surely starting to receive the Android 2.2 upgrade, giving them fresh life as well. In order to reverse the shifting market share trends, Apple's iPhone 4 would have to outpace the growth of that entire ever-expanding fleet of Android phones.

Even if the iPhone 4 didn't require a Jedi voodoo grip in order to work, that'd be one hell of a feat to achieve. Factor in those reception issues -- not to mention the iPhone 4's other reported problems -- and it'd take a full-blown miracle for Apple to fend off Android's gains.

I'm not sure any device is quite that magical.

JR Raphael is the author of the Android Power blog and the creator of the Steve Jobs E-Mail Generator.

Antivirus & Security

Cybercriminals are building country-specific botnets to target UK bank consumers with dedicated malware, security company Trusteer has reported.

The company identifies two pieces of malware -- the previously undetected Silon.var2 and the longer-established Agent.DBJP - as the two bank Trojans being distributed by Zeus-based botnets using UK-infected PCs.

Silon.var2 now affects 1 in every 500 UK-based PCs connected to the Trusteer Flashlight system, 40 times the detection level for the US, with Agent.DBJP affecting 1 in every 5,000 UK-based PCs, again far higher than for the US.

It's not clear whether these detection rates are partly a quirk of the Trusteer customer base, but it is clear that country-specific malware is now a defined strategy for the banking trojan botnets, with the UK high on the hit-list.

Although country-specific malware can apply to any country, the motivation for attacking banks and their customers in this way is to make detection harder. Global Trojan campaigns are simply easier to spot.

"Regional malware is not unique to the UK," said Trusteer CEO, Mickey Boodaei. "We've recently started analysing financial malware in South Africa and identified targeted regional attacks as well, which are rarely seen outside that region. Other regions such as Germany for example also suffer from regional malware. The infamous Yaludle malware has been highly focused on the German market," he said.

Trusteer's commercial motivation is to push its 'Rapport' browser plug-in to UK banks through which an encrypted link is set up between the banking sites and the customer. The technology is already being used in the UK by HSBC, and was itself recently and unsuccessfully targeted by malware writers trying to overcome its protection settings.

Bank Trojan writers have also launched attacks against the Firefox banking website user base, confounding the out-of-date belief that IE is the only targeted browser.

* See more like this:
http://www.pcworld.com/search.html?qt=trojan+horses

ebook Fedora



Fedora Unleashed, 2008 Edition (8th Edition) (Unleashed)
Download ebook:
Password if needed: giftfromfatherxmas
link: Download Fedora Unleashed
By Andrew Hudson, Paul hadasan
  • Publisher: Sams
  • Number Of Pages: 960
  • Publication Date: 2008-02-14
  • ISBN-10 / ASIN: 0672329778
  • ISBN-13 / EAN: 9780672329777
  • Binding: Paperback

Release Notes for Fedora 13

As always, Fedora continues to develop integrate the latest free and open source software . Hardware RequirementsProcessor and memory requirements for x86 Architecture

The following CPU specifications are stated in terms of Intel processors. Other processors, such as those from AMD, Cyrix, and VIA that are compatible with and equivalent to the following Intel processors, may also be used with Fedora. Fedora 13 requires an Intel Pentium Pro or better processor, and is optimized for i686 and later processors.
  • Recommended for text-mode: 200 MHz Pentium Pro or better
  • Recommended for graphical: 400 MHz Pentium Pro or better
  • Minimum RAM for text-mode: 256 MiB
  • Minimum RAM for graphical: 384 MiB
  • Recommended RAM for graphical: 512 MiB



source http://fedoraproject.org/
http://fedoraforum.org/

Thứ Sáu, 18 tháng 6, 2010

History

The word fedora comes from the title of an 1882 play by Victorien Sardou, Fédora, written for Sarah Bernhardt.[2] The play was first performed in the U.S. in 1889. Bernhardt played Princess Fédora, the heroine of the play, and she wore a hat similar to a fedora. The fedora became a female fashion which lasted into the early part of the twentieth century. When the fedora became a male fashion, it was popular in cities for its stylishness, ability to protect the wearer's head from the wind and weather, and the fact that it could be rolled up when not in use. Since the early part of the 20th century, many Haredi and other Orthodox Jews have worn black fedoras and continue to this day.[3] The hat is sometimes associated with Prohibition, Great Depression-era gangsters and the detectives who sought to bring them to justice. Popular stars in the 1950s such as Gene Kelly wore fedoras often in their movies, like Singin' in the Rain. In Hollywood movies of the 1940s, characters often wore a fedora, particularly when playing private detectives, gangsters, or other "tough guy" roles. A trench coat was frequently part of the costume, a notable example being Humphrey Bogart's character in Casablanca. The fedora is widely recognized with the characters of The Blues Brothers, The Spirit, Daisuke Jigen, Freddy Krueger, Dick Tracy, Rorschach and especially Indiana Jones. The fedora is also closely associated with film noir characters.

Computer rendered red fedora

Like the bowler hat, the fedora was popular from the early 1920s to the mid 1960s on the east coast. In the late 1950s the hat began to lose favor on the west coast of the United States, which is known for its more casual clothing. The late 1950s switch from large lapels and ties to thin ones resulted in shorter-brimmed hats, and this likely played a role in the fedora eventually being deemed a non-essential item. Also playing a part were the shrinking automobiles of the mid-1950s, which often made it difficult to wear a hat while driving. By the early 1970s, the fedora was seen as a dead fashion, typically only worn by older and/or more traditional men. However the fedora has seen a revival in recent fashion seasons. In the early 1980s, pop stars Daniel Newton and Michael Jackson began using black and white fedoras which became one of their trademarks. Famous Dallas Cowboys head coach, Tom Landry, was also known for wearing one, and the English novelist Terry Pratchett also wears one।

source http://en.wikipedia.org/wiki/phedoraa

Fedora is a Linux-based operating system that showcases the latest in free and open source software. Fedora is always free for anyone to use, modify, and distribute. It is built by people across the globe who work together as a community: the Fedora Project. The Fedora Project is open and anyone is welcome to join. The Fedora Project is out front for you, leading the advancement of free, open software and content.