Re: Does PHP port work yet?

69 views
Skip to first unread message

Jonathan Aquino

unread,
Feb 26, 2013, 11:51:59 PM2/26/13
to YubNub
Hi Dan,

I'm making slow progress on it. I work on it for about 30 mins a day.

Jon


On Tue, Feb 26, 2013 at 6:25 PM, Dan Jones <good.evi...@gmail.com> wrote:
I tried using the PHP port available in the GitHub repo, and it doesn't seem to work properly for me.

Basically, I cloned the repo, and then created a VirtualHost for it, like this:
<VirtualHost *:80>
    ServerAdmin webm...@example.com
    ServerName  yubnub.example.com

    # Indexes + Directory Root.
    # DirectoryIndex index.html
    DocumentRoot /path/to/yubnub/public/

    # Logfiles
    LogLevel  debug
    ErrorLog  /var/log/apache2/yubnub/error.log
    CustomLog /var/log/apache2/yubnub/access.log combined
</VirtualHost>

<Directory /path/to/yubnub/public>
    Options ExecCGI FollowSymLinks
    AllowOverride all
    Allow from all
    Order allow,deny
</Directory>

The home page loads up fine, but then when I try to use it (go to http://yubnub.example.com/parser/parse?command=ls), I get a 404. Is there supposed to be an .htaccess file with this to get /parser to work? Or is this still very much a work in progress, and not supposed to work yet?

--
You received this message because you are subscribed to the Google Groups "YubNub" group.
To unsubscribe from this group and stop receiving emails from it, send an email to yubnub+un...@googlegroups.com.
To post to this group, send email to yub...@googlegroups.com.
Visit this group at http://groups.google.com/group/yubnub?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Anton Flügge

unread,
Feb 27, 2013, 4:01:43 AM2/27/13
to yub...@googlegroups.com
Thanks for your continued commitment to Yubnub Jon. I am missing it everyday it is not working...
So is the current plan for the future of Yubnub to port it to php? Is there anything other people (I.e. I) could do to help, right now? (I know a little php, but also do not have more than 30 minutes a day.) ... now that yubnub had so much trouble recently, I thought about, whether I could extend my Android app to incorporate the yubnub logical itself and just download command database/file from yubnub but not send queries to the yubnub server. Would that be worthwhile? And are the commands available somewhere in a more computer readable format, than the commands pages on the website?

Best wishes,
Anton

Jonathan Aquino

unread,
Feb 27, 2013, 10:06:35 PM2/27/13
to YubNub
Hi Anton,

Yeah, I'm porting it to PHP because that's the language I'm currently most familiar with (at work, etc.).

I can email you a current zip of the commands if you need it.

Jon

Michishige Kaito

unread,
Feb 27, 2013, 10:47:11 PM2/27/13
to yub...@googlegroups.com
Hey,

What's going to be the future of Yubnub? Are you going to continue
maintaining and hosting it?

Either way, could you publish the commands in a machine readable format?
I think I'm going to write my own yubnub in ruby/rack and redis, and
would like to import existing commands.
Michishige Kaito

BOFH excuse #224:

Jan 9 16:41:27 huber su: 'su root' succeeded for .... on /dev/pts/1

Jonathan Aquino

unread,
Feb 27, 2013, 11:05:45 PM2/27/13
to YubNub
Yes, I'm going to continue maintaining and hosting it - I'm going to set it up on a Linode, as recommended by Brock Tice. Also, Michishige, you mentioned the idea of getting rid of Rails altogether, which inspired me to port it to PHP. The code is fairly simple - or at least quite a bit simpler, which is cool..

Michishige Kaito

unread,
Feb 27, 2013, 11:52:54 PM2/27/13
to yub...@googlegroups.com
I'm glad I inspired you to get rid of rails. I'm a Ruby guy myself, but
I don't like rails. You know something is wrong when your app code is 2%
of the codebase you're deploying.

I tend to use Sinatra, and drop in gems as I need them. If you liked
ruby, you should not forget that ruby is not rails.

I'm going to write my version of yubnub "bare metal" on top of rack.
It's just a quick string transform and redirect. Don't need a framework
for that. If I had to write a public version of it, I'd Rack::Mount a
Sinatra app for it.

I'm looking forward to your PHP port! Thank you for one of the best
tools the web has to offer!
BOFH excuse #311:

transient bus protocol violation

Jonathan Aquino

unread,
May 29, 2013, 12:21:35 AM5/29/13
to YubNub
Dan - Yubnub is now running the PHP port now. Also it is on a Linode, per Brock Tice's suggestion. Let's see how it performs.

Jon

El Chuck O

unread,
Jun 12, 2013, 11:42:37 AM6/12/13
to yub...@googlegroups.com
The PHP port seems to be working pretty well. I've come across a couple bugs, however: the > operator is down again, and the [use %20 for spaces] in some functions is now added to the search term!

Jonathan Aquino

unread,
Jun 12, 2013, 11:58:42 AM6/12/13
to YubNub
Fixed the > command. Could you give an example of the [use %20 for spaces] bug?

Jon



Date: Wed, 12 Jun 2013 08:42:37 -0700
From: thec...@gmail.com
To: yub...@googlegroups.com
Subject: Re: Does PHP port work yet?

El Chuck O

unread,
Jun 12, 2013, 12:06:12 PM6/12/13
to yub...@googlegroups.com
Thanks for the speedy reply! I first noticed it with the ebay command; I also tested wikt with the same results.
Reply all
Reply to author
Forward
0 new messages