Author Topic: ADARQ's journal  (Read 2589290 times)

0 Members and 1 Guest are viewing this topic.

adarqui

  • Administrator
  • Hero Member
  • *****
  • Posts: 34034
  • who run it.
  • Respect: +9112
    • View Profile
    • Email
Re: ADARQ's journal
« Reply #6105 on: April 01, 2016, 02:37:38 pm »
+2
this is what running up and back (60 total) on a basketball court looks like (and doing jumps on each end, coming in from different angles):



^^ 1 mile

hah.


edit: i've wanted to do this for a long time.. this is kind of a "raptor-ish" experiment when it comes to jumping (in regards to relaxation). I've wanted to incorporate running + jumping in the same session for a long time, this is really the first time I did it.

I did 2 x 1 mi (~60 total jumps). all jumps were relaxed.

felt pretty good tbh.. i enjoyed it. It was tough too.. it would be really tough if I was jumping harder.

pc

adarqui

  • Administrator
  • Hero Member
  • *****
  • Posts: 34034
  • who run it.
  • Respect: +9112
    • View Profile
    • Email
Re: ADARQ's journal
« Reply #6106 on: April 02, 2016, 03:58:13 am »
0
only slept 3 hours.. woke up, brain racing.. couldn't go back to sleep.


04/01/2016

Bio: Morning

sleep = 3 hours
- eek
wakeup = 9:30 AM
bw = 150
morning resting heart rate = didn't measure
soreness = none
aches = right tennis elbow slightly
injuries = toenails wrekt
feel = tired



Food

9:30 AM

- pure sugarless green tea
- greek yogurt



Session: Afternoon

11:30 AM - 2 PM

run to court:
- ~3.65 mi

rest ~5 min

non-stop up and back jumps at bball court, backboard taps:
- 60 total @ 1.02 mi in 12:43 min
- rest ~5 min
- 60 total @ 1.01 mi in 10:18 min
- hit rim a few times, but i mostly just jumped relaxed, touching a ~9'4 backboard (barely off R-slrvj, palm and such off L-slrvj)
 
run home:
- ~3.75 mi

pretty /humid hot out.

145 lb. after workout

 :ibrunning:



Food

2 PM

- pure sugarless green tea
- greek yogurt



Food

5 PM

- big bowl (~1.25 cups) of israeli couscous mixed with serrano pepper, red chili pepper, olives, carrots, garlic, olive oil, salt/pepper, lemon juice, and grilled chicken
- orange
- green tea
- water with lemon



Food

9 PM

- half pint ice cream while watching boxing
- hot mint tea



Food

2 AM

- greek yogurt
- beet + tart cherry juice
- banana



got lots of coding done today but.. brain foggy.. so slower/less efficient than I should have been.

body feels pretty good!

only slightly tired right now.. :(

watched the end of the GSW game.. very good game. Celtics finally snapped GSW's home win streak. I want GSW to break that bulls record (72-10), but you never know... GSW is 68-8 right now.. so close.

pc!

Raptor

  • Hero Member
  • *****
  • Posts: 14620
  • Respect: +2539
    • Yahoo Instant Messenger - raptorescu
    • View Profile
    • Email
Re: ADARQ's journal
« Reply #6107 on: April 02, 2016, 07:52:31 am »
0
I always wondered - do you do that with a phone with the GPS turned on in one of your pockets or how?
Current PR status:

All time squat: 165 kg/Old age squat: 130 kg
All time deadlift: 184 kg/Old age deadlift: 140 kg
All time bench: 85 kg/Old age bench: 70kgx5reps
All time hip thrust (same as old age hip thrust): 160kgx5reps

maxent

  • Hero Member
  • *****
  • Posts: 2847
  • Respect: +2134
    • View Profile
Re: ADARQ's journal
« Reply #6108 on: April 02, 2016, 07:59:28 am »
+1
I always wondered - do you do that with a phone with the GPS turned on in one of your pockets or how?

he has a Garmin watch.
Training for balance in GPP and SPP.

vag

  • Hero Member
  • *****
  • Posts: 6059
  • Respect: +3838
    • View Profile
Re: ADARQ's journal
« Reply #6109 on: April 02, 2016, 08:51:30 am »
+1
True, garmins are the shit! But you can get pretty nice and accurate stuff with a phone on your pocket and GPS+3G enabled. Simplest app, like google's MyTracks will do.

Edit:
Shit, it says it is not available anymore. But it still works on my phone.
Here is the related page : https://support.google.com/maps/answer/6333516?hl=en
Plenty of free and powerful apps out there anyway.
« Last Edit: April 02, 2016, 08:53:30 am by vag »
Target training paces (min/km), calculated from 5K PR 22:49 :
Easy run : 5:48
Tempo run : 4:50
VO2-max run :4:21
Speed form run : 4:02

---

it's the biggest trick in the run game.. go slow to go fast. it doesn't make sense until it smacks you in the face and you're like ....... wtf?

adarqui

  • Administrator
  • Hero Member
  • *****
  • Posts: 34034
  • who run it.
  • Respect: +9112
    • View Profile
    • Email
Re: ADARQ's journal
« Reply #6110 on: April 02, 2016, 03:20:25 pm »
0
I always wondered - do you do that with a phone with the GPS turned on in one of your pockets or how?

nah, like maxent pointed out, garmin gps watch. I prefer the watch, i forget it's on my wrist.

pc!

adarqui

  • Administrator
  • Hero Member
  • *****
  • Posts: 34034
  • who run it.
  • Respect: +9112
    • View Profile
    • Email
Re: ADARQ's journal
« Reply #6111 on: April 03, 2016, 03:55:48 am »
0
legs felt surprisingly good today after all of those jumps. felt good, less power though.



04/02/2016

Bio: Morning

sleep = 10 hours
- guess i needed the extra sleep
wakeup = 3 PM
- eek
bw = 148
morning resting heart rate = didn't measure
soreness = hamstrings slightly
aches = right tennis elbow slightly
injuries = toenails wrekt
feel = good



Food

3 PM

- greek yogurt
- banana
- pure sugarless green tea



Food

6 PM

- banana



Session: Evening

run: slow jog with sprints mixed in
- connect.garmin.com is down so, i forget my actual total mileage/time..
- ~9.4 mi in 1.5 hours
- max-speed: 12.3 mph
- did tons of short sprints
- had to loosen up my left shoe, felt the top of my foot hurting out of nowhere



Food

10 PM

- big bowl of cheerios + honey + 2% milk
- sausage egg and cheese on pumpernickel bagel
- half of a chocolate muffin
- orange juice
- hot mint tea



Food

2 AM

- banana
- orange
- greek yogurt



man i love oranges.

i've been throwing a tennis ball in the house for my dog (while coding), for literally over 2 hours. he's a nutcase.

tmw i'd like to get a run+jump session in.

pc!

adarqui

  • Administrator
  • Hero Member
  • *****
  • Posts: 34034
  • who run it.
  • Respect: +9112
    • View Profile
    • Email
Re: ADARQ's journal
« Reply #6112 on: April 03, 2016, 06:16:26 am »
+2
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.

seifullaah73

  • Hero Member
  • *****
  • Posts: 3933
  • Respect: +1742
    • View Profile
    • Email
Re: ADARQ's journal
« Reply #6113 on: April 03, 2016, 12:24:28 pm »
0
did you figure out what was wrong with that piece of code?
Warm up drills
   - a walk, b skip quick powerful switch (heel to hams focus), a runs, dribbles small to big to run, straight leg to runs (force, reflex, go up/forward). force to hit the ground before it hits the ground knee/hip is at 90 degrees.
   - acceleration: low heel recovery, shin angle low, drive legs back before hitting the ground and drive thighs/knee forward not up
-------------------------------------------------------------
Measuring reminder:
5 toe to heel steps = 148cm
------------------------------------------------------------------------

�Strength comes from the legs, Power comes from the torso and Speed comes from the arm.� � Al Vermeil
Arm also aids the legs in driving it down with power - seifullaah73

My Progress Log
A Journey to Running fast and Jumping High
http://www.adarq.org/progress-journals-experimental-routines/my-journey-to-hypertrophy/

Raptor

  • Hero Member
  • *****
  • Posts: 14620
  • Respect: +2539
    • Yahoo Instant Messenger - raptorescu
    • View Profile
    • Email
Re: ADARQ's journal
« Reply #6114 on: April 03, 2016, 12:55:52 pm »
0
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.

So this is how my life is going to look.
Current PR status:

All time squat: 165 kg/Old age squat: 130 kg
All time deadlift: 184 kg/Old age deadlift: 140 kg
All time bench: 85 kg/Old age bench: 70kgx5reps
All time hip thrust (same as old age hip thrust): 160kgx5reps

adarqui

  • Administrator
  • Hero Member
  • *****
  • Posts: 34034
  • who run it.
  • Respect: +9112
    • View Profile
    • Email
Re: ADARQ's journal
« Reply #6115 on: April 03, 2016, 03:09:24 pm »
+1
did you figure out what was wrong with that piece of code?

the code i posted actually works. the whole problem was, that I was writing a local definition for that instead of a function by itself (with a type signature, the q :: forall. part). Without the type signature, haskell persistent was going crazy about the types.  I can probably clean that up quite a bit today. I need to do several of those functions to retrieve statistics on various routes: organizations, users, forums, boards, threads, thread posts etc.

:D




So this is how my life is going to look.

probably not, unless you eventually get into functional programming..

that's a SQL (postgresql) query written in a haskell DSL called Esqueleto ;f Haskell uses lots of symbols and such, which can look confusing if you don't know what they mean.

i'm writing the forum etc in haskell (backend) & purescript (frontend), two purely functional programming languages. Haskell has given me the most fun of any programming language, but, it's also been the hardest to learn. It has a nice initial simple learning curve in regards to the basics.. but then, to actually become pro with it, the learning curve is steep.

it's alot of fun though.. more-so than programming in other langs, IMHO. So eventually this forum will be written in haskell + purescript, for the first draft. When haskell improves their full-stack libs (ghcjs), i'll consider porting the front-end to haskell, even though I love purescript. The problem with using two languages is, I have to write my types/structures in both languages.. so there's lots of redundancy there. If I write a User { name :: String, age :: Int } in haskell, I have to do the exact same thing in purescript. There are actually tools now which can auto-generate purescript types from haskell types, but, not to my liking (yet). Full-stack haskell would be alot more efficient.

That code above can be cleaned up to:

Code: [Select]
q :: forall site.
     (YesodPersist site, YesodPersistBackend site ~ SqlBackend) =>
     Key Board -> HandlerT site IO [(Value Int64, Value Int64, Value Int64)]
q board_id = do
  runDB
    $ select
    $ from $ \(thread_post `E.LeftOuterJoin` thread `E.LeftOuterJoin` board) -> do

      on $ thread ^. ThreadBoardId ==. board ^. BoardId
      on $ thread_post ^. ThreadPostThreadId ==. thread ^. ThreadId

      where_ $ board ^. BoardId ==. val board_id

      return (countDistinct $ board ^. BoardId, countDistinct $ thread ^. ThreadId, countDistinct $ thread_post ^. ThreadPostId)

not too much cleaner but.. easier on the eyes than before.

pc!



edit: I had to modify it slightly because of the whitespace issue in forum posts.. new forum actually has 'codecs': raw, bbcode, code, other etc.. so, will have no issue pasting code. ;f

adarqui

  • Administrator
  • Hero Member
  • *****
  • Posts: 34034
  • who run it.
  • Respect: +9112
    • View Profile
    • Email
Re: ADARQ's journal
« Reply #6116 on: April 04, 2016, 05:17:12 am »
0
04/03/2016

Bio: Morning

sleep = 8 hours
wakeup = 2 PM
bw = 146  :wowthatwasnutswtf:
morning resting heart rate = didn't measure
soreness = hamstrings slightly, adductors alot (especially right)
aches = right tennis elbow slightly
injuries = toenails wrekt
feel = good



Food

2:30 PM

- greek yogurt
- banana
- green tea



Food

9 PM

- huge bowl of lentils with carrots, potatoes, various peppers, garlic, olives, herbs, etc
- chicken sandwich
- a bunch of black bean chips



Food

10 PM

- small bit of java chip ice cream
- mint tea



Session: Recovery

12 AM

- iced right elbow for ~30 minutes



so stuffed from dinner.. massive amount of lentils ;f

body feels pretty wrecked today.. all of those sprints yesterday taxed my adductors hard.

REFACTORING CODE ALL DAY.. sokdogk203k-0fke021EK!@O!K@$OJ@!o

Raptor

  • Hero Member
  • *****
  • Posts: 14620
  • Respect: +2539
    • Yahoo Instant Messenger - raptorescu
    • View Profile
    • Email
Re: ADARQ's journal
« Reply #6117 on: April 04, 2016, 05:37:55 am »
+1
146?!

That's lighter than my highschool days. I weighed 67 kg back then. 144 = 66 kg. The least I've ever weighed was 64 kg when I was 21, due to eating 1 per day off ~5$ per day, me and my mom. So I was living with 2.5$ per day for food then.
Current PR status:

All time squat: 165 kg/Old age squat: 130 kg
All time deadlift: 184 kg/Old age deadlift: 140 kg
All time bench: 85 kg/Old age bench: 70kgx5reps
All time hip thrust (same as old age hip thrust): 160kgx5reps

adarqui

  • Administrator
  • Hero Member
  • *****
  • Posts: 34034
  • who run it.
  • Respect: +9112
    • View Profile
    • Email
Re: ADARQ's journal
« Reply #6118 on: April 04, 2016, 05:56:42 am »
+1
146?!

ya i dno, weird right? ;f


Quote
That's lighter than my highschool days. I weighed 67 kg back then. 144 = 66 kg. The least I've ever weighed was 64 kg when I was 21, due to eating 1 per day off ~5$ per day, me and my mom. So I was living with 2.5$ per day for food then.

damn

i think i lived off of ~$5 for food or less in h.s. too. i wasn't a good eater back then, but i played tonssss of basketball.. so needless to say, was skinny as fuck.

i remember when I wasn't self conscious at all in h.s.. but i took my shirt off after basketball, and some teammates mentioned how caved in my chest was.. i always remember that because, prior to that moment, I never actually thought about any of that. I just played bball all day and was getting into computers. stuff like that didn't even cross my mind.

HEH!

adarqui

  • Administrator
  • Hero Member
  • *****
  • Posts: 34034
  • who run it.
  • Respect: +9112
    • View Profile
    • Email
Re: ADARQ's journal
« Reply #6119 on: April 04, 2016, 06:07:03 am »
0
finished integrating this "board packs" thing I was talking about yesterday.. just prior to 6 AM (the goal).

it's just the joining together of several data structures, returning it all in one call. But just for shits & giggles, here's an example. This is a "board pack" which gives me data for a: Board, BoardStat, Thread, ThreadPost, and the User who posted it:

Code: [Select]
{
  boards_packs: [
  {
    latest_thread_post: {
      thread_id: 1,
      modified_by: null,
      body: {
        data: "latest?",
        schema: "post_data_request",
        type: "post_data_bbcode",
        v: 1
      },
      modified_at: "2016-04-04T07:52:34.059885000000Z",
      schema: "thread_post_response",
      created_by: 1,
      created_at: "2016-04-04T07:52:34.059885000000Z",
      id: 19878,
      title: null,
      user_id: 1,
      v: 1,
      parent_id: null
    },
    latest_thread_post_user: {
      email_md5: "b2eff1bf71b3445e307ec91e4018d24c",
      nick: "andrewdarqui",
      schema: "user_sanitized_response",
      display_nick: "andrewdarqui",
      created_at: "2016-04-04T07:30:33.174801000000Z",
      id: 1,
      v: 1,
      is_active: false
    },
    schema: "board_pack_response",
    board_stat: {
      views: 0,
      schema: "board_stat_response",
      thread_posts: 11,
      threads: 5,
      board_id: 1,
      v: 1
    },
    board: {
      modified_by: null,
      modified_at: null,
      schema: "board_response",
      forum_id: 1,
      created_by: 1,
      name: "board",
      created_at: "2016-01-19T02:43:08.357499000000Z",
      id: 1,
      v: 1,
      parent_id: null,
      desc: "board desc"
    },
    latest_thread: {
      sticky: false,
      locked: false,
      modified_by: null,
      modified_at: "2016-04-02T21:36:22.870992000000Z",
      schema: "thread_response",
      created_by: 1,
      poll: null,
      name: "Test Thread",
      activity_at: "2016-04-04T07:52:34.059885000000Z",
      created_at: "2016-01-19T20:19:58.389153000000Z",
      id: 1,
      board_id: 1,
      v: 1,
      desc: "A thread for testing"
    },
    v: 1
  }
  ],
  schema: "boards_packs_responses",
  v: 1
}


nothing amazing but.. stuff like that is going to make the forum code i'm doing really model what we already have. I now have it showing latest post in the board view and simple stuff like that.

I refactored so much code today, it's pretty ridiculous.

pC!