* WalrusIRC

You need to have 5 posts and not be part of restricted usergroups in order to use the WalrusIRC embedded shoutbox. However, you can also access our IRC channel called #CodeWalrus via EFnet.

Author Topic: A program for Eye strain  (Read 885 times)

0 Members and 1 Guest are viewing this topic.

Offline gameblabla

  • Super User
  • Join Date: May 2015
  • Location:
  • Posts: 580
  • Post Rating Ratio: +9/-5
  • TI-nspire porter
    • View Profile
A program for Eye strain
« on: September 15, 2016, 09:54:41 am »
Epilepy warning, this program quickly alternates colors !

I was looking at an old article about e-ink displays and whetever they were better for eyes than LCDs.
The doctor said the reason for eye strain is because we are not blnking enough and we are looking at our screen for too long.
He suggested the rule 20/20 : Every 20 minutes, look elsewhere (your cat for example) for 20 seconds.
Since i care about my health, i have decided to make a little program that would follow this rule, with some differences.
After 15 minutes, the screen will randomly blink, forcing you to stop looking at the screen.

Source is here and it requires SDL2 for graphics :
https://github.com/gameblabla/eyes_doctor_lcd

Compile the program with the makefile (or using a GUI manually) and put the resulting executable at startup.
The code should be pretty portable and can even be in theory ported to the TI-Nspire.

What the program does :
It will show you a red screen every minute for 2 seconds, meaning you should blink.
Every 15 minutes, the screen will randomly alternate colors, forcing you to look away from screen for about 20 seconds.
Repeat.

For my own use, it works pretty well so i'm sure it will be useful to some of you here.
« Last Edit: September 15, 2016, 06:38:31 pm by gameblabla »


  • Calculators owned: TI Nspire CX, TI-89

Offline p2

  • CodeWalrus Staff
  • Super User
  • Moderator
  • CodeWalrus Supporter
  • *
  • Join Date: Aug 2016
  • Location: Germany
  • Posts: 1891
  • Post Rating Ratio: +7/-0
  • *Wubba lubba dub dub*
    • KaliPhobos
    • View Profile
  • Gender: Male
Re: A program for Eye strain
« Reply #1 on: September 15, 2016, 11:47:02 am »
could you maybe provide screenshots of what the program does // how it looks like? :)
Edit: I don't have a cat... :'(
  • Calculators owned: ti-83+, ti-84+, ti-84+, ti-84+se, ti-84+se(te), ti-nsphire, ti-nsphire CX-CAS, ti-voyage, ti-voyage, Who reads this list anyways...?
Anyway war sucks. Just bring us your food instead of missiles  :P ~ DJ Omnimaga (11.10.2016 20:21:48)
if you cant get a jframe set up, draw stuff to it, and receive input, i can only imagine how horrible your game code is _._   ~ c4ooo (14.11.2016 22:44:07)
If they pull a Harambe on me tell my family I love them ~ u/Pwntear37d (AssangeWatch /r/)
make Walrii great again ~ DJ Omnimaga (28.11.2016 23:01:31)
God invented the pc, satan the smartphone I guess ~ p4nix (16.02.2017 22:51:49)

Offline DJ Omnimaga

  • Omni founder & CW co-founder
  • CodeWalrus Staff
  • Super User
  • Forum Maintenance
  • Original 5
  • CodeWalrus Supporter
  • *
  • Topic Management
  • Join Date: Nov 2014
  • Location: Quebec, Canada
  • Posts: 17468
  • Post Rating Ratio: +83/-4
    • dj_omnimaga
    • DJOmnimaga.music
    • @DJOmnimaga
    • dj_omnimaga
    • @DJOmnimaga
    • /u/DJ_Omnimaga
    • DJOmnimaga
    • 112/11286
    • @djomnimaga
    • @DJOmnimaga
    • View Profile
    • DJ Omnimaga music store
  • Gender: Male
Re: A program for Eye strain
« Reply #2 on: September 15, 2016, 04:19:55 pm »
Is a cat a requirement? :P

Nice idea, though. Just make sure it can be disabled at will, in case someone plays multiplayer games. Also I always wondered if Twilight and f.lux are effective?
  • Calculators owned: TI-73, TI-80 (broken), TI-81, TI-82, TI-83, TI-83+ (broken), TI-83+ (broken), TI-83+SE (broken), TI-84+, TI-84+CSE, TI-84+CE, TI-85, TI-86, TI-89T, TI-92, TI-Nspire, TI-Nspire CX, HP 39gII, HP Prime, Casio fx-7000G, fx-7400G+, fx-7700GE, fx-9750G+, fx-9750GII, fx-9860G, cfx-9850G, FX-1.0+, fx-CG10, fx-CP400
  • Consoles, mobile devices and vintage computers owned: Samsung i5510, Nexus 5, Atari 2600, Lynx, SMS, Game Gear, Genesis, Dreamcast, NES, SNES, N64, GCN, Wii, Wii U, GBA, DS, 3DS, PS2, PS3, PS4, PSP, PSVita, XBox 360, XBOne

Bandcamp|Reverbnation|Facebook|Youtube|Twitter
Retired Omnimaga admin (2001-11) and editor (2012-14)
??? ??? ??? ???

Offline gameblabla

  • Super User
  • Join Date: May 2015
  • Location:
  • Posts: 580
  • Post Rating Ratio: +9/-5
  • TI-nspire porter
    • View Profile
Re: A program for Eye strain
« Reply #3 on: September 15, 2016, 06:21:15 pm »
could you maybe provide screenshots of what the program does // how it looks like? :)
There's not much to it, it just quickly alternates colors. (and i don't want to put an epilepsy warning here so...)

Quote
Nice idea, though. Just make sure it can be disabled at will, in case someone plays multiplayer games. Also I always wondered if Twilight and f.lux are effective?
The user has to manually put the executable at startup and it can be uninstalled at any time.
(just make sure to kill the application with a task killer though after)
Yeah, it's quite primitive i admit, i could add a taskbar to it if i wanted.

And no, the cat isn't a requirement. (plus sometimes they can be super annoying, you're not missing much guys)

Didn't know about f.lux, i looked at it and it doesn't seem at adress the issues with eye strain at all.
Plus it has no proof it actually solves eye strain or even backed by some evidence (doctors or scientists).
Finally, it is proprietary and has no linux version.
« Last Edit: September 15, 2016, 06:29:15 pm by gameblabla »
  • Calculators owned: TI Nspire CX, TI-89

Offline p2

  • CodeWalrus Staff
  • Super User
  • Moderator
  • CodeWalrus Supporter
  • *
  • Join Date: Aug 2016
  • Location: Germany
  • Posts: 1891
  • Post Rating Ratio: +7/-0
  • *Wubba lubba dub dub*
    • KaliPhobos
    • View Profile
  • Gender: Male
Re: A program for Eye strain
« Reply #4 on: September 15, 2016, 06:25:25 pm »
could you maybe provide screenshots of what the program does // how it looks like? :)
There's not much to it, it just quickly alternates colors. (and i don't want to put an epilepsy warning here so...)
In this case you should DEFINITELY put up a warning for guys affected by epilepsy not to use it!!  :ninja:
« Last Edit: September 19, 2016, 08:19:17 pm by p2 »
  • Calculators owned: ti-83+, ti-84+, ti-84+, ti-84+se, ti-84+se(te), ti-nsphire, ti-nsphire CX-CAS, ti-voyage, ti-voyage, Who reads this list anyways...?
Anyway war sucks. Just bring us your food instead of missiles  :P ~ DJ Omnimaga (11.10.2016 20:21:48)
if you cant get a jframe set up, draw stuff to it, and receive input, i can only imagine how horrible your game code is _._   ~ c4ooo (14.11.2016 22:44:07)
If they pull a Harambe on me tell my family I love them ~ u/Pwntear37d (AssangeWatch /r/)
make Walrii great again ~ DJ Omnimaga (28.11.2016 23:01:31)
God invented the pc, satan the smartphone I guess ~ p4nix (16.02.2017 22:51:49)

Offline gameblabla

  • Super User
  • Join Date: May 2015
  • Location:
  • Posts: 580
  • Post Rating Ratio: +9/-5
  • TI-nspire porter
    • View Profile
Re: A program for Eye strain
« Reply #5 on: September 15, 2016, 06:40:36 pm »
I had realised my program does not solve the blinking issue, only the rule 20/20.
For 15 minutes straight, the user will look at the screen without blinking once.
This isn't good so i have modified my program once again.

Every minute, the program will show you a red screen for 2 seconds,
basically telling you to blink.
  • Calculators owned: TI Nspire CX, TI-89

Offline p2

  • CodeWalrus Staff
  • Super User
  • Moderator
  • CodeWalrus Supporter
  • *
  • Join Date: Aug 2016
  • Location: Germany
  • Posts: 1891
  • Post Rating Ratio: +7/-0
  • *Wubba lubba dub dub*
    • KaliPhobos
    • View Profile
  • Gender: Male
Re: A program for Eye strain
« Reply #6 on: September 15, 2016, 07:11:40 pm »
Nice idea, though. Just make sure it can be disabled at will, in case someone plays multiplayer games.
I guess a nice lovely female voice telling you to "f***ing blink" would be cool for something like a "gaming mode" (or audio instead of video in general ^^)
  • Calculators owned: ti-83+, ti-84+, ti-84+, ti-84+se, ti-84+se(te), ti-nsphire, ti-nsphire CX-CAS, ti-voyage, ti-voyage, Who reads this list anyways...?
Anyway war sucks. Just bring us your food instead of missiles  :P ~ DJ Omnimaga (11.10.2016 20:21:48)
if you cant get a jframe set up, draw stuff to it, and receive input, i can only imagine how horrible your game code is _._   ~ c4ooo (14.11.2016 22:44:07)
If they pull a Harambe on me tell my family I love them ~ u/Pwntear37d (AssangeWatch /r/)
make Walrii great again ~ DJ Omnimaga (28.11.2016 23:01:31)
God invented the pc, satan the smartphone I guess ~ p4nix (16.02.2017 22:51:49)

Offline DJ Omnimaga

  • Omni founder & CW co-founder
  • CodeWalrus Staff
  • Super User
  • Forum Maintenance
  • Original 5
  • CodeWalrus Supporter
  • *
  • Topic Management
  • Join Date: Nov 2014
  • Location: Quebec, Canada
  • Posts: 17468
  • Post Rating Ratio: +83/-4
    • dj_omnimaga
    • DJOmnimaga.music
    • @DJOmnimaga
    • dj_omnimaga
    • @DJOmnimaga
    • /u/DJ_Omnimaga
    • DJOmnimaga
    • 112/11286
    • @djomnimaga
    • @DJOmnimaga
    • View Profile
    • DJ Omnimaga music store
  • Gender: Male
Re: A program for Eye strain
« Reply #7 on: September 15, 2016, 08:09:49 pm »
I am refering to how in multiplayer games there's no pause feature, so if you're Zerg at Starcraft and are in thr middle of a battle and your screen vanishes then it's pretty much game over.
  • Calculators owned: TI-73, TI-80 (broken), TI-81, TI-82, TI-83, TI-83+ (broken), TI-83+ (broken), TI-83+SE (broken), TI-84+, TI-84+CSE, TI-84+CE, TI-85, TI-86, TI-89T, TI-92, TI-Nspire, TI-Nspire CX, HP 39gII, HP Prime, Casio fx-7000G, fx-7400G+, fx-7700GE, fx-9750G+, fx-9750GII, fx-9860G, cfx-9850G, FX-1.0+, fx-CG10, fx-CP400
  • Consoles, mobile devices and vintage computers owned: Samsung i5510, Nexus 5, Atari 2600, Lynx, SMS, Game Gear, Genesis, Dreamcast, NES, SNES, N64, GCN, Wii, Wii U, GBA, DS, 3DS, PS2, PS3, PS4, PSP, PSVita, XBox 360, XBOne

Bandcamp|Reverbnation|Facebook|Youtube|Twitter
Retired Omnimaga admin (2001-11) and editor (2012-14)
??? ??? ??? ???

Offline gameblabla

  • Super User
  • Join Date: May 2015
  • Location:
  • Posts: 580
  • Post Rating Ratio: +9/-5
  • TI-nspire porter
    • View Profile
Re: A program for Eye strain
« Reply #8 on: September 15, 2016, 08:13:12 pm »
I am refering to how in multiplayer games there's no pause feature, so if you're Zerg at Starcraft and are in thr middle of a battle and your screen vanishes then it's pretty much game over.
In that case, an audio-only version could be done but i'm afraid people will not follow the 20/20 rule however if it's audio-only.
But I agree i can't cover everything...
  • Calculators owned: TI Nspire CX, TI-89

Offline Juju

  • aka Yuki Kagayaki aka J̵̭͕͇ù̞̭̝̯̦j̴̭̙̗͖͡ù͏͓̲̕
  • CodeWalrus Staff
  • Super User
  • Server Maintenance
  • Moderator
  • Forum Maintenance
  • Original 5
  • CodeWalrus Supporter
  • *
  • Join Date: Nov 2014
  • Location: Inside a walrus
  • Posts: 2668
  • Post Rating Ratio: +17/-1
  • Couch potato
    • jul.savard
    • juju2143
    • @juju2143
    • juju2143
    • @julosoft
    • juju-kun
    • /u/juju2143
    • juju2143
    • View Profile
    • Juju's shed
  • Gender: Female
  • WalriiPoints: 99999
Re: A program for Eye strain
« Reply #9 on: September 16, 2016, 05:01:03 am »
Something that gives you epilepsy if you're looking at it? Interesting.

I wonder how efficient it is compared to less epilepsy-inducing solutions such as f.lux, but that's an interesting way to look at the problem.
« Last Edit: September 16, 2016, 05:02:34 am by Juju »
  • Calculators owned: TI-83+ (dead?), Casio Prizm (also dead???)

In the beginning there was walrii. In the end there will be walrii. All hail our supreme leader :walrii:

YUKI-CHAAAANNNN

Offline DJ Omnimaga

  • Omni founder & CW co-founder
  • CodeWalrus Staff
  • Super User
  • Forum Maintenance
  • Original 5
  • CodeWalrus Supporter
  • *
  • Topic Management
  • Join Date: Nov 2014
  • Location: Quebec, Canada
  • Posts: 17468
  • Post Rating Ratio: +83/-4
    • dj_omnimaga
    • DJOmnimaga.music
    • @DJOmnimaga
    • dj_omnimaga
    • @DJOmnimaga
    • /u/DJ_Omnimaga
    • DJOmnimaga
    • 112/11286
    • @djomnimaga
    • @DJOmnimaga
    • View Profile
    • DJ Omnimaga music store
  • Gender: Male
Re: A program for Eye strain
« Reply #10 on: September 16, 2016, 07:01:48 am »
Audio could work if the game audio isn't too loud. I guess it would be up to the user to setup his games to not be too loud.

As for f.lux and Twilight my concern is that while it made the screen less blue, I had the impression that it did not necessarily filter the blue light that's said to keep people awake. I mean, even if the entire content of your phone screen is a black picture, the screen still produces blue-tinted light of some sort it seems. It seems to be like if your house was on fire and you turned off the lights in order to reduce the lightning. Twilight and f.lux does help slightly, but I feel they are not that effective.
  • Calculators owned: TI-73, TI-80 (broken), TI-81, TI-82, TI-83, TI-83+ (broken), TI-83+ (broken), TI-83+SE (broken), TI-84+, TI-84+CSE, TI-84+CE, TI-85, TI-86, TI-89T, TI-92, TI-Nspire, TI-Nspire CX, HP 39gII, HP Prime, Casio fx-7000G, fx-7400G+, fx-7700GE, fx-9750G+, fx-9750GII, fx-9860G, cfx-9850G, FX-1.0+, fx-CG10, fx-CP400
  • Consoles, mobile devices and vintage computers owned: Samsung i5510, Nexus 5, Atari 2600, Lynx, SMS, Game Gear, Genesis, Dreamcast, NES, SNES, N64, GCN, Wii, Wii U, GBA, DS, 3DS, PS2, PS3, PS4, PSP, PSVita, XBox 360, XBOne

Bandcamp|Reverbnation|Facebook|Youtube|Twitter
Retired Omnimaga admin (2001-11) and editor (2012-14)
??? ??? ??? ???

Offline gameblabla

  • Super User
  • Join Date: May 2015
  • Location:
  • Posts: 580
  • Post Rating Ratio: +9/-5
  • TI-nspire porter
    • View Profile
Re: A program for Eye strain
« Reply #11 on: September 16, 2016, 07:09:15 am »
Yeah, i don't think an audio version would be very effective... unless the user is blind but then again,
they don't have to worry about eye strain haha.

If anyone is wondering how effective the program is, i spent almost 9 hours straight on my computer using it
and i can see a difference. (see what i did there ?)
My eyes hurt less than what they used before so i believe the doctor was right all along after all.
It's not quite an antidote though... my eyes are still tired but it's an improvement.

Some might find it annoying though : several times the red screen interrupted my work.
It can be tweaked to be less aggressive though.
  • Calculators owned: TI Nspire CX, TI-89

Offline DJ Omnimaga

  • Omni founder & CW co-founder
  • CodeWalrus Staff
  • Super User
  • Forum Maintenance
  • Original 5
  • CodeWalrus Supporter
  • *
  • Topic Management
  • Join Date: Nov 2014
  • Location: Quebec, Canada
  • Posts: 17468
  • Post Rating Ratio: +83/-4
    • dj_omnimaga
    • DJOmnimaga.music
    • @DJOmnimaga
    • dj_omnimaga
    • @DJOmnimaga
    • /u/DJ_Omnimaga
    • DJOmnimaga
    • 112/11286
    • @djomnimaga
    • @DJOmnimaga
    • View Profile
    • DJ Omnimaga music store
  • Gender: Male
Re: A program for Eye strain
« Reply #12 on: September 16, 2016, 07:12:25 am »
Actually, for audio I think the best way would be to set it much louder, not like scary pop ups, but still significantly louder than everything else, or maybe have everything else fade to zero volume while the PC tells you to look elsewhere for 20 seconds. But then if the user is nervous or easily scared or if he has heart issues then such loud sounds will cause more problems than anything else. Anyway I'm glad your program was useful to you so far. :)
  • Calculators owned: TI-73, TI-80 (broken), TI-81, TI-82, TI-83, TI-83+ (broken), TI-83+ (broken), TI-83+SE (broken), TI-84+, TI-84+CSE, TI-84+CE, TI-85, TI-86, TI-89T, TI-92, TI-Nspire, TI-Nspire CX, HP 39gII, HP Prime, Casio fx-7000G, fx-7400G+, fx-7700GE, fx-9750G+, fx-9750GII, fx-9860G, cfx-9850G, FX-1.0+, fx-CG10, fx-CP400
  • Consoles, mobile devices and vintage computers owned: Samsung i5510, Nexus 5, Atari 2600, Lynx, SMS, Game Gear, Genesis, Dreamcast, NES, SNES, N64, GCN, Wii, Wii U, GBA, DS, 3DS, PS2, PS3, PS4, PSP, PSVita, XBox 360, XBOne

Bandcamp|Reverbnation|Facebook|Youtube|Twitter
Retired Omnimaga admin (2001-11) and editor (2012-14)
??? ??? ??? ???

Offline p2

  • CodeWalrus Staff
  • Super User
  • Moderator
  • CodeWalrus Supporter
  • *
  • Join Date: Aug 2016
  • Location: Germany
  • Posts: 1891
  • Post Rating Ratio: +7/-0
  • *Wubba lubba dub dub*
    • KaliPhobos
    • View Profile
  • Gender: Male
Re: A program for Eye strain
« Reply #13 on: September 16, 2016, 08:52:15 am »
try playing a song on your computer and then turning up the volume from 0 to 100 within just 2 seconds - since it starts at a low volume it won't scare anyone anymore ;)
could do the same for this program: some nice background melody starting at low volume and when it's at 100% a voice telling you to blink or something ^^ (would end up with 4-5sec of audio which is still acceptable I think
  • Calculators owned: ti-83+, ti-84+, ti-84+, ti-84+se, ti-84+se(te), ti-nsphire, ti-nsphire CX-CAS, ti-voyage, ti-voyage, Who reads this list anyways...?
Anyway war sucks. Just bring us your food instead of missiles  :P ~ DJ Omnimaga (11.10.2016 20:21:48)
if you cant get a jframe set up, draw stuff to it, and receive input, i can only imagine how horrible your game code is _._   ~ c4ooo (14.11.2016 22:44:07)
If they pull a Harambe on me tell my family I love them ~ u/Pwntear37d (AssangeWatch /r/)
make Walrii great again ~ DJ Omnimaga (28.11.2016 23:01:31)
God invented the pc, satan the smartphone I guess ~ p4nix (16.02.2017 22:51:49)

Offline DJ Omnimaga

  • Omni founder & CW co-founder
  • CodeWalrus Staff
  • Super User
  • Forum Maintenance
  • Original 5
  • CodeWalrus Supporter
  • *
  • Topic Management
  • Join Date: Nov 2014
  • Location: Quebec, Canada
  • Posts: 17468
  • Post Rating Ratio: +83/-4
    • dj_omnimaga
    • DJOmnimaga.music
    • @DJOmnimaga
    • dj_omnimaga
    • @DJOmnimaga
    • /u/DJ_Omnimaga
    • DJOmnimaga
    • 112/11286
    • @djomnimaga
    • @DJOmnimaga
    • View Profile
    • DJ Omnimaga music store
  • Gender: Male
Re: A program for Eye strain
« Reply #14 on: September 16, 2016, 11:34:12 pm »
I often found out that sometimes I'm too much into a game to notice songs that starts playing :P
  • Calculators owned: TI-73, TI-80 (broken), TI-81, TI-82, TI-83, TI-83+ (broken), TI-83+ (broken), TI-83+SE (broken), TI-84+, TI-84+CSE, TI-84+CE, TI-85, TI-86, TI-89T, TI-92, TI-Nspire, TI-Nspire CX, HP 39gII, HP Prime, Casio fx-7000G, fx-7400G+, fx-7700GE, fx-9750G+, fx-9750GII, fx-9860G, cfx-9850G, FX-1.0+, fx-CG10, fx-CP400
  • Consoles, mobile devices and vintage computers owned: Samsung i5510, Nexus 5, Atari 2600, Lynx, SMS, Game Gear, Genesis, Dreamcast, NES, SNES, N64, GCN, Wii, Wii U, GBA, DS, 3DS, PS2, PS3, PS4, PSP, PSVita, XBox 360, XBOne

Bandcamp|Reverbnation|Facebook|Youtube|Twitter
Retired Omnimaga admin (2001-11) and editor (2012-14)
??? ??? ??? ???

 


You can also use the following HTML or bulletin board code to share it on your page or forum signature!


Also do not forget to check our affiliates below.
Planet Casio TI-Planet Calc.news BroniesQC BosaikNet Velocity Games