Topics
Info Tidbits and Vocabulary that you should know, Facts, Trivia
I have started this post as a collection of vocabulary and facts that every person should know. It’s not in any order, though one day I may organize it. For right now, just wander through, and learn, and come back often. All of this information relates to the world around you, the people in it, [...]
Posted in: Information, Tips and Tricks, Topics, Writings | No Comments »
Spree Commerce, eBay Trading API, and the eBay Accelerator Toolkit from Intradesys EbatNs
In this bit, I talk about using the EbatNs SDK for the eBay Trading API, to list items from your Spree Commerce store, or really any rails application. Filled with production code examples from an honest to god real live and working spree site that interfaces with the eBay trading API to Add, Revise, and End items, on ebay when they sell in your store, or on your store when they sell on eBay.
Tags: eBay, HowTo, PHP, Programming
Posted in: eBay, PHP Tutorials, PHP/MySQL, Tips and Tricks, Web Design | No Comments »
SOAP APIs R Klunky or How to waste bandwidth for no good reason
The fact that SOAP is still around is, to be honest, absolutely beyond my comprehension. No serious effort seems to have been put into something like JSONRPC. Still, when it comes to some API calls, SOAP is pretty darn good, but this here is one example of it being used as just a waste. I [...]
Tags: eBay, Rant, RoR, Ruby on Rails, Spree Commerce
Posted in: PHP/MySQL, Ruby on Rails, Ruby on Rails, Tips and Tricks, Topics, Web Design | No Comments »
Rails Migrations, Primary key is not allowed in a has_and_belongs_to_many join table
I was working like a fiend on a project, and forgot to add :id => false to a join table migration. For completeness, here’s the migration as it is supposed to look: class CreateEmployeesRoles < ActiveRecord::Migration def self.up create_table :employees_roles, :id => false do |t| t.references :employee t.references :role end end def self.down drop_table :employees_roles [...]
Tags: RoR, Ruby, Ruby on Rails
Posted in: Ruby on Rails, Ruby on Rails, Ruby on Rails, Topics, Tutorials | No Comments »
Rails Application Config
I saw this railscast on application wide configs and I liked it alot, however, I am not big on typing APP_CONFIG[:value][:subvalue] so I have made a small tweak to that, and placed it as a model, which is where I like it to be, as it is a model of the applications configuration, where the [...]
Tags: RoR, Ruby, Ruby on Rails
Posted in: Ruby on Rails, Ruby on Rails, Topics, Web Design | 1 Comment »
OSX Server, appcelerator, and the iOS SDK
Well, I finally did it. I installed OSX on VirtualBox. Normally, I am pretty anti-apple, and I still maintain they are evil. But after using OSX for a bit, I can say that a lot of my opinions on it were informed more by Apple corporate policy than how it actually functions. It is, after [...]
Tags: Computer Science, iFaggotry, iOS, News
Posted in: Computer Science, Information News, Topics, Writings | No Comments »
HowTo set hostname/domainname on linux
If you’ve gotten this error: hostname: Name or service not known when typing hostname -f, then here is a solution. I got this error while trying to install Plesk. I couldn’t find a single clear response, most people spent their time showing how smart they are by explaining how host names work, and what it [...]
Tags: Command Line Commando, HowTo, Linux, Server
Posted in: Computer Science, Linux, Tips and Tricks, Topics | 1 Comment »
Qt C++ Screen Capture using BitBlt
So I got to thinking I wanted to be able to take abitrary screen captures based on some startx/starty -> endx/endy input. I found various sites showing how to do this, but most of them were pretty confusing. I thought I would post the final working code here. void RSystem::snap(int startx, int starty,int endx,int endy) [...]
Tags: C++, GUI, Programming, QT
Posted in: c/C++, C/C++ Programming, Tips and Tricks, Topics, Tutorials | No Comments »
HowTo JavaScript/jQuery place divs in a circle, calculate a cirlce etc.
So, I was working with my father, a physicist and mathematician, who wants to have a little math example done in javascript. We haven’t finished the meat and potatoes of the project, but one hurdle was the necessity to place 8 divs in a circle on the page. This is a variation on the Tirgrams [...]
Tags: Design, HowTo, Javascript, jQuery
Posted in: Javascript Tutorials, jQuery/JavaScript, Tips and Tricks, Topics | 2 Comments »
Tip: Flex/AS3 keyboardEvent listener
If you are writing a flex app, you might get this error TypeError: Error #1009: Cannot access a property or method of a null object reference. if you do, it simply means that you are trying to do something with an object that hasn’t yet been created. If that object is the stage, then you [...]
Posted in: ActionScript 3 Tutorials, Computer Science, Flex/AIR Tutorials, Tips and Tricks | No Comments »
