URL url = new URL("https://dev.psigate.com:7989/Messenger/XMLMessenger");
HttpURLConnection connection = (HttpURLConnection)url.openConnection();
connection.setDoInput(true);
...
Java PSiGate
var next = false;
for (var i = 0; i < el.options.length; i++) {
if (next) {
...
JavaScript Check next option in select...
by Dmitry Polushkin,
January 25, 2009 15:04,
5 refactorings, tagged with select, options, increment, next
Could be written in plain j...
params[:name][:primary] # etc ...
Ruby Recursive population of has...
by Tj Holowaychuk,
January 23, 2009 20:13,
11 refactorings
I do not even know where to...
require 'ostruct' require 'rubygems' require 'extlib/blank' ...
Ruby includes_all?
by Tj Holowaychuk,
January 05, 2009 21:14,
5 refactorings
Having brain cramps today, ...
def run_once &block path = File.expand_path caller.first unless ($__run_once ||= []).include? path ...
def test(a, b) capitalize_args puts a # => Hello ...
Ruby Bindings on caller
I dont really have a need f...
def monitor(uri)
Thread.new(uri) do |uri|
begin
...
Ruby Initial script execution ve...
by Tj Holowaychuk,
November 22, 2008 02:27,
1 refactoring
Below is a little snippit o...
public static class DirectoryInfoExtensions
{
public static void CopyTo(this String Source, String Destination, Boolean Overwrite)
...
C# DirectoryInfo.CopyTo
Because the .NET Framework ...
class Array
def new_inject(initial, &block)
self.each { |v| yield initial, v }
...
Ruby Yield by 'reference'
by Tj Holowaychuk,
October 23, 2008 22:25,
16 refactorings
This has been bugging me, i...
class Array
def to_h
hash = {}
...
Ruby Conversion from the 2d arra...
Conversion from the 2d arra...
WEEKDAYS = %w(mon tue wed thu fri sat sun) dates = [ ...
Ruby Open hours grouping
Actually I really don't kno...
#!/usr/bin/env ruby # == Synopsis ...
Ruby Source code analysis
by Tj Holowaychuk,
September 26, 2008 03:04,
3 refactorings
Small class to analyze scri...
<span class="bluelinks-allsmall"> <% if user.normal? %> ...
Ruby On Link to if else simple cond...
by Adam,
August 20, 2008 13:51
You should be using named r...

This seems particularly egr...