EfeAriaroo's Posts
Nairaland Forum › EfeAriaroo's Profile › EfeAriaroo's Posts
1 (of 1 pages)
I can see. You must have been really bored. What software did you use to do this by the way? Curious. |
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; } |
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. |
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." ;} else { //Permissions denied Dialog.alert("I have to close now. I can't function properly without the right permissions." ;System.exit(0); } |
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. |
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. |
@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. |
Thanks dpuzo. I'll try that and get back to you. |
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. |
yes. |
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. |
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' |
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. |
@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. |
@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. |
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 {;;;;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)
;