₦airaland Forum

Welcome, Guest: RegisterLoginWith GoogleTrendingRecentNew

Stats: 3,326,470 members, 8,426,685 topics. Date: Sunday, 14 June 2026 at 06:05 PM

Toggle theme

EfeAriaroo's Posts

Nairaland ForumEfeAriaroo's ProfileEfeAriaroo's Posts

1 (of 1 pages)

Art, Graphics & VideoRe: Acts Of Boredom:3d Stuff. by EfeAriaroo: 11:44pm On Dec 26, 2013
I can see. You must have been really bored. What software did you use to do this by the way? Curious.
ProgrammingRe: Lisp Failed Because Of Snobbery by EfeAriaroo: 3:50am On Dec 21, 2013
You may be right kambo. Lisp has had a bad history. Rich Hickey is simply brilliant and had some foresight in making Clojure run on the JVM instead of on a new platform. Clojure is truly awesome and puts Lisp in a new light. I hope it gets used more. Who wouldn't want to write this?

(defn blank? [str]
(every? #(Character/isWhitespace %) str))

instead of this

public static boolean isBlank(String str) {
int strLen;
if (str == null || (strLen = str.length()) == 0) {
return true;
}
for (int i = 0; i < strLen; i++) {
if ((Character.isWhitespace(str.charAt(i)) == false)) {
return false;
}
}
return true;
}
ProgrammingHow To Get The GPS Location Either As Latitude And Longitude Or Address In J2ME by EfeAriaroo(op): 5:14pm On Aug 06, 2013
Hi. I've been working on an application to get the gps location of a J2ME device ... Nokia E72 to be exact. I have tried all that the internet has adviced but the problem still persists. I hope you guys can help.

I followed the advice on this link http://stackoverflow.com/questions/16280950/how-to-get-the-current-position-for-non-gps-phone-in-nokia-j2me but found out that the LocationUtil class causes the application to crash when deployed on the device. The error the app spits out when run on the phone is NoDefClassFound com.nokia.mid.location.LocationUtil

The file attached to this message has my code if you wanna see how far I've gone.

I need this solution as soon as you can. Thanks.
ProgrammingRe: Has Anyone Done A Blackberry App That Accessed The Net by EfeAriaroo(op): 12:17am On Mar 24, 2013
ApplicationPermissions
beckyPermissions = new
ApplicationPermissions();
beckyPermissions.addPermission(Applicati­
onPermissions.PERMISSION_INTERNET);

/*
Several permissions can be added to the same
ApplicationPermissions object */

ApplicationPermissionsManager
appPermissionsManager = ApplicationPermissio­
nsManager.getInstance();

if(appPermissionsManager.invokePermissio­
nsRequest(beckyPermissions)){
//Permissions allowed
// Dialog.alert("Yippie!!! Permissions allowed."wink;
} else {
//Permissions denied
Dialog.alert("I have to close now. I can't function
properly without the right permissions."wink;
System.exit(0);
}
ProgrammingRe: Has Anyone Done A Blackberry App That Accessed The Net by EfeAriaroo(op): 12:14am On Mar 24, 2013
permissions were the problem. it appears since my app wasn't downloaded from appworld it wouldn't be allowed to access the internet. I had to make the app ask the user for the permissions it needed which included internet access. That fixed the problem. hope this helps someone else.
ProgrammingRe: Has Anyone Done A Blackberry App That Accessed The Net by EfeAriaroo(op): 6:12pm On Mar 17, 2013
thanks dpuzo for your contribution. I guess I gotta look into my code again. if I can't find the problem I will try to reach out again.
ProgrammingRe: Has Anyone Done A Blackberry App That Accessed The Net by EfeAriaroo(op):
@dpuzo Thanks men for the code, I really appreciate it but it didn't work on the simulator. Is it supposed to? I replaced the smiley faces with closing parenthesis. I hope that was okay? I think I should give you more information. Maybe it can help shine some more light on the situation. Apart from the 'GET' and 'POST' requests I make to my server-side code, in the app, I use a free facebook library in order to bring up a facebook login screen. On the simulator this screen displays and I could enter my facebook details and log in. But on a phone, when my friends tested the app the facebook log in screen couldn't display. It's almost as if my App doesn't set something that both my code and the facebook library would use. Any thoughts you may have about this would be most helpful. Thanks again and I hope to read from you soon.
ProgrammingRe: Has Anyone Done A Blackberry App That Accessed The Net by EfeAriaroo(op): 12:37pm On Mar 17, 2013
Thanks dpuzo. I'll try that and get back to you.
ProgrammingRe: Has Anyone Done A Blackberry App That Accessed The Net by EfeAriaroo(op): 6:14pm On Mar 16, 2013
I'm sorry everyone. I reread my question again. I sounded stupid. I meant that, when the app is deployed on a phone the app can't access the internet I.e the app thinks the phone has no internet connection which is wrong. this is confusing because on the simulator all works as it should. I really need this fellas so that the app can be launched as soon as possible.
ProgrammingRe: Has Anyone Done A Blackberry App That Accessed The Net by EfeAriaroo(op): 6:10pm On Mar 16, 2013
yes.
ProgrammingRe: Why Doesn't Anyone In Nigeria Code In A Lisp by EfeAriaroo(op): 11:23am On Mar 16, 2013
I think people satisfied with just PHP and Java like languages are not concerned about the art of programming. this is fine, I think. what they care about is knowing more and more frameworks on top of what they already know and making money with PHP and csharp and Java. this is also fine, I think. we are different ... we will be drawn to different things. someone who used math to solve problems in a course in engineering as an undergraduate is far different from someone who has a Doctorate in mathematics.
ProgrammingHas Anyone Done A Blackberry App That Accessed The Net by EfeAriaroo(op): 10:31am On Mar 16, 2013
hi everyone. I'm currently writing a blackberry app for blackberry phones with OS 6. the app can access the internet on the simulator but when the app is deployed on the app it can't access the internet. please can anyone help with this? thanks a mil'
ProgrammingRe: Any Body With Idea On What Is A Midlet, And How One Can Be Created. by EfeAriaroo: 6:54pm On Mar 04, 2013
Midlets are the type of applications that are created for Java and symbian mobile phones. You use Java ME(Mobile Edition) to write such applications. Java is divided somewhat into three parts: Java SE(Standard Edition) for desktop computers, Java ME(Mobile Edition) for mobile phones and Java EE(Enterprise Edition) for web applications. You need to know Java SE first before delving into Java ME.
ProgrammingRe: Why Doesn't Anyone In Nigeria Code In A Lisp by EfeAriaroo(op): 4:42pm On Mar 03, 2013
@WhizTim You can now write clojure for android. In fact, one of the reasons Clojure is so cool is that Rich Hickey, its creator, wanted a Lisp that fixes the concurrency problem with non-mutable persistent datastructures but he also wanted it to be possible for the lisp to be used in whatever context that Java could be used. I'm not trying to start an argument here.
ProgrammingRe: Why Doesn't Anyone In Nigeria Code In A Lisp by EfeAriaroo(op): 4:34pm On Mar 03, 2013
@Fayimora ... very cool. I just feel lisps should be used more. They force one to know more about programming. Example, through my time learning Java I never read about prefix notation, how code can be data, higher order functional programming, or closures, or macros or lazy programming etc I feel programmers need to know about these things.
ProgrammingWhy Doesn't Anyone In Nigeria Code In A Lisp by EfeAriaroo(op): 4:10am On Mar 02, 2013
Hi everyone. I'm aware the title of the post is an exergeration. I have noticed how many programmers are not concerned about learning a Lisp. They are perfectly fine with their Java and php repertoire. "Php and Java get the job done" is what you are likely to hear them say.

Compare the following Java code with that of Clojure:

public class StringUtils {
public static boolean isBlank(String str) {
int strLen;
if (str == null || (strLen = str.length()) == 0) {
return true;
}
for (int i = 0; i < strLen; i++) {
if ((Character.isWhitespace(str.charAt(i)) == false)) {
return false;
}
}
return true;
}
}


;;;;Clojure code that does the same thing
(defn blank? [str]
(every? #(Character/isWhitespace %) str))

Believe you me guys, the clojure code does the same thing as the Java code. Now, who wouldn't want to code in that?

The snippets of code were derived from the book "Programming Clojure" by Stuart Halloway and Aaron Bedra.

1 (of 1 pages)