Category Archives: PHP

Boyle Software is growing!

Our company is constantly growing. PHP logoJust recently a few developers joined our team in New York and Ukraine and we are looking for more!

If you are an experienced PHP developer,  a .NET engineer, or an iOS/Android apps specialist and looking for a job where you can utilize your knowledge and learn new technologies, please send us your resume: jobs@boylesoftware.com. Our latest coding needs are always posted on our site.

Continue reading

NPM and friends

npm logo[A couple of months ago, the open source community and npm were rocked by an author’s unpublishing of a module called “kik.” This unprecedented action, which brought down scores of projects that were dependent upon the kik module, was the result of a dispute over ownership of the name “kik” itself. Nestor Fedyk has some interesting things to say about this dispute. Read on… — The Editor]

This is a late response to this article about the deletion of the “kik” module from npm. Most people have sided with either Azer Koçulu or npm on in this dispute and it sort of became quite at “the moment .”

Continue reading

ANN in Python, JavaScript & PHP

Neural networks graphicNowadays you see artificial intelligence (AI) everywhere. It suggests search terms in search fields, recognizes faces on photos, targets ads, and even gives “personality” to your smartphone/tablet.

One of the most common types of AI is the artificial neural network (ANN). As long as full-fledged neural devices with computing parallelism are not yet commonly accessible, building one on conventional computer architectures is fairly easy. Due to the resource-heavy training algorithms required by the most ANN structures, including the popular Feed-Forward Back Propagation NN (FFBP), it is better to build core ANN functionalities in low-level languages. However, there are a few options for using scripting languages. This is a short survey for my favourite scripting languages: Python, JavaScript, and PHP.

Continue reading

OUT NOW: WordPress 4.4

WordPress logoWordPress 4.4 – dubbed “Clifford” after jazz trumpet great Clifford Brown – is out now with some significant improvements. Along with better responsive image handling, the RestAPI has been better integrated to give “developers an easy way to build and extend RESTful APIs on top of WordPress.” The clean “Twenty Sixteen” theme is also a new addition, promising even better responsive design across platforms. Check out the teaser video from the folks at WordPress:

Continue reading

Using WebSocket with Drupal

Drupal TipsDrupal is written with PHP – a language that has quite a few limitations: request-response logic, one thread per request, no shared-in-memory variables between requests, among other strictures. PHP is easy and fine when you only need to render HTML pages, but what if you want to add real-time applications like chat, streaming analytics, or document collaboration? For these, a better approach is to use the WebSocket protocol. Languages like Java or C++ support this protocol in their core, but not PHP. If we want to develop real-time applications, can a Drupal website avoid writing some part with Java or C++ or using third-party products like Google Cloud Messaging (GCM)? The answer is yes.

Continue reading

Keeping your blocks straight

Drupal TipsDrupal 7 projects utilizing Contexts for placing blocks tend to grow quickly and have many, many different contexts – it can get really confusing! Utilizing a smart naming convention (like Phase 2’s) is an absolute must. But if you’re on a project with several developers, even a coherently, clearly named context structure can still cause headaches; you might still have to search and open up contexts one-by-one in order to locate a specific block.

For those of you using the Devel module, here’s a great way to increase efficiency and speed things up! Just use the following code snippet:

You can place this snippet anywhere in your code or go to http://www.your-local-site.com/devel/php to run it from there. In fact, you can use this snippet to search for all sorts of reactions – just modify the filtering options!

Calling all WordPress Developers!

WorePress logoIf you’re skilled in front-end Web development – HTML5/CSS3, JavaScript – and have a couple of years experience working with WordPress under your belt, we need you now! We have immediate, full-time opportunities in New York City for smart developers to join an established team of passionate, open-source-centric engineers. If you’ve worked with Google Publisher Tags, and have a little PHP experience – so much the better!

To apply, please email your resumé to jobsny@boylesoftware.com today!

Click here to review all of our current job listings…

Storing sessions with Drupal

Drupal logoWhen developing a Web app with PHP, especially when using a framework or a CMS, most often you just don’t care about sessions. Less frequently, you store and access some information from a session, accessing it via language constructs (like “singleton” object (e.g. ZendSession  in Zend framework), some special wrapper functions or just $_SESSION  global). More often, though, you don’t bother monitoring how and where sessions are stored. But sometimes you should.

The basic purpose of this post is to talk about how, when developing a high-load website, to allow users to log on and access some personalized information. When you have hundreds of thousands hits per day, you should expect that tens of thousands users will log in to their respective accounts. That’s when you need to start caring about session storage. Continue reading