* 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: CodeWalrus Post Notifier  (Read 11724 times)

0 Members and 1 Guest are viewing this topic.

Offline Snektron

  • Lvl 69 Russian Snake
  • CodeWalrus Staff
  • Super User
  • Topic Management
  • Join Date: Dec 2014
  • Location: Netherlands
  • Posts: 3165
  • Post Rating Ratio: +32/-0
  • SSSssssss.....
    • RobinDeWalvis
    • Kzyrox
    • RobinDeWalvis
    • quantuminfinity
  • Gender: Male
CodeWalrus Post Notifier
« on: April 16, 2015, 01:34:08 pm »
For our computer science class we (@brentmaas, @TheCoder1998 and me) need to do a project. We had
to come up with a project ourselves. The first thing i did was send a mail to DJ, since i saw people would like a post notifier a while before.
Since we were quite busy at the time, we decided to delay developement untill we had some free time, which is about now.
We have to keep a log and everything too, so we'll be using this topic to notify of developement updates.

Language:
Since the default Android programming language is Java, and we can all code in Java (well, TheCoder is still learning :P), we'll
be using that to make the application. We will be using the Android SDK ofcourse.

Planned features:
 - Service that sends a push notification when a new post is made.
 - Clientside only. it will be checking the SMF RSS update feed and parsing data from there.
   (The SMF RSS feed gives post content too, but that might use too much data. If someone knows how to remove that data in the http request, or if
   a site maintainer can make a special feed for us, that would be nice :))
a custom smf mod that returns some data upon requesting an url
 - Toggle service active.
 - Toggle 3g update checking.
 - Algorithm to do more checks when there is intense posting.
 - Setting for time between checks
 - Activity that displays latest X posts
 - Setting to ignore some tags/topics/subforums

Release:
The app will be released on the play store, since i have an account anyways.
Ofcourse, the app will be free. Also we'll probably post it on a new topic when it's finished.

Further info
This app will sadly not be available for iOS, since none of us have a mac to develop on or an app store license.
Windows version is not ruled out but that's not part of the project, so that will maybe come later. (also if we do it, it's maybe better to do a chrome plugin).

If you have any suggestions or ideas, please leave them on this topic :)
« Last Edit: June 01, 2015, 04:25:53 pm by Cumred_Snektron »


  • Calculators owned: TI-84+
Legends say if you spam more than DJ Omnimaga, you will become a walrus...


Offline Duke "Tape" Eiyeron

  • Urist McEiyolobster
  • Super User
  • Join Date: Nov 2014
  • Location: (V)(-_(//));(V)
  • Posts: 1636
  • Post Rating Ratio: +11/-2
  • Fanciest Walrus of the oceans.
    • @@Eiyeron
    • Eiyeron
    • /u/Eiyeron
    • Eiyeron
    • Rétro-Actif : Rétro/Prog/Blog
  • Gender: Male
Re: CodeWalrus Post Notifier
« Reply #1 on: April 16, 2015, 02:02:59 pm »
Have fun with such kinds of projects. also try to make a passive notification reader, else batteries will be drown into obvlivion.
  • Calculators owned: A lot.

Online Juju

  • aka Yuki Kagayaki aka J̵̭͕͇ù̞̭̝̯̦j̴̭̙̗͖͡ù͏͓̲̕
  • Featured Project Author
  • Super User
  • Server Maintenance
  • Moderator
  • Forum Maintenance
  • Original 5
  • CodeWalrus Supporter
  • *
  • Join Date: Nov 2014
  • Location: Inside a walrus
  • Posts: 3017
  • Post Rating Ratio: +28/-2
  • Couch potato
    • jul.savard
    • juju2143
    • @juju2143
    • juju2143
    • @julosoft
    • juju-kun
    • /u/juju2143
    • juju2143
    • @juju2143
    • Juju's shed
  • Gender: Female
  • WalriiPoints: 99999
Re: CodeWalrus Post Notifier
« Reply #2 on: April 16, 2015, 03:24:59 pm »
I'm tempted to suggest GCM but that would require me to write a GCM server mod and store every user's ID to send them the same message to everyone individually.
  • Calculators owned: TI-83+ (dead?), Casio Prizm (also dead???)
  • Consoles, mobile devices and vintage computers owned: A lot
On hiatus until when the sun goes dark in plain day. Won't have internet on Aug 22-23, so try to not kill each other during that time. SO POST LIKE CRAZY WHILE I'M NOT HERE THANKS
YUKI-CHAAAANNNN
In the beginning there was walrii. In the end there will be walrii. All hail our supreme leader :walrii: --Snektron

if you wanna throw money at me and/or CodeWalrus monthly it's here

Offline Snektron

  • Lvl 69 Russian Snake
  • CodeWalrus Staff
  • Super User
  • Topic Management
  • Join Date: Dec 2014
  • Location: Netherlands
  • Posts: 3165
  • Post Rating Ratio: +32/-0
  • SSSssssss.....
    • RobinDeWalvis
    • Kzyrox
    • RobinDeWalvis
    • quantuminfinity
  • Gender: Male
Re: CodeWalrus Post Notifier
« Reply #3 on: April 16, 2015, 03:35:04 pm »
hm. I havent heard about GCM before, but it looks quite handy. Else we can write our own lightweight server to connect to for updates, and the server can search through the rss feed or something. Is it possible to run a notify server on CW's servers?
  • Calculators owned: TI-84+
Legends say if you spam more than DJ Omnimaga, you will become a walrus...


Online Juju

  • aka Yuki Kagayaki aka J̵̭͕͇ù̞̭̝̯̦j̴̭̙̗͖͡ù͏͓̲̕
  • Featured Project Author
  • Super User
  • Server Maintenance
  • Moderator
  • Forum Maintenance
  • Original 5
  • CodeWalrus Supporter
  • *
  • Join Date: Nov 2014
  • Location: Inside a walrus
  • Posts: 3017
  • Post Rating Ratio: +28/-2
  • Couch potato
    • jul.savard
    • juju2143
    • @juju2143
    • juju2143
    • @julosoft
    • juju-kun
    • /u/juju2143
    • juju2143
    • @juju2143
    • Juju's shed
  • Gender: Female
  • WalriiPoints: 99999
Re: CodeWalrus Post Notifier
« Reply #4 on: April 16, 2015, 03:39:32 pm »
Sure. The best would be to make SMF send a message to the notification server directly when someone posts, just like what it's doing with the IRC bot.
  • Calculators owned: TI-83+ (dead?), Casio Prizm (also dead???)
  • Consoles, mobile devices and vintage computers owned: A lot
On hiatus until when the sun goes dark in plain day. Won't have internet on Aug 22-23, so try to not kill each other during that time. SO POST LIKE CRAZY WHILE I'M NOT HERE THANKS
YUKI-CHAAAANNNN
In the beginning there was walrii. In the end there will be walrii. All hail our supreme leader :walrii: --Snektron

if you wanna throw money at me and/or CodeWalrus monthly it's here

Offline Snektron

  • Lvl 69 Russian Snake
  • CodeWalrus Staff
  • Super User
  • Topic Management
  • Join Date: Dec 2014
  • Location: Netherlands
  • Posts: 3165
  • Post Rating Ratio: +32/-0
  • SSSssssss.....
    • RobinDeWalvis
    • Kzyrox
    • RobinDeWalvis
    • quantuminfinity
  • Gender: Male
Re: CodeWalrus Post Notifier
« Reply #5 on: April 16, 2015, 03:43:05 pm »
Yes that would be ideal. How would SMF be sending the message though?
  • Calculators owned: TI-84+
Legends say if you spam more than DJ Omnimaga, you will become a walrus...


Offline xlibman

  • Omni founder & CW co-founder
  • CodeWalrus Staff
  • Super User
  • Original 5
  • CodeWalrus Supporter
  • *
  • Join Date: Nov 2014
  • Location: Quebec, Canada
  • Posts: 18622
  • Post Rating Ratio: +95/-4
    • dj_omnimaga
    • DJOmnimaga.music
    • @DJOmnimaga
    • dj_omnimaga
    • @DJOmnimaga
    • /u/DJ_Omnimaga
    • DJOmnimaga
    • 112/11286
    • @djomnimaga
    • @DJOmnimaga
    • DJ Omnimaga music store
  • Gender: Male
Re: CodeWalrus Post Notifier
« Reply #6 on: April 16, 2015, 03:52:19 pm »
Juju's last idea would be ideal, but of course it depends of how reliable such inter-server connection would be and we would have to make sure that the app doesn't take too many resources. Also, if the server that the app uses is down, then it needs to not slow down forum posting.

Anyway a post notifier would definitively rule if it doesn't spam the server with requests or fake page views. Good luck in any case! :)

What I am thinking is that when a new post is made, then Walrified should also store the topic title and URL in a standalone file or database element on the server and the notification app would check that log instead of the site's RSS. That way, it won't rack up forum page views and it would be smaller in size (it could maybe only keep the last 5 replies on record).
« Last Edit: April 16, 2015, 03:54:46 pm by DJ Omnimaga »
  • Calculators owned: TI-57, 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 (semi-broken), 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)

Online Juju

  • aka Yuki Kagayaki aka J̵̭͕͇ù̞̭̝̯̦j̴̭̙̗͖͡ù͏͓̲̕
  • Featured Project Author
  • Super User
  • Server Maintenance
  • Moderator
  • Forum Maintenance
  • Original 5
  • CodeWalrus Supporter
  • *
  • Join Date: Nov 2014
  • Location: Inside a walrus
  • Posts: 3017
  • Post Rating Ratio: +28/-2
  • Couch potato
    • jul.savard
    • juju2143
    • @juju2143
    • juju2143
    • @julosoft
    • juju-kun
    • /u/juju2143
    • juju2143
    • @juju2143
    • Juju's shed
  • Gender: Female
  • WalriiPoints: 99999
Re: CodeWalrus Post Notifier
« Reply #7 on: April 16, 2015, 04:09:00 pm »
Yes that would be ideal. How would SMF be sending the message though?
The IRC bot uses UDP, with SMF acting as a client.
  • Calculators owned: TI-83+ (dead?), Casio Prizm (also dead???)
  • Consoles, mobile devices and vintage computers owned: A lot
On hiatus until when the sun goes dark in plain day. Won't have internet on Aug 22-23, so try to not kill each other during that time. SO POST LIKE CRAZY WHILE I'M NOT HERE THANKS
YUKI-CHAAAANNNN
In the beginning there was walrii. In the end there will be walrii. All hail our supreme leader :walrii: --Snektron

if you wanna throw money at me and/or CodeWalrus monthly it's here

Offline Duke "Tape" Eiyeron

  • Urist McEiyolobster
  • Super User
  • Join Date: Nov 2014
  • Location: (V)(-_(//));(V)
  • Posts: 1636
  • Post Rating Ratio: +11/-2
  • Fanciest Walrus of the oceans.
    • @@Eiyeron
    • Eiyeron
    • /u/Eiyeron
    • Eiyeron
    • Rétro-Actif : Rétro/Prog/Blog
  • Gender: Male
Re: CodeWalrus Post Notifier
« Reply #8 on: April 16, 2015, 04:13:59 pm »
That would be useful indeed to get notifications from SMF, hyes.
  • Calculators owned: A lot.

Offline Snektron

  • Lvl 69 Russian Snake
  • CodeWalrus Staff
  • Super User
  • Topic Management
  • Join Date: Dec 2014
  • Location: Netherlands
  • Posts: 3165
  • Post Rating Ratio: +32/-0
  • SSSssssss.....
    • RobinDeWalvis
    • Kzyrox
    • RobinDeWalvis
    • quantuminfinity
  • Gender: Male
Re: CodeWalrus Post Notifier
« Reply #9 on: April 16, 2015, 04:44:46 pm »
Yes that would be ideal. How would SMF be sending the message though?
The IRC bot uses UDP, with SMF acting as a client.
Ah okay. That shouldn't be too hard to implement.
  • Calculators owned: TI-84+
Legends say if you spam more than DJ Omnimaga, you will become a walrus...


Online Juju

  • aka Yuki Kagayaki aka J̵̭͕͇ù̞̭̝̯̦j̴̭̙̗͖͡ù͏͓̲̕
  • Featured Project Author
  • Super User
  • Server Maintenance
  • Moderator
  • Forum Maintenance
  • Original 5
  • CodeWalrus Supporter
  • *
  • Join Date: Nov 2014
  • Location: Inside a walrus
  • Posts: 3017
  • Post Rating Ratio: +28/-2
  • Couch potato
    • jul.savard
    • juju2143
    • @juju2143
    • juju2143
    • @julosoft
    • juju-kun
    • /u/juju2143
    • juju2143
    • @juju2143
    • Juju's shed
  • Gender: Female
  • WalriiPoints: 99999
Re: CodeWalrus Post Notifier
« Reply #10 on: April 16, 2015, 05:04:43 pm »
You would have to implement a UDP server and process whatever it recieves. Yeah, pretty easy.
  • Calculators owned: TI-83+ (dead?), Casio Prizm (also dead???)
  • Consoles, mobile devices and vintage computers owned: A lot
On hiatus until when the sun goes dark in plain day. Won't have internet on Aug 22-23, so try to not kill each other during that time. SO POST LIKE CRAZY WHILE I'M NOT HERE THANKS
YUKI-CHAAAANNNN
In the beginning there was walrii. In the end there will be walrii. All hail our supreme leader :walrii: --Snektron

if you wanna throw money at me and/or CodeWalrus monthly it's here

Offline xlibman

  • Omni founder & CW co-founder
  • CodeWalrus Staff
  • Super User
  • Original 5
  • CodeWalrus Supporter
  • *
  • Join Date: Nov 2014
  • Location: Quebec, Canada
  • Posts: 18622
  • Post Rating Ratio: +95/-4
    • dj_omnimaga
    • DJOmnimaga.music
    • @DJOmnimaga
    • dj_omnimaga
    • @DJOmnimaga
    • /u/DJ_Omnimaga
    • DJOmnimaga
    • 112/11286
    • @djomnimaga
    • @DJOmnimaga
    • DJ Omnimaga music store
  • Gender: Male
Re: CodeWalrus Post Notifier
« Reply #11 on: April 16, 2015, 05:31:49 pm »
Yeah the thing is just make sure that you don't reload the SMF RSS feed or any forum page to check if there are new posts. If, for example, 10 members use the application and the app checks the RSS feed every 10 second for new posts, then the Forum statistic page will show 864000 extra page views everyday and I'm unsure if we want fake stats. Omnimaga had a similar problem in March 2014 when they tried ENotify, in addition to many errors. Not sure what is an UDP server but I'll check I guess.
  • Calculators owned: TI-57, 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 (semi-broken), 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 Snektron

  • Lvl 69 Russian Snake
  • CodeWalrus Staff
  • Super User
  • Topic Management
  • Join Date: Dec 2014
  • Location: Netherlands
  • Posts: 3165
  • Post Rating Ratio: +32/-0
  • SSSssssss.....
    • RobinDeWalvis
    • Kzyrox
    • RobinDeWalvis
    • quantuminfinity
  • Gender: Male
Re: CodeWalrus Post Notifier
« Reply #12 on: April 16, 2015, 06:55:32 pm »
UDP is a protocol. It just means SMF sends a packet to the notify server with 'hey - theres a new post! its {post data}" or something :P
  • Calculators owned: TI-84+
Legends say if you spam more than DJ Omnimaga, you will become a walrus...


Offline xlibman

  • Omni founder & CW co-founder
  • CodeWalrus Staff
  • Super User
  • Original 5
  • CodeWalrus Supporter
  • *
  • Join Date: Nov 2014
  • Location: Quebec, Canada
  • Posts: 18622
  • Post Rating Ratio: +95/-4
    • dj_omnimaga
    • DJOmnimaga.music
    • @DJOmnimaga
    • dj_omnimaga
    • @DJOmnimaga
    • /u/DJ_Omnimaga
    • DJOmnimaga
    • 112/11286
    • @djomnimaga
    • @DJOmnimaga
    • DJ Omnimaga music store
  • Gender: Male
Re: CodeWalrus Post Notifier
« Reply #13 on: April 16, 2015, 07:27:50 pm »
Ah right, such protocol would work better then. Would it be better to host it on our server in case yours or your URL go down in the future? (which just happened to your URL >.<)

Also yeeah there needs to be a timeout feature so that if after 3 seconds it still cannot register a connection, then it sends the post to the forums and IRC and just skips your app. Otherwise I remember that at first, when Omni used a similar way to notify of new posts on IRC, it would wait until the forums can register a connection to the IRC bot and we could no longer post at all if the bot was down  >.<
« Last Edit: April 16, 2015, 07:29:36 pm by DJ Omnimaga »
  • Calculators owned: TI-57, 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 (semi-broken), 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 Snektron

  • Lvl 69 Russian Snake
  • CodeWalrus Staff
  • Super User
  • Topic Management
  • Join Date: Dec 2014
  • Location: Netherlands
  • Posts: 3165
  • Post Rating Ratio: +32/-0
  • SSSssssss.....
    • RobinDeWalvis
    • Kzyrox
    • RobinDeWalvis
    • quantuminfinity
  • Gender: Male
Re: CodeWalrus Post Notifier
« Reply #14 on: April 16, 2015, 07:31:23 pm »
Yeah that's why i asked it, and why we initially planned to have it clientside only
  • Calculators owned: TI-84+
Legends say if you spam more than DJ Omnimaga, you will become a walrus...


 


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