I'd love an iPhone App, please.
I would make one, but I'm already working on an app.
[QUOTE=andersonmat;22901595]If you'd want me to, I could write something in Java that would do this. :v:
[editline]11:58AM[/editline]
(I absolutely love networking in Java.)[/QUOTE]
Do It! :buddy:
Well, I did a class library in C# that implements it. It also logs in to facepunch optionally (using an md5 hash of your password) so that if you are gold, it will allow gmf posts, and as well it also flags if it's in your thread, it's your post, they mentioned you, etc. Example usage so far is:
[cpp]
static void InitTicker()
{
Ticker ticker = new Ticker();
ticker.LoginFacepunchMD5(Properties.Settings.Default.Username, Properties.Settings.Default.PasswordMD5);
ticker.Updated += ticker_Updated;
ticker.StartPolling(true); // that true means it skips over the first block of posts, which is usually 100 or so. To prevent spam.
}
static void ticker_Updated(Ticker o, TickerEventArgs e)
{
foreach (Post post in e.Posts)
Console.WriteLine(string.Format("New post in '{0}' forum in the thread '{1}' by {2}!", post.ForumTitle,
post.ThreadName, post.Username));
}
[/cpp]
Only issues are that the ticker outputs in html (quotes are classes in facepunch's css stylesheet), and that stuff is escaped. But not much I can do about that, besides hack around it.
Upload that library somewhere, it could be useful.
Started working on mine. I started about 30 minutes ago, have Ticker parsing into an ArrayList. :3:
I'll work on the GUI tomorrow.
[QUOTE=turb_;22916325]Upload that library somewhere, it could be useful.[/QUOTE]
Trying to make it a bit faster. At the moment, I'm using json.net, but considering I'll be parsing the same thing over and over again, I should be able to speed things up considerably.
[QUOTE=ShaRose;22917263]At the moment, I'm using json.net, but considering I'll be parsing the same thing over and over again, I should be able to speed things up considerably.[/QUOTE]
Why not System.Web.Script.Serialization.JavaScriptSerializer?
I would love this. Make sure it works in Windows 7
[QUOTE=LinuX;22917413]I would love this. Make sure it works in Windows 7[/QUOTE]
If it is based on .net framework there is no reason it should not.
[img]http://ahb.me/6tk[/img]
:colbert:
[QUOTE=LinuX;22917413]I would love this. Make sure it works in Windows 7[/QUOTE]
:wtc:
[QUOTE=turb_;22917730][img]http://ahb.me/6tk[/img]
:colbert:[/QUOTE]
not everyone who uses linux is a raging fanboy and microsoft boycotter ya' know.
[QUOTE=LinuX;22917413]I would love this. Make sure it works in Windows 7[/QUOTE]
I've been using windows 7 since 6801...
[editline]05:42AM[/editline]
[QUOTE=turb_;22917311]Why not System.Web.Script.Serialization.JavaScriptSerializer?[/QUOTE]
Because system.web is fucking huge. Also,
[cpp]
JsonTextReader reader = new JsonTextReader(new StreamReader(new MemoryStream(client.DownloadData(request)))); // 0.5 ms per call
JsonTextReader reader = new JsonTextReader(new StreamReader(client.OpenRead(request))); // 0.6 ms per call
[/cpp]
Go figure. And that line is 92% of time used.
System.Web is already included in the .NET framework? Why would it matter how big it is?
[editline]07:28PM[/editline]
And what about JsonTextReader?
Turb make a Facepunch Iphone App. :buddy:
Btw, I'm assuming client is a WebClient. You could just do:
[cpp]
using System.Web.Script.Serialization;
using T = object; // replace this with the type you want to deserialize Facepunch's result back to.
var obj = new JavaScriptSerializer().Deserialize<T>(client.DownloadString("http://lol"));
[/cpp]
[editline]07:33PM[/editline]
:ninja:
@Rashy: I was considering writing a proxy that makes Facepunch iPhone-friendly, but I don't have a Mac so I can't make it native.
Apple are so selfish. :argh:
[QUOTE=ShaRose;22918341]
[cpp]
JsonTextReader reader = new JsonTextReader(new StreamReader(new MemoryStream(client.DownloadData(request)))); // 0.5 ms per call
JsonTextReader reader = new JsonTextReader(new StreamReader(client.OpenRead(request))); // 0.6 ms per call
[/cpp]
Go figure. And that line is 92% of time used.[/QUOTE]
Couldn't someone easily turn this into a DoS type tool?
[QUOTE=LinuX;22917413]I would love this. Make sure it works in Windows 7[/QUOTE]
I think he means add some Win 7 features, like make the taskbar green on new post or so if it match a filter etc?
[QUOTE=Nisd;22920010]I think he means add some Win 7 features, like make the taskbar green on new post or so if it match a filter etc?[/QUOTE]
No I think he just means make sure it runs in Windows 7
Which is kind of obvious
[QUOTE=Nisd;22920010]I think he means add some Win 7 features, like make the taskbar green on new post or so if it match a filter etc?[/QUOTE]
I'm doing a library and a basic tool (based on pictures from the old / dead post notifier) which just uses a notifyicon.
There is a C# ticker library among the source ITSBTH posted, by the way.
I also have one in Lua, if anyone wants it (it parses all the relevant HTML into BB code and weeds out the quotes, too).
I'll write one in i386 ASM.
[QUOTE=166291;22932761]I'll write one in i386 ASM.[/QUOTE]
No you won't.
Posting here to test my Facepunch Desktop Ticker.
[editline]12:55AM[/editline]
[img]http://anyhub.net/file/fp_desktop.png[/img]
Is that what you're going for?
[editline]02:19AM[/editline]
Anyways, I uploaded a 'demo' of this in beta. I don't have it to where you can change the settings file but I have it set to only monitor web development and programming forums at the moment.
If you want to test it:
[url]http://anyhub.net/file/1ticker.jar[/url]
If you want to exit, right click on the icon.
If you want to view the thread after you get a notification, left click on the icon in the tray and it'll load your browser and show it to you.
Lemme know if you have any bugs. :v:
[QUOTE=andersonmat;22942015]Posting here to test my Facepunch Desktop Ticker.
[editline]12:55AM[/editline]
[img]http://anyhub.net/file/fp_desktop.png[/img]
Is that what you're going for?
[editline]02:19AM[/editline]
Anyways, I uploaded a 'demo' of this in beta. I don't have it to where you can change the settings file but I have it set to only monitor web development and programming forums at the moment.
If you want to test it:
[url]http://anyhub.net/file/1ticker.jar[/url]
If you want to exit, right click on the icon.
If you want to view the thread after you get a notification, left click on the icon in the tray and it'll load your browser and show it to you.
Lemme know if you have any bugs. :v:[/QUOTE]
Yeah!, looking epic!
[QUOTE=andersonmat;22942015]Posting here to test my Facepunch Desktop Ticker.
[editline]12:55AM[/editline]
[IMG]http://anyhub.net/file/fp_desktop.png[/IMG]
Is that what you're going for?
[editline]02:19AM[/editline]
Anyways, I uploaded a 'demo' of this in beta. I don't have it to where you can change the settings file but I have it set to only monitor web development and programming forums at the moment.
If you want to test it:
[URL]http://anyhub.net/file/1ticker.jar[/URL]
If you want to exit, right click on the icon.
If you want to view the thread after you get a notification, left click on the icon in the tray and it'll load your browser and show it to you.
Lemme know if you have any bugs. :v:[/QUOTE]
It'd be great if you can configure it, other then that it looks great.
[QUOTE=dag10;22905281]I'd love an iPhone App, please.
I would make one, but I'm already working on an app.[/QUOTE]
If only one of us had a [highlight]FUCKIN MAC[/highlight]
[QUOTE=CounterTunes;22949876]If only one of us had a [highlight]FUCKIN MAC[/highlight][/QUOTE]
I do, but I currently have Fedora installed on it. :smugdog:
Plus, I couldn't be assed to write an iPhone Application.
[QUOTE=andersonmat;22949911]I do, but I currently have Fedora installed on it. :smugdog:
Plus, I couldn't be assed to write an iPhone Application.[/QUOTE]
Can I do the graphical interface?
[editline]03:01PM[/editline]
heh I must ask but does google chrome shit work with visual studio?
Sorry, you need to Log In to post a reply to this thread.