What today brings….

It’s nearing the end of what would call a typical work day except my days are anything but typical. I do different things everyday, the main thing I hate and love about my job. Working for myself has it’s perks and advantages. Here’s some of the things I’ve done today. 

Got a new job :) . I just signed a contract for a new job working 10hrs a week at $25/hr to watch webinars and take notes. Yes that’s right, $25/hr to lay in bed and watch webinars about SEO and social media marketing and take notes on them. This will be a good steady thing to add to my daily work load, when all else fails, stop what I’m doing and attend a webinar, learn some stuff and make bank. Let’s see what else.

I set up a new server on DO, a centos 5 server. And I’m trying to learn several new programming languages at once hiccup, and coljure, and selmer. Not so easy, has a learning curve. But I did get a basic app set up in about 20 minutes here http://104.131.178.16:3000, that’s right that’s my servers address.  Also I uploaded some files to some ones server, linked into an aweber account, fixed a page from lead pages added a pop up registration box,  and uploaded them to another server. Then I made a cool little star rating tool that sends you to different URLs based on the star value you rate something at. That was fun. I even made another post about it on my other blog. I cleaned out my spam emails since I made an email bomber and sent my self over 100,000 emails testing it out.  And I had this massive conversation with one of my developers……

(3:51:28 PM) Colton Jenkins: real men at work here
(3:51:45 PM) thinkvaughn@gmail.com/48DA3300: it just pisses me off
(3:52:15 PM) Colton Jenkins: what’s that?
(3:52:15 PM) Colton Jenkins: google/
(3:52:15 PM) Colton Jenkins: damn rihgt
[Image] (3:52:16 PM) Unverified conversation with jenkinscolton7@gmail.com/37EBAD80 started. Your client is not logging this conversation.
[Image] (3:52:18 PM) Colton Jenkins: which is why we should leave em
[Image] (3:52:20 PM) Unverified conversation with jenkinscolton7@gmail.com/37EBAD80 started. Your client is not logging this conversation.
(3:52:22 PM) Unverified conversation with jenkinscolton7@gmail.com/37EBAD80 started. Your client is not logging this conversation.
(3:52:25 PM) Colton Jenkins: once you get use to being on linux for a bit
(3:52:26 PM) thinkvaughn@gmail.com/48DA3300: fuck
(3:52:29 PM) Colton Jenkins: we can setup postfix and shit
(3:52:34 PM) Colton Jenkins: setup a biz domain
(3:52:37 PM) Colton Jenkins: have our own email
(3:52:38 PM) Colton Jenkins: own irc
(3:52:40 PM) Colton Jenkins: etc.
(3:52:43 PM) thinkvaughn@gmail.com/48DA3300: what’s irc?
(3:52:57 PM) Colton Jenkins: all traffic routed from our laptops -> ISP -> DO -> ISP -> to me
(3:53:01 PM) Colton Jenkins: instant relay chat
(3:53:09 PM) Colton Jenkins: on anonymous’s right now
(3:53:18 PM) Colton Jenkins: err, at least their new blood channel
(3:53:24 PM) Colton Jenkins: guys are pretty serious in here lol
(3:53:36 PM) Colton Jenkins: bring up csv parsing is a pain and they like, take that shit some where else
(3:54:20 PM) Colton Jenkins: instant messaging chat
(3:54:23 PM) Colton Jenkins: like google talk
(3:54:29 PM) thinkvaughn@gmail.com/48DA3300: lien new appname?
(3:54:31 PM) Colton Jenkins: the new fads are Slack or Hall
(3:54:32 PM) thinkvaughn@gmail.com/48DA3300: that’s it right
(3:54:40 PM) Colton Jenkins: lein new luminus appname
(3:54:44 PM) Colton Jenkins: for a luminus app
(3:54:52 PM) Colton Jenkins: I think there are several, and if not, lein can install them
(3:55:05 PM) thinkvaughn@gmail.com/48DA3300: okay
(3:55:44 PM) Colton Jenkins: what u want to start on?
(3:56:10 PM) thinkvaughn@gmail.com/48DA3300: well
(3:56:18 PM) thinkvaughn@gmail.com/48DA3300: i want to see how to set up a log in page
(3:56:31 PM) thinkvaughn@gmail.com/48DA3300: like a whole other page and then link up to it
(3:56:55 PM) Colton Jenkins: k, lets do that then
(3:57:01 PM) Colton Jenkins: go into thaumaturge
(3:57:12 PM) Colton Jenkins: git checkout -b add-login-page
(3:57:27 PM) Colton Jenkins: look up how, that link I had earlier shows it done in hiccup
(3:57:48 PM) Colton Jenkins: git add new_files Or just git add . (. means everything)
(3:57:55 PM) Colton Jenkins: git push origin add-login-page
(3:58:06 PM) Colton Jenkins: http://www.luminusweb.net/docs/html_templating.md
(3:58:17 PM) thinkvaughn@gmail.com/48DA3300: i’m looking at that page now
(3:58:30 PM) thinkvaughn@gmail.com/48DA3300: so you made one already
(3:58:39 PM) thinkvaughn@gmail.com/48DA3300: and it’s on git?
(3:59:05 PM) thinkvaughn@gmail.com/48DA3300: does it matter if i’m deeper like in resources/templates?
(3:59:46 PM) Colton Jenkins: I never have any issues staying in app_root… I have made the git repo thaumaturge, you can just add a branch to that project for login page
(4:00:19 PM) thinkvaughn@gmail.com/48DA3300: is that what i’m doing when i checkout -b
(4:00:22 PM) Colton Jenkins: cd ~/Workspace/thaumaturge/
git checkout -b add-login-page
emacs resources/templates/loginpage.whatever_extension
(4:00:24 PM) thinkvaughn@gmail.com/48DA3300: i’m creating a new branch
(4:00:27 PM) Colton Jenkins: yes sir
(4:01:00 PM) thinkvaughn@gmail.com/48DA3300: okay so i’m not actually checking anything out like getting code you made from the server, i’m just making a new branch that i can then push up right
(4:03:12 PM) Colton Jenkins: sorry, Triston sick from me and is feeling horrible :(
(4:03:17 PM) Colton Jenkins: nope
(4:03:24 PM) Colton Jenkins: checkout just means to swithc branch locally
(4:03:29 PM) Colton Jenkins: git checkout (change branch)
(4:03:33 PM) Colton Jenkins: git branch (list branches)
(4:03:40 PM) Colton Jenkins: git branch -D branch_name (delete branch)
(4:03:45 PM) thinkvaughn@gmail.com/48DA3300: is that your sons name?
(4:03:46 PM) Colton Jenkins: git branch branch_name (create branch)
(4:03:50 PM) Colton Jenkins: Triston
(4:03:51 PM) Colton Jenkins: yea
(4:03:56 PM) Colton Jenkins: you didn’t know WTF lol
(4:04:04 PM) thinkvaughn@gmail.com/48DA3300: no i didnt
(4:04:12 PM) thinkvaughn@gmail.com/48DA3300: i might have
(4:04:14 PM) Colton Jenkins: yea, Triston Wayne Jenkins
(4:04:15 PM) thinkvaughn@gmail.com/48DA3300: but weed….:(
(4:04:22 PM) Colton Jenkins: yea, it does something terrible
(4:04:39 PM) Colton Jenkins: git pull remote branch (pull code down from remote)
(4:04:51 PM) Colton Jenkins: git push remote_name branch_name (push changes from local to remote)
(4:05:06 PM) Colton Jenkins: so do you have a new branch now?
(4:05:27 PM) Colton Jenkins: oh yea
(4:15:39 PM) Colton Jenkins: http://www.luminusweb.net/docs/apps.md
(4:15:41 PM) thinkvaughn@gmail.com/48DA3300: is {% about the same as <?php or <%=
(4:15:45 PM) Colton Jenkins: right
(4:21:55 PM) Colton Jenkins: this has good info
(4:21:56 PM) Colton Jenkins: https://github.com/yokolet/hiccup-samples
(4:22:08 PM) Colton Jenkins: project.clj seems to be our Gemfile or file that we put our dependencies in
(4:22:21 PM) Colton Jenkins: so if we find a library to help us out, like hiccup, we can add it here
(4:22:37 PM) Colton Jenkins: then core.clj looks like the routes file… here is where we define where incoming requests go
(4:22:46 PM) Colton Jenkins: “/” => “home.html”
(4:22:56 PM) Colton Jenkins: “/login” => “login.html”
(4:22:57 PM) Colton Jenkins: etc.
(4:23:01 PM) thinkvaughn@gmail.com/48DA3300: i don’t undstand much about routes
(4:23:05 PM) thinkvaughn@gmail.com/48DA3300: ohh
(4:23:08 PM) thinkvaughn@gmail.com/48DA3300: okay
(4:23:16 PM) thinkvaughn@gmail.com/48DA3300: that’s whay about.html looks like
(4:23:22 PM) Colton Jenkins: yea, THIS_URL (goes to) THIS_CONTROLLER
(4:23:22 PM) thinkvaughn@gmail.com/48DA3300: http://104.131.178.16:3000/about
(4:23:26 PM) Colton Jenkins: yes
(4:24:06 PM) thinkvaughn@gmail.com/48DA3300: where is core.clj
(4:25:03 PM) Colton Jenkins: so we have home.clj
(4:25:35 PM) thinkvaughn@gmail.com/48DA3300: all i see is project.clj
(4:25:48 PM) Colton Jenkins: you watching my screen?
(4:25:55 PM) thinkvaughn@gmail.com/48DA3300: no
(4:26:11 PM) Colton Jenkins: I’m in jon2 I believe
(4:28:02 PM) thinkvaughn@gmail.com/48DA3300: whats that do?
(4:28:05 PM) thinkvaughn@gmail.com/48DA3300: lein repl
(4:28:11 PM) Colton Jenkins: repl
(4:28:13 PM) Colton Jenkins: REPL
(4:28:17 PM) Colton Jenkins: ugh, wtf does it stand for
(4:28:19 PM) Colton Jenkins: its an interpreter
(4:28:25 PM) thinkvaughn@gmail.com/48DA3300: replace
(4:28:29 PM) thinkvaughn@gmail.com/48DA3300: fuck idk
(4:28:34 PM) thinkvaughn@gmail.com/48DA3300: all of this is new to me
(4:28:36 PM) Colton Jenkins: we need this http://repl.it/
(4:28:49 PM) Colton Jenkins: https://en.wikipedia.org/wiki/Read%E2%80%93eval%E2%80%93print_loop
(4:28:53 PM) Colton Jenkins: read eval print loop
(4:28:56 PM) Colton Jenkins: so yea
(4:28:58 PM) Colton Jenkins: interpreter lol
(4:29:50 PM) Colton Jenkins: so that’s hiccup
(4:29:57 PM) Colton Jenkins: use clojure to create HTML
(4:42:23 PM) thinkvaughn@gmail.com/48DA3300: server was running already
(4:44:00 PM) Colton Jenkins: oh? not seeing one
(4:44:11 PM) Colton Jenkins: what was the error message lol
(4:44:17 PM) Colton Jenkins: no login-routes defined or something?
(4:44:45 PM) thinkvaughn@gmail.com/48DA3300: no login yeah
(4:44:59 PM) thinkvaughn@gmail.com/48DA3300: lets look agian
(4:45:38 PM) thinkvaughn@gmail.com/48DA3300: Caused by: java.lang.RuntimeException: Unable to resolve symbol: login-routes in this context

(4:45:50 PM) Colton Jenkins: can you scroll up
(4:46:00 PM) Colton Jenkins: I can’t see the entire stack in screen
(4:50:29 PM) Colton Jenkins: back in jon2
(4:50:36 PM) Colton Jenkins: had ot grab the silver searcher
(4:50:38 PM) Colton Jenkins: shits bad ass
(4:50:41 PM) Colton Jenkins: use ag to sesarch
(4:51:41 PM) thinkvaughn@gmail.com/48DA3300: http://thinkvaughn.com/Templates/Personal/contact.html
(4:51:45 PM) thinkvaughn@gmail.com/48DA3300: I have a picture
(4:54:30 PM) Colton Jenkins: so I have no knowledge on clojure, luminus, etc. but with examples and shit we can build whatever
(4:54:37 PM) Colton Jenkins: I notice that when we define a route
(4:54:42 PM) Colton Jenkins: we tell it what method to invoke
(4:57:56 PM) Colton Jenkins: defroutes login-routes
(4:57:59 PM) Colton Jenkins: that defines the route
(4:58:04 PM) Colton Jenkins: then under it is the method to invoke
(4:58:12 PM) Colton Jenkins: in that method we could add hiccup to render html
(4:58:17 PM) Colton Jenkins: and have no view or html lol
(4:58:20 PM) Colton Jenkins: fucking all code
(4:58:26 PM) Colton Jenkins: and would be like 200 ines for a app
(4:58:48 PM) thinkvaughn@gmail.com/48DA3300: it will take me a minute or two to get up to speed on how to do all this
(4:58:53 PM) thinkvaughn@gmail.com/48DA3300: and commit it to memeory
(4:59:04 PM) Colton Jenkins: yea, no worry man, I got to learn clojure and shit
(4:59:12 PM) Colton Jenkins: just remember lisp goes like
(4:59:19 PM) Colton Jenkins: (method arg1 arg2 …)
(4:59:34 PM) Colton Jenkins: where usually arg1 is another method and arg2 is some list of data
(4:59:45 PM) Colton Jenkins: (map inc [1 2 3 4])
[2 3 4 5]
(4:59:58 PM) Colton Jenkins: so when making html pages
(5:00:09 PM) Colton Jenkins: hiccup has html5 as a method
(5:00:31 PM) thinkvaughn@gmail.com/48DA3300: i’ve never used lisp
(5:00:38 PM) thinkvaughn@gmail.com/48DA3300: and i’ve never developed like this before
(5:00:39 PM) Colton Jenkins: (html5
[:div
Some shit in a div
]
[:br]
[:p some other shit ]
)
(5:00:52 PM) Colton Jenkins: niether have i, neither have i lol
(5:00:52 PM) thinkvaughn@gmail.com/48DA3300: but i’m not fucking scared
(5:00:58 PM) Colton Jenkins: that’s what I’m talking about
(5:01:08 PM) Colton Jenkins: fucking smiling faces
(5:01:13 PM) Colton Jenkins: start with html5 method
(5:01:17 PM) Colton Jenkins: and to use tags
(5:01:21 PM) Colton Jenkins: [:tag_name]
(5:01:33 PM) Colton Jenkins: while the opening bracket [ starts it and the closing ] closes it
(5:01:42 PM) Colton Jenkins: (html5 [: div])
(5:01:53 PM) Colton Jenkins: would be
<html><div></div></html>
(5:01:58 PM) Colton Jenkins: you can play around with it in the REPL
(5:02:23 PM) Colton Jenkins: (use `hiccup.page)
(html5 some hiccup)
(5:02:56 PM) thinkvaughn@gmail.com/48DA3300: still don’t get REPL
(5:03:07 PM) Colton Jenkins: its an interpreter
(5:03:10 PM) thinkvaughn@gmail.com/48DA3300: but the more i start fuckig with all this
(5:03:13 PM) thinkvaughn@gmail.com/48DA3300: the more I will learn
(5:03:18 PM) Colton Jenkins: like you have the developer console in google chrome, firefox, etc. for javascript
(5:03:25 PM) thinkvaughn@gmail.com/48DA3300: i want to spend at least a few hours a day learning this new shit
(5:03:32 PM) Colton Jenkins: compiled languages like java don’t have an interpreter
(5:03:38 PM) Colton Jenkins: please do
(5:03:50 PM) Colton Jenkins: you’ll soon discover you can do much more and much less of time with less coding
(5:04:23 PM) Colton Jenkins: let me get this login route working
(5:04:28 PM) Colton Jenkins: then I’ll see if our page loads
(5:04:34 PM) Colton Jenkins: then I’ll replace the html selmer render with hiccup
(5:04:45 PM) Colton Jenkins: and hopefully we got something going so you can continue to build out pages
(5:05:13 PM) Colton Jenkins: I’ll start building back end shit like db tables/models and controllers
(5:05:34 PM) Colton Jenkins: after login page, what you want to do ? email builder?
(5:05:42 PM) thinkvaughn@gmail.com/48DA3300: idk
(5:05:51 PM) thinkvaughn@gmail.com/48DA3300: i want to spend some time learning how to do this shit
(5:06:12 PM) thinkvaughn@gmail.com/48DA3300: we need to offer some util to get people to pay us
(5:06:26 PM) thinkvaughn@gmail.com/48DA3300: lets say we get 10k people to pay us 10/month
(5:06:44 PM) thinkvaughn@gmail.com/48DA3300: i’ll take 30k/mo and you can have 70k/mo
(5:06:47 PM) thinkvaughn@gmail.com/48DA3300: and i’m good
(5:07:01 PM) Colton Jenkins: well, any new shit we do, if we do evenly, we get paid evenly
(5:07:13 PM) Colton Jenkins: mo like 50 / 50
(5:07:48 PM) Colton Jenkins: gonna need some help making shit look purty and in depth front-end shit like the WYSIWYG editor
(5:08:05 PM) Colton Jenkins: I mean, if you want to split 70 / 30 then alright lol
(5:08:10 PM) Colton Jenkins: I prefer fairness over all
(5:08:41 PM) thinkvaughn@gmail.com/48DA3300: WYSIWYG
(5:08:43 PM) thinkvaughn@gmail.com/48DA3300: yeah…
(5:08:46 PM) thinkvaughn@gmail.com/48DA3300: i’ll learn that too
(5:08:58 PM) Colton Jenkins: what you see is what you get
(5:09:08 PM) Colton Jenkins: need to make a bad ass drag and drop build your entire site ma gig
(5:10:28 PM) Colton Jenkins: fucking brain feels like its cooking
(5:16:11 PM) Colton Jenkins: no error, but still not routing /login
(5:16:29 PM) thinkvaughn@gmail.com/48DA3300: you got me
(5:16:52 PM) Colton Jenkins: when I fail, time to go to documentation lol
(5:16:53 PM) Colton Jenkins: http://www.luminusweb.net/docs/routes.md
(5:16:57 PM) Colton Jenkins: define routes
(5:17:08 PM) Colton Jenkins: shit
(5:17:10 PM) Colton Jenkins: spoke too soon
(5:17:11 PM) Colton Jenkins: http://104.131.178.16:3000/login
(5:17:26 PM) Colton Jenkins: alright, so that is how we setup a route
(5:17:29 PM) Colton Jenkins: use selmer html
(5:17:38 PM) Colton Jenkins: now lets see if we can replace the render html jazz with hiccup
(5:17:59 PM) Colton Jenkins: we’ll lose our base though (header/footer), but if we like hiccup we can rebuild the base in hiccup
(5:19:19 PM) Colton Jenkins: hope this works
(5:19:24 PM) Colton Jenkins: if so, clojure rocks
(5:20:50 PM) Colton Jenkins: like a boss
(5:20:50 PM) Colton Jenkins: http://104.131.178.16:3000/login
(5:21:15 PM) Colton Jenkins: where is that login form example they had
(5:21:20 PM) Colton Jenkins: shit gonna be eazy breezy
Colton Jenkins is typing…

Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>