Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 

Search In

Reverse an array in Objective C

If you want to reverse an existing array in objc, you can do it this way. - (NSMutableArray*)reverseArray { if ([self.assetsArray count] == 0) return; NSUInteger i = 0; NSUInteger j = [self.assetsArray count] - 1; while

How to make security system in OpenERP/Odoo?

If you want to make security system in OpenERP(Odoo) follow the below mentioned code and paste it in your ir.model.access.csv file: "id","name","model_id:id","group_id:id","perm_read","perm_write","perm_create","perm_unlink" "access_idea_idea","id

Restore Directly from a Snapshot

As explained on post how to archive a snapshot, Now to restore a backup without writing to a compressed gz file from created archive, use the following sequence of commands: umount /dev/vg0/snap_db-01 lvcreate --size 1G --name mdb-new vg0 dd if=/dev

How to use Classical inheritance in openERP/Odoo ?

When using the _inherit and _name attributes together, Odoo creates a new model using the existing one as a base. The new model gets all the fields, methods and meta-information from its base. For example you can take idea from b

Change image color programatically

If you want to change the color of an image then you can use the following code : public Bitmap changeColor(Bitmap srcBitmap, int color) { Bitmap resBitmap = Bitmap.createBitmap(srcBitmap, 0, 0, srcBitmap.getWidth() - 1, srcBitmap.getHe

Wolfram Cloud programming

Hello can you please help me how to write correctly in Wolfram Cloud this system of equations(Wolfram just does not see it as a system of equations) {Limit[l[n][u[n]],u[n]->0]==0,Limit[p[n][h[n]],h[n]->0]==0,v[n]==v[n-1]+x[n-1],v[n]==u[n]*k,t[

BIT_LENGTH function mysql

BIT_LENGTH(str) BIT_LENGTH function returns the length of the string str in bits. for example, the bit length of text is 32 and hello is 40. mysql> SELECT BIT_LENGTH('text'); +--------------------+ | BIT_LENGTH('text') | +--------------------+

In (Q-Municate) Android Application callActivity is Not Opening?

I am modifying (Q-Municate) application powered by (QuickBlox) but I am facing one problem. When, I receive calling notification; I launch calling activity but it's not getting appear instead application get's open normally but calling activi

How to convert Unix timestamp to time using Javascript

Hello Reader! If you having the timestamp generated by Unix and you want it to be in format of time then you can use the example code below:- function MakeTime(TimeUnix) { var d = new Date(TimeUnix); var h = (d.getHours().toString().length

Handle NSLog in iPhone sdk

Through this code we can use NSLOG whenever required. Write this snippet in some common file(say utility) so that it would be easily handled throughout the project. Make sure class should import utility class to handle NSLog. All you need is to chang

1 455 481
Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: