Archives for category: Uncategorized

http://db.tt/YF17E0cx

Sugar on a hundered dollar bill.

Sent from my iPad

I am grateful to shopify for this. http://www.shopify.com/partners/apps. Do you realize how much thought and attention it takes to make something easy and usable? I appreciate it, Shopify. Ok. It seems like the first step is to create a partner account.

To sign up for the partner account, you sign up here. https://app.shopify.com/services/partners/signup
Worries: what if I don’t have a good website? Will they reject my artner application?
Nope! They just let you do it! I love a site that gets out of yiur way and lets you do things! How wonderful!

To get back to the shopify partners site, go to https://app.shopify.com/services/partners/auth/login

So here’s something mildly terrifying. Choice: do I do a test shop or a n affiliate shop? This is where too many choices come into play. I’m going to do a test shop. Why? Because i want to build a theme. I’m not going to care about money. Speaking of which, I found a spelling mistake. Where do I report that to shopify?

https://app.shopify.com/services/partners/api_clients/test_shops

On this page:
https://app.shopify.com/services/partners/api_clients/test_shops

The following blurb has 2 errors:

Test Shops Overview
Test shops are for development purposes only, such as designing a Shopify theme, or building a Shopify app. Test shops are different from affiliate shops, they cannot be upgraded to another Shopify plan to accept payment for orders. If are you opening a Shopify store for a client, you’ll want to create an instead.

Correction 1: Replace comma with period. ” … different from affiliate shops. They…”

Correction 2: Add missing affiliate shop. “You’ll want to create an affiliate shop instead.”

Yay! I hope I improved their website a little.

Anyway, I am creating a test site.

Cool, I am creating a test site.

Pain is inevitable. Suffering is optional. So. I am missing a lot of data. I love undertaking things in ignorance. Having no idea how hard something is makes you unafraid to try it.

Hmm. Here’s an idea. Use the shopify interface to document everything you can do with the shopify interface.

I created a new account. So many options. So little time. What am I grateful for this time? I made a test page. It has everything I need to get the ball rolling.

Ok shopify, I love the fact that you have a walkthrough. What do artists want? Artists want an easy way to sell their art and to track their purchases.

The duck song is awesome. http://www.nodwick.com/?p=1527
It s also a nefarious distraction. What shall I do next in my store?

Ok. I want a pinterest-style webstore.

A minimalist store: a store that sells one thing and one thing only. What would such a store need? It would not need a catalog.

So. My stores will specialize in selling one thing. We’ll call it the one-product template. A small bar across the top.

Charlie sheen little house on a prairie.

Ok. How do I build a Liquid template from scratch?

http://wiki.shopify.com/Theme_from_scratch#What_we_need_to_get_started

So the first question is how do I render a theme.liquid inside my test store?

Problem: it is difficult to edit shopify themes on my ipad.

Here is an obstical that I have no idea how big it is. Let’s shovel shit. How do I edit on an ipad?

First, shopify’s template editor does not

http://forums.shopify.com/categories/1/posts/56767
So. I need to be able to ssh into a remote machine.
How do I upload changed assets to shopify

So it seems that I am not able to edit shopify themes on ipad. How do I edit using the api?

Let’s see if I can develop a custom shopify app that lets me develop with the ipad.
Here’s how to make a shopify app:

That’s not useful. Let’s read about developing apps. http://wiki.shopify.com/Shopify_App_Development#Get_started_learning_how_to_build.2C_promote.2C_and_sell_Shopify_apps.

So, I made a private app to help me automate tasks. https://herman-group3475.myshopify.com/admin/api

An app is just a key. The store owner gives you the key to get into their shop. What you do with it is up to you. I am grateful to Shopify for making it possible to access my store in a ifferent way that the UI. All right, i have made a key.

Hmm. I am confused. When i try to access this url in safari, it accuses me of phishing.

http://wiki.shopify.com/Theme_%28API%29

Example URL

Cool. It works. I have made my very first API call. https://apicall@herman-group3475.myshopify.com/admin/themes.json

Ok. Now that I know how to make an api call,
http://wiki.shopify.com/Private_apps

Wht am I grateful for? The information is all here. I just don’t understand it. I don’t quite get what get does.

So i want to create a javascript page that gets info from my shopify account, lets me edit it, and lets me load it to my shopify account again.

http://www.w3schools.com/ajax/ajax_xmlhttprequest_create.asp
http://www.sitepoint.com/forums/showthread.php?454963-Getting-GET-or-POST-variables-using-JavaScript

The first part is javascript that lets me get stuff from my shopify account. http://www.w3schools.com/ajax/ajax_xmlhttprequest_create.asp

http://www.google.com/search?q=client-side+http+request&ie=UTF-8&oe=UTF-8&hl=en&client=safari#sclient=tablet-gws&hl=en&client=safari&tbo=d&q=javascript+apps+and+http+request&oq=javascript+apps+and+http+request&aq=f&aqi=&aql=&gs_nf=1&gs_l=tablet-gws.3…127450.145441.0.146098.32.30.0.1.1.1.1058.6789.18j6j4-1j0j4j1.30.0.D1KrKN-jZw0&pbx=1&bav=on.2,or.r_gc.r_pw.r_cp.,cf.osb&fp=c0f12e34f3084b19&biw=1024&bih=644

Can I pretty please have the file?
http://stackoverflow.com/questions/247483/http-get-request-in-javascript

Hmm. Ok. So it appears I can delete nearly everything in my shopify file.

I have one thing to do and one thing only: anonymed.

Build a theme that just shows one product.

What does simple look like?
What is the simplest thing I need?

So I made a shopify store. It is unsellable. Yay.

Cheers.

Sent from my iPad

Things I am grateful for:
Being dumb. I have absolutely no idea how this project is going to turn out. I have no idea what problems I will run into, if it gets done, or any of that. Being among other hackers: that I can ask questions of.
Being well-fed, safe, and curious.

Goal: make a Shopify theme and record every step. Secondary goal: be grateful for every step along the way.

Sent from my iPad

Little house on the prarie
Harmonica Vin Desil
Bottle of gin
Male hair cutter
What do you need, sherlock?
Narbonic Mel the lizard
Spanish sea.
Leafy Angel
Larry Vin desil

Grammar-gram cracker
Objects- jets
Functions-
Inheritance-
Arrays-
Regular Expressions-
Methods-
Styles-

Sent from my iPad

Worst idea Ever:
A video game called Suicide. The goal is to commit a painless suicide. A variety of methods to commit suicide, all rated by a pain scale. The trick- the video game never actually allows you to ‘win.’. Instead, it takes you through all of the horror that is suicide.

The only way to ‘win’ is to get your butt to a counselor, friend, or or other helpful person.

Sent from my iPad

Worst idea Ever:
A video game called Suicide. The goal is to commit a painless suicide. A variety of methods to commit suicide, all rated by a pain scale. The trick- the video game never actually allows you to ‘win.’. Instead, it takes you through all of the horror that is suicide.

The only way to ‘win’ is to get your butt to a counselor, friend, or or other helpful person.

Sent from my iPad

Help! Where Am I! Is particularly useful. This.
http://coding.smashingmagazine.com/2009/08/01/what-you-need-to-know-about-javascript-scope/ bait and switch
http://james.padolsey.com/javascript/how-to-avoid-switch-case-syndrome/

Huh. Why on earth does this not throw a syntax error?
name_of_if: if(true){
alert(“Huh. you can name if statements.”);
};

I got he idea from Douglas Crockford’s statements railroad diagram.

Ahh. Labels are used by break and continue statements. They are evil. Do not use them. Have you ever been a volunteer doing work for an event, and you were in the middle of something, like, say, washing dishes, and a coordinator came up to you and said, “stop that! Go pick up trash.”. So you stopped doing doing dishes and went to pick up trash. Then another volunteer coordinator came up while you were in the middle od picking up trash and said “stop that! Go do dishes.”. That’s what break ans continute do. Usually they are used to interrupt your program when you are in the middle of something and send you off to a completely different part od the program to do something else.

It’s frustrating for volunteers, and it’s frustrating for coders trying to read your code-expecially when yiunare in the middle of something and it interrupts itself to do something completley different. Don’t do it.

https://developer.mozilla.org/en/JavaScript/Reference/Statements/label

It seems like javascript is trying to be three different critters. Assembler: (break, continue) Imperative (statements)
And functional (functions as first-class objects)

http://programmers.stackexchange.com/questions/58237/are-break-and-continue-bad-programming-practices

Wierd wierd labels

http://stackoverflow.com/questions/8783054/how-are-labels-used-with-statements-that-are-not-a-loop Good question. No answer.

There are 9 statements, like a cat with nine lives.

Tri-force Loopy switch ex-wife very if Disease

If my ex-wife tries fruit-loops, switch her with the disco virgin. If expression try loops (do, while, for) switch disruptive var

Stooge:

Literal
Name
Paren
Prefix
Infix
Ternary
Refinement
New
Delete

Here’s a weird thing. Function invocations are expressions. F() is an expression
F(); is an expression statement.

Rule of thumb: a statement does something. An expression turns into a value.

In javascript, the two are blurred.

Sent from my iPad