646
Progress Journals & Experimental Routines / Re: Two Hands Two Feet
« on: April 04, 2016, 03:05:06 am »5am training session
The only PR I would get out of a 5 AM session would be a length PR on my vomit projectile.
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
5am training session
it's really hard for me to sleep when I can't figure something out.. that's why I usually don't try and figure complex things out after 12 AM or so.
this simple piece of code took me 3 hours to figure out.. I was overlooking something for a lonnnnnng time.Code: [Select]q4 :: forall site.
(YesodPersist site, YesodPersistBackend site ~ SqlBackend) =>
Key Board -> HandlerT site IO [(E.Value Int64, E.Value Int64, E.Value Int64)]
q4 board_id = do
runDB
$ E.select
$ E.from $ \((thread_post :: E.SqlExpr (Entity ThreadPost)) `E.LeftOuterJoin` (thread :: E.SqlExpr (Entity
Thread)) `E.LeftOuterJoin` (board :: E.SqlExpr (Entity Board))) -> do
E.on $ thread ^. ThreadBoardId E.==. board ^. BoardId
E.on $ thread_post ^. ThreadPostThreadId E.==. thread ^. ThreadId
E.where_ $
board ^. BoardId E.==. E.val board_id
return (E.countDistinct $ board ^. BoardId, E.countDistinct $ thread ^. ThreadId, E.countDistinct $
thread_post ^. ThreadPostId)
now, i go lie down and die.

just working on getting low and getting my feet out in front in the plant so that my knees don't travel forward. not very good height.