Code it
5.8K views | +0 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
August 29, 2012 2:22 AM
Scoop.it!

Sharing Git Configurations With Your Team

Sharing Git Configurations With Your Team | Code it | Scoop.it
When new developers join a team, or existing developers move quickly between projects, setting up a development environment can be a real headache. Most software teams will (hopefully) share a set of instructions on a wiki that include:

 

The tools that must be installed (and where to get them). In many projects this should also include the version of the tool that is to be used plus all the dependencies that are required


A set of SCM locations from which to fetch the source code (Git, CVS, SVN, etc…)


Common preferences such as Checkstyle rules, compiler settings, etc…


A set of repositories to fetch ‘target components’ or libraries that are used for development, testing and runtime

 

 

If the instructions are up-to-date, then setting up the development environment should go smoothly (assuming that plugins and components are still available, and the new developer is able to understand any acronyms or nuances in the instructions). If the instructions are hard to follow, a developer may spend a day or more just getting started.

No comment yet.
Scooped by nrip
August 17, 2012 11:59 AM
Scoop.it!

How To Run Ubuntu in Windows 7 with VMware Player

How To Run Ubuntu in Windows 7 with VMware Player | Code it | Scoop.it
Would you like to use Ubuntu Linux programs, but prefer the convenience of Windows 7? With VMware Player, you can install a full copy of Ubuntu and integrate it with your Windows 7 computer for free.

 

VMware Player makes it easy to install Ubuntu Linux as a virtual machine in only 5 clicks. It then offers easy access to Ubuntu programs straight from your desktop with Unity mode. Here’s how you can set this up on your computer.

No comment yet.
Scooped by nrip
August 17, 2012 10:25 AM
Scoop.it!

Survey Finds JQuery Library Running on Half of All Websites

Survey Finds JQuery Library Running on Half of All Websites | Code it | Scoop.it
Every web developer knows that JQuery is popular, but just how popular? According to web technology survey group W3Techs, the little JavaScript library that could … already has, turning up on half of all sites on the web.

 

Created to simplify the process of writing JavaScript and manipulating HTML, JQuery began life a mere seven years ago, which makes the 50 percent adoption rate very impressive indeed.

 

And the numbers look even more impressive if you limit the survey to the top 10,000 sites (in terms of traffic) where the number jumps to 58.8 percent (curiously, if you limit it further to the top 1,000 use falls to 46.2 percent).

 

JQuery greatly simplifies working with JavaScript, particularly for newcomers, and that has clearly made it a favorite with developers. But it’s worth noting that some of JQuery’s widespread use is no doubt related to the fact that it’s a default part of many popular publishing platforms, like WordPress. In other words, many people may be using JQuery without even realizing it.

No comment yet.
Scooped by nrip
August 17, 2012 6:18 AM
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.

No comment yet.
Scooped by nrip
August 17, 2012 4:40 AM
Scoop.it!

Cross Platform Mobile Applications

How to build Cross Platform Mobile Application?

 

No comment yet.
Scooped by nrip
June 29, 2012 5:13 PM
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.

No comment yet.
Scooped by nrip
June 13, 2012 7:31 PM
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!

No comment yet.
Scooped by nrip
June 13, 2012 5:51 AM
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.

No comment yet.
Scooped by nrip
April 7, 2012 6:07 AM
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.

No comment yet.
Scooped by nrip
April 6, 2012 3:29 PM
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:

No comment yet.
Scooped by nrip
April 6, 2012 3:24 PM
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?

No comment yet.
Scooped by nrip
March 29, 2012 8:00 AM
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.

No comment yet.
Scooped by nrip
March 22, 2012 8:51 PM
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…

No comment yet.
Scooped by nrip
August 19, 2012 6:00 AM
Scoop.it!

Deploying Websites With a Tiny Git Hook

Because git is “decentralized” we can push and pull to and from several different remote repositories. So why not simply add our web server as a remote repository and push to it when we want to update it? The trick is in using the post-receive hook.

 

Hooks?! Hooks are scripts that git will execute when awesome stuff happens, like after the repository receives a push. List the .git/hooks directory to see what’s available:

No comment yet.
Scooped by nrip
August 17, 2012 11:58 AM
Scoop.it!

Create a USB stick on Windows | Ubuntu

Create a USB stick on Windows | Ubuntu | Code it | Scoop.it

To run Ubuntu from a USB stick, the first thing you need to do is insert a USB stick with at least 2GB of free space into your PC.

 

The easiest way to put Ubuntu onto your stick is to use the USB installer provided at pendrivelinux.com.

 

You’ll need to download and install and follow the instructions.

No comment yet.
Scooped by nrip
August 17, 2012 10:24 AM
Scoop.it!

Smartphone Pentest Framework v0.1.1 Released

Smartphone Pentest Framework v0.1.1 Released | Code it | Scoop.it

The smartphone penetration testing framework, the result of a DARPA Cyber Fast Track project, aims to provide an open source toolkit that addresses the many facets of assessing the security posture of these devices.

 

 

No comment yet.
Scooped by nrip
August 17, 2012 4:42 AM
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.

No comment yet.
Scooped by nrip
June 29, 2012 5:18 PM
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:

No comment yet.
Scooped by nrip
June 29, 2012 5:00 PM
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.

No comment yet.
Scooped by nrip
June 13, 2012 5:51 AM
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.

No comment yet.
Scooped by nrip
April 17, 2012 6:36 PM
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.

No comment yet.
Scooped by nrip
April 7, 2012 6:06 AM
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.

No comment yet.
Scooped by nrip
April 6, 2012 3:26 PM
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.

No comment yet.
Scooped by nrip
April 5, 2012 8:06 AM
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.

No comment yet.
Scooped by nrip
March 29, 2012 7:59 AM
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.

No comment yet.