NVidia Display Driver 296.10 as Hot as Never Before

 

This is a piece of information I really would like to share with everyone cause if I had known this before it would save me hours even days.

I usually like to use the most updated of everything as a software developer but I also know that sometimes the latest doesn’t mean the best. However when I’m releasing something for the end user, it’s tested several times by programmers, testers, automated routines and our support channels are wide open to ensure that everything is going well.

Anyway, let me tell you what happened to my vaio vpcf1 after installing this driver:

  1. Extreme heat and noise (my vaio is also known for being noisy and hot but this is something else)
  2. Display driver failure and recovery message by windows. Tdr is constantly trying to recover the crashed adapter.
  3. System deadlocks& crashes couple of times a day even under near idle loads. Apparently sometimes windows couldn’t recover the dead driver.
  4. Wireless and blue-tooth drives constantly crashed after video adapter driver crash.

 

I have tried everything but my focus was network, wireless and blue-tooth drivers. Nvidia never came to my mind first. Then after the TDR messages started to appear at a constant rate of 5 times an hour I have downgraded the driver and now everything works like a charm. What I have learned from this is : Update drivers from adapter manufacturers not chipset :)

cheers

Accelerometer & Animations

 

Even the usage of accelerometer on mobile ios devices seem tricky sometimes when using these values for animating objects accordingly, actually it is not as long as you can feel the difference between acceleration, velocity and displacement. Lately I’m quite interested in ISGL3D library so I’m going to share an example using the shared accelerometer instance of ISGL3D. The advantage of this library is that you don’t have to calibrate raw values read from the accelerometer.

float *acc = [[Isgl3dAccelerometer sharedInstance] acceleration];
float ax = acc[0];
float ay = acc[1];
float az = acc[2];
if([[Isgl3dAccelerometer sharedInstance] isCalibrating] || isnan(ax)){return;}
velx  += ax;
vely  += ay;
velz  += az;
velx =limit(velx, speedLimit);
vely =limit(vely, speedLimit);
velz =limit(velz, speedLimit);
_theObject.z +=velz;
_theObject.y+=vely;
_theObject.x+=velx;

 

Here the important thing is limit. In nature there’s a limit speed  you also need to limit the velocity to a point for smooth animations. Think of rain drops falling with non limited speed with the constant acceleration of the gravity for understanding the concept. Another function you may use is friction during velocity updates to achieve more realistic effects. And here’s a representation of acceleration axes to clarify the subject.

 

Iphone/Ipad device axes

 

And here’s a link to a great tutorial showing the usage of the accelerometer without ISGL3D.

10 Reasons for Java

Around my friends and colleagues they know that I’m a big fan of Java. While I was young, I really tried hard to defend my reasons against other programmers but as I got older I got tired and when some one ask “Why Java?” , I answered cause I love it. It was a lie of laziness. Developers using other programming languages knows that java programmers are hard to defeat when it comes to passion for their programming language. It’s a love of logic actually. Here are my reasons:

  1. It’s open source. Whenever you like, the hood is not locked.
  2. It runs every where. Not only on all versions of windows. I admit that some tweaks may be needed for each platform but we all know that code containing solid windows file name strings will not run anywhere but windows.
  3. There are lots of other Java developers, projects, sources, contributors.
  4. Anyone who knows how to drag and drop can not code in Java but its not designed to be hard. Learning is easy as long as you want to. This makes the developer a member of a community where individuals know what they’re doing.
  5. There are a huge number of open source projects which can guide you where to start your project. You need an enterprise soa application. You can find samples+lots of frameworks and a huge collection of tools and snippets more than you need. The same goes for programming a robot.
  6. New technology is implemented in Java on daily basis. It’s evolution never stops. It never gets old.
  7. If you like to keep your distance with the dark caves of the os and hardware sure you can. But what if you like to feel the warmth of your hardware. No one stops you.
  8. You can code everything with Java on a variety of topics and scale from an enterprise finance application to a pong game. Even an mmorpg if you’re that hardcore.
  9. At first I thought Oracle will just change the package names but now they seem like executing a good strategic plan.
  10. Backward compatibility. I can still double click and run my 7 year old school project on windows 7 unlike most other programs developed with Microsoft tools.

I still have tens of reasons in my mind and lots of stories how Java saved the day for me. It’s getting better day by day and I think I’m quite dangerously addicted to it. One day I’m sure that Java community will find a genuine way to monetize crappy apps on fancy devices. That will be its last step to world domination.

And here’s a couple of very explanatory clips that shows where java was, where it is and where it will be.

 

 

 

Digital Music / UHP

 

Ladies and gentleman!

Here is my first UHP(unfortunately and highly probable) the last digital album!

Lately I have discovered some of the digital music I have compiled mostly with magix and a small java util I have programmed.

Some rights reserved. The pieces are designed for being used as background music for interactive applications and you’re free to use them in your projects but don’t forget to support my productions if you’re commercially using these.

Enjoy

UHP

Mecha Forest

Am I free

Factory Pattern

LoopyGreen

 

Locate Subviews on UI Elements

int count = 0;
for(id button in [scrollView subViews]){
if([button isKindOfClass:[UIButton class]]){
count++;
}
}

Trim NSString

NSString *trimmedString =
[dirtyString stringByTrimmingCharactersInSet:
[NSCharacterSet whitespaceAndNewlineCharacterSet]]

Nostalgia 1

I have recently found a web page which is designed on a free web space hosting while googling my name. The site was made years ago while milky way was a vast nebula. We were in university then. And belongs to one of my dearest friends another great developer Orhan Kemal Elçi.

http://members.fortunecity.com/orhiskemis/index.htm

The text is in Turkish but a masterpiece and has great historical value for me. Pay attention on the part where he emphasized the dedication of myself about projects. :) tears…

Control if String is Numeric

 

Java

The elegant way

public static boolean isNumeric(String inputData) {
  return inputData.matches("[-+]?\\d+(\\.\\d+)?");
}

The robust way

public static boolean isNumeric(String inputData) {
  NumberFormat formatter = NumberFormat.getInstance();
  ParsePosition pos = new ParsePosition(0);
  formatter.parse(inputData, pos);
  return inputData.length() == pos.getIndex();
}

Objective C

BOOL isNumeric(NSString *s){
   NSScanner *sc = [NSScanner scannerWithString: s];
   if ( [sc scanFloat:NULL] ){
      return [sc isAtEnd];
   }
   return NO;
}

 

———————————————

source : http://rosettacode.org

Clone NSString

 

Most core foundation classes has similar methods as below.

NSString *copyStr = [NSString stringWithString:originalStr];

NSString char*

How can you create an NSString from a char pointer?

char *cString=”Hello world”;
NSString *nsString=[NSString stringWithUTF8String:cString];
Return top

Gorkem KINIK

computer engineer, software developer, cg developer, a dreamer, mad scientist wannabe, jack of all trades...