Author Topic: nOmnomIRC - A command-line OmnomIRC client in php and ncurses  (Read 8911 times)

0 Members and 1 Guest are viewing this topic.

Offline Juju

  • Incredibly sexy mare
  • Coder Of Tomorrow
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 5730
  • Rating: +500/-19
  • Weird programmer
    • View Profile
    • juju2143's shed
Re: nOmnomIRC - A command-line OmnomIRC client in php and ncurses
« Reply #15 on: June 10, 2013, 05:48:29 pm »
It can't open the database where the cookies are stored. Which browser do you use? Did you tweaked the first lines or so of the php file?

Remember the day the walrus started to fly...

I finally cleared my sig after 4 years you're happy now?
THEGAME
This signature is ridiculously large you've been warned.

The cute mare that used to be in my avatar is Yuki Kagayaki, you can follow her on Facebook and Tumblr.

Offline Streetwalrus

  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3821
  • Rating: +80/-8
    • View Profile
Re: nOmnomIRC - A command-line OmnomIRC client in php and ncurses
« Reply #16 on: June 10, 2013, 05:55:19 pm »
I just added #! /usr/bin/php to the top (obvious reason) and run it with ./nomnomirc.php.
I don't know how my browser could be related to this but I use Chromium from the Arch official repos.
« Last Edit: June 10, 2013, 05:59:02 pm by Streetwalker »

Offline Juju

  • Incredibly sexy mare
  • Coder Of Tomorrow
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 5730
  • Rating: +500/-19
  • Weird programmer
    • View Profile
    • juju2143's shed
Re: nOmnomIRC - A command-line OmnomIRC client in php and ncurses
« Reply #17 on: June 10, 2013, 10:10:52 pm »
It uses Chromium's data to login to Omnimaga. So if you're logged in to Omni in Chromium and you gave the right path to the cookies database, you might be okay.

Remember the day the walrus started to fly...

I finally cleared my sig after 4 years you're happy now?
THEGAME
This signature is ridiculously large you've been warned.

The cute mare that used to be in my avatar is Yuki Kagayaki, you can follow her on Facebook and Tumblr.

Offline Streetwalrus

  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3821
  • Rating: +80/-8
    • View Profile
Re: nOmnomIRC - A command-line OmnomIRC client in php and ncurses
« Reply #18 on: June 11, 2013, 03:18:15 am »
Oh well I did not edit anything else than that first line. :/ I guess that might be the issue.

Offline Streetwalrus

  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3821
  • Rating: +80/-8
    • View Profile
Re: nOmnomIRC - A command-line OmnomIRC client in php and ncurses
« Reply #19 on: June 11, 2013, 12:22:03 pm »
:P
I just changed the cookie path to the chromium one (changed google-chrome to chromium) and left the browser set as Chrome since both are nearly identical.

Offline Eeems

  • Mr. Dictator
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6268
  • Rating: +318/-36
  • little oof
    • View Profile
    • Eeems
Re: nOmnomIRC - A command-line OmnomIRC client in php and ncurses
« Reply #20 on: June 12, 2013, 11:35:09 am »
Looks like you have to set the timezone in the script.
http://us2.php.net/manual/en/function.date-default-timezone-set.php  <-- Function you need to call at the start of the script.
http://us2.php.net/manual/en/timezones.php  <-- List of supported timezones to use.
/e

Offline Juju

  • Incredibly sexy mare
  • Coder Of Tomorrow
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 5730
  • Rating: +500/-19
  • Weird programmer
    • View Profile
    • juju2143's shed
Re: nOmnomIRC - A command-line OmnomIRC client in php and ncurses
« Reply #21 on: June 12, 2013, 01:31:57 pm »
Actually you might want to set your timezone in php.ini. http://www.php.net/manual/en/datetime.configuration.php#ini.date.timezone

Remember the day the walrus started to fly...

I finally cleared my sig after 4 years you're happy now?
THEGAME
This signature is ridiculously large you've been warned.

The cute mare that used to be in my avatar is Yuki Kagayaki, you can follow her on Facebook and Tumblr.

Offline Streetwalrus

  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3821
  • Rating: +80/-8
    • View Profile
Re: nOmnomIRC - A command-line OmnomIRC client in php and ncurses
« Reply #22 on: June 12, 2013, 01:52:30 pm »
I just updated my php.ini. It works now. :D
Seems to lag quite a bit though.
« Last Edit: June 12, 2013, 01:54:17 pm by Streetwalker »

Offline Juju

  • Incredibly sexy mare
  • Coder Of Tomorrow
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 5730
  • Rating: +500/-19
  • Weird programmer
    • View Profile
    • juju2143's shed
Re: nOmnomIRC - A command-line OmnomIRC client in php and ncurses
« Reply #23 on: June 12, 2013, 02:47:23 pm »
It does yeah. It's not threaded, so it might freeze while it does the http requests. I gave a 1-second timeout though, so it won't freeze for like 60 seconds everytime.

Remember the day the walrus started to fly...

I finally cleared my sig after 4 years you're happy now?
THEGAME
This signature is ridiculously large you've been warned.

The cute mare that used to be in my avatar is Yuki Kagayaki, you can follow her on Facebook and Tumblr.

Offline Dapianokid

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 539
  • Rating: +46/-27
  • That one dude
    • View Profile
Re: nOmnomIRC - A command-line OmnomIRC client in php and ncurses
« Reply #24 on: June 12, 2013, 02:53:16 pm »
I read the topic and assume it's for Nspires because of the n. Then, I get giddy because I assumed php was ported to Nspires.
Right.
Just...this.
I'll go put the fireworks away.

Not really, this is actually quite cool. Might help for those of us who can't use the widget :) Like at my mom's house, the computer there! because it is terrible using Windows Server and Chrome.
Keep trying.

Offline Juju

  • Incredibly sexy mare
  • Coder Of Tomorrow
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 5730
  • Rating: +500/-19
  • Weird programmer
    • View Profile
    • juju2143's shed
Re: nOmnomIRC - A command-line OmnomIRC client in php and ncurses
« Reply #25 on: June 12, 2013, 03:03:37 pm »
That might work if you use Nspire Linux, actually, if you compile php for ARM and get Internet access to your calc.

Remember the day the walrus started to fly...

I finally cleared my sig after 4 years you're happy now?
THEGAME
This signature is ridiculously large you've been warned.

The cute mare that used to be in my avatar is Yuki Kagayaki, you can follow her on Facebook and Tumblr.

Offline Dapianokid

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 539
  • Rating: +46/-27
  • That one dude
    • View Profile
Re: nOmnomIRC - A command-line OmnomIRC client in php and ncurses
« Reply #26 on: June 12, 2013, 05:17:27 pm »
Well that's much easier said than done.
Keep trying.