Showing posts with label Programming. Show all posts
Showing posts with label Programming. Show all posts

Wednesday, July 03, 2019

TIOBE- programming language index for 2019


Jun 2019            Programming Language

1 Java
2 C
3 Python
4 C++
5 Visual Basic .NET
6 C#
7 JavaScript
8 PHP
9 SQL
10 Assembly language
11 Swift
12 Objective-C
13 Ruby
14 Groovy
15 Go
16 Perl
17 Delphi/Object Pascal
18 MATLAB
19 Visual Basic
20 PL/SQL
21 SAS
22 R

Source: https://www.tiobe.com/tiobe-index/

Thursday, April 03, 2014

How to fix "adb devices" can't find Android device on Windows

Problem
Google Nexus 7 
Windows 7
Installed the latest Android sdk
"adb devices" couldn't find Android device when it was plugged in and USB debugging enabled

How to solve it

1. Adding the new device reference in android_winusb.inf
in C:\Android\sdk\extras\google\usb_driver

Right click your Android device in your computer's "Device Manager", select "properties", Details Tab and from the dropdown Property list select "Hardware Ids". Copy the 2 values in your clipboard.

Edit the android_winusb.inf file included with the Google USB Drivers (the location on my machine is "C:\Android\sdk\extras\google\usb_driver" and add these lines using the 2 values in your clipboard:

; your device model
%SingleAdbInterface%        = USB_Install, Clipboard first value
%CompositeAdbInterface%     = USB_Install, Clipboard second value


after the last lines of the [Google.NTx86] section.

2. Updated the drivers in your computer's Device Manager. (You need admin right to do this)

Device Manager -> Portable devices, right click the Android device in Device Manager -> Change settings (need admin right), uninstall the Android usb driver completely

unplug your Android device, re-plug back in,
update the driver, and manually point it to the google usb driver in "C:\Android\sdk\extras\google\usb_driver" (just select this directory)

3. In Command window, run 'adb devices'.
At this point adb should recognize the device (as an unauthorized device)

4. You will then see a dialog on your Android device, asking whether to accept an RSA key that allows debugging through this computer. Click Ok

(if you don't see this dialog on your phone, unplug your phone from the computer and plug it back in.)

run 'adb devices' again
This time the device will be authorized.

Wednesday, October 16, 2013

Augmented Reality open source development kit

The most popular one is ARToolKit, which is a vision-based tracking library used fiducial markers.
http://www.hitl.washington.edu/artoolkit/download/

Qualcomm Vuforia SDK https://www.vuforia.com/ which supports Android and iOS. Vuforia has an extension for Unity 3D.

Sunday, February 24, 2013

X3DOM not working in Firefox

Firefox should support WebGL natively. If your Firefox browser shows that WebGL is not supported and your display driver is not blacklisted, try the following:

  1. Type about:config in Firefox address line
  2. Type in the search box webgl
  3. Set webgl.force-enabled = true
  4. Close the browser and launch it again

X3DOM case sensitivity

HTML encoding
  • without xmlns
  • lower-case tags (e.g. <x3d>) 
  • no-self closing tags

XHTML encoding
  • with xmlns
  • case-sensitive tags (e.g. <X3D>)
  • self-closing tags
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

Unified XHTML/HTML encoding
  • with xmlns
  • case-insensitive tags
  • no-self closing tags

Friday, February 19, 2010

Standard deviation explained

When the examples are tightly bunched together and the bell-shaped curve is steep, the standard deviation is small. When the examples are spread apart and the bell curve is relatively flat, that tells you you have a relatively large standard deviation.

Wednesday, May 30, 2007

C++: convert managed clr System::String^ to std::string

#include vcclr.h

System::String^ line = "a managed string";
pin_ptr wch = PtrToStringChars( line );
int len = (( line->Length+1) * 2);
char *ch = new char[ len ];
wcstombs( ch, wch, len );
string lineStr = ch;
delete ch;

Thursday, March 29, 2007

Ogre Overlay

change size of debug overlay background for the score area: in c:\NxOgre\bin\Media\Overlays\OgreDebugPanel.overlay, under " container Panel(nx.gui.stats) {...}"

change "height 30" to "height 36" to suit for the bigger TextHeight (font size).

The original OgreDebugPanel.overlay file was backed-up in C:\eunice\MSVC\MS\VirtualMotion_Backup\29Mar07

Tuesday, March 27, 2007

Exporting mirror object from 3ds Max to Ogre

anear
Posted: Fri Mar 23, 2007 2:07 pm Post subject: exporting mirror object from 3ds Max

I got problem when exporting mirror object. I have a left hand model, and I created a right hand using "mirror selected objects". Then I export the two hands one by one using octopus exporter. It seems both the two exported meshes are left-hand.
I tried LEXIExporter too. Got two left hands too. Any thoughts on this? Thank you
--------------------------
Sethos
Posted: Fri Mar 23, 2007 2:16 pm Post subject:

Have you tried to do a Reset XForm on the mirrored object?
---------------------
anear
Posted: Fri Mar 23, 2007 3:10 pm Post subject:

Thanks for your reply.
yes, i tried reset XForm, still get two left hands. The only difference is one hand facing +z, the other facing -z.
--------------------------------------------------------------------------------
TenTerHooK
Posted: Tue Mar 27, 2007 1:41 am Post subject:

Try this:
Under editable mesh/poly in the modifier panel select the left hand. Click "Attach". Choose to Attach the right hand model to the left hand. If you need the two hands to be seperate, merely detach the right hand after these steps.
Reset Xform doesnt always work you see... Attaching one model to another is another method of reseting that can be more robust at times.
--------------------------------------------------------------------------------
anear
Posted: Tue Mar 27, 2007 9:12 am Post subject:

Attach/Detach works! Thank you very much, TenTerHooK.

Thursday, January 11, 2007

NxOgre development-full screen

NxOgre.0.5.preview.3 (the old version)
in ogre.cfg file in the same folder as the .exe, change
Full Screen=No

change ogre.cfg
Video Mode=1280 x 1024
The HMD works in full screen mode. Horray!!

in NxOgre.0.4.RC.2 (the new version)
change config.yaml file instead.

using the VR1280 HMD
to avoid the 'input out of range' error on the monitor, switch the machine on with the monitor, then swop the display plug to HMD controller and etc.

Riyadh temperature by month