Skip to main content

Posts

Showing posts with the label fast code

​THE INTERVIEWEE WHO HATED ME​

6 years ago a guy looked at me face to face, and boldly told me; "I don't like you!" I immediately fired a response, I asked him that day; "Thank you for the honest feedback, but those that you like, how has it made their life better? How does your liking people pay their bills or take a bank loan? My brother keep your like, I need God's like And that's what guarantees my future. Today I joined a CEO friend of mine in an interview Panel to recruit some new staff, it was a long session, as we returned from a coffee break to continue the hectic interview session, here was this same guy walked in with his grey jacket and CV coming for the interview. Our eyes kissed by fluke, we immediately recognised each other; "the world is indeed spherical", I soliloquized. He felt very uncomfortable through out the interview, one could clearly see the volcanic eruption ongoing in his whole nervous system, he even mistook his date of birth for his last date of empl...

Stacks' DDA

PHP meetup

We've an upcoming meetup (  http://meetup.com/phpkenya  )  RSVP... Join us on telegram (  https://telegram.me/phpkenya  ) Have a topic? Inbox.

Database design best practices

Use well defined and consistent names for tables and columns (e.g. School, StudentCourse, CourseID ...). Use singular for table names (i.e. use StudentCourse instead of StudentCourses). Table represents a collection of entities, there is no need for plural names. Don’t use spaces for table names. Otherwise you will have to use ‘{‘, ‘[‘, ‘“’ etc. characters to define tables (i.e. for accesing table Student Course you'll write “Student Course”. StudentCourse is much better). Don’t use unnecessary prefixes or suffixes for table names (i.e. use School instead of TblSchool, SchoolTable etc.). Keep passwords as encrypted for security. Decrypt them in application when required. Use integer id fields for all tables. If id is not required for the time being, it may be required in the future (for association tables, indexing ...). Choose columns with the integer data type (or its variants) for indexing. varchar column indexing will cause performance problems. ...

Ain't Workin' - Arrrgh

I find myself here a little more than several times ... When stuff just doesn't work. The saviour part is when all is working in the test environment. It all then fails when the client steps in and asks for the final packaged product...Whatever the hell happens during packaging in what has the potential to keep you awake through the night. May be the deployment environment has different settings, may be version issues, may be rights and /or permissions....just anything. May be you forgot to copy some files..anything here is of importance taking note of. I used to be a victim till I decided to be replicating close to if not what the client has. In development, I try as much as possible to use the technology supporting the final product. If its unix based, develop in unix based systems, if windows, same. Just be close to the final environment, if you can't be there.

Damn!! Goodbye Google Code!

If you read this back in March this year, it ain't news.  Oh, by the way, google code is more of a developers space, where you can write and store /host your project. Google code offers services similar to what Git-hub offers. Now get it? Hope so. Really. Apologies if I can't explain this better. All I mean is, It's simply a great service from google, later under Alphabet(read more) . From this blog , it started back in 2006. Now this good google service will be closed as from January 25th next year(2016) As we speak, new projects can not be created. From their blog, below is what's up : March 12, 2015   - New project creation disabled. August 24, 2015  - The site goes read-only. You can still checkout/view project source, issues, and wikis. January 25, 2016 - The project hosting service is closed. You will be able to download a tarball of project source, issues, and wikis. These tarballs will be available throughout the rest of 2016. If you have your projec...

Site Cache - Joomla

Ever had a site and you wanna tweak speeds?? Well, was going through some dev forums and came by this: Conservative caching is the standard type of caching. Here’s how it works: A visitor visits a page on your website. Joomla checks if there is a non-expired version of that page in its cache directory. If the cached page exists (and it’s not expired), then Joomla will serve it to the visitor – otherwise, a cached version of the page is created, and that cached version will be served to the visitor, and to every other consequent visitor, as long as it’s (by “it” we mean the page) not expired. The above scenario is typical and is how most developers implement caching. Progressive caching works the following way: A visitor visits a page on your website. Joomla checks if a cached version of that page exists for that visitor and it’s not yet expired. If that cached page exists, then it’ll be served to the visitor, otherwise, Joomla will create the cached page for that specific ...

Whatsapp Calling Feature

At first I thought this is a big lie. Guess what, the lastest version of whatsapp (4.0.0) has a free calling feature. And that's the good news. This relieves me from the fact that at facebook's f8 conference this month, it was clear that whatsapp will not be having an API, at-least not for now, so as to maintain the user experience. I was not so happy as a developer. Back to calling, the bad news is, you better do this early before you start paying for this feature. To activate this do this: 1. Get latest version of WhatsApp. If you already have WhatsApp installed, please upgrade it to the latest version. 2. Ask any of your friend who has this feature activated on his/her WhatsApp to call you. 3. Restart your phone and you must have WhatsApp calling feature activated as well. Call me.

Fast Code

There is an upcoming competition hosted by some guys celebrating several years of coding. The point is, the testing machine wil be a p3( Slow...right? )...! Yeah Nice. They are looking for the fastest executing code. I'm caught by surprise!! I don't know the language that writes fast codes. I need expert advice and then write a kick a** code!! I can write yeah...! But i don't know what language to write it in...I need you to tell me. I ask some guys in facebook ( https://www.facebook.com/groups/2204685680/10153166825645681/?ref=notif&notif_t=group_comment ) and they mentioned among them: Binary Java C And others too. I'm now perfectly stuck!! Binary...I totally don know it!! Need to learn it first. Now, Tell me. In  G+ : Writing a fast-executing Code.  Link to Question in fb: Fast code?