Omnimaga

Calculator Community => Other Calculators => Topic started by: Deep Toaster on December 12, 2011, 12:26:09 am

Title: Calculator Stuff (Google Chrome extension)
Post by: Deep Toaster on December 12, 2011, 12:26:09 am
Because I have so many things I need to do right now, I figured I'd waste a few more hours by learning how to make Google Chrome extensions. After I read through Google's little tutorial on this stuff, I thought to myself "this is fun, but what's the point?" Well, remember that post notifier (http://ourl.ca/7241) tool SirCmpwn made a few months (over a year) back? I figured that since not everyone is on a Windows computer with C# runtime installed, and since Chrome is quickly becoming the most popular web browser out there, I'd make that sort of thing into an extension.

It currently checks for new posts on Omnimaga and Cemetech every thirty seconds, but I can easily add more forums, as long as they have an RSS2 feed. Click on the tabs to switch between the two feeds, and click on the topic titles to open the link. There's an occasional problem with Cemetech's feed sometimes randomly generating only one recent post (instead of five), but that's something I can't deal with.

Download version 1.4 (http://clrhome.org/b/notify.crx)

It now has a lot of other stuff too, not just feeds!

One thing it adds is context-menu items for special characters. Right-click in any text box to quickly insert a character like theta or the store symbol.

It also adds a custom address-bar function for instant information on TI-BASIC commands—just type "basic" in the URL bar, press Tab, and start typing a command name, and it'll show you syntax and description for that command!

(http://img.removedfromgame.com/imgs2/cs13.png)
(http://img.removedfromgame.com/imgs2/cs.png)
(http://img.removedfromgame.com/imgs/2-notify.png)
Title: Re: [GOOGLE CHROME] Omnimaga and Cemetech notifier
Post by: Juju on December 12, 2011, 12:31:16 am
Nice! I'm downloading this.

And I downloaded it and it looks nice :)
Title: Re: [GOOGLE CHROME] Omnimaga and Cemetech notifier
Post by: Deep Toaster on December 12, 2011, 12:43:14 am
By the way, the only quick fix I've found to the Cemetech issue is to go to http://www.cemetech.net/forum/rss.php?c=5 and refresh a couple dozen times until the scrollbar becomes smaller. Then wait half a minute for the notifier to reload ;D
Title: Re: [GOOGLE CHROME] Omnimaga and Cemetech notifier
Post by: DJ Omnimaga on December 12, 2011, 12:46:05 am
Seems nice. I wonder if it could be uploaded direclty in your post or the server so it can be added on Omni's front page, along with the SirCmpwn's notifier already there? :)
Title: Re: [GOOGLE CHROME] Omnimaga and Cemetech notifier
Post by: Deep Toaster on December 12, 2011, 12:53:49 am
Seems nice. I wonder if it could be uploaded direclty in your post or the server so it can be added on Omni's front page, along with the SirCmpwn's notifier already there? :)
The file is just a download—all extensions are saved in your local Chrome folder. Anyone can upload the CRX file to Omni for me, but I might update it often and I need to go to bed now.
Title: Re: [GOOGLE CHROME] Omnimaga and Cemetech notifier
Post by: Juju on December 12, 2011, 01:17:49 am
You should upload it to the Chrome Web Store. Oh wait it needs a credit card agggggghhhhhh D:
Title: Re: [GOOGLE CHROME] Omnimaga and Cemetech notifier
Post by: ztrumpet on December 12, 2011, 05:24:48 pm
This is so cool!  Excellent work, Deep!  It seems to work very well for me.
Title: Re: [GOOGLE CHROME] Omnimaga and Cemetech notifier
Post by: Deep Toaster on December 13, 2011, 08:42:18 pm
Huge update with lots of new features!

The new version (new URL, still in the first post (http://omniurl.tk/11874/216249/)) now remembers what tab you were on last time, and adds some really useful options.

Switch between "New posts" and "New topics" to subscribe to either the newest posts or the most recently created topics.

Check "Show only news" to subscribe to only posts or topics in the News forum. For Cemetech, this also implies the "New topics" option.

Use the drop-down menus to select the number of posts to fetch from each feed, and the delay between fetches. Delay ranges from 15s and 3m; if you don't need to check too often, I recommend choosing a higher value to avoid spamming the two sites with requests. Default is 5 posts every 60 seconds.

Unfortunately, I was stupid enough to delete the extension key file Google Chrome specifically told me not to delete, so you must uninstall the previous version before downloading the new one. You can do this either from chrome://settings/extensionSettings or by right-clicking on the extension's toolbar button and selecting Remove.
Title: Re: [GOOGLE CHROME] Omnimaga and Cemetech notifier
Post by: DJ Omnimaga on December 13, 2011, 09:14:08 pm
A suggestion I got would be to make it so it's possible to disable certain sub-forums. For example I don't check the spam section very much and on Cemetech I rarely ever check the Blockland/Minecraft stuff, so it would be nice if we could disable those.
Title: Re: [GOOGLE CHROME] Omnimaga and Cemetech notifier
Post by: epic7 on December 13, 2011, 09:27:11 pm
This is giving me a reason to download Chrome.
Title: Re: [GOOGLE CHROME] Omnimaga and Cemetech notifier
Post by: Darl181 on December 13, 2011, 09:46:45 pm
This is giving me a reason to download Chrome.
Or wait for a Firefox version. :P
Title: Re: [GOOGLE CHROME] Omnimaga and Cemetech notifier
Post by: LincolnB on December 13, 2011, 10:36:37 pm
Very cool, I won't really be able to use this until I get more RAM on this box (Chrome is a RAM-beast :P), but it looks pretty sweet.
Title: Re: [GOOGLE CHROME] Omnimaga and Cemetech notifier
Post by: Deep Toaster on December 19, 2011, 01:47:07 pm
Update (1.2)

New featuresChanged features
Title: Re: [GOOGLE CHROME] Omnimaga and Cemetech notifier extension
Post by: flyingfisch on December 19, 2011, 01:49:50 pm
Maybe I should read the firefox docs and see if I can make a clone of this...
Title: Re: [GOOGLE CHROME] Omnimaga and Cemetech notifier extension
Post by: DJ Omnimaga on December 19, 2011, 01:56:01 pm
Glad to see more feeds added. :)

Back then we had the post notifier bot do that in #omnimaga channel including UTI and Cemetech, but some feeds were buggy and both Cemetech and Omni combined averaged at so many posts a day that it made the channel pretty much unuseable for regular chatting. Not to mention the fact it was kinda one-way, as #cemetech didn't have Omnimaga notifications for example (except for a few weeks, but some ppl complained non-stop).
Title: Re: [GOOGLE CHROME] Omnimaga and Cemetech notifier extension
Post by: flyingfisch on December 19, 2011, 01:57:34 pm
Couldn't there be a separate post notification channel?
Title: Re: [GOOGLE CHROME] Omnimaga and Cemetech notifier extension
Post by: DJ Omnimaga on December 19, 2011, 02:40:53 pm
I guess for other chan notifications yes, although we would like to keep Omni notifications in #omnimaga at least.
Title: Re: [GOOGLE CHROME] Omnimaga and Cemetech notifier extension
Post by: flyingfisch on December 19, 2011, 02:45:54 pm
I guess for other chan notifications yes, although we would like to keep Omni notifications in #omnimaga at least.

Yeah, I know. What I was saying was that we could have other notifications from other sites in a whole other channel where we wouldn't have to worry about crowding #omnimaga.
Title: Re: [GOOGLE CHROME] Omnimaga and Cemetech notifier extension
Post by: Deep Toaster on December 20, 2011, 01:09:53 pm
Maybe I should read the firefox docs and see if I can make a clone of this...
You should ;D The only version of Firefox I have is portable, and any add-ons at all make it lag tremendously, so I can't really work on a Firefox extension.
Title: Re: Chrome extension for Omnimaga, Cemetech, and Revsoft feeds
Post by: flyingfisch on December 20, 2011, 02:19:41 pm
Maybe I should read the firefox docs and see if I can make a clone of this...
You should ;D The only version of Firefox I have is portable, and any add-ons at all make it lag tremendously, so I can't really work on a Firefox extension.

OK. I'll try it some time then :)
Title: Re: Chrome extension for Omnimaga, Cemetech, and Revsoft feeds
Post by: Darl181 on December 20, 2011, 02:29:45 pm
Maybe I should read the firefox docs and see if I can make a clone of this...
You should ;D The only version of Firefox I have is portable, and any add-ons at all make it lag tremendously, so I can't really work on a Firefox extension.

OK. I'll try it some time then :)
Odd, I'm using Firefox portable with like 3 addons (on a school comp, no less) and it runs better than the one on the C drive 0.o

Anyway, this for FF ++

Edit: wait are you using the PortableApps thing?  I remember that being horrendously slow..
Title: Re: Chrome extension for Omnimaga, Cemetech, and Revsoft feeds
Post by: Deep Toaster on January 11, 2012, 03:52:05 pm
Edit: wait are you using the PortableApps thing?  I remember that being horrendously slow..
Yes I am, and I don't really have a choice for Firefox :/

My plan for this was a lot more than an RSS feeder, to add stuff like putting an "Open file in SourceCoder" option to context menus for 8xp files and such. What ideas do you have? I'm completely open to suggestions at this point, and this is all good practice for me.
Title: Re: Chrome extension for Omnimaga, Cemetech, and Revsoft feeds
Post by: Darl181 on January 11, 2012, 06:19:57 pm
Maybe something to automatically convert the image files given an option or two, I've seen something like half a dozen people by now asking how to do it x.x
Or quick BBify ;D

Edit: wait are you using the PortableApps thing?  I remember that being horrendously slow..
Yes I am, and I don't really have a choice for Firefox :/
Not to advertise :P but for me Liberkey works great.  I have um, two extensions installed+enabled and a custom theme...no noticeable slowdown :)

Edit: would it be possible to have an option to use SSL?  That's the only way (sans proxy) I (and I think some others) can use omni at school.
Title: Re: Chrome extension for Omnimaga, Cemetech, and Revsoft feeds
Post by: Deep Toaster on January 11, 2012, 06:32:33 pm
Maybe something to automatically convert the image files given an option or two, I've seen something like half a dozen people by now asking how to do it x.x
That goes through SourceCoder too, or maybe TI.ZEWAREN.
Or quick BBify ;D
How would that work?
Not to advertise :P but for me Liberkey works great.  I have um, two extensions installed+enabled and a custom theme...no noticeable slowdown :)
Does LiberKey have to be installed? My drive's kinda cramped :/

And I'll see if SSL works.
Title: Re: Chrome extension for Omnimaga, Cemetech, and Revsoft feeds
Post by: Darl181 on January 11, 2012, 06:48:06 pm
Maybe something to automatically convert the image files given an option or two, I've seen something like half a dozen people by now asking how to do it x.x
That goes through SourceCoder too, or maybe TI.ZEWAREN.
Wow, never saw the other site before.  Bookmark'd ;D
Quote
Or quick BBify ;D
How would that work?
I'm not sure, it's your site :P  SoI'm guessing it would be hard to do..
Quote
Not to advertise :P but for me Liberkey works great.  I have um, two extensions installed+enabled and a custom theme...no noticeable slowdown :)
Does LiberKey have to be installed? My drive's kinda cramped :/
I think so, at least I didn't find anything likely after a google search.
Just did some quick math and it looks like the platform and firefox together add up to something like 55mb.

Quote
And I'll see if SSL works.
;D
Title: Re: Chrome extension for Omnimaga, Cemetech, and Revsoft feeds
Post by: Deep Toaster on January 11, 2012, 07:00:47 pm
Maybe something to automatically convert the image files given an option or two, I've seen something like half a dozen people by now asking how to do it x.x
That goes through SourceCoder too, or maybe TI.ZEWAREN.
Wow, never saw the other site before.  Bookmark'd ;D
It's been around for years. For TI-83 Plus stuff, I think SourceCoder's better.[/quote]
Quote
Or quick BBify ;D
How would that work?
I'm not sure, it's your site :P  SoI'm guessing it would be hard to do..
I meant where would that happen? Would it be a context menu item for 8XPs, or would it automatically convert [code] tags to BBify or something?
Quote
Not to advertise :P but for me Liberkey works great.  I have um, two extensions installed+enabled and a custom theme...no noticeable slowdown :)
Does LiberKey have to be installed? My drive's kinda cramped :/
I think so, at least I didn't find anything likely after a google search.
Just did some quick math and it looks like the platform and firefox together add up to something like 55mb.
That's less than PortableApps Firefox on its own XD
Title: Re: Chrome extension for Omnimaga, Cemetech, and Revsoft feeds
Post by: DJ Omnimaga on January 11, 2012, 07:10:54 pm
If I used Chrome instead of Opera, I would most likely use this. Also it would be nice if you added TI-Planet support.
Title: Re: Chrome extension for Omnimaga, Cemetech, and Revsoft feeds
Post by: Deep Toaster on January 11, 2012, 07:59:39 pm
Also it would be nice if you added TI-Planet support.
That's a good idea. I think I'll cap it at four though.
Title: Re: Chrome extension for Omnimaga, Cemetech, and Revsoft feeds
Post by: DJ Omnimaga on January 11, 2012, 08:31:34 pm
Ah ok, it's fine I guess.
Title: Re: Chrome extension for Omnimaga, Cemetech, and Revsoft feeds
Post by: Darl181 on January 11, 2012, 10:04:53 pm
Rather then keep the quote pyramid stuff going :P ...

I'm not too sure about the auto-bbify, actually./me tries to think of some practical application

Maybe an app icon that you could drag a .8xp, .z80 or .lua  on top of, and it puts the code in the clipboard or something?
Not sure what the icons are called, but in chrome they appear between the URL bar and the wrench button.  Firefox has similar buttons.
Title: Re: Chrome extension for Omnimaga, Cemetech, and Revsoft feeds
Post by: Deep Toaster on January 27, 2012, 06:37:20 pm
Just thought of a useful idea (I'm posting it here partly to remember it): some sort of interface that lets you insert special calculator symbols like θ and →.
Title: Re: Chrome extension for Omnimaga, Cemetech, and Revsoft feeds
Post by: hellninjas on January 27, 2012, 06:40:14 pm
This is pretty cool! Could you add an irc chat to the mix?
Title: Re: Chrome extension for Omnimaga, Cemetech, and Revsoft feeds
Post by: Deep Toaster on January 27, 2012, 06:44:09 pm
I think that would be too heavy for a browser extension. (It would probably lag every tab you have open.) You can always use Mibbit (http://chat.mibbit.com/) for an in-browser IRC client.
Title: Re: Chrome extension for Omnimaga, Cemetech, and Revsoft feeds
Post by: hellninjas on January 27, 2012, 06:45:17 pm
I know I just didn't like switching between websites to chat :D
But then again... I have XChat...
Title: Re: Chrome extension for Omnimaga, Cemetech, and Revsoft feeds
Post by: Juju on January 27, 2012, 10:40:58 pm
Opera have an IRC client integrated I think. Click here or here to try it. If you have Firefox, Mibbit would open instead, if it's still the case.

Just thought of a useful idea (I'm posting it here partly to remember it): some sort of interface that lets you insert special calculator symbols like θ and →.
That would be nice. That or it should be integrated into the forum software as a SMF mod.
Title: Re: Chrome extension for Omnimaga, Cemetech, and Revsoft feeds
Post by: DJ Omnimaga on January 27, 2012, 11:38:08 pm
Do you mean kinda like what they had on TIBD? Somewhere in the site corner they had some small widget letting you copy/paste those chars.
Title: Re: Chrome extension for Omnimaga, Cemetech, and Revsoft feeds
Post by: Deep Toaster on January 27, 2012, 11:39:30 pm
My plan is something like that. Either a little floating box with the symbols, or a small popup window for inserting them.
Title: Re: Chrome extension for Omnimaga, Cemetech, and Revsoft feeds
Post by: Deep Toaster on January 28, 2012, 07:47:42 pm
Alright. Huge update. It's actually got some useful stuff now.The URL is still in the first post.
Title: Re: Calculator Stuff (Google Chrome extension)
Post by: Scipi on January 28, 2012, 09:06:55 pm
It doesn't seem to work for me :/
Title: Re: Calculator Stuff (Google Chrome extension)
Post by: Deep Toaster on January 28, 2012, 09:12:31 pm
What doesn't seem to work?
Title: Re: Calculator Stuff (Google Chrome extension)
Post by: Scipi on January 28, 2012, 09:21:30 pm
Inserting special characters doesn't seem to work.
Title: Re: Calculator Stuff (Google Chrome extension)
Post by: Deep Toaster on January 28, 2012, 10:23:52 pm
Fixed.

EDIT: And a lot more bugfixes make this 1.4.
Title: Re: Calculator Stuff (Google Chrome extension)
Post by: flyingfisch on January 29, 2012, 12:46:59 pm
I should try to build a FF version but i'm too lazy :P
Title: Re: Chrome extension for Omnimaga, Cemetech, and Revsoft feeds
Post by: Deep Toaster on January 29, 2012, 12:52:43 pm
Edit: wait are you using the PortableApps thing?  I remember that being horrendously slow..
Yes I am, and I don't really have a choice for Firefox :/
Not to advertise :P but for me Liberkey works great.  I have um, two extensions installed+enabled and a custom theme...no noticeable slowdown :)
I just started using LiberKey, and you're right—the speed difference is amazing. Starting up is several times faster than with PortableApps!

That means I can actually work on a Firefox extension now if nobody else is taking that.
Title: Re: Calculator Stuff (Google Chrome extension)
Post by: DJ Omnimaga on January 29, 2012, 02:33:48 pm
I'm still curious if anything like this could ever be written in Opera browser. I know Opera has widget support, but there doesn't seem to be a lot of them...
Title: Re: Calculator Stuff (Google Chrome extension)
Post by: Deep Toaster on February 11, 2012, 01:51:06 pm
This isn't really an update (and you don't have to redownload anything), but with the help of shmibs and Xeda, I've finished about half of the token documentation. So you can now type "basic" [Tab] "f" and see stuff like
Quote from: basic
fnInt(<expression>,<real>,<number1>,<number2>{,<number3>}) - Returns the value of the definite integral of <expression> for variable <real> between <number1> and <number2>. If <number3> is given, it is used as the tolerance value (for accuracy). Default tolerance is 0.00001.
fMin(<expression>,<real>,<number1>,<number2>{,<number3>}) - Returns the value of real variable <real> between <number1> and <number2> at which <expression> is at a minimum. If <number3> is given, it is used as the tolerance value (for accuracy). Default tolerance is 0.00001.
fMax(<expression>,<real>,<number1>,<number2>{,<number3>}) - Returns the value of real variable <real> between <number1> and <number2> at which <expression> is at a maximum. If <number3> is given, it is used as the tolerance value (for accuracy). Default tolerance is 0.00001.
If you don't see it, restart your browser :)
Title: Re: Calculator Stuff (Google Chrome extension)
Post by: yunhua98 on February 11, 2012, 06:37:52 pm
okay, this is awesome.
I don't know how I've missed this, but Deep, you did a great job.  ;)

EDIT:  suggestion, you could make an extension where someone chooses a forum to enable feeds from, that way anyone can use it.