Code it
3.5K 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
Scoop.it!

finance | RubyGems.org | your community gem host

finance | RubyGems.org | your community gem host | Code it | Scoop.it

finance 1.1.0

 

The finance library provides a Ruby interface for working with interest rates, mortgage amortization, and cashflows (NPV, IRR, etc.).

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

Triton Ocean SDK 1.1 Released for Game, Simulation, and Training Developers

Seattle, WA (PRWEB) September 10, 2011 Sundog Software’s Triton ocean simulation technology for game, simulation, and training software developers has received a significant upgrade.
more...
No comment yet.
Scooped by nrip
Scoop.it!

20 git commit messages | Miskatonic University Press

20 git commit messages | Miskatonic University Press | Code it | Scoop.it

how I maintain my GTD lists with the version control system Git.

 

Here are my last twenty commit messages (in chronological order; the final one is from a half an hour ago) on my lists of next actions, waiting fors, projects, and so on:

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

Archiving old GIT projects on Beanstalk or Github - Red Glasses

Beanstalk and Github are excellent services.

 

Sadly, though, they are both surprisingly antiquated when it comes to “archival” – they ignore the way that real companies have been working for the past 10 years, and provide a very small number of repositories, with no option to “archive” any of them.

 

We use both of them – as paid services. Before signing up, I personally asked each of them how they coped with archiving; both companies responded with, essentially:

 

We don’t; why would anyone archive anything? If you really HAVE TO archive something, just copy/paste it into one repository

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

.NET to Ruby: Classes » RubySource

In this post we’ll look to compare a fundamental object oriented feature: Classes. Yup that’s it. This post started as classes, methods, and variables, but it grew too big – there’s a lot to cover when discussing classes! So let’s dive in.

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

C++ and Beyond 2011: Herb Sutter - Why C++? | Channel 9

C++ and Beyond 2011: Herb Sutter - Why C++? | Channel 9 | Code it | Scoop.it

Herb Sutter answers the question "Why C++?" in his usual thoughtful and well-articulated manner. He shares his perspectives on C++11 (yes, the name of the next version of C++ is officially official now!) and the C++ Renaissance as well as why C++ still matters and will continue to matter far into the future. This is a great introduction to the current state of the language, including a glimpse into the future of general purpose, performance-intensive, power-friendly, powerful native programming. As Herb says, C++ has legs and will continue to enable us to run fast into the future.

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

New Relic blog » Did someone say they wanted New Relic for Python? The public beta is here…

New Relic blog » Did someone say they wanted New Relic for Python? The public beta is here… | Code it | Scoop.it

We’ve been excited about releasing a Python agent for a long time. (Ever since Graham joined New Relic, in fact). Not only does this capability round out our offering, which also includes support for Ruby, PHP, Java, and .NET

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

Ruby: Links, News and Resources (1)

You know, I’m a programming language geek. These are the links I collected about Ruby (yes, there is an AjRuby out there ;-)

 

Ruby is a dynamic, reflective, general-purpose object-oriented programming language that combines syntax inspired by Perl with Smalltalk-like features. Ruby originated in Japan during the mid-1990s and was first developed and designed by Yukihiro "Matz" Matsumoto. It was influenced primarily by Perl, Smalltalk, Eiffel, and Lisp.

Ruby supports multiple programming paradigms, including functional, object oriented, imperative and reflective. It also has a dynamic type system and automatic memory management; it is therefore similar in varying respects to Smalltalk, Python, Perl, Lisp, Dylan, Pike, and CLU.

The standard 1.8.7 implementation is written in C, as a single-pass interpreted language. There is currently no specification of the Ruby language, so the original implementation is considered to be the de facto reference. As of 2010[update], there are a number of complete or upcoming alternative implementations of the Ruby language, including YARV, JRuby, Rubinius, IronRuby, MacRuby, and HotRuby. Each takes a different approach, with IronRuby, JRuby and MacRuby providing just-in-time compilation and MacRuby also providing ahead-of-time compilation. The official 1.9 branch uses YARV, as will 2.0 (development), and will eventually supersede the slower Ruby MRI.

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

Python 2 to 3 transition

You can hardly be an astronomer today without knowing how to write code. As with programmers in all disciplines, we are at the mercy of the language we code with.
more...
No comment yet.
Scooped by nrip
Scoop.it!

So I’ve Made the Switch from SVN to Git… | BarryODonovan.com

Now, there’s both a steep learning curve but also a complete change of mindset required from centralised source code management (SCM) with SVN to the distributed model of Git. In the end, most projects will decide on a canonical Git repository anyway which pushes you slightly back towards centralised but there’s still a world of a difference.

 

So, what’s so good about Git? Well, lots. But first and foremost is it’s exceptionally powerful yet simple branching and merging that just works. And works fast – remember, with Git everything is local.

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

Machine Awakening: In Defense of Java Over C++

Machine Awakening: In Defense of Java Over C++ | Code it | Scoop.it

A while ago Tim Robertson elaborated on his opinion that Java compares rather unfavorably to C++, to the point it's not worth learning. His arguments are well known to the seasoned Java professional: limited features, poorer performance, and a sense of missing out on new developments and becoming more of a legacy platform (the infamous "new COBOL" argument).

 

I beg to disagree. I have worked - and by "work" I mean professional, 8-to-5 programming work - on both C++ and Java projects for years now. They're both very good languages, and when used together can realize great things (hello Android). That said, I do find quite a few advantages to Java over C++:

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

Git Tip of the Day – recover lost commits

Today's tip will be a little different. I found an interesting information about recovering lost commits in the Pro Git book. And because this book is under CC BY-NC-SA licence, I'll copy the who...

 

At some point in your Git journey, you may accidentally lose a commit. Generally, this happens because you force-delete a branch that had work on it, and it turns out you wanted the branch after all; or you hard-reset a branch, thus abandoning commits that you wanted something from. Assuming this happens, how can you get your commits back?

 

Here’s an example that hard-resets the master branch in your test repository to an older commit and then recovers the lost commits. First, let’s review where your repository is at this point:

$ git log --pretty=oneline
ab1afef80fac8e34258ff41fc1b867c702daa24b modified repo a bit
484a59275031909e19aadb7c92262719cfcdf19a added repo.rb
1a410efbd13591db07496601ebc7a059dd55cfe9 third commit
cac0cab538b970a37ea1e769cbbde608743bc96d second commit
fdf4fc3344e67ab068f836878b6c4951e3b15f3d first commit

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

Robust wireless DSLR control over Bluetooth - Hack a Day

Robust wireless DSLR control over Bluetooth - Hack a Day | Code it | Scoop.it
[Manishi] wrote in to share his latest project, a Bluetooth DSLR controller that works with Android.

 

His “YaNis” control system was built using an Arduino Pro Mini, along with a USB host shield and a Bluetooth module he picked up from SparkFun. Obviously any other Arduino and SPP compatible Bluetooth board can be used, though component size is definitely a consideration for this project, and his selections are pretty well-suited to the job. The Arduino half of the software relies heavily on [Oleg Maruzov’s] PTP/USB libraries to get things done, but the free Android control app is all [Manishi’s] creation

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

Cleanweb Hackathon, San Francisco: Hacking Continues, Results Soon!

Cleanweb Hackathon, San Francisco: Hacking Continues, Results Soon! | Code it | Scoop.it
The first ever Cleanweb Hackathon opened in San Francisco with over 175 registrants for 100 seats. I call that resounding!!

 

Cleanweb is the idea that information technology can be the most leveraged way to address resource constraints of climate, energy, water, food, and land use.

 

We already see examples in companies like Airbnb, which substitutes people’s homes for hotels and Sungevity, which reduces solar electricity costs through smart application of information technology.
A Hackathon is a gathering of developers and others to develop functioning apps within a short time – in this case a little over 24 hours. This is the first ever hackathon to focus on cleanweb apps.

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

Tablets Marginalizing Intel's Notebook Processors, Hitting Prices - Forbes

Tablets Marginalizing Intel's Notebook Processors, Hitting Prices - Forbes | Code it | Scoop.it
The average price of Intel's notebook processor is seeing a decline led by the ongoing consumer shift to tablets, e-readers, and smartphones as well as more demand for PCs from emerging markets like India and China.
more...
No comment yet.
Scooped by nrip
Scoop.it!

The Web Application Hacker's Handbook: Discovering and Exploiting Security Flaws - CyberWar: Si Vis Pacem, Para Bellum | CyberWar

The Web Application Hacker's Handbook: Discovering and Exploiting Security Flaws - CyberWar: Si Vis Pacem, Para Bellum | CyberWar | Code it | Scoop.it
This book is a practical guide to discovering and exploiting security flaws in web applications. The authors explain each category of vulnerability using real-world examples, screen shots and code extracts. The book is extremely practical in focus, and describes in detail the steps involved in detecting and exploiting each kind of security weakness found within a variety of applications such as online banking, e-commerce and other web applications.

 

The topics covered include bypassing login mechanisms, injecting code, exploiting logic flaws and compromising other users. Because every web application is different, attacking them entails bringing to bear various general principles, techniques and experience in an imaginative way. The most successful hackers go beyond this, and find ways to automate their bespoke attacks. This handbook describes a proven methodology that combines the virtues of human intelligence and computerized brute force, often with devastating results.

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

TechLIberty: Stashing Local Changes to a Git Repository When Pulling from Remote Repo

You can update your local repository with the remote by using the command:

$ git pull origin "remote_name"

If you receive an error like this:

error: Your local changes to 'projectFolder/fileName' would be overwritten by merge. Aborting. Please, commit your changes or stash them before you can merge.

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

Create a "config" file containing variables and integer values?

I was looking for an easy way to define variables for random monster encounters in my game. I'm not sure how to define some without typing out 1000+ lines of code for like 25 monsters.
more...
No comment yet.
Scooped by nrip
Scoop.it!

How to use C++ push_front with classes?

Issue with how to properly use push_front and pop_front.

I have a class named
Account

I am suppose to be able to be able to add new accounts and new balances but I can't find the proper documentation on how to do this.
more...
No comment yet.
Scooped by nrip
Scoop.it!

Windows Azure SDK for PHP - MVP Factor - Site Home - MSDN Blogs

Windows Azure SDK for PHP - MVP Factor - Site Home - MSDN Blogs | Code it | Scoop.it

As part of Microsoft’s commitment to Interoperability, this open source project is an effort bridge PHP developers to Windows Azure. PHPAzure is an open source project to provide software development kit for Windows Azure and Windows Azure Storage – Blobs, Tables & Queues

 

Overview

 

Enables PHP developers to take advantage of the Microsoft Cloud Services Platform – Windows Azure.

Provides consistent programming model for Windows Azure Storage (Blobs, Tables & Queues)

 

Features

 

PHP classes for Windows Azure Blobs, Tables & Queues (for CRUD operations)
Helper Classes for HTTP transport, AuthN/AuthZ, REST & Error Management
Manageability, Instrumentation & Logging support
Support for storing PHP sessions in Azure Table Storage

 

 

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

Making a Bluetooth Headset into a Wireless Music Streaming Device - Hack a Day

Making a Bluetooth Headset into a Wireless Music Streaming Device - Hack a Day | Code it | Scoop.it
This bluetooth headset hack, although simple, may provide some hacking inspiration. Turning a Bluetooth headset into a wireless input for one's stereo is definitely something that makes one think "why didn't I think of that?
more...
No comment yet.
Scooped by nrip
Scoop.it!

A successful Git branching model » nvie.com

A successful Git branching model » nvie.com | Code it | Scoop.it

In this post I present the development model that I’ve introduced for all of my projects (both at work and private) about a year ago, and which has turned out to be very successful. I’ve been meaning to write about it for a while now, but I’ve never really found the time to do so thoroughly, until now. I won’t talk about any of the projects’ details, merely about the branching strategy and release management.

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

Virtual Machine for microcontrollers lets you run Python on AVR chips - Hack a Day

Virtual Machine for microcontrollers lets you run Python on AVR chips - Hack a Day | Code it | Scoop.it
[Clifford Wolf] wrote in to let us know about a project he recently completed called EmbedVM. It's a virtual machine for AVR microcontrollers. The package has a relatively small overhead, taking up about 3kB of program memory.
more...
No comment yet.
Scooped by nrip
Scoop.it!

The Art of Designing Embedded Systems, Second Edition Download eBook | Medarch.Net

The Art of Designing Embedded Systems, Second Edition...
more...
No comment yet.
Scooped by nrip
Scoop.it!

Windows Azure Remote Desktop Connectivity for PHP Applications - Windows Azure's Silver Lining - Site Home - MSDN Blogs

Windows Azure Remote Desktop Connectivity for PHP Applications - Windows Azure's Silver Lining - Site Home - MSDN Blogs | Code it | Scoop.it

If you are someone who is experimenting with PHP on Azure (or even if you have some experience in this area), it is often helpful to have remote access to your running deployments. Remotely accessing deployments can be helpful in debugging problems that might otherwise be very difficult to figure out. In this article, I’ll show you how to configure, deploy, and remotely access a PHP application in Windows Azure.

more...
No comment yet.