Skip to content

Instantly share code, notes, and snippets.

View timoteoponce's full-sized avatar

Timoteo Ponce timoteoponce

View GitHub Profile
@timoteoponce
timoteoponce / SocketTransmission.java
Created October 19, 2011 03:45
Transmision de archivos a traves de sockets en Java
/**
*
* @author Miguel Peinado
* @author Timoteo Ponce
*/
import java.net.*;
import java.io.*;
class Cliente{
public static void main (String[] args){
@timoteoponce
timoteoponce / oracle_h2_migrator.rb
Created September 28, 2011 20:35
Migrate Oracle backup script to H2(mode=ORACLE) script
def migrate_script ( input_file_name , output_file_name )
input_file = File.open( input_file_name , 'r')
loc = 0
File.open(output_file_name, 'w') do | output_file |
input_file.each do | line |
output_file.puts clean_line(line)
loc += 1
end
end
puts "#{input_file_name} -> #{output_file_name} : #{loc} lines migrated"
@timoteoponce
timoteoponce / CFP.md
Last active September 18, 2019 09:51
Call for presentations

Conferencias pre-grado

El objetivo de las conferencias pre-grado es brindar datos y consejos sobre el mundo de desarrollo de software local e internacional, con el objetivo de preparar a futuros profesionales para los diferentes requerimientos del ámbito laboral

Formato y fechas

Las presentaciones para esta conferencia se realizarán en base a los siguientes lineamientos:

@timoteoponce
timoteoponce / fossil-scm.sh
Created August 19, 2019 22:02
Fossil SCM service script for Linux
#!/bin/sh
WIKI_PATH=/opt/wiki
start() {
stop && cd $WIKI_PATH && /usr/bin/fossil serve --port 9090 --baseurl https://myhost.com/wiki;
}
stop() {
/usr/bin/killall fossil &> /dev/null || true ;
@timoteoponce
timoteoponce / integration_scenarios.md
Last active August 1, 2019 19:37
Integration scenarios

1 Video processor "The farmer"

"The farmer" is a video processing tool that has been leading the bussiness for decades, it has a great support for multiple environments and formats working on multiple platforms. Videos are gathered in reels and batches that are processed, improved and encoded into different formats by the tool. All processes are managed from the tool using a desktop environment in a high-performant machine, they don't provide a web application nor APIs for using video processing services.

All the customers are now asking to fetch data from "The farmer" to share it via web-pages or custom reports, but "The farmer" developers are limited by the technology for development and time constraints. What they do have is a replica database (MySQL) where they write all the videos metadata and related information, but such database is read-only and accessible from a single host.

What approach can "The farmer" company provide for their customers to enable data-sharing with the mentioned constraints?

@timoteoponce
timoteoponce / scrum_experiment.md
Created July 26, 2019 19:46
Scrum Experiment

Scrum Experiment – SOE

Context

Scrum is a framework that allows us to define a workflow for a different type of knowledge-acquiring projects, such a framework can be split into separated core-patterns that can be individually applied to a software development organization.

In order to understand the value of each pattern, we must experiment with them empirically and register the results in a normalized way. For this purpose, we have to introduce a new idea into a group, Linda Rising has provided a set of patterns to introduce new ideas depending on the context we are working on; we should use some of her patterns to try to introduce the scrum patterns into our organization.

Goal

Apply one of the Scrum patterns in our organizations, using one or many of the change patterns, reporting the results of our experiment in an article.

@timoteoponce
timoteoponce / generate_ppk.md
Created June 13, 2018 18:54
Generate PPK from SSH keys

On mac

$> brew install putty
$> puttygen <my_private_key> -o generated.ppk
@timoteoponce
timoteoponce / EXERCISE: Messaging service-multi.md
Last active May 4, 2018 16:19
EXERCISE: Messaging service-multi.md

Exercise: Messages list service

This exercise consists on creating a REST service that allows external applications to create and manage message lists, basically there are two contexts:

  • User management: Services that allow the register, update or removal of users
  • Messages management: Services that allow message exchange between registered users

So the service will allow users to be registered, send messages between them and retrieve all the messages directed to a specific user.

## Example

@timoteoponce
timoteoponce / EXERCISE: Messaging service-sinatra.md
Last active December 18, 2017 20:04
EXERCISE: Messaging service-sinatra.md

Exercise: Messages list service

This exercise consists on creating a REST service that allows external applications to create and manage message lists, basically there are two contexts:

  • User management: Services that allow the register, update or removal of users
  • Messages management: Services that allow message exchange between registered users

So the service will allow users to be registered, send messages between them and retrieve all the messages directed to a specific user.

Example

Interview Coding Problem

INSTRUCTIONS:

You should not take more than 2 days to solve this problem. This application will be run from the commandline with the input file getting passed in as a parameter. The goal of this exercise is to get an idea of your coding as well as your software design skills. Your code should be clear and easily readable.

SOLUTION EXPECTED: