Archive for the ‘ Technology ’ Category

Multiple Domains with Single WordPress

This day i did a good work with wordpress multi domain with single wordpress site. I think most of the beginners developers and programmers dont know about  this. But now all guys will know how to do the multi site with single hosting( wordpress ). I would like to show you how to do that.

Ex. if you have two domains. You want to control the all contents with single  back-end for both sites, its possible with wordpress.

First install the wordpress in your primary domain hosting server.

Then Both sites nameserver should be point the primary domain server. Both sites must be point primary site folder(Already you installed wordpress in this location).

Now go to root of the site. Here you can see the wp-config.php. Open the file via ftp or file manager.

Open the file wp-config.php, add the following code :

$_asdfasdf_myurl = ‘http://’.$_SERVER['HTTP_HOST'];
define(‘WP_HOME’, $_asdfasdf_myurl);
define(‘WP_SITEURL’, $_asdfasdf_myurl);
unset($_asdfasdf_myurl);

We know,  PHP $ SERVER [ HTTP_HOST ]  for obtaining source domain. So,  according to WP_HOME and WP_SITEURL from variable assignment, realize Multiple Domains with Single WordPress.

In order to prevent the picture is not available  caused by the domain name change , you must set ” Options-media-Store uploads in this folder “  to “  wp-content / uploads”  ( as ” the default upload path” the same parameters ).

Now primary domain and secondary loads with single wordpress. You can do multiple domain like this way.

If you have any questions let me know. I can help you.

Moving WordPress To A New Domain

Every time I move a WordPress website to a new domain name or url (eg: moving it from a testing site to a live site) I can always count on one thing: my ability to forget the SQL statements to update the urls.

My problem isn’t so much forgetting that I have to do it, but actually forgetting the code itself. Even worse, I haven’t actually documented the code anywhere so I can’t just copy and paste it from somewhere else.

The 3 lines of code really aren’t much to remember, I mean, they are simple and very logical. It’s virtually a find and replace of the old urls to the new urls but for some reason everytime I need it my head just goes blank. Sure I could probably do a find and replace in the SQL dump of the database before the import, but in the past I have faced issues doing it this way for some reason.

For future reference, here is the code:

UPDATE wp_options SET option_value = replace(option_value, ‘THEOLDURL’, ‘THENEWURL’) WHERE option_name = ‘home’ OR option_name = ‘siteurl’; UPDATE wp_posts SET guid = replace(guid, ‘THEOLDURL’,'THENEWURL’); UPDATE wp_posts SET post_content = replace(post_content, ‘THEOLDURL’, ‘THENEWURL’);

It happened again the other day and I’m tired of it, so I decided to do something about it. No, I didn’t memorise the code because well, lets face it, I really should know it already but for some reason it won’t stick. Instead I created a little website which will do it for me. Besides, I figured I can’t be the only person who makes this mistake, so why not help other people out too?

Welcome, Here you simply enter your current WordPress site url (eg: http://localhost) followed by the destination url (eg: http://wjd.in) and click the generate button. It then spits out the SQL code you need to run. Easy as pie.

Also, I figured I might as well provide some general instructions on how to manually move, backup or restore a WordPress website, so I added that too. It is all text right now, but I’ll hopefully clean it up, throw in some images and just make it nicer to read overall.

So that’s it, the next time you are migrating a WordPress website, head on over to Moving WordPress and shave that whole 5-10 minutes off your workload. I know I’ll be using it.

iPad 3 battery pointing to thinner, lighter tablet?

The battery in the iPad 3 will reportedly be thinner and lighter than the one in the iPad 2, according to a report in Taiwan Economic News, suggesting that the new tablet may also see a thinner, lighter design or other improvements.

Citing “institutional investors” as its sources, the Taiwanese news site reported yesterday that the new battery will not only be thinner and lighter but offer a longer life than the iPad 2′s battery. The new battery will also need to meet higher standards for quality and reliability, which means that Apple’s cost for it could shoot up by 20 to 30 percent.

Suppliers Simplo Technology and Dynapack International Technology will start to deliver the new battery pack to Apple during the fourth quarter and ramp up into full production in the first quarter of 2012, the news site said.

How might the new battery affect the overall design of the iPad 3?

Boy Genius Report suggests that a thinner, lighter battery could mean Apple will make the iPad 3 even thinner than its predecessor, which has a depth of just .34 inches.

Or the new battery could give Apple the room it needs to add a Retina Display, BGR suggests further. Based on images found in the Software Development Kit for iOS 5 in June, some sources believe the next iPad will sport a 2,048×1,536 resolution Retina Display.

But analysts expecting a Retina Display on the next iPad say that Apple’s suppliers are having a tough time due to manufacturing challenges and supply constraints. IHS iSuppli analyst Rhoda Alexander told CNET last month that a 9.7-inch tablet with 2,048×1,536 resolution “has been under development for some time,” but that such a tablet is unlikely to debut before next year’s first quarter as a result of the issues faced by suppliers.

Can BitCoin, the First Open Source Currency, Threaten the Dollar?

It’s been called “the most dangerous technological project since the internet itself.”  Can the BitCoin give power back to the people?

In the book “Mythmakers & Lawbreakers” edited by Magpie Kiljoy, Alan Moore is interviewed and makes a very profound point.  The writer was paraphrasing a professor at the London School of Economics, and stated the following:

“[The lecturer] was saying that the only reason that governments are governments is that they control the currency; they don’t actually do anything for us that we don’t pay for, other than expose us to the threat of foreign wars by their reckless actions. They don’t actually really even govern us; all they do is control the currency and rake off the proceeds.”

Now, I’d certainly been aware of our government’s currency power creating problems for people in a system which they had never had a hand in creating or to which they had willingly agreed in the first place, quite contrary to Thomas Jefferson’s vision of a government that would dissolve and reconstitute every few decades.  But, it wasn’t until reading the Moore interview that a crystallization occurred, and I began to wonder if currency was perhaps the best way to neutralize a government’s power.

The initial thought had been that this solution could be arrived at by encouraging people to engage in black markets, which many billions do worldwide already.  Not effective enough.  Then it occurred to me that someone must create an alternate currency through which individuals can disengage from their country’s currency, thereby bypassing violent insurrection.

This is essentially what the creators of BitCoin have done with the introduction of their open source digital currency, controlled by each user, kept on one’s computer and impervious to hacks and manipulation, including the inflation that occurs when governments flood countries with newly-minted currency.

Not only does the BitCoin already have practical value—for users are already exchanging them via the internet—but it has struck a symbolic blow against states everywhere, even in its very early stages.

What are the defining characteristics of a BitCoin?  They cannot be tracked or frozen, for one thing.  They cannot be taxed, which would remove yet another source of power the state has over individuals.  The power of the state essentially lies in its taxation powers, which allows it to wage war and allow for modern empire, as well as dispense that taxpayer money to other countries.  BitCoin exchanges can be done anywhere in the world and fees are extremely minimal compared to similar exchanges within and across banks.

BitCoins have already been used to purchase books, video games and other items.  Of course, since the BitCoins can’t be tracked, it opens up a wealth of exploitable opportunity for black markets such as drug dealing and prostitution.  This alone will alarm politicians, who one can imagine are already considering making the new currency illegal.  The same thing could be said of CraigsList, however, and yet it is still legal.

How does one generate BitCoins?  This is where things get interesting and slightly confusing to the not-so-tech savvy.  Each computer can act as a BitCoin miner.  The computer “mines” BitCoins at a predictable rate, which requires time and energy (processing power, electricity and anywhere from 5 to 10 years), and then the fully mined BitCoins are stored locally on the computer.  The risk being that computer theft or computer crashes will erase BitCoin files, leaving users BitCoin-less.  It seems likely, however, that there will be ways of backing up BitCoin accounts.

One of the most fantastic aspects of BitCoin is that it is open source software, which means that one wouldn’t have to buy the software, but simply download it.  Open source has long been a dream of many hackers going back to the creation of home computers and the internet, and has taken on renewed vigor as corporations and governments have gradually consolidated power over computer software and the internet.

The catch with BitCoin is that there will be a limit to the number of BitCoins ultimately generated.  According to a Launch Conference article, only 21 million can be generated by 2140, “but at this point the electricity and time it would take to produce a BitCoin is larger than the actual value of a BitCoin (your laptop might take five years to make one batch of 50, and they currently trade at $6.70 per BitCoin).”

This built-in limitation would seem to restrict the BitCoin to the fringes, unless more and more people download the software, and the value of the BitCoin skyrockets.  And since it has limitations, it’s clear that not all human transactions could be done by way of the BitCoin, which would certainly limit its mission to put power back in the hands of people.  Question: would the tech savvy have an advantage in generating BitCoins?  This seems to be what BitCoin Tech Lead Gavin Andreson is intimating when he told Jason Calacanis on “This Week in Start-Ups” that generating BitCoins has become a specialized business.

In the interview, Calacanis gives BitCoin 24 months before it is dismantled by the US government.  And my good friend noted yesterday that it probably won’t take long before it’s somehow infiltrated and subverted by the US government.  Gavin Andresen, in fact, has already been asked to speak about the software to the CIA’s investment arm In-Q-Tel.  Also interesting is the possibility that open source currencies could revolutionize work: power relationships, work days, etc., freeing up humans to enjoy life instead of being tethered to jobs they hate.

Whatever happens, the invention of the BitCoin is a rather seismic event, and might point to the way of the future, in which the people might finally wrest the power that the state and corporations have held over individuals for far too long.

Is Bitcoin The Most Dangerous Technological Project Since The Web Itself?

Launch examines Bitcoin in an article that discusses the controversial P2P electronic currency, outlining what they’ve learned after researching it, and making some predictions for the future.

Bitcoins are a virtual peer-to-peer currency that can be sent and received directly from their site, or via and escrow service or currency exchange. The benefits are that your coins can’t be frozen, tracked or taxed, and transaction costs are very low.

From the article:

A month ago I heard folks talking online about a virtual currency called bitcoin that is untraceable and un-hackable. Folks were using it to buy and sell drugs online, support content they liked and worst of all — gasp! — play poker.

Bitcoin is a P2P currency that could topple governments, destabilize economies and create uncontrollable global bazaars for contraband.

…Bitcoins are created by a complex algorithm. Only 21M can be made by the year 2140. Your desktop bitcoin software can make bitcoins, but at this point the electricity and time it would take to produce a bitcoin is larger than the actual value of a bitcoin (your laptop might take five years to make one, and they currently trade at $6.70 per bitcoin [ see https://mtgox.com/trade/buy for the latest exchange rate ].

Bitcoin miners use super cheap GPUs (not CPUs) to create the coins, but as more people come online to make them, the algorithm adjusts so that one block can only be made every 10 minutes.

Here is what Launch stated after a month of research:

1. Bitcoin is a technologically sound project.
2. Bitcoin is unstoppable without end-user prosecution.
3. Bitcoin is the most dangerous open-source project ever created.
4. Bitcoin may be the most dangerous technological project since the internet itself.
5. Bitcoin is a political statement by technotarians (technological libertarians).
6. Bitcoins will change the world unless governments ban them with harsh penalties.

As a result, they add that they are “100% certain” that governments will start banning bitcoins in the next 12 to 18 months.

Apple release iOS 4.3 for iPhone and iPad

The latest software update for the iPhone and iPad  has been officially released by Apple as iDevice users can now download iOS 4.3 from their iTunes accounts.The updated mobile operating system, which went live yesterday evening, will begin shipping pre-installed on devices tomorrow as the Apple iPad 2 hits stores across the US ahead of a UK arrival in two weeks time on March 25th.

Downloadable via the latest version of iTunes, iOS users who sync their devices to their Mac or PCs will get a feast of new features that includes the ability to customise the side-lock come mute switch on the Apple tablet as well as adding support for the recently announced HDMI video adapter, unveiled alongside the second-generation iPad.

The biggest feature draw of the iOS 4.3 software update, however, is the ability to turn your iDevice into a personal Wi-Fi hotspot with up to five further devices able to access the internet via the single 3G to Wi-Fi conversion point. Other new additions to iOS 4.3 include increased AirPlay features that allow users to stream content direct from third party apps to the latest edition Apple TV box and compatible speakers.

What is your favourite aspect of iOS 4.3 and what are you still waiting for Apple to introduce to its mobile OS? Let us know via the T3 Twitter and Facebook feeds. If you haven’t already taken a peak, why not watch our hands-on video with the Apple iPad 2, the first device to come equipped with iOS 4.3.