Skip to main content

Posts

MySQL Command Line - Newbies Errors

 Newbies Errors when using MySQL Command Line Client (CLI) 1. Path This will give an error: This is actually correct: * Notice the "/" and "\". 2. Exiting error So when I got the error from the above: I didn't know how to exit.  To exit,                "From a bash shell you could just type ctrl-c and get a new prompt. In" 3. Connection with Go I'm working on Go at the moment. And the following is the tutorial I'm following:  https://go.dev/doc/tutorial/database-access When I tried running "go run .", I received the following error: I tried: a) Added a new user that is NOT "root" - same error b) Added the parameter "AllowNativePasswords: true": And was finally seeing a different error: So it seems like the DBUSER and DBPASS that I've set based on the steps weren't saved... I wasn't able to find the reason why it's not working.. So instead of handling it in the command, the following is what I did to
Recent posts

MapBox Flutter Turn-by-turn Navigation - Not Updated / Not Working

 I have spent countless hours/days trying to fix the turn-by-turn navigation. I thought it was just me not understanding flutter and MapBox integration. Apparently, there was an issue in their SDK for turn-by-turn navigation. It has been fixed for Android native SDK but not for Flutter's. There may be a way to fix it. But I've decided to go native now. Bye Flutter. 😭 P.S. Share with me if you were able to make their turn-by-turn navigation a success!

VS Code / Flutter: Error "'flutter' is not recognized as the name of a cmdlet..."

 I was trying to run a command: flutter pub add youtube_player_flutter But it was giving me the error: "'flutter' is not recognized as the name of a cmdlet..." To fix this, we need to add it to the Environment Variables (just like what I did for node.js in the previous post!) 1) You should know where's your flutter's sdk at this point. Mine is at: C:\src\flutter\bin 2) Opened Windows Start Menu and typed "Edit the system environment variables" 3) Click on "Environment Variables" 4) At the User variables for User, click on Path. 5) Add the flutter sdk's path from (1). 6) Do the same for "System Variables". Double click on "Path" / click edit. 5) Add the flutter sdk's path from (1). 6) Restart visual studio code and then, all done! Solution found at:  https://stackoverflow.com/questions/70113055/vs-code-flutter-is-not-recognized-as-the-name-of-a-cmdlet

VS 2022 / .Net Core Error : Node.js is required to build and run this project. To continue, please install Node.js from https://nodejs.org/, and then restart your command prompt or IDE.

I just created a new .Net Core 3.1 project. I installed Node.JS (from Nuget Packages). I've also used the VS installer to install Node.JS. But when I run, I was still having the issue below error : Node.js is required to build and run this project. To continue, please install Node.js from https://nodejs.org/, and then restart your command prompt or IDE. I was running Visual Studio 2022. What solved it was the following: 1) I searched for node.exe and found it at the following folder: C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VisualStudio\NodeJs 2) Opened Windows Start Menu and typed "Edit the system environment variables" 3) Click on "Environment Variables" 4) At the next screen, look for "Path" under "System Variables". Double click it / click edit. 5) Add the nodejs path from (1). 6) Restart visual studio and taraa. Solution was from one of the answers in:  https://stackoverflow.com/questions/59115525/node-j

Silicon Valley

 I had my reserves about deciding to go to Silicon Valley. I heard it was expensive. I heard that it was just a hype - people are moving online, or to Texas, and Silicon Valley isn't necessarily the It anymore. The expensive part? Super true. And the rentals are crazy. $2K for a 1-Bedroom house. And you can't necessarily book in advance - they want to "vet" you and they don't want to lose that few months before you make your move.  The hype? That's for you to experience and discover. The thing is, at Silicon Valley, things move fast. And at some point, almost everyone has at least been a founder once. It is so easy to meet another entrepreneur. Be it at a networking event, or at a park, or even at a McDonalds! But if you don't talk, you don't get out there, you don't know how to connect, being at Silicon Valley wouldn't make much of a difference than staying wherever. Carnegie Mellon University definitely takes advantage of that. Our professors

Business: Product as a Hire

In our Grand Challenge Innovation class, Jason showed us this video that was very eye opening for me. Thought I'd share it with you too! This is definitely an interesting perspective to a product. To sum it up: People always think how to vary a product. How to make a product more interesting. How to make your product a lot more enticing. You made one. Now, how does it impact your sales? This video however lets you think of each product as a service. What does a product "do for you"? And my initial thought was that he would be thinking about software-as-a-service style product. He wasn't. He was talking about milkshakes. And he hits all the right points on why I always go for milkshakes too. People always say that I am weird for picking up milkshakes in the morning. I thought I was weird and if you asked me the reason, I wouldn't even be able to explain it the way he does! It just makes so much sense! Go ahead. Watch it! Just a side thought: In Malaysia, McDonalds

Game Critique #4: Brain Physics Puzzle

Game Metadata Game                    :  Brain Physics Puzzle Platform              :  Mobile ( Android ) Developer           : DreamZ / Newlightgame Subject Area     :  Physics Learning Objectives The educational goal / learning objective is to understand Physics and implement the understanding of Physics to move the trucks to bring the box to the destination. The concept is pretty simple - but you may need some prior understanding of what Physics is in order to start playing. A very young boy might have a harder grasp of starting the game. Game Elements Noun : The main elements are the truck, the box, coins and the "target area". Other than that, the game also has backgrounds, hanging floors, floors, magnifier and other moving buttons such as arrows, help, reset and exit. Verb : The two main verbs are drawing lines or polygons as the path for the truck and pushing on the arrows to move the truck. For the core loop, we are tasked to draw lines or polygons or anything for tha