You can help CodeWalrus stay online by donating here. | New CodeWalrus | Old (dark mode) | Old (light) | Discord server

[Android] CodeWalrus Post Notifier

b/[Completed] CodeWalrus Tools (Web/Android/PC) Started by Snektron, April 16, 2015, 01:34:08 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

u/Yuki April 16, 2015, 08:53:32 PM
UDP is connectionless, so SMF don't care if the message arrived to its destination, the packet got lost, the server is off or whatever, and won't block until some sort of confirmation, that's why I chose it over TCP (which makes sure the packet arrived to destination in the right order and stuff). And when the server is 127.0.0.1 I don't think there's packet loss.
u/Duke "Tape" Eiyeron April 17, 2015, 01:54:10 PM
This and UDP doesn't care abut which packet comes before another. There aren't any attempts to get the original flow at client side.
u/Dream of Omnimaga April 18, 2015, 06:21:40 AM
That's good then. Good luck Cumred for the project and to whoever is involved in the SMF side of the notifier. :)
u/Snektron May 09, 2015, 12:03:45 PM
Hello! It's been a while since we announced this project and yesterday i finally decided to start coding.
I've implemented android's recyclerview so it looks nice with not too much effort. Also i added a http requester and a xml parser
so it can display posts.

As you can see, nothing is done about the raw HTML yet. Also there is not yet a menubar.
The menubar will also contain a fancy side menu for options and such. Also there is not yet a notification service.
The source is also on github: https://github.com/QuantumInfinity/CodeWalr.us-Post-Notifier
Let me know if you like it / have suggestions ;)

Also since this is a project for cw... *cough* featured project *cough cough* :P
But seriously maybe thats a good idea.
Last Edit: May 09, 2015, 12:12:27 PM by Cumred_Snektron
u/Dream of Omnimaga May 09, 2015, 04:22:47 PM
Looks very good so far! Will there be options to open the browser to view the thread? This would be a must I think. And yeah I considered a sub-forum for this, although it depends if you plan to update this more in the future once it's released to public. That would make MinePrime (next update that adds crafting) and the post notifier the next two sub-forum additions.
u/Snektron May 09, 2015, 04:26:36 PM
Quote from: DJ Omnimaga on May 09, 2015, 04:22:47 PM
Looks very good so far!

Thanks! :D

Quote from: DJ Omnimaga on May 09, 2015, 04:22:47 PM
Will there be options to open the browser to view the thread?

Yeah i was already planning to add that, but i don't know if i wrote it under the features

Quote from: DJ Omnimaga on May 09, 2015, 04:22:47 PMAnd yeah I considered a sub-forum for this, although it depends if you plan to update this more in the future once it's released to public. That would make MinePrime (next update that adds crafting) and the post notifier the next two sub-forum additions.

That depends on how many there is to update. I will at least keep it maintained and add features if necissary :)
u/novenary May 09, 2015, 04:32:41 PM
Sounds fun. With the new mobile theme it will make using the forum on a phone pretty neat. :3
u/Yuki May 09, 2015, 05:53:07 PM
That looks pretty nice Cumred. I'm definitely checking it out. And if you want a server/mod to run on CW you can always ask me.
u/Snektron May 09, 2015, 06:19:22 PM
Thanks :) And yeah i'm already developing a mod :P
Currently the mod adds one action feature, "walrifier". It returns the id of the latest message. The app will then check
if the latest ID is the same as the new ID and if not, request the full feed from the ".xml" action. Though it might be better to strip it down and make my own feed via a subaction (if im making a mod anyway). I'm also thinking of making a subaction where you supply the last checked ID and it returns a list of ID's/posts since the supplied ID (with a limit ofcourse). This way doesn't require a server, while its probably just as data-efficient (and is probably lighter for the server too). I wan't the least amount of data as possible, so it can also run on mobile data without consuming a lot of data. This way it probably wouldn't even be a Mb per day, which is a quite acceptable amount i'd say.
u/novenary May 09, 2015, 06:46:58 PM
Hmmm nice. I'm not having too many problems with data usage but again I have a 3GB plan. Not everyone does tho.
u/Snektron May 09, 2015, 07:06:09 PM
Yeah i was using 200MB before, now i have 1GB. But for the people who are having no/low data, i'll just add a option :)
u/CKH4 May 09, 2015, 09:44:23 PM
This looks very cool. Maybe you could add an option to fetch irc too? But then it'd be like wirc for android sort of.
u/DarkestEx May 09, 2015, 10:14:07 PM
@Cumred_Snektron, why don't you use a PHP page to preprocess the feed online, where you have unlimited traffic and then send only n-items to the client.
Or tell the client, how many messages happened since a specific id and then fetch only those.
u/Snektron May 09, 2015, 10:26:00 PM
Yeah thats what im going to do :)
u/DarkestEx May 09, 2015, 10:42:10 PM
Quote from: Cumred_Snektron on May 09, 2015, 10:26:00 PM
Yeah thats what im going to do :)
Ah okay.
I already wrote a good part of that actually before I posted that reply.
You can check it out soon.
Website statistics


MyCalcs | Ticalc.org | Cemetech | Omnimaga | TI-Basic Developer | MaxCoderz | TI-Story | Casiocalc.org | Casiopeia | The Museum of HP Calculators | HPCalc.org | CnCalc.org | Music 2000 Community | TI Education | Casio Education | HP Calcs | NumWorks | SwissMicros | Sharp Calculators
Powered by EzPortal