Saturday, May 10, 2014

no matching function for call to ‘glutinit’ error in Xcode


When you create a default project in Cocoa template of Xcode the main function is generated accordion to the following:
int main(int argc, const char * argv[])

You can solve this if you review your main-function and remove "const" from the following main function:
int main(int argc, char * argv[])
and build again.




Why you should use Iced Coffee Script (IcedCoffeeScript) to CoffeeScript


Iced Coffee Script aimed to make programming asynchronous easier and is a superset of CoffeeScript.
The main advantages are using Wait, Defer to make for example parallel searched to Twitter as you can find an example of it at the link: Iced Coffee Script. You can use a fewer lines to achieve your goal with asynchronous calls than in CoffeeScript. Take a look at the code examples provided in the link above.

In Atom Editor from Git there is a support for Iced Coffee if you wan to experiment wit it further.


Thursday, May 8, 2014

java.lang.RuntimeException: Could not create new instance of class org.jboss.arquillian.test.impl.EventTestRunnerAdaptor



java.lang.RuntimeException: Could not create new instance of class org.jboss.arquillian.test.impl.EventTestRunnerAdaptor

You get this issue if you have profiles-elements in your POM-xml and no one if the profiles are activated.
You can either activate one of the Profile Id using command-line:
$  mvn clean install -Pjboss-managed

or use your favorite IDE to choose one of the profiles to run.


Friday, April 25, 2014

iconv.dll the specified module could not be found

iconv.dll the specified module could not be found
To solve this issue :
       gpg error loading iconv.dll' the specified module could not be found

download iconv.dll from the link below and follow the instructions:
http://www.gnupg.org/download/iconv.html


Thursday, April 24, 2014

Remote Desktop Access problem due to license

If you have problem to access a remote desktop and get error messages that you have to contact system administrator to get license etc. The following steps can solve your access problem:
  • Run the following command in start command box
          regedit
  • Inside Regedit, navigate to the following key: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSLicensing
  • Right click on the key name “MSLicensing” and select DELETE.


Example of CSS-based waiting indicator, an example

Example of CSS-based waiting indicator with Angular JS

In your HTML-file:
<div class="overlay" ng-class="{'ng-hide' : !isVisible }">
                <img ng-show="image"  ng-class="{'ng-hide' : !isVisible , 'myloading' : isVisible }" src="/images/loadingindicator.gif" alt="Spinner">
            </div>

CSS:
.myloading {
    opacity:0.5;
    background-color:#ccc;
    position:fixed;
    top:0px;
    left:0px;
    z-index:1000;
    border: 0px solid;
    margin: auto;
    right: 0;
    bottom: 0;
}

.overlay{
    opacity:0.8;
    background-color:#ccc;
    position:fixed;
    width:100%;
    height:100%;
    top:0px;
    left:0px;
    z-index:1000;
}

Use Broadcast/on concept in Angular to share data between Controllers, something like below:

$scope.$on('globalalertWaitMessages', function(event) {
           $scope.isVisible = true;
      });


Thursday, May 23, 2013

Convert An Android application to Library

When I deveoped an Android applicaton, I want to convert it to a libray to be shared by my other applications. This is easy to do in Eclipse. Go to Properties->Android and check "IsLibrary".
The following line will be added to project.properties


android.library=true

However you will get some errors related to R.*. You have to convert all switch-statements to
if-statements to make it a library. The reason is thoroughly explained by the following links:
http://tools.android.com/tips/non-constant-fields