Thursday, 22 November 2012

Xcode Crash

HI friends,
 Here i am developing an iOS application, When i want to edit the some setting on the button.
like as plane to attribute After i want to Convert to Plane "It Will Creash the XCode (4.5)  and ask Reopen" Why it will Occure?
   Please Explain me...................

Sunday, 18 November 2012

How to make subString of a NSString bold in iOS

Hi all,

     How to make subString of a NSString bold,is it possible to change subString font?

     Example: "Hi i am working in Eminosoft"
         from above statement i want to make "Eminosoft" is bold
like   "Hi i am working in Eminosoft".

please suggest me...

-iOS Developer

Friday, 16 November 2012

How to overcome the header fixing error in phoneGap with jQuerymobile?



         At the development time of   Fashion Girl Problems App using phone-Gap I faced some problem while fixing the page header in iPhone App. Here in my app pages has large list with scrolling for the designing implementation I used jQuery mobile . 

General header fixing snippet in mobile jQuery


<div data-theme="a" data-role="header” data-position="fixed” style="background-color: #FF679A"> 

data-position="fixed” –> Sometimes this property won't work properly in iPhone means header will move along with scroll, this is one error .

How to overcome??

 Instead of using data-position="fixed” property you need to add some css snippet manually like

                         .header {
                                        position : fixed;
                                        z-index  : 10;
                                         top      : 0;
                                         width    : 100%
                                      }

Header fixing using user defined css snippet . . . !

<div data-theme="a" data-role="header" class="header" style="background-color: #FF679A">

Face Detection on Camera Functionality


HI Every Bady.............
i am developing application for iPhone, i want to add the face detection (for any number of faces).

if any one knows Suggest me. 

Sql server Issue in Dedicated Server


We have licensed version of Sqlserver software in Dedicated server.In that we are maintaining Database for my application
In Database  one table has 3,33,000 records ,when we are  retrieving at first time of execution it should fetch entire records at a time(3,33,000)
But it  fetches  1,80,000 records .For next text time execution it will show 1,90,000 ,and for next time execution it increases like this happens.
finally i will get the result  after many times of execution.

For this i have done surfing on google by implementing below options.
1.By increasing command time out in Sqlserver
References:
1)http://www.hosting.com/support/sql/configure-query-timeout-period-in-sql-management-studio
2)http://stackoverflow.com/questions/1137190/changing-the-commandtimeout-in-sql-management-studio

2.By increasing command time out in functionality wise.
set command timeout="50000" in web.config file

i have used above options,but not yet resolved .

Can you please give an idea to resolve this issue.

Wednesday, 7 November 2012

Error #2044: Unhandled NetStatusEvent



Recently we worked on the simple application using actionscript. While doing this application, we made one  common mistake.But this simple mistake makes real headache. We are sharing hear our mistake .

Scenario: When the application did not find any face in front of camera, it needs start playing some flv file. For this we created the flv player and added the flv file to the player. Below is the code for that.
?
nc=new NetConnection();
nc.connect(null);
ns = new NetStream(nc);
vid = new Video(320,240);
                        
addChild(vid);
client = new Object();
ns.client = client;
client.onMetaData = nsMetaDataCallback;
vid.attachNetStream( ns );                       
//This file we are going to play in the player
ns.play( "trailer.flv" );

When we try to compile the code, we got the below error.

Error #2044: Unhandled NetStatusEvent:. level=error, code=NetStream.Play.StreamNotFound

The reason for the above problem is, file path is not proper. Check for the file name or path for the given flv file. we have given tralier.flv instead oftrailer.flv

Possible error codes are :
  • NetStream.Buffer.Empty
  • NetStream.Buffer.Full
  • NetStream.Buffer.Flush
  • NetStream.Play.Start
  • NetStream.Play.Stop
  • NetStream.Seek.InvalidTime
  • NetStream.Seek.Notify      

Error code .1120: Access of undefined property NetStatusEvent. in Action Script


Error code .1120: Access of undefined property         NetStatusEvent.

when repeating the flv file in action script.


                               
Recently we  developed a project in action script .In that project we are playing the flv file by using  NetStream object in action script. Here we face problem as mentioned above. We want to repeat the file(video) when it is reaches the end . For that we add an event to the NetStream object.

Below the snippet of code
                      
                  ns.addEventListener (NetStatusEvent.NET_STATUS, onStatus1)

                              //   "ns" means netStream object


We write the code in onStaus1() function.
                             

                               public function onStatus1(item:Object):void
                                {                             
                                       if (item.info.code == "NetStream.Unpause.Notify")
                                                {
                                                if (Math.floor(ns.bufferLength)>=Math.floor(lastPosition))
                                                                {             
                                                                                ns.seek(0);
                                                                                ns.resume();     
                                                                }
                                                }
                              }

           After compiling this code we got error like  Error code .1120: Access of undefined property NetStatusEvent. We felt everything is good but it shows error. After some search we found the solution. We need to import package as mentioned below.

Import flash.events.NetStatusEvent;
             
                  After adding this package we got out put what we expected. Happy coding.