Load SVG images in iPhone / iPad using Objective C


You might have struggled a lot to load SVG (Scalable Vector Graphics)  image(s) in your iPhone or iPad application using Objective C XCode. Objective C with Cocoa helps us to load png, jpg, tiff and other image formats file using UIImage and UIImageView but UIImageView will not allow you to load SVG files. 

What are SVG images?

Scalable Vector Graphics (SVG) is a XML-based file format for two-dimensional vector graphics. SVG images and their behaviors are defined in XML text files. This means that they can be searched, indexed, scripted and, if required, compressed. As XML files, SVG images can be created and edited with any text editor, but it is often more convenient to create them with drawing programs such as Inkscape.

Now lets know how we can load SVG images in our iPhone or iPad application using Cocoa Objective-C.  UIWebView allows us to load SVG images directly to our app. The code to load SVG image is given below.
NSString *path = [[NSBundle mainBundle] pathForResource:@"image" ofType:@"svg"];
NSURL *fileURL = [[NSURL alloc] initFileURLWithPath:path];
NSURLRequest *req = [NSURLRequest requestWithURL:fileURL];
[webView setScalesPageToFit:YES];
[webView loadRequest:req];
Found interesting? Stay tuned at TechSpace for much more interesting solutions. Please leave a comment in comment  box if you have any queries.

Android 4.0 ICS to come for 16 HTC mobiles very soon




Android 4.0 named Ice Cream Sandwich(ICS) is the most awaited android update for which all the smart phone users are waiting for. Some of the mobile manufacturers have their mobiles in the market which is powered with ICS. 

HTC has announced that 16 of its smart-phones is going to get the much awaited Android Ice Cream Sandwich (Android 4.0) update in the coming month. HTC Sensation, HTC Sensation XE, HTC Sensation 4G and HTC Sensation XL mobiles are going to get update very soon. 

Below given HTC users will get notifications right when the update is available for their mobile. 

  1. HTC DROID Incredible 2 
  2. HTC Amaze 4G 
  3. HTC Desire S 
  4. HTC Desire HD 
  5. HTC EVO 3D 
  6. HTC EVO Design 4G 
  7. HTC Incredible S 
  8. HTC Sensation 
  9. HTC Sensation XL 
  10. HTC Sensation 4G 
  11. HTC Sensation XE 
  12. HTC Raider 
  13. HTC Rezound 
  14. HTC Rhyme 
  15. HTC Thunderbolt 
  16. HTC Vivid  

So HTC users, be prepared to update your mobile with the all new ICS very soon. Please post your comments and share this article.

(Solved) Integrate C++ code with Objective C in XCode

 

XCode is a IDE which works only on MAC systems. XCode provides support to program in Objective-C language, C, C++, OpenGL and etc.. Objective-C codes are saved in .m format, C files in .c and C++ files in .cpp format. But when you try to integrate C++ code with Objective-C code, then XCode shows an error. This is because Objective-C code performs late binding but C++ code performs Compile time binding. So there will be mismatch with the compiler. 

Techspace provides you a solution with which you will be able to integrate C++ files with Objective-C code. When you try to include "iostream" file in C++, XCode shows an error saying "iostream" file cannot be found. The solution for this is to save ".c" or ".cpp" file in ".mm"  format. 

".mm" specifies that instead of compiling with Objective-C compiler, compile the file with default c++ compiler. Now if you come across error saying any of the import or include files not found, then change the Objective-C file which is currently saved in ".m" format to ".mm". Now clean the project and re-build and run. This should work without any errors. 

Please post your comments below if you still get errors and find difficulty in finding solution for the problem. Stay tuned for lot many solutions.

Programming on the go for Android with Android IDE

Yes. You're hearing it right. You can now develop applications for Android from your very own Android phone.

Text Editor of AIDE
AIDE is a Java integrated development environment for developing Android applications directly from your android phone. Developers can now write, compile, build and run the code directly from their phones. AIDE comes with a rich and well thought interface and adds most of the developer tools that you would use if you were running it on eclipse. AIDE has made best use of limited screen real estate to make it easy for developers to work on. AIDE provides features like error correction as you type, quick fixes, suggestions, syntax highlighting, code refactoring, project file manager, integrated logcat viewer and much more. It just takes one single click to create a sample code and start working on it. AIDE also supports .classpath files created by your Eclipse project. In lame language, you can just move the whole eclipse project to your phone without any hassle.

Integrated Logcat in IDE
AIDE doesn't just do things, it does things right. Even though compilation is a resource intensive task, AIDE works seamlessly without any lag. The text editor brings awesomeness with pinch-to-zoom and infinite undo-redo things.Even though AIDE is mainly aimed at tablets, it works fine on a smartphone. AIDE shows that the new generation smartphones are more than just fancy bird games.

It may not make sense to develop apps from scratch on a smartphone, but its compatibility with the eclipse project files bring some hope.

You can get it here on Google Play.

First CDMA tablet hits market by Reliance


The first CDMA tablet hits market by well known mobile network provide Reliance. This tablet is powered with Reliance's CDMA network and it is pre-loaded with 15 popular applications like Facebook, Gmail, Talk, maps, browser and etc.. The specifications of this tabled is given below.


  1. 7-inch capacitive touch screen.
  2. Android 2.3 OS.
  3. Weight - 397grams.
  4. 2 MP rear camera and a front camera.
  5. 512 MB RAM.
  6. Micro SD card slot.(4GB provided with tab and up-gradable to 32GB).
  7. Mobile TV.
  8. Voice calling.
  9. GPS.
  10. Video recording.
Cost of this tabled is Rs. 12,999 /-

So anyone planning to buy this tablet? Please give your opinions about this tablet and give review about this tablet by commenting below. Stay tuned.

Move from Wordpress to Google Blogger including images

Google Blogger and Wordpress provides best way to host a blog or website of our own. There are lot of advantages and disadvantages in both but this article doesn't tell you anything about those. This article helps you to move your blog/website from Wordpress to Blogger. Without stretching this matter for a long and make you tiresome with unwanted things, will strike with the steps to move from Wordpress to Blogger.


  1. First login to your Wordpress dashboard.
  2. Go to Tools->Export->All->Download/Export.
  3. The file which you downloaded in step 2 will be in WXR file format. Blogger takes perfect XML file format. So we have to convert the WXR file to XML file. We have nice converter over net to help us with this task.
  4. Go to http://wordpress2blogger.appspot.com/ and input the downloaded WXR file as input. (Note, the WXR file should not exceed 1MB. If it exceeds, then export several WXR files by selecting the start date and end date before exporting.) Now press Convert button and wait for 10-30 seconds to process the input file and download the converted file.
  5. Now login to your blogger account and go to Settings->Other->Import Blog and provide the converted file as input.
That's it. You are done with moving your posts, comments, authors and time stamps from Wordpress to Blogger but the problem here is that the imported posts will contain the images/pictures URL of the old Wordpress. So we have to host all the images to different location and change the image source URL. Techspace provides you with a unique solution to import images to your posts and the steps go as given below.


  • Now login to Dropbox account and download the installation package and install in your system.
  • Now login to your Wordpress hosted site like GoDaddy, Hostgator, Dreamhost etc... and download the contents of wp-content/uploads.
  • Copy the contents of downloaded file to dropbox's Public folder and wait for the contents to sync to the dropbox account/cloud.
  • Now open dropbox account from web browser and open Public folder and click on any of the file and click on Copy Public Link and copy file URL which is something like this http://dl.dropbox.com/u/66540040/ (Copy only till /u/66540040 sort. Here 66540040 is your_account_number).
 
   
 



  • Now open the converted file from step 4 of first tutorial(above) using notepad or word-pad or any other file editing software and now Find and Replace http://www.your-blogname.com/wp-content/uploads/ with http://dl.dropbox.com/u/your_account_number/ and then upload the edited XML file to Blogger as input.
That's it. You have successfully moved your blog/site from Wordpress to Blogger including images. Please comment and share the article if you found this article useful. Thank you.

iPhone 5 to come with 4-inch screen


As the competitors in the world of mobile are increasing day by day, mobile manufactures are coming up with new designs and mobiles with much faster speed, new screen type, much higher screen resolution, sleek and etc... Apple, the leader in the world of mobile industry agreed to launch iPhone 5 in the previous year october month  but came out with iPhone 4S. The former CEO of Apple Steve Jobs passed away just before the release of iPhone 5 and thus Apple launched the mobile as iPhone 4S instead.


iPhone 4S is featured with 3.5 inches screen which might have made the iPhone users to feel uncomfortable in front of mobiles with much bigger screen. Thus Apple is coming up  with iPhone 5 which is featured with 4 inches display screen. There are lot of new features built in the iPhone which benefits iPhone users.


Features of iPhone 5: -




  1.  8 mm longer than iPhone 4S.

  2. 4 inches display screen.

  3. 10 megapixel camera.

  4. Faster processor when compared to iPhone 4S.

  5. Aluminum casing.

  6. Siri has been named as ‘Assistant’.


Apple is going to launch iPhone 5 in the summer.

Comment on this article if any of the feature which has not been provided above.

Samsung launches GALAXY tab 620

Samsung has added the GALAXY 620 to its line-up of tablets. The new member runs the Android 3.2 Honeycomb withTouchWiz UX customisation on top of it.

The tablet is powered by a 1.2 GHz dual-core CPU, with 1 GB of RAM. It features a 3 MP main camera capable of 720p video recording. Other bells and whistles include 16 GB of internal memory, microSD card slot, Wi-Fi, Bluetooth 3.0, and a 4000 mAh battery. The tablet is 0.4" (10 mm) thick, and weighs 345 grams.

The device has an IR remote function. According to Samsung, the tablet supports 1080p playback and DivX support out of the box. Since the device is DLNA-certified, you can mirror the screen on a compatible HDTV.

The GALAXY Tab 620 is priced at Rs. 30,250, but can be bought for Rs 26,000 via online stores.

 

ftalk for facebook

ftalk is the best and simplest facebook chat client for windows . If you were looking for a great and easy facebook chat client , ftalk might do the trick . when using the programme for the first time,users are asked to log in.There is no need of registration, simply use your Facebook id and accept the Facebook permissions request, which should only be displayed if you’ve never connected fTalk to your Facebook account before.


 fTalk will then automatically fetch your contacts list and work like a standard instant messaging client . Facebook friends will be sorted by whether they’re online or not. Getting in touch with a “friend” is as simple as double-clicking their name. A new chat window will pop up, allowing for text-only chats with some basic emoticons.





 To download ftalk click here....


hope you will like this app....stay tuned for more posts..:)

Sharing files between two ubuntu systems through local router

I have a old desktop running Lubuntu 11.04 and it is connected to internet through a wireless router. While I store lot of information on this computer, I also have a laptop running Ubuntu 11.04 that I most of the times work on and it is also connected to internet through the same router. Transferring files between these two machines is important to me. There are countless ways you could do it, but I preferred ssh to have a safe and reliable connection through the local router. If you are willing to do the same then here's how you do it.



Step 1: Install ssh on both the machines. Run this command in terminals of both the linux machines.


sudo apt-get install ssh

Step 2: Learn the IP address of your desktop. This can be done by right clicking the connection icon on the panel and then on "Connection Information".

Otherwise you can just run the following command and read for "inet addr:" field.


ifconfig

In my case, it is 192.168.1.3.



Step 3: Go to your laptop. Find "Connect to Server" option.

If you are using GNOME then you find this on "Places -> Connect to Server".

If you are using UNITY then you find this option by opening Nautilus. Go to File -> Connect to Server.

You get this window -




Step 4: Fill details into the fields and click Connect.



Service type must be selected to SSH.

Server field takes the address of the computer to which you want to connect to.

Port is 22, which is a TCP standard for SSH Connections.

Folder that you want to share.

Username to access the desktop.

You can add a bookmark and give it a name for you to access it next time.


Step 5: Once you are done, click on "Connect". It prompts for password. Enter it and you are done. You have successfully established file sharing from your desktop machine to your laptop machine. You can do the vice versa by following Step 3, 4 and 5 on your other machine.



PS: I have used terms 'laptop' and 'desktop' everywhere. But this need not be the case and procedure is same for any two machines connected through same router.