Code it
3.5K views | +1 today
Code it
This is a curated resource for programmers and software architects. It is regularly updated with Articles, Hacks, How Tos, Examples and Code.
Curated by nrip
Your new post is loading...
Your new post is loading...
Scooped by nrip
Scoop.it!

Schemadoc

We need a way to add comments to the database schema, just as we would write comments in application code to document how programmers should use it. But comments are useful only if they're correct and current, and if they're easy to read and to update. Schemadoc is an experimental tool to help in these goals.

more...
No comment yet.
Scooped by nrip
Scoop.it!

How to Build PHP 5.4 Applications with Visual Studio

How to Build PHP 5.4 Applications with Visual Studio | Code it | Scoop.it
Developing web applications with PHP is cool, especially when you have the right development tools and even with more features added in PHP 5.4. But each time I left the comfort of Intellisense in Visual Studio to develop PHP applications using Zend or Netbeans for PHP, I was not always satisfied with those IDEs' code complete features. Thus, I decided to search for any available plugin that will provide this feature in Visual Studio.

 

The result of my search is the PHP IDE plugin for Visual Studio by Jcx.Software Corp. The plugin installer after installtation automatically adds php code completes feature into visual studio and some php project templates. The installer can be downloaded from http://www.jcxsoftware.com/ It comes with a paid license, but you can download the software and try it for 30 days.

 

After a successful installation, if you try to create a new project in Visual Studio, you will notice that PHP project templates have been added to visual studio project templates dialog.

more...
No comment yet.
Scooped by nrip
Scoop.it!

How I stopped writing awesome code

If writing awesome code is using all the best practices I can find, writing interfaces, unit tests and using top notch IoC containers to control my repositories and services all over my application's different layers - Then I'm not writing awesome code at all!

 

I've been that guy, the one writing the awesome code, but I stopped. I'm not awesome any more. Instead, I'm productive, I'm so damn productive!

more...
No comment yet.
Scooped by nrip
Scoop.it!

PyLint: Analyzing Python Code « The Mouse Vs. The Python

Python code analysis can be a heavy subject, but it can be very helpful in making your programs better. There are several Python code analyzers that you can use to check your code and see if they conform to standards. pylint is probably the most popular. It’s very configurable, customizable and pluggable too. It also checks your code to see if it conforms to PEP8, the official style guide of Python Core and it looks for programming errors too. We’re going to spend a few minutes looking at some of the things you can do with this handy tool.

more...
No comment yet.
Scooped by nrip
Scoop.it!

2 years of Vim and PHP distilled

2 years of Vim and PHP distilled | Code it | Scoop.it

So you want to run Vim instead of your heavy IDE that trashes the hard disk, takes minutes to open and gets in your way while versioning files and automate commands.

 

In the case of PHP development, you'll need to add some configuration and plugins to speed up your activities. Most of the responsibilities of an IDE - like testing and version control - are outsourced to the terminal while running Vim; however, there are some tweaks that make writing and editing code faster, along with aiding in discovery classes and methods in a PHP codebase.

more...
No comment yet.
Scooped by nrip
Scoop.it!

Converting a Git repository to Mercurial

Up until now, the Autoland project has been working out of a github repository, and was running out of a subdirectory of some general build tools and libraries. As we’re nearing a stable release and are setting up proper, puppetized production environments, we wanted to get the repository landed to the official build repositories. Of course, in order to do that, it was necessary to convert the Git repository to a Mercurial repository and moving our tool to the root of the repository.

 

Doing this, and marking a production branch, was surprisingly simple thanks to “hg convert”, and here is how:

more...
No comment yet.
Scooped by nrip
Scoop.it!

A Developer’s Guide to HTML5 Canvas | the HTML5 Center

A Developer’s Guide to HTML5 Canvas | the HTML5 Center | Code it | Scoop.it

Undoubtedly, the canvas element in HTML5 is the feature that most developers will want to use to develop truly rich web applications – without needing to install browser plug-ins like Adobe’s Flash player. Canvas was born at a time when client richness is at the forefront of developers’ minds. Modern browsers like Chrome, Firefox, and Internet Explorer 9 and 10 all support it. But what exactly is the canvas element in HTML5? How can you use it to create rich web applications?

more...
No comment yet.
Scooped by nrip
Scoop.it!

Infographic: Flash Still Bests HTML5 by Most Measures

Infographic: Flash Still Bests HTML5 by Most Measures | Code it | Scoop.it

It's Apple versus Adobe in a winner-take-all battle for multimedia supremacy on your smartphone, tablet, and personal computer. That's been the narrative since Steve Jobs famously dissed Adobe's Flash platform as "a closed system" back in 2010 and hitched Apple's star to the HTML5 multimedia standard for Web browsers.


Several years after that big break, who's winning? One More Level details the horse race through the prism of mobile and social gaming in the infographic below—and it turns out that Flash maintains a pretty big edge over HTML5 by most metrics, but that HTML5 momentum appears to be growing.


It's also worth noting that Adobe itself has hit the brakes on developing its Flash Player for mobile browsers to focus on HTML5-based development, so this trend is likely to accelerate. When Google released Chrome for Android beta this week, for example, Adobe noted that it would not support Flash.

more...
No comment yet.
Scooped by nrip
Scoop.it!

10 mistakes every programmer makes

10 mistakes every programmer makes | Code it | Scoop.it

When you start programming, you get disillusioned quickly. No longer is the computer the allinfallible perfect machine – "do as I mean, not as I say" becomes a frequent cry.

 

At night, when the blasted hobgoblins finally go to bed, you lie there and ruminate on the errors you made that day, and they're worse than any horror movie. So when the editor of PC Plus asked me to write this article, I reacted with both fear and knowing obedience.
 

I was confident that I could dash this off in a couple of hours and nip down to the pub without the usual resultant night terrors. The problem with such a request is, well, which language are we talking about?

 

I can't just trot out the top 10 mistakes you could make in C#, Delphi, JavaScript or whatever – somehow my top ten list has to encompass every language. Suddenly, the task seemed more difficult. The hobgoblins started cackling in my head. Nevertheless, here goes…

more...
No comment yet.
Scooped by nrip
Scoop.it!

Hack the Change: SMS-powered election monitoring app Monitor Squared wins international development hackathon

Hack the Change: SMS-powered election monitoring app Monitor Squared wins international development hackathon | Code it | Scoop.it

After a full weekend-long hackathon in which NGOs and engineers collaborated to design apps to address international development policy challenges, Monitor Squared, an SMS-powered election monitoring application emerged with the victory at Hack the Change.

more...
No comment yet.
Scooped by nrip
Scoop.it!

Git - Simple File Management

Git - Simple File Management | Code it | Scoop.it

Files can be added, committed and removed from git repositories using one or more of the following commands:

 

Adding a file named "testFile.xml" to the index.

 

git add testFile.xml

 

Testing to view differences between the index and HEAD

 

git diff --cached

 

produces something like the following:

lizard:l8mdv-si-samples mvickery$ git diff --cached
diff --git a/testFile.xml b/testFile.xml
new file mode 100644
index 0000000..e69de29

more...
No comment yet.
Scooped by nrip
Scoop.it!

Redirecting based on the URL string using PHP

In many cases, one ends up hosting multiple sites on a single server, shared or VPS.

 

Also in many other cases a company has multiple domains and multiple page addresses to service clients and prospects from different countries, demographics and walks of life.

 

And the need of the hour is that one wants to send a user to a different folder on your web site, based on what domain they use? Here we will explain a simple way to do this using PHP.

more...
No comment yet.
Scooped by nrip
Scoop.it!

Radical technology is all about radical change

Radical technology is all about radical change | Code it | Scoop.it

One of the more notable projects I have been on was a portal design project. The customer wanted to use SharePoint to drastically improve the productivity, effectiveness, and reach of everyone in their health system. Their goal was to deploy an intranet based on great technology to do this.


During one of the interviews, a request was made for a feature to allow the user to select whether they want to stay on the portal or simply sign on to the network and close the portal. I was puzzled by this. They were spending a substantial amount of dough to provide the infrastructure and plumbing to enable every employee to more readily find information, view scorecards showing their team’s performance, and collaborate in new and unique ways. This portal minimizes the dependency on email and served as the launch pad to higher productivity.

more...
No comment yet.
Scooped by nrip
Scoop.it!

Migrating SVN with Branches and Tags to Git

Following my love affair with Git, I’ve also started using a local install of Gitorious for private and commercial projects at Open Solutions. Before Gitorious, this meant setting up authentication and Apache aliases for each new Git repository which meant we were pretty disinclined to create repositories when we should have.

 

With Gitorious, it’s just a couple of clicks and we have internal public repositories, team repositories or individual developer private repositories. It’s grrrrrrreat!

 

Last night and this morning, I’ve stated a process of finding the many SVN repositories I / we have scattered around to import them into Git (with all branches and tags). Here’s the process:

more...
No comment yet.
Scooped by nrip
Scoop.it!

Python Data Analysis Library — pandas

Python Data Analysis Library — pandas | Code it | Scoop.it

pandas is an open source, BSD-licensed library providing high-performance, easy-to-use data structures and data analysis tools for the Python programming language.

 

pandas version 0.8.0 final has now been released. 

 

What problem does pandas solve?

 

Python has long been great for data munging and preparation, but less so for data analysis and modeling. pandas helps fill this gap, enabling you to carry out your entire data analysis workflow in Python without having to switch to a more domain specific language like R.

 

Combined with the excellent IPython toolkit and other libraries, the environment for doing data analysis in Python excels in performance, productivity, and the ability to collaborate.

pandas does not implement significant statistical modeling outside of linear and panel regression; for this, look to the statsmodels project. More work is still needed to make Python a first class statistical modeling environment, but we are well on our way toward that goal.

more...
No comment yet.
Scooped by nrip
Scoop.it!

Thread synchronization techniques for better multicore system power/performance tradeoffs

It’s a common refrain heard among embedded software design teams everywhere, when the team manager declares, “We need better system power management from both the hardware and software, but we also need to optimize the design for increased functionality and performance.”
So, how can a software designer hope to accomplish such a feat when in order to maximize one side of the equation the other side has to be minimized? You just can’t have the best of both worlds.

more...
No comment yet.
Scooped by nrip
Scoop.it!

Ra.2 is Blackbox DOM-based XSS Scanner tool

Ra.2 is a new Blackbox DOM-based XSS Scanner an approach towards finding a solution to the problem of detecting DOM-based Cross-Site Scripting vulnerabilities in Web-Application automatically, effectively and fast.


This vulnerability is like a hot cake we need to fix it before some one else finds any of those. Ra.2 help us in a great way to find these vulnerbilities and eleminate.

more...
No comment yet.
Scooped by nrip
Scoop.it!

Slashdot TV Launches Online, Including Many Open Source Videos

Slashdot TV Launches Online, Including Many Open Source Videos | Code it | Scoop.it

Slashdot, which started out as a technology-focused content aggregation online site many years ago, has seen its share of competition but remains a popular place to read up on what's billed as "news for nerds." Many open source community members are also familiar with the fact that Slashdot and SourceForge have the same corporate parent. Now, in a major move for both Slashdot and SourceForge, a blog post is announcing the launch of Slashdot TV, a video hub that will aggregate videos from SourceForge, ThinkGeek and elsewhere.

more...
No comment yet.
Scooped by nrip
Scoop.it!

How to Move a Subversion Repository

There are various reasons why you might need to move a Subversion repository: updates in the back-end database schema could have caused Subversion to become incompatible with previous versions of the repository, for example, or you could be moving your repository to a new server. Whatever the reason, the recommended cause of action is to collect all the data contained within the Subversion repository into a single, portable dump file, and then load the data from that dump file into the new repository.

more...
No comment yet.
Scooped by nrip
Scoop.it!

GIT vs SVN

Revision control, also known as version control, source control or software configuration management (SCM), is the management of changes to documents, programs, and other information stored as computer files.


Version control systems provide the ability to track (and potentially revert) incremental changes to files, reporting them to a mailing list as they are made, and can be used concurrently by many developers.
Distributed vs Centralized


To better understand the comparison of this two Version Control tools, first we must understand what is the difference between Centralized and Distributed (Decentralized) version control systems.

more...
No comment yet.
Scooped by nrip
Scoop.it!

WebSocket.org | The Benefits of WebSocket

WebSocket.org | The Benefits of WebSocket | Code it | Scoop.it

Lately there has been a lot of buzz around HTML5 Web Sockets, which defines a full-duplex communication channel that operates through a single socket over the Web. HTML5 Web Sockets is not just another incremental enhancement to conventional HTTP communications; it represents a colossal advance, especially for real-time, event-driven web applications.


HTML5 Web Sockets provides such a dramatic improvement from the old, convoluted "hacks" that are used to simulate a full-duplex connection in a browser that it prompted Google's Ian Hickson—the HTML5 specification lead—to say:


"Reducing kilobytes of data to 2 bytes…and reducing latency from 150ms to 50ms is far more than marginal. In fact, these two factors alone are enough to make Web Sockets seriously interesting to Google."


Let's take a look at how HTML5 Web Sockets can offer such an incredibly dramatic reduction of unnecessary network traffic and latency by comparing it to conventional solutions.

more...
No comment yet.
Scooped by nrip
Scoop.it!

Adobe cranks web developer arsenal with personalisation tools

Adobe cranks web developer arsenal with personalisation tools | Code it | Scoop.it

Aiming to extend its reputation amongst the web developer and designer communities, Adobe has updated its Web Experience Management (WEM) offering with a set of product augmentations designed to drive sites that engender "web engagement with optimised (and personalised) landing pages" plus social tools.

 

Crucial updates in the Adobe CQ 5.5 suite include the 'Client Context' and 'PhoneGap' options.

These tools have been engineered with the intention of giving web developers greater personalisation power to contextualise website information to an individual user based upon their profile, as long as the user is happy to 'login' and/or 'sign up' to the site's services for regular visits.

 

Client Context will extend to recognise not only a user's interests and browsing preferences, but also build in awareness of an individual's preferred devices and location should they wish to submit that information.

more...
No comment yet.
Scooped by nrip
Scoop.it!

OpenGeo – GeoServer Featured on the Sourceforge Anvil Podcast

OpenGeo – GeoServer Featured on the Sourceforge Anvil Podcast | Code it | Scoop.it
Our Justin DeOliveira recently graced the “airwaves” of the internet, speaking to Rich Bowen of the Sourceforge Anvil Podcast about the GeoServer project. GeoServer was one of SourceForge’s featured projects in February 2012.

Check out the podcast and the transcript below or download on our Media Page .

Thanks to the host Rich Bowen and the SourceForge blog!

more...
No comment yet.
Scooped by nrip
Scoop.it!

A Social Media Presence and Your Patient's Perception

A Social Media Presence and Your Patient's Perception | Code it | Scoop.it

Why see a doctor 200 miles away when you live 20 miles from one of the United States’ fifth most populated cities? One word: relationship. Thirteen years ago I was a young college kid with a simple meniscus tear and I went to a doctor based on who was covered in my insurance. When that experience led me to more knee problems rather than repairs, another physician suggested posting my case to this “internet” community of orthopedic surgeons. That’s how I met Dr. Howard Luks, an Orthopedic Surgeon in Westchester County , New York.

more...
No comment yet.