Posted
on January 17, 2012, 10:20 pm,
by ScratchMyTail,
under
Hardware.
I have been having a lot of trouble getting Battlefield 3 stable on my computer. I’ve been experiencing triangular artifacts acting wierd, and most annoying, regular crashes. I have a Gainward Geforce 580 GTX graphics card. The solution that worked for me was simply to clock down the card from 783MHz to 583 MHz. I used a program called EXPERTool to do this. EXPERTool is developed by Gainward and is recommended for use on their card. There are several other methods of underclocking a graphics card. Search for it on Google, add your graphics card name on to the search string.
Tags:
580 gtx,
artifacts,
battlefield 3,
bf3,
crash,
fix,
gainward,
gainward 580 gtx,
no error,
problem,
triangular artifacts No Comments »
Posted
on October 19, 2011, 3:57 pm,
by ScratchMyTail,
under
Android.
Found a nice tutorial on how to create section/grouped-based listviews for android. Article written by Jeff Sharkey.
Posted
on August 26, 2011, 12:48 pm,
by ScratchMyTail,
under
Android.
After a lot of struggling and frustration getting Android SDK, Maven and Eclipse working together I have decided to create the ultimate tutorial. I have not found a single page online describing how all the pieces should work together. I have only found bits and pieces of information at various sites. So this should be a post merging it all together. Read on if you want to know how I got it working. My goal is to create a post containing everything from installation requirements to getting the first project up and running.
Read the rest of this entry »
Tags:
adt,
android,
eclipse,
import.android.r,
m2e-android-integration,
m2eclipse,
maven,
setting up android and maven,
setup,
springsource,
sts,
tutorial 2 Comments »
Posted
on August 12, 2011, 8:28 am,
by ScratchMyTail,
under
Android.
Life goes on and so does my Android development. Here is a solution for a common problem when Maven struggles to find the Android SDK. The error message that occurs:
No Android SDK path could be found.
You should create a settings.xml file in your ~.m2/ folder. (~/.m2/settings.xml). The file should contain the following content:
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
<profiles>
<profile>
<id>android</id>
<properties>
<android.sdk.path>
PATH / TO / THE / ANDROID / SDK
</android.sdk.path>
</properties>
</profile>
</profiles>
<activeProfiles> <!--make the profile active all the time -->
<activeProfile>android</activeProfile>
</activeProfiles>
</settings>
Replace the “PATH / TO..” with the path of your Android SDK folder. Read more over here.
Posted
on August 8, 2011, 1:18 pm,
by ScratchMyTail,
under
Android.
The recommended way of performing tests on an Android project is to create a so called Android Test Project. I’m used to creating test packages the regular way with JUnit, by simply creating classes and putting them in the src/test/java folder. But this is not that smart when it comes to the Android platform. If you are going to use Android specific libraries in your test classes you should put them in the src/main/java path. If you don’t you will be ending up with this exception:
java.lang.RuntimeException: Stub!
But if you are not using any Android libraries in your tests you can put your test classes in the src/test/java folder. Then the JVM will execute them as regular tests. I think I will take a closer look on the Android Test Project way of doing tests.
Read more about this over here.
Posted
on July 27, 2011, 11:02 am,
by ScratchMyTail,
under
Java,
Programming.
Recently I’ve been struggling with an annoying error in SpringSource (Eclipse + Spring Framework). The error causes auto-completion to stop working, and a popup to occur containing this error message: “Compilation unit is not on the build path”. In this post I will share my solution to this problem.
Read the rest of this entry »
Posted
on April 8, 2011, 12:28 pm,
by ScratchMyTail,
under
Android.
Here is a quick and clean tutorial on how to set up and use Maven 2 when developing for Android in Eclipse. This tutorial will not cover the steps of installing Eclipse 2.6 and the Android SDK.
Read the rest of this entry »
Posted
on May 23, 2010, 1:18 pm,
by ScratchMyTail,
under
Programming.
Ever wanted your source code listings to look the same in your blog as in your favorite IDE? It’s now possible with a Python syntax highlighter, called Pygmentize.
Pygmentize is a syntax highlighter written in Python. It can be used as a simple command line tool, as well as being reached from Python scripts.
In the following example I want to highlight a JavaScript file. I tell pygmentize to output HTML:
pygmentize -f html -o example.html example.js
The command above generated this output (I simply imported the HTML created by Pygmentize into my blog post).
if (time < 10)
{
document.write("<b>Good morning</b>");
}
else
{
document.write("<b>Good day</b>");
}
Take a closer look in the quickstart guide for more details on the command line tool, and how to use it in Python scripts. A package called Minted that utilizes pygmentize can be used to list source code in LaTeX. I used it in my Master thesis, and it looks so much better than the default lstlistings.
My first application developed for the iPhone is now available in AppStore. Read more about the application here. You can also take a closer look in iTunes via this link.
In this tutorial I will show you how you can store custom objects to disk on the iPhone. I will create a simple array containing custom Person objects. Then I will store the array to disk and afterwards load the array. The clue is to implement the NSCoding protocol in the Person class, or the classes of the objects that we have in our array or dictionary. It’s quite simple actually.
Read the rest of this entry »