RSS

Tag Archives: error

React Native: “No dimensions set for key window” error and solution


In my recent project, I created a brand new React-native project, and run that on the simulator, then the captioned error pops up:

“No dimensions set for key window”

What hell does this mean? After a quick search on the internet, we found the solution: it turns out that the terminal (Mac) or the command line window is running for quite some time, and for unknown reasons, some of the information is outdated, which results in the captioned errors.

So the solution is simple:

  • Turn off all the terminal instances, restart the terminal/command line window,
  • Re-run the command:  react-native run-ios

That is it! Happy coding!

Advertisements
 
Leave a comment

Posted by on September 19, 2017 in Programming, React-native

 

Tags: , , , ,

Windows cannot read product key from unattend answer file


When trying the latest Windows 10 ISO on Vmware, the below annoying error pops again and again:

Windows cannot read <productkey> from unattend answer file

To solve this, in Vmware settings, right click the VM, and disable/uncheck the floppy disk “Connect at power on” option.

image

Restart, that is it!

image image

 
1 Comment

Posted by on June 20, 2015 in Windows

 

Tags: , , , ,

Ubuntu: cannot apply the stored configuration for monitors


If you are running Ubuntu 13.04 or 14.04, some times after system startup, you will find an error message:

ubuntu cannot apply the stored configuration for monitors

image

To get rid of this, simply remove .config/monitors.xml.

Open a terminal and run below commands:

cd .config/
rm monitors.xml

Reboot and everything should work fine.

 
Leave a comment

Posted by on August 19, 2014 in Linux

 

Tags: , , , , , ,

Gradle: SDK location not found, the problem and solution


In a recent project, I created a Gradle project in windows, but when I load the project in Ubuntu and Mac OSX, an error “SDK location not found. Define location with sdk.dir in the local.properties file or with an ANDROID_HOME environment variable”

image

I then followed the instruction, and in the ~/.bashrc file, I added the environment variable ANDROID_HOME

image

Read the rest of this entry »

 
8 Comments

Posted by on July 2, 2014 in General, Linux, Mac, Programming, Windows

 

Tags: , , , , , , , , , , , , ,

Xamarin Visual Studio: Deployment failed due to an error in FastDev assembly synchronization


If you are like me, when building the mobile app with Xamarin Visual Studio plugin, you get below exeception:

Deployment failed due to an error in FastDev assembly synchronization, or FailedToSynchronizeFastDevAssemblies —> Mono.AndroidTools.AdbException: Permission denied

image     image

Try below action to solve this:

Read the rest of this entry »

 
2 Comments

Posted by on June 17, 2014 in Android

 

Tags: , , , , , , , , ,

OpenSceneGraph: texture missing – The Solutions


After developing a program using OSG, you might sooner or later package all needed executable (*.exe, *.dll) and copy/deploy them to the target machines.

It is not uncommon that when you open a model, e.g. OBJ, 3DS, FLT files, all works right, except for the textures, missing!

 

image    image

Read the rest of this entry »

 
Leave a comment

Posted by on March 11, 2014 in osg, Programming

 

Tags: , , , , , , , , ,

Get started with AIML C# programming (III): Be nice and understand that robot can be naïve!


In previous two blogs (Here and Here), I have shown how to experiment AIML programming, and it is not hard to turn the HelloRobot console into a GUI program. Yes, I did, and found that the robot is smart and fun.

Until, the silly me, typed below:

Me: Marry me!
Robot: …………………………………………………………

image

Read the rest of this entry »

 
Leave a comment

Posted by on March 9, 2014 in AI, Programming

 

Tags: , , , , , ,