MakinGIANTS
The findings and tips records of an Android-iOS-TheWholeShabang group
Notes about sending text to LiveView Tutorial
<h3>Useful Links</h3><div>LiveView SDK 1.01 And Code Sample</div><div></div><div>LiveView Devel TutorialLiveView Offical Page</div><div></div><h3>Tutorial</h3><ul><li>Use method sendTextBitmap from PluginUtils:</li></ul><pre style="background-image: URL(http://2.bp.blogspot.com/_z5ltvMQPaa8/SjJXr_U2YBI/AAAAAAAAAAM/46OqEP32CJ8/s320/codebg.gif); background: #f0f0f0; border: 1px dashed #CCCCCC; color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;"> PluginUtils.sendTextBitmap(mLiveViewAdapter, mPluginId, text, bitmapSizeX, fontSize); </pre>It work’s but it will...
OPENGL and GLUT Tips
// Make glut to call function displayfunc efficientlyglutPostRedisplay();//Same as glFlush but wait end notificationglFinish()//Size of the points, default 1.0glPointSize(GLfloat)//Line width, default 1.0glLineWidth(Glfloat)//Define how each face of the polygon will be drawnglPolygonMode(GL_FRONT, GL_FILL);glPolygonMode(GL_BACK, GL_LINE);//Define face type based on points order (ex: clockwise)glFrontFace(GL_CW);//CW clock wiseglFrontFace(GL_CCW);//CCW counter clock wise//Schedule update function with 25 milisecondsglutTimerFunc(25,...
Install and compile GLUT and OPENGL projects
Install Linux $sudo aptitude install freeglut3-dev Windows The latest version (3.7) of GLUT windows binaries can be found at http://www.xmission.com/~nate/glut.html or from a million other places on the web. Name of the zip file is: glut-3.7.6-bin.zipDownload it and extract the zipfile to some temporary folder.Copy glut32.dll file to your windows...
Change Colors and info in Terminal Promt
For mac use .bash_profile fileFor Linux use .bashrc fileCreate .bash_profile(Do this only if you dont have a “~/.bash_profile” file)Open a terminal and enter:<blockquote>cd ~touch .bash_profile</blockquote>Customize colors and info in terminal promptOpen the .bash_profile with:<blockquote>open -e .bash_profile</blockquote>Add one or the numbers of the next colors (lines, in this example the Cyan...
Install "Bundle Install" (Help installing bundles in TextMate)
HiIf you want to install “Bundle Install” Bundle to TextMate do:Run:<blockquote>$mkdir -p ~/Library/Application\ Support/TextMate/Bundles$svn co http://svn.textmate.org/trunk/Review/Bundles/GetBundles.tmbundle/</blockquote>Then, in TextMate, go to<blockquote>TextMate/Bundles/GetBundles/GetBundles</blockquote>Source