Blog

Feb
25

Because l still forget how to do copyright and trademark symbols in HTML

Posted by Michael Cindric in Tutorials, development, html, web standards | No Comments »

Not matter how many times l do it l still never remember how to to the Copyright and Trademark symbols in HTML code so here they are

© can be created with this:

©

® can be created with this:

®

™ can be created with this:

™
Feb
12

2x Rails Mid / Senior level Developer Sydney

Posted by Michael Cindric in jobs, sentia | No Comments »

hiring 2x Rails Mid / Senior level Developer Sydney

Sentia is looking for a 2 x Junior / Mid level Rails developer to join our team. Min 12month contract or perm available with good rates dependent on experience.

You will be working out of our office on George Street in the heart of the Sydney CBD. You will have access to the latest technology and resources not to mention our foos ball table.

You will be working on a long term project for the Music industry with some fantastic technology and people.

You will need to have the following skills and experience.

  • A passion for development
  • 12+ months experience in rails
  • TDD experience
  • Git
  • Good HTML/CSS skills
  • Javascript
  • Good communication skills
  • Keen to learn with a great attitude
  • iPhone development skills a plus

Experience with agile methodologies and design skills a bonus.

So if you think you have what it takes email us at jobs@sentia.com.au

No recruiters

Feb
12

The problems with classic styles of Project Management

Posted by Michael Cindric in Business, development | No Comments »

The constant battle l have faced in this game is dealing with old styles of project management still being used today. Some clients and businesses just don’t understand that its not in their best interest to work like this.

I came across a very smart story explaining why this is not the way to go and l think it explains it best.

ProjectManagementSummary The problems with classic styles of Project Management

Courtesy of http://www.ssw.com.au

Dec
17

Why Traditional “Fixed Bid” Software Projects Usually Fail

Posted by Michael Cindric in Business, client projects | No Comments »

Just found a great article on why fixed price projects fail. Paul Dittmann has writing a great article on it which you can find here

It’s a worth while read that is a must for all companies tendering for projects and all companies looking for developers

Oct
30

PayFlow recurring billing with ActiveMerchant

Today we are going to look at using ActiveMerchant to set up a recurring billing subscription with PayFlow .

PayFlow is Paypal’s payment gateway and you need to setup a PayFlow account.
IMPORTANT! This is separate from Paypal’s development sandbox. Follow these steps to setup a Payflow testing account

  1. Go to https://www.paypal.com/cgi-bin/webscr?cmd=_payflow-get-started-outside
    and fill in the details for an account.
  2. When you get to the page where you need to enter your payment information, hit Save and Exit. This will create a testing PayFlow account for you.
  3. You will be sent an email with your partner ID and your vendor login. Take note of your partner ID as this will be important later.
  4. You should now be able to login at https://manager.paypal.com/

Now that you have a PayFlow account, you can use ActiveMerchant to setup payments. For now we will muck around in irb to test that methods out.

So lets open up irb and start by including the active merchant gem and setting ActiveMerchant to test mode

kongy@Deadpool: $ irb
irb(main):001:0> require 'rubygems'
irb(main):002:0> require 'active_merchant'
irb(main):003:0> ActiveMerchant::Billing::Base.mode = :test

Now lets setup the gateway.

gateway = ActiveMerchant::Billing::PayflowGateway.new(:login => 'PAYFLOW_LOGIN', :password => 'PAYFLOW_PASSWORD', :partner => 'PARTNER_ID')

This creates the gateway that we will be using to request purchases. By default ActiveMerchant passes PAYPAL as the partner value if you leave it out. I believe that this is the default for US PayFlow account. For my Aussie one, I received a VSA partner_id. I would suggest putting it in there anyway.

PayFlow Testing only accepts testing credit cards numbers.  You can grab them from the PayFlow recurring billing documentation found here. Here is a quick list which I can’t guarantee will be up to date.

American Express 378282246310005
American Express 371449635398431
American Express Corporate 378734493671000
Diners Club 30569309025904
Diners Club 38520000023237
Discover 6011111111111117
Discover 6011000990139424
JCB 3530111333300000
JCB 3566002020360505
MasterCard 5555555555554444
MasterCard 5105105105105100
Visa 4111111111111111
Visa 4012888888881881
Visa 4222222222222

So lets create a Mastercard credit card.

irb(main):004:0> credit_card = ActiveMerchant::Billing::CreditCard.new( :number => '5105105105105100', :month => '9', :year => '2007', :first_name => 'Mal', :last_name => 'Reynolds', :verification_value => '123', :type => 'master' )

Now we are ready to start billing. If you want to setup a one time payment it is quite easy.

irb(main):007:0> response = gateway.purchase(1000, credit_card)
irb(main):008:0> response.success?
=> true

If you go into your Paypal Manager and search for transactions you should see it appear.

To setup a recurring billing we need to use the recurring method of the gateway. The recurring method accepts the amount in cents, the credit card object and the time intervals to charge the card, at a minimum. There are other options available which you can find here. Lets charge $10/month

irb(main):009:0> response = gateway.recurring(100, credit_card, :periodicity => :monthly)
irb(main):010:0> response.success?
=> true
irb(main):011:0> response.profile_id
=> "RT0000000002"

You can view the recurring billings in your Paypal Manager by clicking on Service Settings > Recurring Billings > Manage Profiles. You will probably want to store the profile_id in your database for when you need to edit details of the recurring billing. You can do it quite simply by calling the recurring method again. Let’s change the amount we want to bill to $20/week.

irb(main):0012:0> response = gateway.recurring(2000, nil, :profile_id => "RT0000000001",  :periodicity => :weekly)
irb(main):013:0> response.success?
=> true

You can see here that we no longer need to pass in the credit card since we have the profile_id. We update the amount, and change the periodicity of the billing.

And that’s it.

Oct
20

iPhone development tips

Posted by Michael Cindric in development, iPhone | No Comments »

Tip #1: Loading screen

To get your app looking cool and having a loading image come up as the application is loading simply add a file called “Default.png” size 320 × 480 to your xcode project and it will automatically show up as the application is loading.

Tip #2: Network Activity Icon

So your application connects to the internet and you want to add those little touches to let the user know its connecting. Well the simple option is to show the network activity indicator. To do that its as simple as setting a variable like so

   [UIApplication sharedApplication].networkActivityIndicatorVisible = YES;

Then to hide it its simply

   [UIApplication sharedApplication].networkActivityIndicatorVisible = NO;

Now you can wire it up to be a little more logical in that way it determines if its working or not but ill leave that to you. Keep an eye out as more tips are on the way

Tip #3: Detect if running in iPhone simulator

What to run different code depending if you running in the iPhone simulator or not. Just use the following if statement.

  #if TARGET_IPHONE_SIMULATOR
    // simulator code
  #else
    // production code
  #endif