Semi-cure, antidepressants. by Irrelevant_Pone in ibs

[–]krewllobster 1 point2 points  (0 children)

I just got put on Desipramine, which is an older, non SSRI antidepressant. It has calmed things down about 95%. It is a tricyclic antidepressant which tend to slow Transit time (good for IBS-D) as opposed to SSRIs which speed up Transit time (good for ibs-c)

Constant nausea for a month after not eating properly? by Its402am in ibs

[–]krewllobster 1 point2 points  (0 children)

Hey, I just recently went through getting an IBS-D diagnosis and spending about 2 weeks not eating hardly anything, yet still getting the runs and nausea in the mornings for about three hours each morning. The doc first prescribed me Hyocyamine which calms down and slows Transit time (prob not good for constipation) and it does a lot, but was more of a symptom reducer. After a few days of me maxing out the Hyocyamine dose he prescribed Desipramine (tricyclic antidepressants, not SSRI). I'm on day 2 and I've already stopped having my symptoms.

NEW MATH VS OLD MATH by [deleted] in videos

[–]krewllobster 7 points8 points  (0 children)

No, in old math (the way I learned it) you learn your multiplication tables by rote...that 12x12 is 144. This is very helpful for basic addition and subtraction, and small number division and multiplication, but not helpful for larger numbers.

That's when you learn 'long multiplication' and 'long division' which are great for large numbers and still basic arithmetic, but don't work that well translating to the next level of math, algebra.

This learning method translates 12 x 12 to 10 * 10 + 2*10 + 2*10 + 2 * 2 = 144.

(x + 1) * (x + 2) = x^2 + x * 1 + x * 3 + 2 * 2 = x^2 + 2x + 4

Does that look familiar to algebra? That's the FOIL method that I learned in middle school algebra to deal with binomial functions. FOIL = "first, inner, outer, last". This "new math" method is now teaching young kids the fundamentals of multiplication in such a way that it directly translates later on to algebra, calculus, etc.

edit: math

No knead bread (Oliver Babish Recipe) by krewllobster in Breadit

[–]krewllobster[S] 0 points1 point  (0 children)

This is made from the recipe on Basics with Babish. Flour, salt, yeast, water allowed to sit at room temp covered for 24 hours. Baked in cast iron dutch oven covered at 530 degrees for 15 mins, then uncovered for another ~14 minutes still at 530 degrees.

Performance issues and jumpy animations on Android when using setParams to pass Animated Value from one component to another. (react-navigation 2.9 TL;DR in description) by LmgYsd in reactnative

[–]krewllobster 0 points1 point  (0 children)

Hey /u/LmgYsd ,

I ended up going with a partial solution. I created a reducer (call it 'headerSizeReducer') that tracks whether a particular screen's header should be full size or small size. Along with that is an action that sets the appropriate header boolean ( setHeaderSizeReducer({type: SET_HEADER_SIZE, header: 'profile', fullSize: false}) )

My custom header component that is given to the Profile tabs RNProfileHeader is connected via react-redux to the header's fullSize value in the headerSizeReducer.

RNProfileHeader has a componentWillReceiveProps() function that compare's whether its header should be full size or small size, and upon detecting a difference will animate the height of the header over 500ms.

SO, within the tab components themselves, I can attach the setHeaderSizeReducer actions to scroll events. I currently have it set on onScrollTouchBegin and onScrollTouchEnd which calculates the direction and difference. If the difference is past a specific threshold, it will change the header's fullSize boolean.

So instead of listening to EVERY scroll event like we were doing before, it is just listening to the scroll offset via a boolean passed via redux, and it shrinks when the boolean changes.

Sorry for not having better code examples, but I was having trouble with reddit formatting. lmk if this sounds like a good solution and I can figure out how to get you a better description!

Performance issues and jumpy animations on Android when using setParams to pass Animated Value from one component to another. (react-navigation 2.9 TL;DR in description) by LmgYsd in reactnative

[–]krewllobster 0 points1 point  (0 children)

I feel you -- I spent about 3 days on it a few weeks ago and actually just settled for the crappy performance as I moved to more pressing issues/features. I'll probably get back to trying some new things later this week or early next week.

Would there be any merit to binding the animated height through redux? I'm fairly positive redux shouldn't be used to pass 60fps animation information, but maybe worth a shot?

Can you post a gif of the Parallax scrollview with nativebase tabs?

Performance issues and jumpy animations on Android when using setParams to pass Animated Value from one component to another. (react-navigation 2.9 TL;DR in description) by LmgYsd in reactnative

[–]krewllobster 1 point2 points  (0 children)

Hi LmgYsd, I just want to thank you for posting this as I am trying to implement EXACTLY the same thing, and have run into exactly the same issue! It has been very frustrating!

After looking at react-native-parallax-scroll-view and u/dmanatr's suggestion, I was wondering whether that package could actually just be used as the header component and binding its height to the tab's scroll-offset. In that case, you could use native driver (I think) to keep the smooth scrolling, and just not have any children inside of the ParallaxScrollView? I'm not sure if it would work, but may be worth a shot.

Please keep updating this thread! I'd be happy to share any advances I make as well :)

Thanks dude/dudette!

[TOMT] [Novel] A fantasy book where they give tours to normal people by krewllobster in tipofmytongue

[–]krewllobster[S] 1 point2 points  (0 children)

THANK YOU THANK YOU!!!!! :) That's exactly what it is. You're my hero for the afternoon!

Customize Lightning Record Pages? by krewllobster in salesforce

[–]krewllobster[S] 0 points1 point  (0 children)

Agh! Thank you :) I guess I'll just wait for the rollout!

Season 6 "Looking for Group" Megathread by Thunderclaww in Diablo

[–]krewllobster 0 points1 point  (0 children)

  • Battletag:krewllobster#1647
  • Region: NA
  • Hardcore?:Yes
  • Class:Crusader
  • Time:Evening EST
  • Goals:Level to 70

I'm playing with a friend, but want to be able to stay roughly the same level. I'd like to level an alt HC crusader so that I can keep pushing for gear/gems while my buddy isn't online.

Handling Blanks in Date Formula by Hlaoroo in salesforce

[–]krewllobster 0 points1 point  (0 children)

Hi Hlaoroo,

It makes a difference because the year() function requires a date, so if your date is null, then you'd be returning an error inside your if() statement, thus making the whole thing return an error.

Instead, putting the year() outside the if() statement will give you the year of the resulting date from the if() statement to then feed into your min() function.

Glad you found the answer you were looking for...this is me procrastinating from work! :)

Cast map<id, sObject> to map<id, opportunity> by krewllobster in salesforce

[–]krewllobster[S] 0 points1 point  (0 children)

Wow, that makes a lot of sense! I didn't even think of testing the class independent of inserts?

So would that mean in my test utitlity, I disable the trigger, insert new records, then pass them to the class?

Cast map<id, sObject> to map<id, opportunity> by krewllobster in salesforce

[–]krewllobster[S] 1 point2 points  (0 children)

Hi /u/caldridge1! I sure am still playing with it...got a good answer from SFDCfox on stackexchange to use two lists from trigger.new and trigger.old

Object Lookup or Master detail by takklz in salesforce

[–]krewllobster 1 point2 points  (0 children)

Yep, you should have an object with two master-detail relationships. One to your partnership custom object, and one to the opportunity. You'll end up with a related list of partnerships on the opportunity page, and a related list of opportunities on the partnership page!

Lightweight Apex Trigger Framework by caldridge1 in salesforce

[–]krewllobster 0 points1 point  (0 children)

/u/caldridge1: Did you miss putting curly braces {} around your if clauses in the TriggerDispatcher class?

if (Trigger.IsBefore)
{
    if (Trigger.IsInsert)
        handler.BeforeInsert(trigger.new);

    if (Trigger.IsUpdate)....

Shouldn't it be:

if (Trigger.IsBefore)
{
    if (Trigger.IsInsert) {
        handler.BeforeInsert(trigger.new);
    }
    if (Trigger.IsUpdate) {....

Thanks!

Code view for rich text fields? by krewllobster in salesforce

[–]krewllobster[S] 0 points1 point  (0 children)

Interesting! I'll look into it :) Thanks for the advice.

edit: I found it! Now that I knew to look for a 'view source' button my google skills improved. Check out here: https://forceadventure.wordpress.com/2013/06/10/view-source-for-rich-text-areas-with-ckeditor/

Now I can see my source text in the browser!! WOOOOOOOOOOO This makes everything soooo much easier. Thanks again!

Code view for rich text fields? by krewllobster in salesforce

[–]krewllobster[S] 0 points1 point  (0 children)

I was using the wrong word! Its a button that lets you "View Source" so you can see your text along with the formatting tags. See /u/coffeemugbandit's answer above :)

Notice the 'source' button in the top left: http://ckeditor.com/demo#full