Omnimaga: The Coders Of Tomorrow
Welcome, Guest. Please login or register.
 
Omnimaga: The Coders Of Tomorrow
20 June, 2013, 11:57:55 *
Welcome, Guest. Please login or register.

Login with username, password and session length
 
   home   news downloads projects tutorials misc forums rules new posts irc about Login Register  
+-OmnomIRC

You must Register, be logged in and have at least 40 posts to use this shout-box! If it still doesn't show up afterward, it might be that OmnomIRC is disabled for your group or under maintenance.

Note: You can also use an IRC client like mIRC, X-Chat or Mibbit to connect to an EFnet server and #omnimaga.

Pages: 1 ... 6 7 [8]   Go Down
  Print  
Author Topic: Turn your Nspire into a real clock! -  (Read 6669 times) Bookmark and Share
0 Members and 1 Guest are viewing this topic.
Jim Bauwens
Lua! Nspire! Linux!
Editor
LV10 31337 u53r (Next: 2000)
*
Offline Offline

Gender: Male
Last Login: Today at 09:26:08
Date Registered: 28 February, 2011, 22:32:12
Location: Belgium
Posts: 1736


Total Post Ratings: +180

View Profile WWW
« Reply #105 on: 19 April, 2012, 12:08:21 »
0

@linuxgeek96, if you can you should really post a photo. It will help us a great deal in trying to understand the exact issue.
(And yes, the exact position of the progress bar is important)

Thanks
Logged

linuxgeek96
LV3 Member (Next: 100)
***
Offline Offline

Last Login: 15 June, 2013, 23:16:55
Date Registered: 17 October, 2011, 18:15:24
Location: WLHS
Posts: 97


Total Post Ratings: +3

View Profile WWW
« Reply #106 on: 19 April, 2012, 18:07:10 »
0

I will try and post one soon... @Levak, the progress bar gets to ~65%, not 65 but 100% of the time. Its possible its caused by ndless only...
Logged

Filipe97
LV0 Newcomer (Next: 5)

Offline Offline

Last Login: 10 March, 2013, 23:58:45
Date Registered: 10 March, 2013, 23:52:22
Posts: 1

Total Post Ratings: 0

View Profile
« Reply #107 on: 10 March, 2013, 23:57:42 »
0

Hello the idea looks great but i am having a problem with it.

I cant edit the time, when i try to edit it the calculator crashes.

I have ti nspire cx(not cas).

Thanks for the time
« Last Edit: 10 March, 2013, 23:59:04 by Filipe97 » Logged
Levak
LV8 Addict (Next: 1000)
********
Offline Offline

Gender: Male
Last Login: Today at 10:33:21
Date Registered: 04 April, 2010, 23:42:49
Location: France
Posts: 858


Total Post Ratings: +150

View Profile WWW
« Reply #108 on: 11 March, 2013, 01:32:16 »
0

I cant edit the time, when i try to edit it the calculator crashes.

Hi,

Did you update your Ndless to a revision greater than the one indicated in the README ?

BTW, here is a message for everybody : nClock has some problems with daytime conversions, I'm aware of it but sadly have no time to solve it.
Basically there are three conversions, one is accurate (timestamp to day) but the two others are not (guessing weekday and day to timestamp) due to a float approximation : this is why you may enter two more days when configuring the time and may have a wrong weekday. Sorry about that..
« Last Edit: 11 March, 2013, 01:32:39 by Levak » Logged

Human always wants to survive and that's why he will fall one day.
My website - TI-Planet - iNspired-Lua
Deep Thought
So much to do, so much time, so little motivation
Administrator
LV13 Extreme Addict (Next: 9001)
*
Offline Offline

Gender: Male
Last Login: Today at 06:24:44
Date Registered: 19 May, 2009, 08:00:00
Location: The Universe
Posts: 7832


Total Post Ratings: +713

View Profile WWW
« Reply #109 on: 14 March, 2013, 04:24:44 »
0

This is off-topic but...
Thanks for the time
...just me or pun? Cheesy
Logged




Zeklandia
LV1 Newcomer (Next: 20)
*
Offline Offline

Gender: Male
Last Login: 25 May, 2013, 20:32:50
Date Registered: 16 May, 2013, 03:11:12
Posts: 10


Total Post Ratings: 0

View Profile
« Reply #110 on: 21 May, 2013, 04:56:30 »
0

I cant edit the time, when i try to edit it the calculator crashes.

Hi,

Did you update your Ndless to a revision greater than the one indicated in the README ?

BTW, here is a message for everybody : nClock has some problems with daytime conversions, I'm aware of it but sadly have no time to solve it.
Basically there are three conversions, one is accurate (timestamp to day) but the two others are not (guessing weekday and day to timestamp) due to a float approximation : this is why you may enter two more days when configuring the time and may have a wrong weekday. Sorry about that..

I have that same issue. It only happened when I used nLaunch to load 3.2 and then switched back. Now it subtracts 2 from the Day upon entry (I put in 20, then select change date again and it says 18) and has the weekday wrong by one (adds one). What could be causing this? I rebooted several times after uninstalling nClock and then reinstalled it. The time had been reset, but loading nClock asked, "Is Tues -1, Jan 1970 correct?" (Whereas the actual time was set to 1 Jan, 1970).
« Last Edit: 21 May, 2013, 05:09:18 by Zeklandia » Logged

Zeklandia
Linux, Android, Java, C/C++ Developer.
Levak
LV8 Addict (Next: 1000)
********
Offline Offline

Gender: Male
Last Login: Today at 10:33:21
Date Registered: 04 April, 2010, 23:42:49
Location: France
Posts: 858


Total Post Ratings: +150

View Profile WWW
« Reply #111 on: 21 May, 2013, 12:40:16 »
0

"Is Tues -1, Jan 1970 correct?" (Whereas the actual time was set to 1 Jan, 1970).
I love you.
In fact it wasn't due to float approximation but a stupid mistake ...
Fixed : https://tiplanet.org/forum/archives_voir.php?id=4416
Logged

Human always wants to survive and that's why he will fall one day.
My website - TI-Planet - iNspired-Lua
Zeklandia
LV1 Newcomer (Next: 20)
*
Offline Offline

Gender: Male
Last Login: 25 May, 2013, 20:32:50
Date Registered: 16 May, 2013, 03:11:12
Posts: 10


Total Post Ratings: 0

View Profile
« Reply #112 on: 21 May, 2013, 13:10:46 »
0

Yep, you fixed it. Now the issue is that it says that today (21 May 2013) is a Monday (It's Tuesday).

Could this have anything to do with the CAS OS? When I was using the CX OS it worked fine.

I'm gonna take a guess and say that the issue is here (line 509):


1
2
3
4
5
6
7
8
9
10
static short year_codes[] = {5, 4, 2, 0};
static short month_codes[] = {0, 3, 3, 6, 1, 4, 6, 2, 5, 0, 3, 5};
static char months[][4] = {"Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"};
static char weekdays[][4] = {"Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"};

char * getWeekDay(int year, int month, int day) {
    int d = (year>>2)/25;
    int r = year - (d<<2)*25;
    return weekdays[(year_codes[d&3] + r + (r>>2) + ((r&3)==0) + month_codes[month-1] + day) % 7];
}
« Last Edit: 21 May, 2013, 13:55:56 by Zeklandia » Logged

Zeklandia
Linux, Android, Java, C/C++ Developer.
Levak
LV8 Addict (Next: 1000)
********
Offline Offline

Gender: Male
Last Login: Today at 10:33:21
Date Registered: 04 April, 2010, 23:42:49
Location: France
Posts: 858


Total Post Ratings: +150

View Profile WWW
« Reply #113 on: 21 May, 2013, 14:04:25 »
0

Yep, you fixed it. Now the issue is that it says that today (21 May 2013) is a Monday (It's Tuesday).
Fu**, I actually thought today was Monday >_>
I made a really quick fix (day + 1 Cheesy) but have no idea if it has an influence on the rest of the code :
https://tiplanet.org/forum/archives_voir.php?id=4416
Logged

Human always wants to survive and that's why he will fall one day.
My website - TI-Planet - iNspired-Lua
Zeklandia
LV1 Newcomer (Next: 20)
*
Offline Offline

Gender: Male
Last Login: 25 May, 2013, 20:32:50
Date Registered: 16 May, 2013, 03:11:12
Posts: 10


Total Post Ratings: 0

View Profile
« Reply #114 on: 21 May, 2013, 22:42:02 »
0

I found out what might be causing all of these:

Apparently, when running the CAS OS on ANY NON-CAS CALCULATOR (regardless of CX) certain things do not work. For example, I made a simple Lua program to print 2+2. It prints 5.XXXXXXXXXXe-226 (or any other number similar to it) regardless of settings like Float number, angle unit (degree, radian), or auto vs. approximate answers. Which also explains why when I was playing CubeField, the highscore was also similar to 1.132458768087e+45 and Bloxorz was naming the levels in a similar manner (2.98721408137e-67 instead of 13). However, the Scratchpad and Math documents work fine. I do not know if the problem is caused by hardware differences between the CX and the CX CAS (I am using nLaunch to boot the CAS OS on my CX) or some ndless/Lua bug. This issue does not occur when using the CX OS 3.1 with ndless on the same calculator.
« Last Edit: 21 May, 2013, 22:45:09 by Zeklandia » Logged

Zeklandia
Linux, Android, Java, C/C++ Developer.
Levak
LV8 Addict (Next: 1000)
********
Offline Offline

Gender: Male
Last Login: Today at 10:33:21
Date Registered: 04 April, 2010, 23:42:49
Location: France
Posts: 858


Total Post Ratings: +150

View Profile WWW
« Reply #115 on: 21 May, 2013, 23:37:07 »
0

I found out what might be causing all of these:
Not "all of these" but only the bug you seem to have.
The bug in nClock was entirely due to a mistake in my code where as I thought it was due to a float approximation.

On the other hand, you should post in the nLaunch topic your bug, it seems you're not only the one to experiment that.
https://tiplanet.org/forum/viewtopic.php?f=16&t=11855
« Last Edit: 21 May, 2013, 23:38:52 by Levak » Logged

Human always wants to survive and that's why he will fall one day.
My website - TI-Planet - iNspired-Lua
Zeklandia
LV1 Newcomer (Next: 20)
*
Offline Offline

Gender: Male
Last Login: 25 May, 2013, 20:32:50
Date Registered: 16 May, 2013, 03:11:12
Posts: 10


Total Post Ratings: 0

View Profile
« Reply #116 on: 22 May, 2013, 00:23:23 »
0

I see that I am not alone. I wonder if he got it to work with nLaunch. Anyways, I am reinstalling nLaunch.

EDIT: Well I fucked up somewhere, now it does ABC12345F6U7 on boot...

EDIT: It's still fucked up, but I'm trying to save it. For a while I was using the non-CX switching pack. Now let's see if it works with the CX one.

EDIT: Fixed, Lua still doesn't work right, but nClock does so I'm done.
« Last Edit: 23 May, 2013, 03:04:08 by Zeklandia » Logged

Zeklandia
Linux, Android, Java, C/C++ Developer.
Pages: 1 ... 6 7 [8]   Go Up
  Print  
 
Jump to:  

Powered by EzPortal
Powered by MySQL Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Powered by PHP
Page created in 0.479 seconds with 29 queries.
Skin by DJ Omnimaga edited from SMF default theme with the help of tr1p1ea.
All programs, games and songs avaliable on this website are property of their respective owners.
Best viewed in Opera, Firefox, Chrome and Safari with a resolution of 1024x768 or above.