These are chat archives for reactioncommerce/reaction

31st
Mar 2015
Jacob Gadikian
@faddat
Mar 31 2015 06:33
I totally hear ya on the fingers Aaron. Seeing as it’s open source and all, you don’t mind if I include reaction in a business SW+HW bundle and kick a portion of the profits back to you guys and the other code authors?
Bogi
@boboci9
Mar 31 2015 12:25
thanks @aaronjudd and no worries, glad that we could figure it out together
Aaron Judd
@aaronjudd
Mar 31 2015 15:14
@faddat sure. even better - contribute back some code to get to help us get to a production ready release, or maybe help fund a ‘bounty’ pool. feel free to shoot me an email or PM me if you want to brainstorm some ideas.
Jacob Gadikian
@faddat
Mar 31 2015 15:15
I totally do want to brainstorm, cool to do so here? As for code that’s totally not me, so let me see if I can get Dan the coder in here (github.com/metagen)
Aaron Judd
@aaronjudd
Mar 31 2015 15:18
I don’t mind - I’ve been thinking about bounties, or creating some kind of “kickstarter” like “support us” kind of plans.. it would be interesting to hear everyone’s thoughts
Jacob Gadikian
@faddat
Mar 31 2015 15:21
I guess maybe I should start with our use-case?
Aaron Judd
@aaronjudd
Mar 31 2015 15:21
sure
Jacob Gadikian
@faddat
Mar 31 2015 15:21
We're a project/startup facilitator in Hanoi, Vietnam. We just moved into our new location, which is about 50% factory and 50% coworking type office by floor space
To give you an idea...
Pretty sure we are all open source, all the time.
We cost nothing for projects to use, provide resources towards their projects and help them monetize them. We ask equity (which pays dividends). The model is that there are not “paychecks” as such but instead dividends.
When the equity is exchanged, they also get a piece of us e.g.: “value-equal equity swap"
Purpose being to align incentives properly
Aaron Judd
@aaronjudd
Mar 31 2015 15:26
looks like you have a lot of space to fill there… when should we all arrive?
Jacob Gadikian
@faddat
Mar 31 2015 15:26
:)— don’t know if you are serious, but if you are— Tomorrow’s fine
Aaron Judd
@aaronjudd
Mar 31 2015 15:27
lol - I’d love to find an excuse. might not be tomorrow. :smile:
Jacob Gadikian
@faddat
Mar 31 2015 15:27
Reaction comes into our plan because we’re going to pursue global e-commerce like a rocket towards…. whatever people point rockets at :)
The only way to manage all of the relationships in the organization is radical transparency, so that’s where we are headed with many things. Dan is coding up a front page for our web site that visualizes structure & activity in real time, which I think is going to be what pushes the HW bundle I was talking about over the top.
one of our goals is to show that open source doesn’t just make more sense ethically
but instead it is better business.
So when we need to build a stack of components to create a product, we’ll sell each layer of the stack as well as the stack itself, and services.
We want to make things here, sell them to the globeand constantly refine our supply chain and delivery logistics
and FYI— it’s not Vietnam for cheap labor— it’s Vietnam because we can do it better here because China’s got no internet. Frankly USA and to a lesser but real extent Europe are not manufacturing candidates because of supply chain access.
You can do the hardware very very well in China
Jacob Gadikian
@faddat
Mar 31 2015 15:32
And Shenzhen is my favorite city on earth.
But I like the Internet more than I like Shenzhen.
MetaDev thinks that the dev process goes better and faster if all of the components can work together face to face in realtime. And for IoT….. the dev process involves a great many people indeed, before you even get to monetization.
Jacob Gadikian
@faddat
Mar 31 2015 15:38
So we’re going to try to capture the whole value chain in producing open source things (by we I mean the people who make the things)
instead of handing it to retailers and what have you.
Aaron Judd
@aaronjudd
Mar 31 2015 15:41
to be fair, open and transparent - it’s not like we’re (currently) a funded operation. reaction commerce is just (me) coding and my biz partner Sara handling everything else - the “business”, blogs, and etc…. plus contributions from the community. we’re strong believers that it’s a community effort to make something like reaction work. We’re both dedicated 100% to growing reaction commerce (this is all we do)- and we have a strong committment to making it work for international audiences. Maybe a good comparision of our model, and who we want to be eventually - think wordpress and automattic. We do, of course, want to have a revenue generating offering (since we are self-funding/bootstrapped) as well at some point in the near future. We’re open to all ideas that help grow the reaction community and user base… even if that’s helping other companies do the same things that we’re planning on doing ourselves.. we think there is plenty of room.
Jacob Gadikian
@faddat
Mar 31 2015 15:42
no kidding! Okay!
How can we help you guys? I actually did think you were funded, and seriously if you want to try out the #metadev thing for a bit, well, here’s a photo of my office… have many, and for a tenant as key to our plans as you guys, yeah, that stays free, and we try to find ways to bring the deals to you.
we are hoping to stay 100% free. That will depend on keeping a healthy pipeline for sales going.
Aaron Judd
@aaronjudd
Mar 31 2015 15:45
I like the idea of ecommerce that’s close to the source, which is what it sound like a large part of your plan. conceptually - only a small part of the worlds retailers, or manufactures, are actually online - there’s still a very large opportunity
Jacob Gadikian
@faddat
Mar 31 2015 15:46
oh it is massive
and IMHO….. hugely beneficial.
Supposing things go well here, somewhere between 75 & infinity % of what we think the potential is and it looks to stay profitable, we will clone the campus in East Africa
You know guys, We should figure something out. Vietnam has MANY good coders who need exposure to a project like yours to make the jump from good to great. That’s another component of MetaDev; developing one another. I was a teacher in what seems like another lifetime but actually was just about a year ago. There’s going to be an experiential learning component, and that can probably help you with income, too.
One of the things I like about reaction, open source & commons development in general is that a lot of poverty in my opinion comes from a lack of access to markets & opportunity. Our hardware, it aims to provide that access.
Jacob Gadikian
@faddat
Mar 31 2015 15:55
If you are wondering how all this happened, I’ll be blunt and upfront about it: Dan and I were struggling to get off the ground, and we went to a meeting not long ago, and a gentleman at the meeting really liked what he was hearing, and proposed to buy a year’s worth of full capacity manufacturing of our smart home kit; he is one of the six partners in metadev, likely to expand over time. We’re trying to lack hierarchy to the greatest extent possible, preferring to add people and companies to the partners.
hanoi has been incredible. I’ve only been in this city for three weeks.
Aaron Judd
@aaronjudd
Mar 31 2015 15:57
you make a lot of good points, and it would be interesting to see how it goes. If you get a room full of developers (hopefully with chairs and desks, lol) I’d be excited mentor, teach, come visit, whatever makes sense as you grow (selfish disclosure: I love asia as well, and wouldn’t need much of an excuse - I used to have a development team in the philippines).
Jacob Gadikian
@faddat
Mar 31 2015 15:57
I’d always had a plan involving elements of tech, education & global e-commerce. When I left teaching a year ago, it was to make open HW in Shenzhen. That wasn’t so tough (it was hard as hell without a huge pile of cash, but doable) the real problem was marketing it.
Awesome! Well, I’ll keep you up to date on the room full of devs part. We’re certainly working on it :).
Aaron Judd
@aaronjudd
Mar 31 2015 15:59
it sounds really interesting, and certainly more cost effective than starting something like that in Southern California! trust me ;-)
Jacob Gadikian
@faddat
Mar 31 2015 15:59
it would be utterly impossible.
well— unless I already had a REALLY huge pile of cash
— and then you get into the supply chain issues.
Aaron Judd
@aaronjudd
Mar 31 2015 16:00
where were you before Hanoi?
Jacob Gadikian
@faddat
Mar 31 2015 16:01
HCMC
Aaron Judd
@aaronjudd
Mar 31 2015 16:02
ah ok, so not new to Vietnam then.
Jacob Gadikian
@faddat
Mar 31 2015 16:02
The access to gov’t in Hanoi is what has pushed it over the top. They see parallels between their ideas and open source. I do, too….. (just think OS is superieor because decentralization & no control/dependence on censorship)
6 months
2.5 years in China
before that
and 2 years in Seoul in 2006-8.
Aaron Judd
@aaronjudd
Mar 31 2015 16:05
well I wouldn’t want to stir controversy or turn political - but I do think that OS is also a defensible position against both piracy and closed source, um, greed. So I can see how certain political environments would probably align with the the concept. interesting.
feel free to follow up with me via email, pm, for whatever, whenever. interesting stuff for sure.
Jacob Gadikian
@faddat
Mar 31 2015 16:08
oh we won't be going political, there's no reason-- too much awesome stuff to be done
:)
Aaron Judd
@aaronjudd
Mar 31 2015 16:09
:thumbsup:
Aaron Judd
@aaronjudd
Mar 31 2015 16:16
(oh, and psst…. our vietnamese, chinese,etc translations could use some love ;-) )
Daniel Sont
@ds0nt
Mar 31 2015 16:16
Hey all.
Aaron Judd
@aaronjudd
Mar 31 2015 16:17
@metagen hi Dan
Daniel Sont
@ds0nt
Mar 31 2015 16:23
All caught up
You are coding it by yourself?
Spencer Norman
@spencern
Mar 31 2015 16:41
Hi @faddat, @metagen, pretty cool thing you guys have going over there.
Love the idea of the co-factory/co-working hybrid
Aaron Judd
@aaronjudd
Mar 31 2015 17:11
@metagen me + all you guys ;-)
Bogi
@boboci9
Mar 31 2015 17:12
@aaronjudd you mentioned something about a FF plugin that we can use to help us debugging the code but I can't seem to find the name of it, could you tell me again?
Aaron Judd
@aaronjudd
Mar 31 2015 17:13
hmmm.. it was probably a chrome plugin - but my brutal secret is that I just use the console in every browser.
Bogi
@boboci9
Mar 31 2015 17:14
yes me too, I just though there is some good ways to find out in which file is the actual error from the big error message that we get for template errors
they might have an extension for firefox, not sure, but it’s a github project
Bogi
@boboci9
Mar 31 2015 17:16
ok, I can use chrome too I just remembered FF for some reason
Aaron Judd
@aaronjudd
Mar 31 2015 17:17
all it does is format and apply line numbers, but still - that helps a lot when you have to search the compiled code
Bogi
@boboci9
Mar 31 2015 17:17
that it what I have been doing for some time... looking for some bugs :) and I remembered I read somewhere about this plugin, already installed it thanks
Aaron Judd
@aaronjudd
Mar 31 2015 17:23
I don’t usually look for bugs.. they seem to find me. haha
Bogi
@boboci9
Mar 31 2015 17:25
:) lol
Jacob Gadikian
@faddat
Mar 31 2015 17:31
gosh things happen so fast in Hanoi
Aaron Judd
@aaronjudd
Mar 31 2015 17:31
a team of developers just marched into the office?
Jacob Gadikian
@faddat
Mar 31 2015 17:32
kind of.
What if there was funding— and a team?
Aaron Judd
@aaronjudd
Mar 31 2015 17:33
well, we have a long list ;-) I’m sure at least a few of us in this room would be willing to swing by!
Jacob Gadikian
@faddat
Mar 31 2015 17:34
what’s your e-mail?
Aaron Judd
@aaronjudd
Mar 31 2015 17:34
Jacob Gadikian
@faddat
Mar 31 2015 17:36
sara would be sara@ongoworks.com ?
Aaron Judd
@aaronjudd
Mar 31 2015 17:36
you got it.
Jacob Gadikian
@faddat
Mar 31 2015 17:45
the protocol we go for with Quip is just put your thoughts in there, comment, note, etc...
If there are others here I should invite to quip just let me know. Mass collaboration is an advantage of being fully transparent.
What prompted this “what if there was funding and a team"
was just informed that I have another big meeting with another set of bigwigs, and well, it looks…… excellent
Jacob Gadikian
@faddat
Mar 31 2015 17:55
nothing for sure blah blah disclaimer blah
;).
Aaron Judd
@aaronjudd
Mar 31 2015 19:15
@boboci9 I'll update the issues #154 re: multi-shops soon - have to get my mind wrapped around your thoughts...
@faddat I took a quick peek, but I'll try to digest a little more later..
Bogi
@boboci9
Mar 31 2015 19:26
@aaronjudd thanks I implemented that approach as a prototype and I testing how it works together with the reaction core, so far it's working good, but I'm waiting on your input on the matter
Bogi
@boboci9
Mar 31 2015 20:19

Are there any possibilities to disable a registered package. For example my multi vendor package is adding

{
        template: 'multiVendorCheckoutShipping',
        provides: 'shippingMethod'
    }

but I want in the same time to disable the regular 'flatRateCheckoutShipping' shippingMethod from the reaction-shipping because this way I have both of them in the checkout page. Does this make sense? Are there any ways to disable that from code?

Aaron Judd
@aaronjudd
Mar 31 2015 20:25
you can just remove it from the Packages.registry data
Bogi
@boboci9
Mar 31 2015 20:25
you mean manually from the DB?
Aaron Judd
@aaronjudd
Mar 31 2015 20:27
actually, I think you should be able to use enabled: false (yes, updated in db)

the loading statement is

{{#each reactionApps provides='shippingMethod' enabled=true}}

so you can just do:

{
        template: 'flatRateCheckoutShipping',
        provides: 'shippingMethod',
        enabled: false
    }
Bogi
@boboci9
Mar 31 2015 20:31
this will overwrite the flatratecheckoutshipping from the reaction-shipping package and take into consideration the one in mine ? I will try that right away
Aaron Judd
@aaronjudd
Mar 31 2015 20:32
yes
Bogi
@boboci9
Mar 31 2015 21:01
in this case 'flatRateCheckoutShipping' is also displayed :(
but I will debug it further
unfortunatelly {{console.log this}} breaks the code
Bogi
@boboci9
Mar 31 2015 21:07
enabled: false is not added in the Packages collection for this entry
in other entries also the enabled is used in a higher level not inside the registry array
Bogi
@boboci9
Mar 31 2015 21:57
but even if I force add the enabled inside the registry they will not be taken into consideration, only the enabled filter from higher level is taken into account because the enabled is only used as a top level filter
# any registry property, name, enabled can be used as filter
  for key, value of options.hash
    unless key is 'enabled' or key is 'name'
      filter['registry.' + key] = value #for query
      registryFilter[key] = value #for registry filter
    else
      filter[key] = value #handle top level filters
Is there any particular reason for that?
Bogi
@boboci9
Mar 31 2015 22:24

In order to have the enabled filter work on the registry level as well we would need to change the Template.registerHelper "reactionApps", (options) -> reactionApps calculation a little bit: for example this version would work:

  # filter and reduce, format registry objects
  # checks to see that all registry filters are applied to the registry objects
  # and pushes to reactionApps
  for app in packages
    for registry in app.registry
      match = 0
      for key, value of registryFilter
        if registry[key] is value
          match += 1
        if match is Object.keys(registryFilter).length
          registry.name = app.name
          registry.enabled = (if registry.enabled? then registry.enabled else app.enabled)
          registry.packageId = app._id
          reactionApps.push registry unless registry.enabled? && !registry.enabled

Let me know what do you think and if you agree I will add a pull request with the changes.

Aaron Judd
@aaronjudd
Mar 31 2015 22:54
ah yes, that's my bad for thinking it was template level ( which I probably documented this, but didn't remember - ironic). we could check within reactionApps template call, or just refactor to include both functionalities. currently, the reactionApps enabled is if the package is enabled - so this change should make the logic be "package is enabled + registry item where enabled isn't false"
so that last statement, should also push if registry.enabled is not set, as that should not be required to be set
@boboci9 ah nm - I see it.. yes, a PR for that would be great
Jacob Gadikian
@faddat
Mar 31 2015 22:58
hey, meteor— it’s a framework + hosting platform or….? (just curious)
Aaron Judd
@aaronjudd
Mar 31 2015 22:59
well - it's a framework, but they do offer "dev" quality hosting, and will be offering commercial hosting with "Galaxy"
Jacob Gadikian
@faddat
Mar 31 2015 23:00
and it doesn’t bundle hosting? Something’s odd about it— what is its twist?
ah…. interesting. Might not be that bad a model…. they aren’t being pushy, are they?
Aaron Judd
@aaronjudd
Mar 31 2015 23:00
(edited answer for more details). the "hosting" they give now -> the boxes suspend after some short amount of time
The "Galaxy" feature is hosting along the lines of what our "launchdock" project is currently fulfilling for us.. a docker container that's been tuned to the Meteor environment.
Aaron Judd
@aaronjudd
Mar 31 2015 23:36
@boboci9 testing that change with some of the other use cases (dashboard), need to fine tune it a little - playing with it now.