Show Posts

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.


Messages - adarqui

Pages: 1 ... 797 798 [799] 800 801 ... 1505
11971
Progress Journals & Experimental Routines / Re: ADARQ's journal
« on: April 05, 2016, 05:26:35 am »
04/04/2016

Bio: Morning

sleep = 7 hours
wakeup =  1:30 PM
bw = 150
morning resting heart rate = didn't measure
soreness = adductors alot (especially right)
aches = right tennis elbow slightly, right adductor
injuries = toenails wrekt
feel = good



Food

4 PM

- boston market: quarter chicken
- small serving of stuffing, mashed potatoes



Session: Evening

8 PM

run:
- 9.19 mi in 1h:11m:54s
- moderate run, worked on stride mostly but stayed relaxed
- right adductor bugging a little bit at times



Food

9:30 PM

- small bit of ice cream
- hot mint tea



Food

12 AM

- big bowl of cheerios with 2% milk & honey
- greek yogurt
- grape fruit juice



Food

5 AM

- greek yogurt
- some black bean chips




lots of coding today.. got some decent stuff done. also added in moment.js via purescript-simple-moment to the code.. so now timestamps are displayed all pretty. however, i have to jump through some hoops to get those timestamps, which really sucks.. but that's the separation of the view from the eval function in a purely functional lang, i can't do anything with side effects inside the view.. so I have to created the moment-ified date strings in the eval function .... which means I have to created new fields for each data structure:

createdAt :: DateMaybe,
createdAtMoment :: String,

then I have to patch each data structure once I pull them in via the api with ajax.. I mean it's fine but, it's more work creating those fields and patching each data type after I pull it in. Don't see any other way around it though.. i'm locked in with no ability to communicate with the outside world, when i'm in these pure views.

HEHE

EDIT:

or....... create a pure version of moment, entirely in purescript. Then I wouldn't have to go through any of this trouble..

https://github.com/moment/moment
http://momentjs.com/docs/

that's alot of code for such a simple lib.. ;f I could probably knock something out that's much more simple and does the job just fine.

pc!

11972
Progress Journals & Experimental Routines / Re: ADARQ's journal
« on: April 05, 2016, 02:54:40 am »
He was a big fan of sickening vendetta + avishek = love

vendetta got a little nutty.. avishek just loves to experiment, but i think he knows what he really needs to do.

i saw a vid where i did sick3n1n.v3nd3tta hops, on adarqtv.. i should have unprivated it.

;f

11973
Basketball / Re: March Madness 2016
« on: April 04, 2016, 11:30:02 pm »
nova's coach reaction = solid

11974
Basketball / Re: March Madness 2016
« on: April 04, 2016, 11:28:29 pm »
OMFG#!@#@!!@$!

GAME WINNING 3 POINTER BY NOVA

 :wowthatwasnutswtf: :wowthatwasnutswtf: :wowthatwasnutswtf: :wowthatwasnutswtf: :wowthatwasnutswtf: :wowthatwasnutswtf: :wowthatwasnutswtf: :wowthatwasnutswtf: :wowthatwasnutswtf: :wowthatwasnutswtf: :wowthatwasnutswtf: :wowthatwasnutswtf:

11975
Basketball / Re: March Madness 2016
« on: April 04, 2016, 11:26:04 pm »
OMFG GAME TYING 3 POINTER IN THE FINALS WITH 4 SECONDS LEFT, BY PAIGE

 :wowthatwasnutswtf: :wowthatwasnutswtf: :wowthatwasnutswtf: :wowthatwasnutswtf:

11976
Basketball / Re: A Bunch of Ball Handling Videos
« on: April 04, 2016, 06:32:29 pm »
sticking this here because for a 7'1 guy, this is very impressive.

thon maker made the right decision going straight to the nba.. skills

<a href="http://www.youtube.com/watch?v=wPq6p21DAeA" target="_blank">http://www.youtube.com/watch?v=wPq6p21DAeA</a>

11977
Basketball / Re: A WHOLE BUNCH OF DUNKS AND SHIT.
« on: April 04, 2016, 06:07:24 pm »
DJ Stephens is insane. wtf. ridiculous bounce.

<a href="http://www.youtube.com/watch?v=7mtyht-iSRU" target="_blank">http://www.youtube.com/watch?v=7mtyht-iSRU</a>

<a href="http://www.youtube.com/watch?v=s1xc-XilVkI" target="_blank">http://www.youtube.com/watch?v=s1xc-XilVkI</a>

crazy ^^^^^^^^^   :wowthatwasnutswtf:



<a href="http://www.youtube.com/watch?v=waNepeu2Tg8" target="_blank">http://www.youtube.com/watch?v=waNepeu2Tg8</a>

<a href="http://www.youtube.com/watch?v=xBgIZnt0sFU" target="_blank">http://www.youtube.com/watch?v=xBgIZnt0sFU</a>

btl off of a made layup:

<a href="http://www.youtube.com/watch?v=SyFv7Erfes8" target="_blank">http://www.youtube.com/watch?v=SyFv7Erfes8</a>

<a href="http://www.youtube.com/watch?v=YuS3oOCLG3w" target="_blank">http://www.youtube.com/watch?v=YuS3oOCLG3w</a>

<a href="http://www.youtube.com/watch?v=DZ6DCdGmzCo" target="_blank">http://www.youtube.com/watch?v=DZ6DCdGmzCo</a>

11978
Basketball / Re: A WHOLE BUNCH OF DUNKS AND SHIT.
« on: April 04, 2016, 05:48:45 pm »

11979
Progress Journals & Experimental Routines / Re: ADARQ's journal
« on: April 04, 2016, 02:11:18 pm »
dammit. adductors too sore to jump etc. going to rest another day.



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!

Here too. I had a friend, djoe, who used to be on TVS and also here, that told me back in the day that "you don't have any chest AT ALL" and I was like "why would I?" :D

He's in the UK now, btw (or actually, he might've gotten back to Romania to have a farm).

ahh, i remember djoe.

11982
Progress Journals & Experimental Routines / Re: ADARQ's journal
« on: April 04, 2016, 06:07:03 am »
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!

11983
Progress Journals & Experimental Routines / Re: ADARQ's journal
« on: April 04, 2016, 05:56:42 am »
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!

11984
Progress Journals & Experimental Routines / Re: ADARQ's journal
« on: April 04, 2016, 05:17:12 am »
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

11985
Progress Journals & Experimental Routines / Re: ADARQ's journal
« on: April 03, 2016, 03:09:24 pm »
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

Pages: 1 ... 797 798 [799] 800 801 ... 1505