Hi, beautiful. I feel like I'm back in school. I've been studying rice water all damn day long. I've looked up everything, I've researched everything, so hopefully I bring you the most accurate information possible today. Rice water has become such a huge thing lately. It is everywhere, and I wanna get to the bottom of it. Why are there people obsessed with it, and is it really growing your hair faster, longer, healthier, and stronger? And should you be using rice water on your hair to make it grow? Rice water seems to be that... The Yao women in China use this technique to grow their hair to extremely long lengths. They're actually known to have the longest hair in the world. So today we're gonna have some fun with rice. I'm gonna show you how to make this concoction and put it on your hair and show you what happens and how it works and what's the science behind it, if any. You guys know I always tell you the truth about these things. Do I really like them or do I really not?   Let's do it. Lesson one, what is this? And why is it good for your hair? So rice, it's actually quite a good thing for you.  However, I've never put it on my hair and it seems pretty interesting. It's filled with amino acids, vitamins B and E, and also minerals and antioxidants. You're getting a moment of a lot of things going on this hair and a lot of those things are included in many products you're using your hair today. So that's great. I mean, I love a natural way of getting things that have been produced in the hair care market. So I think this is cool. It sounds great so far. Everything I've been hearing about the ingredients sound legit. So advocates who use rice water a lot believes that it detangles your hair quite nicely. It also can make your hair very smooth and silky and soft. As you can see in this, yeah, women, they have a very shiny, beautiful black hair and that's how they claim they keep it that way with this rice water concoction. It also makes hair very, very strong. You can pull it and pull it every which way and it won't snap. It'll be beautiful. That's good for people with any kind of damage in their hair, right? So it seems legit. It also stimulates new hair growth and makes your hair grow faster. Those were my findings and I don't know sometimes I don't know if I believe that. That seems like a little bit too good to be true for a little bit of rice and a little bit of water.  It seems like a little crazy. You know what you think Emma? Yeah, it sounds wild. Can I get the enthusiasm? Oh my God, that sounds unbelievable. Unbelievable. Like that's just unbelievable. So we have the women to thank for this. They actually use this method to wash their hair once a week from my research. That's what they do. Their hair is actually so long. They cut their hair only once in their life when they're 18, believe it or not. That is like them turning into a woman. That's what they do.  So it is literally to the floor on some of these women and they dip their hair into this rice water solution. They then rinse the rice water out in the river. Pretty cool. I'm down for that. Washing your hair as much as we do in this modern time is actually not really supposed to be a thing and shampoo is man-made obviously and you don't exactly need it to survive. However, many of us, most of us have become very dependent on shampoo but these women claim that they do not use any shampoo and they do not need it and that is why their hair grows so fast. Before we start making this concoction and show you how to do it, maybe you're wondering if you're like me and you're a huge skeptic about anything like this. Is there any studies going on? Do we know if this is legit? Kinda skeptical, kinda weird, sounds freaky. Why are we putting rice in our heads? Emma, would you put rice water on your head? I mean, after a year and all these reviews, yes.  Yes, that's a yes for me. Yes or yes? Yes. Oh, wow. There was a paper in 2010 that was published because of a company trying to promote their new hair product so they did this research to go with that. So, you know, you don't really know how legit the research is when it's backed by a product. The author noted that rice water may increase elasticity of the hair. So that's pretty cool. At least there's been some sort of research done about this because when these kind of like weird concoctions come up, I'm like, hmm, but do we know? However, the study relies heavily on historical examples to prove their point. So we're kind of like not really getting too much research here. It's definitely like, hmm, it could work. It could not work. It's still kind of up in the air. It works for you and it works for the young women. Maybe we're onto something. So how do you make it, Brad? Can we get into that already? I'm waiting for it.  Like you're so annoying.  I'm sitting here. I'm doing calculations and research. Everybody does a different thing. Oh, it does rice water. I don't know who's right. However, the young women, I watched a video with them doing it and I trusted them the most. They're the ones who like created this technique. So I'm gonna use their technique. So I'm gonna put rice in a bowl with some water and then I'm going to drain out the water. That is just to cleanse the rice. I'm gonna put water with the rice again and I am going to scrunch into my fingers, clean it all up and it's supposed to be really, really nice and clean. This is what the young women do. After that's done, you can drain that water out. Now they don't really tell you how much rice and how much water to put in this bowl, but I'm gonna do one part rice to two parts water.  That's fine. They don't really specify either on this, but we're gonna guess today.  Now the young women don't just do the rice with the water, right? A lot of these treatments online, that's what people do. However, people say it stinks. People say it smells really bad. I don't wanna just smell bad and I want there to be more nutrients in here than just some rice. They also add a pomelo peel and apparently the grapefruit is the closest to that that you can find in America. So I'm gonna take the peels of a grapefruit here and I'm gonna cut that up and add all the peels into my little concoction over here. After that, I'm gonna add a little bit of essential oils. You can really add any essential oil you want. I'm gonna be adding eucalyptus today because I want that minty beautiful smell and just a few drops will do. Once that's all in the jar, I'm gonna let that sit for one week. According to the young woman, fermenting it is what you must do.  So we're gonna let it ferment for one week. You can let it ferment for longer than that, but that is what the young women do. I'm gonna follow the young women because they are here for me today. So once we come back after a week, I'm gonna take it out and I'm gonna strain it and that is the beautiful magic power water that we've been looking for that is it. And all you gotta do now is apply it to your head. Now, the young women, like I said, they wash their hair with this. So they're not washing it beforehand or after. What I'd recommend is using a very gentle shampoo if you must just on your roots where it gets kind of oily, not on your ends, nowhere else. And just do a little cleanse. We don't wanna get our hair really, really clean before doing this. The purpose is for it to be a replacement of washing your hair according to these women. And so we don't wanna overwash it or else it'll really dry your hair once you use the rice water.  Now, they also say to leave this on for 20 minutes on your hair. You can leave it on longer, but I would recommend 20 minutes since that is what these women say they do and I'm going with that.  Now you can rinse it, well, just don't overdo it, it's okay to have a little bit left on there. Get it out. Now, the young women use this on their hair to wash it once a week. This is the only thing they use and they use it once a week. So if you're wondering how much you should do this, I would say once a week or once every two weeks. However much you use it, I'm sure you'll see some benefits. So that's how you do it guys. That's how you make it and I hope you try it out. I hope it works for you and if it does, let me know. Now, you might be wondering, Brad, well, I mean, I heard you talk about it. What do you personally think? Would you use this on your hair? I would use it on my hair, yes. Do I recommend it for you? I would say yes and no. It's probably amazing for the young women to use this on their hair. However, we do have a lot of hair care to offer in America and throughout most of the world. So if you have access to great hair care that's backed with a ton of research and science, a part of me really just wants to say, use that. I don't know if we need to be fermenting rice water for a week and putting on our hair in order to get benefits. I'm not sure if it's any better than using something that is store bought. There's very minimal research done on this and the benefits that come from using rice water like vitamin E, B, antioxidants, stuff like that can all be found in a lot of hair products on the market.  It's not gonna make your hair fall out. It's not gonna do anything bad to it, I'm sure. So I say go for it, try it out.  That have great ingredients and they're from a great brand. I think you're gonna get just as much benefits from that as you are the rice water. I know everybody wants this miracle cure to growing hair but I'm here to be the one that's realistic about things and just give you my take on it. You don't have to agree. However, that's how I feel and I'm sticking to it. Use it or don't use it, it's up to you. I don't mind it, I don't hate it but I think there's stuff that's out there that's a little bit easier to use. Well, if you made it this far in the video, I have a little fun fact for ya. You know what's crazy and so interesting? I told you guys that the young women cut their hair at 18 as kind of like them coming into their womanhood is what I got from my research could be incorrect but we'll go with that for now. They actually keep that hair and they use it as like an extension piece for their hairstyles for the rest of their lives. I know, it's crazy. They wrap their hair up, they connect their ponytail from when they were 18 on there and they wrap it with it. Yo, so they were basically the inventors of hair extensions is what I'm getting from that. It's pretty cool. Rice water, pretty cool, but you know. If you guys aren't already subscribed, make sure you do right down below. Click the like button and the bell icon to be notified every time I post a new video. You guys can text me at this number right here. Yes, it is really connected to my phone. Yes, I really use all your messages and yes, I will be texting back a few of you if you text me right now. It'll also notify you every time I post a new video. If you guys like to follow me everywhere else here on my social media handles, go for it. Thank you very much, thank you, thank you, thank you. I also have a new Live Your Extra Life merch. It is right here, look how fun it is, dude. I wear this literally all day, every day around the house. You can shop the merch with the link right down below. If you guys like this hair color, super blue or any of my hair colors, you can shop at xmodohair.com or head to our Instagram, xmodocolor to check out what we have going on and brand new launches happening. You can also check out my haircare brand, xmodohair, at xmodohair.com and also on Instagram, at xmodohair. Today's Instagram shot goes to court.  I also am worried that I can't get it out once I feel like having my blonde back. What would you do right here? I'm sorry, you're just giving me pink vibes and over the blonde that you already have, it would look amazing. If you're worried about it going back blonde after and it not all coming out, just do a very, very, very pale pastel pink.  If you try that, I would love to see it. Send me a picture and good luck. Thank you guys so much for watching. Don't forget to live your extra life and I'll see you next time. Bye guys.


Hi, everyone. Thanks so much for coming to my talk and lasting out through 4 o'clock on the second day. So if you don't know who I am, I'm a clinical psychiatrist. I'm not a researcher. I have a tiny fingertip in academia. I do teach the introduction to psychiatry class, interviewing part at Harvard Medical School. I have a hobby, which is my blog, which is why I'm here, which is evolutionarypsychiatry.blogspot.com. My disclosure is I am paid for my evolutionary psychiatry blog at Psychology Today online. But I don't have any research interests. I don't have stock that I'm aware of in pharmaceutical companies, et cetera. So I'm going to talk about what not to eat. And when I originally did my presentation for the brochure, it was supposed to be for 40 minutes. So I have 20. So I cut back what we're going to talk about. But I just have a couple of things to talk about. And if you have questions, I'm really interested in the research. And if I know about it, I'll let you know kind of all the latest stuff. So if you have a particular question about an anti-nutrient or something, we're going to start out about with trans fats, which everybody know I'm speaking to the choir here. But everybody knows that these are bad, but it's sort of describing why and how to kind of keep avoiding them even now. They're formed primarily from the partial hydrogenation of vegetable and seed oils in our standard American diet. The one at the top, more biochem, is linoleic acid, which is the primary omega-6 fatty acid in corn oil. And that does not look floppy. But in the real life, it's very, very floppy. And the bottom one is a saturated fat steric acid, which, in the right configuration, stays fairly rigid and stiff and has some nice properties in the membrane. The middle one is what happens if you take a polyunsaturated fatty acid and you inject hydrogen on it. And as you can see, it goes from these cis bonds, which are up there, cis just means like that. They make a little house to a trans configuration, which is like this. And it looks a lot like the saturated fat. So it has nice properties for your Pillsbury biscuits and your crusts, and taking those heart-healthy vegetable oils and making them into nice, stiff margarine. But our bodies can tell the difference between steric acid and the trans acid. And our bodies know that it's not supposed to look like that. And it screws up a lot of stuff. And it's also highly correlated, if it's in your membranes, with sudden cardiac death, which is not that common, but pretty dramatic when it happens. They're found in baked goods, fast food, margarine, commercial icings. Fortunately, in the US, finally, they got around to the FDA came out and said that trans fats from industrial processes are unsafe at any level. And they started to make people label them. And at that point, the amount of trans fats and the food supply dropped precipitously. In 2008, California became the first state to ban restaurant chains. In some cities, such as Philadelphia, Baltimore, New York City, and Boston and Brookline, which I learned yesterday in the law presentation, they've also banned or severely restricted the use of trans fats in restaurants. But the caveat is, is some institutional foods, like the big vat of vegetable oil or margarine or whatever they might be sending to your school or your hospital or this, they're not required to label it. So you may still find significant amounts of trans fats in your restaurant foods. Some of these cities have that ban, but it's not true of the entire US. However, because I think of mostly the bans in the foods at your grocery store, or at least the forced labeling, the US population-wide sampling of at least white male adults actually showed a 58% decrease in the plasma levels of trans fatty acids between them measuring in 2000 and 2009. And this was in many, many states they measured this. And in Denmark, they banned them earlier and they've noticed a precipitous drop in the rate of sudden cardiac death. That obviously all these are confounded, but trans fats are probably a part of that. However, I know that some of us like to cheat every once in a while. I know I do, but I was alarmed when I found out there was kind of a big expose in February of this year about trans fats that are still available in the food. And I don't always, and maybe you don't always read the labels. Some people always read the labels, but some of them, the Marie Kaliner's dessert pies, Pop Secret Popcorn was a big offender here. Walmart Stick Margarine, Pillsbury Biscuits. I used to love those when I was young. And Long John Silver's Fried Foods, they topped the list with seven grams of trans fat per serving. Which is a lot. And you can also round 0.49 grams of trans fats down to zero grams on the label. So I'm always suspicious of those Doritos packages that say zero grams trans fats. Cause if they throw in a lot of vegetable oil in there and frying it, I don't know, anyway. So what gets confusing and what I did wanna clear up for myself as well as everybody else are these ruminant trans fats. It's actually a different trans fats. It's a vaccinic acid and it's the top one. And it's found in grass-fed butter, breast milk and all of your dairy products. And it's higher actually in grass-fed products than it is in corn fried products. And the industrial trans fats are this oleic acid, which is on the bottom. You can't tell a whole lot of difference between those, but apparently our body has. The problem with the literature is that they often put these together, particularly in the scanty mental health literature. So, but in animal studies, it's very clear that the bottom are nasty and the top seem to have some protective anti-cancer benefits, at least. And so what do they do?  So if you have all these weird, strange looking, creepy fats that are in there, it's gonna cause membrane and communication problems. There's some evidence that a lot of the membrane problems regulate causes of obesity, diabetes, and all of these issues, because the membrane is scrambling to change its configuration to help the signaling be good. So if you have these weird fats that it's not really aligned with, it'll do some things to try to get the signaling to go through, and some of these things will result in inflammation and issues and problems. And I think the biggest problem, or a bigger problem is that it seems to displace our very, very important omega-3 fatty acids from the diet, which are already rare. Displacing the omega-6 fatty acids probably isn't that big of a deal, because we eat so many. But displacing the N3, getting trans fats instead of your omega-3s, it's really bad for your brain. And all we have, there's not a whole lot of data with mental health, but I just wanted to go into it. It's been linked to depression and observational studies. Those studies did not differentiate between the ruminant and the fried trans fats, but in the US, most of our trans fats are from the margarine and those kinds of foods. Fast food is also linked to depression, bipolar disorder and ADHD, except in Germany, where fast food is actually not linked to depression, but the opposite. And low omega-3 is linked to ADHD, depression, psychosis, and dementia. So this summary, we know they're unhealthy, they're still unhealthy. The bands are good for the population and I think one way of regulating that I think is actually a good idea, force them to label it so that you know what you're eating and you can make your own decision. And if you're going to eat processed food, maybe avoid the pop-secret popcorn or at least look at the labels. Maybe the February expose cause them to change their minds. But in long done silvers, I'm not gonna be eating there anytime soon. And I wouldn't worry about trans fats from ruminants. So the next thing I'm gonna go over is the carbohydrates. I hope we don't have shell shock from that at the end of the day. And all I can say for the literature describing how carbohydrates affect mental health sort of is a general rule. It's basically all over the place. The studies all have different designs, different kind of people who started it. Sometimes carbohydrates are things like soda or glucose infusions and sometimes it's rice. Sometimes they're in mixed macronutrients and so it's really hard to kind of sort out. But the main linkages that they found is people who are vulnerable to hypoglycemia or more likely to be violent end up in jail and be very irritable. And caffeine and alcohol will exacerbate this blood sugar drop.  They fast all day, they go out to the bar. They have their Red Bull and vodka. 90 minutes later they are being pulled to jail for a knife fight or whatever. And there's actually quite a bit of literature linking the violence angle. I was surprised by how much there was and I'm wondering how many lawyers are gonna start to do oral glucose tolerance tests on their clients. So low blood sugar will cause a surgeon stress hormones which will, maybe you can be stronger and faster but you'll be anxious and aggressive. And when you really look at it, about one in 40 people will have a truly low blood sugar, meaning we'll go down to the 40s after a bolus of a pure carbohydrate meal. Proteins and fats tend to ameliorate this effect. And other people will notice changes, anxiety, issues with blood sugars in the 60s which is much more common. And I'm actually a person who if I eat pure carbohydrates, the sort of sugary stuff about 90 minutes later you do not wanna be around me a majorly cranky. I haven't done any violence that I'm aware of.  And they also tend to be the biggest drinkers. In the possible mechanism, low levels of brain serotonin are associated with enhanced insulin secretion which increases the tendency to develop low blood glucose levels. And then the only other literature, again it's pretty scanty, women with PCOS, they notice they tend to have bigger blood sugar swings and reactive hypochlycemia kind of feelings in 90 minutes after a high carb meal, feeling just really nasty and low and shaky and more likely to engage in binge eating. Now women with PCOS aren't necessarily insulin resistant. There are a number of reasons for PCOS but a lot of the time they are. And in women of normal weight with PCOS, as we've talked about in Chris Masterjohn's presentation today, et cetera, you tend to, the obesity may be a compensation in helping regulate these insulin and things. And so if you're normal weight, you don't have that compensation. They tend to have more wild fluctuations in their blood sugar and have more of this effect. And interestingly in a study of diabetics, blood sugar was not correlated to mood at all except the day after they were stressed they had higher fasting blood sugar the next day. Which makes sense because if you're stressed you're shooting out cortisol which increases your blood sugar, et cetera, et cetera. So the weird thing about carbohydrates is that there are these very famous doctors from MIT, the Wurtmans and Harvard I believe who have this book called the serotonin solution and they recommend that you eat lots of carbohydrates, pure carbohydrates and marshmallows, that kind of thing on an empty stomach to help give you a surge of serotonin into your brain and make you happy and contend that low carb diets cause depression. Carbohydrate ingestion does lead to an increase in insulin as we talked about before. It drives some amino acids into the cells that causes tryptophan to be shuttled through the blood brain barrier. It's a relatively rare amino acid and it's the precursor for serotonin and melatonin. And adding protein to meals does kind of decrease this effect unless you do it with tryptophan supplements which people do to rats and athletes and things. Proteins and rice have enough protein to undo the effect in some studies. So we're really talking about marshmallows, lemonade, really kind of a natural, pure, pure carbohydrate foods that you wouldn't really find as much in nature. Eating carbohydrates before bed has been shown in small studies to decrease sleep latency which is the difference between when you go to bed and fall asleep so you can either toss and turn for 15 minutes or if you're within 15 minutes is considered a good sleep latency. And it's probably because the carbohydrates could increase tryptophan into the brain which becomes serotonin which becomes melatonin which tells you to go to bed. So four studies lasting from one week to one year directly comparing low carb diets to high carb they showed better mood and increased serinity in the high carb dieters but each study had some real problems. The one week study was in cyclists and I can't think of anything that would make cyclists more cranky than suddenly depriving them of all their carbohydrates and studying them for a week before they become used to the new diet and then this is terrible. I feel rotten and I can't, I'm bonking. And then the one year study which hopefully would have given us some actual real data unfortunately in the low carb arm they had twice as many people in antidepressants. Now they swear in this long convoluted paragraph in the paper that if they take all the people in antidepressants out of the study it didn't change the final but there weren't that many people and there were 12 people in the low carb arm on antidepressants. So I wish they had randomized them better so we'd have better data from this study. And most of these short studies, very short studies trying to figure out these effects they use glucose drinks or they might use high GI rice versus low GI rice.  Like I was when I was eating you know Skittles for a meal when I was 17 and being really cranky 90 minutes later. So sugar, sugary snacks, candy and soda may be an exception especially to these vulnerable young brains.  The study compared to 41% diet which is kind of a regular middle of the range diet versus the 25% fat diet should better move less tension and less hostility in the higher fat diets but that's not a high fat low carb diet it's just kind of a normal diet.  And also a bunch of people have something called fructose malabsorption which is very interesting. And in this the small intestine glute five transporter doesn't take fructose variant very efficiently. So what happens if you eat a bunch of fructose sugar high fructose corn syrup, soda, watermelon and other high fructose things it goes down kind of isn't absorbed and it goes down and feeds all the bacteria and your colon which go whee and they're like so excited and they get so much to eat and they bloom you can get kind of gas and kind of crampy and have some loose watery stools but it's also highly correlated with inflammation low serotonin and depression which is interesting and nobody knows about this it's literally 30 to 50% of folks of Western or Central European ancestry and 15% of these other ethnic backgrounds in the US alone that's 60 million people it's tons of people and the incidence of depression in the US is about 10 to 20% at any given time so we're kind of overlapping these things how many people don't drink soda or don't drink fruit juice at all? Maybe a lot of people in here so these high fructose and high sugar foods are gonna be problematic and many vegetables in the very sensitive and wheat products wheat actually does this too wheat has fructans which are cleaved off and they act the same way as they're digested and they can feed the bacteria and it seems to again cause inflammation and intestinal blooms it doesn't necessarily cause these IBS irritable bowel syndrome kind of symptoms but eating starch interestingly enough can increase the uptake of fructose so if you have a banana which is much more starch than glucose a ripe banana anyway then even in people with fructose malabsorption they can seem to tolerate that and absorb a higher amount through their Glute 5 transporters and it's especially prevalent the correlation with women maybe this is why women are much more vulnerable to depression than men whether or not carbohydrates affect your mood then whether you love your marshmallows or you hate them and you feel cranky will depend largely upon the context your gender, your biochemistry, your micronutrient status whether or not you have really good Glute 5 transporters or not maybe whether or not you have a high number of copies of salivary amylase there's a lot we need to know about this and in general I would tell you to avoid marshmallows particularly on a fasted marshmallows I would avoid micronutrient poor foods soda, juices, candy and processed carb heavy snacks in many studies however in general if we have to take what we have which isn't much people are happier, sleep better and more serene with some carbohydrates on board but the rigorous studies that I would really be interesting comparing these fat adapted low carburs with the dieters, you know the dieters eating natural safe starches sigh, have not been done and I'm pretty sure that's the end we have time for some questions apparently I've worn everybody out it looks like any science behind higher protein higher fat kind of diet and serotonin or dopamine levels in the brain the only, there were some studies there in young college men that did correlate tryptophan levels with the, they actually fed them lean cuisine with different rices some of them low GI, some of them high GI that's the only thing I'm aware of and in rats they can make them serotonin toxic to where they scratch themselves to the point where they have a deadly ulcerative disease with a high carb diet and tryptophan supplements so I don't know if that answers your question but yes? Emily, so let's say I get a typical 40 year old woman that comes into my office with mood issues, depression where do you start, what are kind of the basic steps that you could do? Well, you know for talking I kind of try to make sure that they're not vitamin deficient and you really kind of take a full bore approach really get a detailed psychiatric history obviously we're kind of talking about fructose malabsorption if she has IBS symptoms, et cetera you can do a test it's actually fairly easy a fasted test, you drink some fructose and then you measure hydrogen that expelled hydrogen in your breath I'm not aware of anybody who does this except some GI docs but in general they will defer the testing and just say stop eating like a jerk take out the soda don't have juice all the time and see if that improves your IBS symptoms and they've done low fructose diets on people with fructose malabsorption with depression they found that clinically that their symptoms improved so we do know from a randomized controlled trial that this can be an effective treatment for depression however it was just a very small trial in Germany I'm not aware of anybody who knows about this it could be millions and millions of people in the US so I'm excited about going out to I'm going to speak at Grand Rounds and other places around Boston where people will be doing research and so they might be interested in this though it's not going to be funded by Coca-Cola is that answer? I would tell them, the first thing I do is say oh especially if you have, I talk, you know high sugar diets and soda can cause the bacteria I talk about the bacteria in blooming it's kind of visual and they're like oh yeah there feels like they're you know maybe it's not entirely accurate but people like that and I say try taking it out for two weeks no soda for two weeks, no fruit juice no watermelon and see if that helps so some people will need the more fructan avoidance entirely diet which is actually pretty you do avoid onions, garlic, Jerusalem, artichokes I don't know how many people eat those but plus wheat products you know things like bread that have high fructose corn syrup in them, things like that so it can be pretty strict but people have a lot of improvement if they have IBS and they're sensitive to the fructans and VODMAPs yeah? What sort of research have you seen on artificial sweeteners and serotonin and dopamine signaling? That's a great question and unfortunately though I I've looked sometimes for that but I haven't found it it's hard to, I haven't found anything in humans Do you know of any studies that will be done to talk about those artificial sweeteners and what they're doing to our brains and if that's been maybe the cause of depression on low carb diets or whether it was the low carb diets themselves? That's a great question and I wish they would do the research I don't know Okay, thanks


Hello, this is Hans van der Kost, Senior Lecturer at IHG Delft Institute for Water Education. In this video I'm going to show you first how to iteratively clip a raster using several polygons and secondly how to do that in the graphical modeler. In this example we use a digital elevation model as a raster and we use a subcatchment polygon layer as the polygons that we want to use to clip the raster with. So in the raster menu we can find under extraction clip raster by mask layer. We can choose the DEM as the input layer, the subcatchments, polygons as the mask layer and there we have this option, iterate over this layer and then the outputs will be generated for each polygon separately. We can assign a no data value, check keep resolution of the input raster and here we don't give an output name because it will iterate and give it automatically. So here we see that it does it automatically, that saves a lot of time. So the result is there for each subcatchment polygon. Now I'm going to demonstrate how to do that in the graphical modeler. Let's create a new model and it's important that you use the vector features input option and not the vector layer one. Only when you choose the vector features you can choose the iteration option. So subcatchment polygons, geometry type polygon and we add a raster layer, make it generic for any input raster layer, you can later use it to clip a land cover or other features. Then we use that clip raster by mask layer tool, choose the input raster and then the subcatchment polygons and this resembles of course the tool that we used before. So we add the no data value and then it would be nice to see what happens if we calculate something from that output because it will be iterated. So let's calculate the slope. So normally if we don't iterate we'll get one slope map, we indicate that the output name is the slope layer, so the outputs indicated in green, inputs in yellow and then the tools are in white. Let's give our tool a name and a group to which it should belong in the toolbox and we save our model. So we find it here, let me first remove the previous outputs that were generated. When we run it we can choose the input raster layer, the DEM, the subcatchment polygons and there I can check that button to iterate and it will perform our analysis for each subcatchment. And there we have the slope for each subcatchment. So that's a very useful tool if you want to iterate over polygons and apply some analysis on each polygon separately. If you've enjoyed the video please subscribe to my YouTube channel and receive updates on new videos and for more free materials you can go to the IHG Delft OpenCourseWare at GISOpenCourseWare.org


Hello, welcome to this week's CMC Markets Commodity Snapshot, we're going to be looking at WTI Crude Oil. Now just yesterday there was a significant economic report that could be changing the trend in oil and we do have a technical chart pattern that could support it so we want to dig further into that. So a report released on Wednesday showed that US oil inventories actually saw a build for the first time in nine weeks. We're expecting a drawdown, basically we're expecting US production to slow down but demand because of the summer driving months in the US to increase and so stockpiles should actually come down but they actually increased and again just brings about this worry of a supply glut and when you look over to the Middle East and the OPEC producing countries they're all increasing their production so again this same same supply demand dynamic for oil is coming back into play. Now since mid-March the oil price has been on quite a tear higher but it topped out around mid-May and we've not made any progress beyond $61 a barrel in WTI and so there are signs now that prices could be starting to break down and so we want to look a bit closer at the chart now to see if that has any merit. So this is a daily candlestick of Crudall West Texas and so you can see the horizontal line drawn through around $61 per barrel and that's been capping the price action. You see this 200-day simple moving average swooping in from above. Price has touched on that and moved down since broken below the 50-day moving average and has also broken this rising trend line connecting these last three sets of lows and it's also corresponded with a break of apparent support in the RSI at the bottom of the screen there. So a few indications to suggest that this upward trend is beginning to end and we're actually seeing a break lower which of course does correspond with the idea of increased supplies stemming from this latest US inventory report. Now should be aware that there is still potentially a bit of support coming in from around the sort of 54 to 56 area from these same lows that have been used to connect this rising trend line. We're still broadly in a sort of small range bound environment so there's chance of a sort of false break lower and a snapback into the range but indications for now suggesting we could be in for a break and that could be meaning that could mean a retest of $50 per barrel and perhaps even lower in West Texas crude oil. That's it for this week CMC Markets Commodity Snapshot. We're looking at West Texas crude oil obviously and so just keep an eye on those inventories reports from the US and see if this break lower in the price action can continue.


From the Amazon Meeting Center in downtown Seattle, it's theCUBE, covering Imagine a Better World, a global education conference sponsored by Amazon Web Services. Hey, welcome back, everybody. Jeff Frick here with theCUBE. We're in Seattle, Washington at the AWS Imagine education event, first time ever as part of the public sector series. Theresa Carlson kicked it off earlier today. 900 registered people watch this thing grow like every other Amazon event that we've ever covered. And really, this is all about education. We're excited to be here. Our next guest who's been working on this for a while, he's Lou Polacy. He's a Senior Innovation Fellow and Managing Director of Technology Innovation Action Lab, Arizona State. Welcome. Thanks for letting me interview here. Absolutely. So just before we get started, kind of general impressions of this event. Yeah, it's amazing. I was just saying just a few minutes ago that you go to a lot of conferences and you go to so many conferences. The goal is to sort of try to meet 80% of the time new people. And you don't ever do that. Here you do. And so there's a lot of people here that I've known for years that I haven't seen. And there are a lot of new faces here too, so it's great. Right. It's really interesting. We cover a lot of conferences and kind of the life cycle as they grow. But when they're small like this and just getting started, it's so intimate. There's so much hall conversations going on. There's so much just genuine sharing of best practices because everybody's still trying to figure it out. Exactly. Exactly. That's what you're doing here now. Absolutely. One of the things you're involved in that got my eye on doing the research for this is working on research-based approach to really understand what works for the student learning experience. So there's all kinds of conversations we can have about higher education as a work, is it not work, is it broken? There's a lot of interesting things. Here it's been really interesting to just focus on community college specifically and this kind of direct path between skills and getting a job. It almost feels like the old apprenticeship model kind of back in the day. You're at a big four-year institution and really exploring what is changing in the education interaction between kids and teachers, kids and curriculum and how that stuff gets communicated and what's effective. Because it's a new world. It's not the old world. No, it is. And at ASU what's interesting is is that there is a significant digital presence. 35,000 students very historically back to 2009. So with that comes a significant amount of footsteps, digital footsteps that students have taken. And so now you have the ability to be able to analyze that at a much higher level. And so now what we can do and the part of what we're doing at the Action Lab is looking specifically at the efficacy of these digital programs, finding out what course design elements do work and what needs to be changed. And that gives us the ability to sort of feed that information back into the instructional design process and continue to iterate on that improvement. The unique thing about the lab is that it's a persistent lab. Most universities are sort of stop and start research initiatives and they learn a lot and they publish a lot of papers. We've been around for three years and we'll be around for 10 more and it's a persistent examination of what we're doing in a digital environment and we're taking it one step further, trying to understand how students behave in a digital environment. We know a lot about how students behave in a classroom or a traditional learning setting but we don't know how they learn in a digital environment. I love you said digital footprints, not digital exhaust and it kind of reminds me of these older long-term longitudinal studies because it's still pretty early days in trying to figure out how these educational tools, mobile and stuff are impacting the way these kids learn but we know they spend so much time on them that is their interface to the world.  So I'm curious, what are some of the things you've discovered that are working? What are some of the things that maybe that were kind of surprising that didn't work? What's some of the early findings that's coming out of that research? Sure, so in the early studies we look specifically at how demographic populations succeed or don't succeed in an environment and what we found out is there are certain demographics of students that flourish in an online environment and consistently perform well. There are some that don't. The second thing we learned specifically is what types of design features within a course like the interaction within students or exposing learning objectives or getting students to really understand what rubrics of measurement, how content is being used and paced throughout a curriculum. A lot of really detailed information that faculty need to reorient and redesign their instruction and so we can see a direct predictive value of improvement based on those changes. Right, so are you getting stuff out now that's impacting curriculum development or are you still kind of pulling the data together and there has not been enough time to really implement it? We are doing that, absolutely. One of the elements that we're introducing into the research now is this notion of, it sounds like a fancy term, non-cognitive or social and emotional learning, things that are predispositions of learning about a student in their sort of soft skills world, grit, determination, goal orientation, a variety of different soft skills and their disposition and how that impacts, how they learn and how they succeed in a classroom. And how important is that? I would imagine it's got to be super important. It's a field that is just still early in its science but we're learning a lot, not necessarily just about how students will succeed in a course environment, but those types of social, emotional learning skills that are required for them to be successful in a workplace environment. Right, right, and then the other factors that were discussed earlier in the keynote are some of the, you know, what's happening at home, you know, there's all these other factors that are in a student's life that aren't directly tied to their education but can have a significant impact on their ability to learn either temporarily or full-time, that's great. So as you look forward now, and I think it came up too in the keynote, there's no shortage of data in this education environment. It's really been the time to grab it, analyze it and put it to work. So how are your engagement with Amazon kind of helping you to move your objectives forward? Well the Amazon engagement allows us to sort of offload all of the technological constraints and gives us ultimate possibilities of not necessarily focusing on the tough stuff, the hardware, the integration, the specific tool sets that are required to extract data and analyze data and focusing specifically on the research. So ultimately, it allows us to redirect our focus in what's really important in our world because it's not necessarily about the technology. It's how the technology can point and draw a direct line between what the data says and how we create an intervention with students. So I'm just curious to get your perspective you said before we turn on the cameras. You've been involved in this field for a long time trying to figure out how people can learn, how they can learn better, more effectively. Are there some big kind of macro themes that maybe people don't think about enough that you've seen repeated time and time again that people should be thinking about and they think about effective education and how to get kids to actually learn what we're trying to teach them? Sure, so a couple things. I mean, what we're focused on is not necessarily what we call big data. We typically know big data as, it's really more about small data which shows us causality. So for instance, one of the things that we are learning is that peer-to-peer engagement is really, really important in many courses in engaging in asynchronous and synchronous organizations within the course to learn from peers. Also avenues specifically to faculty. So faculty can actually look at the map of the entire classroom and understand who's achieving and focus just only on those people. Interesting, well good stuff. And I'm sure as you get more and more of the digital footprints, the insights will only increase by leaps and bounds. Absolutely. All right Lou, well thanks for taking a few minutes of your time and look forward to catching up next year and getting some new information. Thanks. So I'm Jeff, thanks for watching. We're in Seattle, signing off from AWS Imagine to educate. See you next time.


I don't know how that name will push people, but whatever. So hi, people. Who's here for the first time ever at TopJS? You people? OK, cool. Me too. Hi. So I'm going to be talking about generative art reprocessing JS, and don't worry about the big words. We'll talk about them later. So my name is Sherman. Ooh, that does not look good. It's supposed to look like an image. This is why you always host images locally, don't? Yeah. Yeah. Oh, no. That's terrible. I'm connected. Anyway. OK, there we go. Yes. And then our phones are loading. It's the wrong phone. OK, doesn't matter. So my name is Sherman. I'm a front-end web engineer, which means that I have to love JavaScript. I am Malaysian. I just spent the last 18 weeks of my life at the Request Center in New York City. A little bit of a plot. For those of you who have not heard of it, it was formerly known as Hacker School. And it is an educational retreat for programmers. So if you want to take time off from working on work stuff and you just want to take time to learn things that you're interested about, it's a great place. And you work on projects. And you meet a lot of cool people. So it's also free. And while I was at the Request Center, I discovered this thing called generative art. So I really like programming and art, but I find it really, really hard to consolidate the both of them. How do you create art with programming? So what is this generative art thing? According to Wikipedia, it is art that has been created to use of an autonomous system that is non-human and can independently determine the features of an artwork. For example, art that is generated by algorithms. But my sister just calls his screensavers. If you remember this from the 90s, 3D pipes was the bomb. And this is my favorite. I don't know if you remember the old version, but old version had straight lines, and they only had one or two colors. This is like the Windows 10 version, which is like extra fancy as a curved lines and everything. It's called mystify. So if you have Windows 10, please use it. It's awesome. So some examples of generative art that I worked with on processing JS. I don't know if you can see this. Can you see this? All of this is running in a browser right now. My presentation is on review JS. So very screen-savory. That's fun. Something like this. And in case you can see it. Yeah. Yeah, it's a bit of a niche art where it's interesting enough that you can stare at it for hours, but at the same time, it continues to surprise you, but it's not too engaging. This is inspired by a famous generative artist, programmer, Jay Tarbell. And I've included links to some really interesting generative art that all of these are generated with the user algorithms, and it's a little bit different every time you run it. Here's more. And this one's really cool. We have two checkered patterns, overlaid on top of one another.  So cool stuff. So all of this is done in processing. This is also an older processing project, but it's all running on Java applet. So you can view it, sadly. And you're like, what is processing JS? And to talk about processing JS, we first need to talk about processing, which was a language that was invented to make it easy for people who are not programmers to learn how to code or to do visual things in the context of the visual arts. And it comes with IDE. And when it first came out, it runs on Java. And everything that was compiled were Java applets, which is great, but that's not how we do things anymore nowadays. And the language looks a lot like Java. If you've ever done anything typed, this should look familiar. So Java looks a lot like JavaScript. So hey, that's great, but with types. And yeah, I'm going to just run this code here to show you what it does. So in processing, you have two major functions that you need to have, set up and draw. And they do exactly what they say. Set up, set things up for you, and draw, draw things. And if you've ever done animation, drawing draws stuff on every frame. And in a typical animation, you can have like 60 frames per second. So it gets updated every time. So for example, here, whoops, wrong. No, don't save. And I have here running on webpack. Ooh. Did I not save? Oh, did I not save? No, that's terrible. There, OK. So in this case, set up here, set the canvas size, and the stroke, which in this case is setting it to be white, and sets the background color to this nice little chic orange color. And draw just draws a line from the starting point here, x and y, to your mouse, x and y. So if you go here and do things, ha ha, lines, yay. So it's really simple, and works really well. So we ran that. And Processing.js is the JavaScript part of the processing language. So it compiles processing code into JavaScript. And it uses the browser's Canvas APIs, because web and because Java app is no longer supported on Chrome, so sad. So I'm going to do a little quick demo. I'm going to do a little quick demo of how you do things in processing. And hopefully, this would explain things. And I realize I'm blocking the screen. Let's see. Oh, OK. Yes, that's right. I was like, but not very pretty people on the sites. All right. So for example, if I don't want to draw a line, let's say, I'm just going to move this out to the global scope. And I want to draw a circle centered at x and y. And I want it to be 50 pixels wide and 50 pixels tall. And cool. So the origin. Where's the origin? Origin of the circle. Stand third. No, I mean the whole Canvas. Oh, the whole Canvas. It's just top right. You can set it. You can position it using CSS or regular styling. It's all actually just a Canvas thing. So if you right-click an inspect element, it's a JavaScript Canvas. But hey, so great. We have a ball. It's not really doing much. Let's say I want to move the ball to. And at every frame, I want to update my x position. Velocity. Great. We have it moving. But because it draws over and over again, you see the position of the ball before. So in order to do that, I want to update the background at every frame. So hey, we have a moving ball. Great. But it goes over the screen. So not very cool. I'm going to call this velocity x so we can specify that. So in the case of the ball going off the screen, so if x is more than width. And in this case, width is a global variable. That is the width of the Canvas. So in this case, it's 400 pixels. Or x is less than 0. I want to change the velocity. So instead of going one way, it will go the other way if it hits either end. So velocity x change direction. And this should make it bounce. And we have a bouncing ball. We could also do the same thing for the other way. The other for the y direction. And copy, paste, copy, paste. Always remember to change your variables when you copy and paste. Yeah. Yeah. La, la, la, la, thanks. Yes, good call. And we have a bouncing ball. So this is really nice because it's very intuitive and it's easy to use.  If you've ever worked with JavaScript Canvas, you realize API is very, very verbose. So that's great. You can put more bouncing balls if you wanted to do more interesting things. So yeah, that's processing.  This is processing. We're here for a JavaScript meetup. You can also run JavaScript code. So for example, and it will leave JavaScript code alone. Or console.log, whatever. And you can have a mix of processing in JavaScript, which is not totally recommended. But you can if you want to, which is nice. Let's see. Yeah, so if you're curious or you want to learn more about generative art, you check out the galleries that I showed you earlier. And they're also a lot of great resources. There's the ProcessingJS, a lot of syllables, ProcessingJS learning page, which has examples of how to do things. It also handles mouse interactions. So you can build really cool games with processing. Documentation is fantastic. And there's online editors and also courses on how to do things in processing. So yeah, if you're ever curious about generative art, you come and talk to me afterwards. Or if you have questions, you can ask them now, because we have time. Any question? So just now, right, did you say that the result is not deterministic every time you run it? It depends. So in this case, it is because I didn't include any randomness. But for some of the art that I've done, for example, like this one, it's non-deterministic. Because I place things randomly. And it grows at different rates and things like that. And it has a different color every time you run it. Most times, oh no, it's purple again. So a lot of generative art has randomness added to it to make it more interesting. Like how screen savers have to be used slightly random. Yeah, any questions? What's? You choose processing.js. But we all know that there are a lot of animation like the Snap, Canvas, SVG, whatever. What makes you choose processing.js? That's such a great question, because I actually had a question before this. And I was like, oh, why use? I was like, just in case. So I guess it really depends on how much control you want over things. The reason why I like processing is because the API is really simple, and it comes built in with a lot of useful tools. So for example, if you're working with, let's say, the Canvas API, and when you're reading images, you have things like they come in RGB colors. And if you want to change modes, it's really difficult. But processing comes in with a lot of really nice features. For example, if you want to change mode to like HSV, you don't have to do the Mac yourself. All of this is built in. You also have things like there's only one way to draw ellipses in Canvas. And in processing, it gives you tools like, oh, if you want to center my element at the first two parameters, I can if I want to center it at the corner. Sorry, put a corner of the ellipse at this corner. I can. So it's really convenient. It allows you to not worry too much about the details and a low-level implementation of things. Because previously, I was working with the JavaScript Canvas API.  And processing wraps around that very nicely. Good question. Question? OK. Yes? Yeah. I only prepared one, and we're just going to do that. Yes? Where was it again that you did this? I'm glad you asked. I was doing this thing called the Recurse Center. If you guys have time, you should check it out. If anybody is a programmer and if you like programming with other people, it's a project-based, self-directed retreat. And it's based in New York City. It's free. And people come together and work on very different things. So we have people who are front-end engineers and people who are more hardware people. Yeah? Are you going to do it here? I wish there was one in Singapore. As far as I know, the only people who do it, you're talking about a center, not processing. Processing, are you? Yeah, you should do it here. If anybody want to run it, I would participate. I don't know if I want to run it. What program will you just walk in at any time or just walk out? There are batches. So there's a start date and end date, and batches overlap. And it runs all year long. So yeah. We totally recommend. It's funded by the city? It's not. It's free. The way they fund themselves is by they help me find jobs after the program ends. And they partner up with companies. If companies hire you, they pay the request center a small fee for your thing. So they also work as a recruitment thing. But it's no pressure whatsoever to do things. Yeah, if you're curious about it, you should come talk to me about it. Awesome place. Yeah. More questions? Cool, awesome. All right, thank you. Thank you.