background preloader

The World's Most Flexible E-Commerce Platform

The World's Most Flexible E-Commerce Platform

Getting Things Done GTD with Personal Development and Motivation for Success - - DIGTD - Making You More Productive Understanding Ruby and Rails: Lazy load hooks – Simone Carletti's Blog This article targets Rails 3 The article was written as of Rails 3.2. The information contained in this page might not apply to different versions. This is article is part of my series Understanding Ruby and Rails. A small-but-interesting feature introduced in Rails 3 is the built-in support for lazy loading. Lazy loading is a very common design pattern. With Rails 3 you can now register specific hooks to be lazy-executed when the corresponding library is loaded. class ApplicationController < ActionController::Base initializer "active_record.include_plugins" do ActiveSupport.on_load(:active_record) do include MyApp::ActivePlugins end end end In this case we register the block to be executed when the ActiveRecord library is loaded. ActiveSupport.run_load_hooks(:active_record, ActiveRecord::Base) This line of code executes all the hooks previously registered for ActiveRecord. lazy-load hooks in the wild Perhaps one of the most frequent usage of the lazy-load hooks is in Rails plugins.

Lots of Buttons - Welcome Spree Commerce | Open Source Code to Create Any Storefront | Spree Commerce Fully Featured and Modular The Spree storefront offers a full feature set and is built on common standards, so you don't have to compromise speed to market, efficiency or innovation. The modular platform allows you to easily configure, supplement or replace any functionality you need, so that you can build the exact storefront that you want. Because of the modular architecture you can use features that come pre-integrated with the core, as well as best-in-class technologies for the optimal delivery of your business objectives. Powerful Customization Design Experience Products Subscriptions Flexible and Responsive Site DesignSpree offers a responsive design out of the box for an optimal user experience across all devices. With the Spree Commerce storefront you have complete flexibility to create a unique and creative storefront that allows the user to interact with your products, not just view them. Why not turn a one time purchase into an ongoing experience? Comprehensive API Own the Solution

Hyper-V Remote Management: Workgroup Vista Client to Domain-Bound Server » Danny Thorpe So here I am configuring my dev machine in Redmond from my laptop in my home office in Santa Cruz. I’m all VPN’d and security card authenticated up the wazoo, installing this and configuring that on the dev machine via Remote Desktop. (Praise be to RD!) I get Hyper-V set up on the dev machine so I can create and destroy virtual machine configurations with impunity while developing and testing on beta stuff. I need to open that VM in a console so I can drive it. Hmm. How to work around this? Bzzt! Uh-oh. A quick web search later, I discover with delight that John Howard has already covered this remote management of Hyper-V in exquisite detail, for several different machine and network configurations: client and server in a workgroup network, client and core server, client and server in a domain network, and a domain client connecting to a workgroup server. Naturally, none of those scenarios match my situation. I know exactly what the problem is. Or will it? Tada!

sandrods's odf-report at master - GitHub Industry Strategies for Online Merchants Spree Commerce Review 2013 | Reviews, Ratings, Complaints, Comparisons Overview: Spree Commerce is a Bethesda, Maryland-based open source shopping cart that enables you to build and maintain an online shop. If you’re looking into adding eCommerce to your retail repertoire, you might have already checked out web-hosted options like Shopify or BigCommerce. But Spree Commerce is a lot different than competing shopping carts which include all-in-one hosting, security, templates, and support. That’s because Spree Commerce is a self-hosted cart built using Ruby on Rails, an open-source (read as: free!) Back when Shopify was just getting started, developer Sean Schofield had the idea to start an open source shopping cart alternative that was designed to be deeply customizable. Whether or not it makes sense for you to bring on talent to roll out your store using Spree depends on the scope of your business and your budget. After hours of research, the following review is an overview of Spree features, ease of use, customer service, and more. Pricing: Demo: None!

Hey, Scripting Guy! How Long Has My Server Been Up? - Hey, Scripting Guy! Blog Hey, Scripting Guy! Everyone at work has the idea that our network is unreliable. However, I know that our servers are seldom down. Hi HB, You are really asking two questions. To approach your problem, HB, we can use the WMI class Win32_OperatingSystem which has thelastBootupTime property. $aryComputer = Get-Content c:\fso\servers.txt $now = get-date $filePath = "C:\fso\uptime.txt" foreach ($computer in $aryComputer) { $wmi = Get-WmiObject -class win32_operatingsystem -namespace root\cimv2 ` -computername $computer $lastBootTime = $wmi.ConvertToDateTime($wmi.LastBootUpTime) "$computer has been up for $($now - $lastBootTime)" | Tee-Object -variable uptime out-file -filepath $filepath -inputObject $uptime -append } #end foreach To begin with, HB, we use Windows PowerShell to see if we can connect on our local computer and pick out the lastBootupTime. (Get-WmiObject -Class Win32_OperatingSystem -Namespace root\cimv2 ` -computername localhost).lastbootuptime $now = get-date

Hey, Don’t Dump. Debug! Are the "Two Ps" (print statements and prayer) all that comprise your debugging strategy? It's time you were introduced to the Interactive Ruby Debugger. I often ask other developers for advice. Out of curiosity, I also ask other coders about debugging techniques, and more often than not, I am surprised by the answer. In my Rails work, I use the debugger extensively. Installing the Debugger The debugger, ruby-debug , is provided as a Ruby gem and installs just as easily as any other extension. $ sudo gem install ruby-debug Once installed, you can invoke the debugger anywhere in your code with a call to debugger . class ExampleController < ApplicationController def index # ... debugger # ... end end By default, Rails's script/server ignores calls to the debugger (and instead emits a message such as Debugger requested, but was not available ). $ ruby . Once the debugger is enabled, each call to debugger generates a command prompt. Commands to Query State ... The next command is print or p .

Women’s Web Clout Gives Companies Targeting Them Faster Growth Women, who spend more time online than men, are such powerful drivers of Internet shopping and other commerce on the Web that their loyalty is crucial to consumer company profits, according to a new report. While they make up 51 percent of the population in the U.S., women control or influence 85 percent of all buying decisions, giving them clout as business moves increasingly into the virtual world, analysts with New York-based Needham & Co. said in the report. They spend about 10 percent more time on the Web than men and make 58 percent of all online purchases, a number that is poised to grow. “Women are responsible for the primary trends on the Internet right now,” Laura Martin, managing director and senior analyst of the investment banking firm, said in a telephone interview from her office in Pasadena, California. The report cited Facebook Inc. ‘Beautiful Solution’ “The Internet has provided a beautiful solution to shopping,” Passi said. Migrating Overseas ‘Peak Spending Years’

Related: