ChanServ changed the topic of #xiki to: Trying out the new version of xiki shell! This channel is logged at http://irclog.whitequark.org/xiki/
mrbond has joined #xiki
trogdoro has quit [Quit: trogdoro]
mrbond has quit [Quit: mrbond]
mrbond has joined #xiki
chrisdotcode has joined #xiki
mrbond has quit [Quit: mrbond]
trogdoro has joined #xiki
trogdoro has quit [Quit: trogdoro]
sirdancealot has quit [Ping timeout: 272 seconds]
redmeat has joined #xiki
<redmeat> HI, is anyone able to help with a problem on Ubuntu and Ctrl R (i.e. history) with xiki?
mrbond has joined #xiki
sirdancealot has joined #xiki
chrisdotcode has quit [Remote host closed the connection]
Sublim3_ has joined #xiki
chrisdotcode has joined #xiki
<redmeat> HI, is anyone able to help with a problem on Ubuntu and Ctrl R (i.e. history) with xiki?
chrisdotcode has quit [Read error: Connection reset by peer]
trogdoro has joined #xiki
chrisdotcode has joined #xiki
chrisdotcode has joined #xiki
<trogdoro> redmeat: just saw your message
<trogdoro> redmeat: I can help!
remdeat has joined #xiki
remdeat has quit [Client Quit]
<redmeat> Hello, running xiki on Ubuntu with my default shell as Z-shell (zsh). Typing Ctrl-R is not showing any history. Instead I'm taken into xiki and presented with "See the key shortcuts at the bottom file."
<redmeat> $HISTFILE is set to .zsh_history
<redmeat> Command history works in bash as normal.
<redmeat> So after installing xiki, Ctrl + R isn't working for me
ratdaddy has joined #xiki
<trogdoro> redmeat: have you tried updating xiki within the last day?
<trogdoro> redmeat: I made some improvements to how the setup functions
<trogdoro> redmeat: maybe try to run the one-line installer again, and if that doesn’t work, we could possibly try screensharing.
<redmeat> Running 1 line installer again
<redmeat> % is 100 but the command doesn't exit, let me run each command independently
<trogdoro> redmeat: % is 100?
<trogdoro> meaning your cpu load?
<trogdoro> redmeat: which command doesn’t exist?
<redmeat> I ran all commands individually and they all worked
<redmeat> So I'm not in xiki having cloned the most recent repo
<redmeat> not = now
<trogdoro> redmeat: the one-line installer does a download rather than a clone
<trogdoro> redmeat: are you saying when you run all the lines in the one-line installer individually it succeeds?
<redmeat> yes
<trogdoro> redmeat: but you get a “command not found” when you run them together?
<trogdoro> redmeat: which command did it say wasn’t found?
<redmeat> no, it just never seems to get beyond curl
<trogdoro> redmeat: maybe you didn’t copy everything in the field?
<redmeat> ah
<trogdoro> redmeat: maybe there was a snag in your network
<redmeat> ok, it was the \
<redmeat> cd ~; curl -LO https://github.com/trogdoro/xiki/archive/master.tar.gz; tar xzf master.tar.gz; cd xiki-master/bin; ./clearxsh; ./xsh
<redmeat> for some reason was
<redmeat> cd ~; curl -LO https://github.com/trogdoro/xiki/archive/master.tar.gz\; tar xzf master.tar.gz; cd xiki-master/bin; ./clearxsh; ./xsh
<redmeat> see the \ at the end or curl
<trogdoro> redmeat: yeah, hmm, strange
<redmeat> ok, the one line install....copied as a one-liner worked fine and took me into xsh
<trogdoro> redmeat: cool
<trogdoro> redmeat: which terminal are you using?
<redmeat> back to the problem, crtl + R takes me to an empty shell with "See the key shortcuts at the bottom file."
<redmeat> zsh
<trogdoro> redmeat: maybe we could screen-share, via google hangouts or skype?
<trogdoro> redmeat: I’ve tried zsh on ubuntu several times and haven’t been able to reproduce the problem
<redmeat> do you have a gmail address I can use?
<trogdoro> redmeat: DM’ing it to you
bmp_ has joined #xiki
bmp_ has quit [Client Quit]
bwilson has joined #xiki
mrvkino has joined #xiki
mrvkino has quit [Client Quit]
<trogdoro> redmeat: ty for helping me fix that!
<trogdoro> redmeat: I just did a push with the fix
<redmeat> you're welcome, thanks for taking time to debug it
<redmeat> ok,let me reinstall
<trogdoro> redmeat: and updated the one-line installer on xiki.com
<redmeat> copied the one liner after refreshing xiki.com and install was fine
<redmeat> no backslash
<redmeat> crtl R working fine
<trogdoro> redmeat: great!
<redmeat> IDK if this is intended behavior, but history search drops out when I press space
<redmeat> so, Ctrl + R
<redmeat> typing "sudo" works fine
<redmeat> but hitting space drops me out of incremental searching
<trogdoro> redmeat: space during filtering is supposed to be like an “OR” operator
<trogdoro> redmeat: what is it showing in the bottom bar when you type space?
<redmeat> ^X ^T ^K ^Q ^G
<trogdoro> redmeat: ah, I think I haven’t pushed that update yet
<trogdoro> redmeat: k, I just did pushed it to github
<trogdoro> redmeat: space will act like “or” now
<trogdoro> redmeat: I was just working on that yesterday and hadn’t pushed it yet
<redmeat> working now
<redmeat> thanks
<trogdoro> redmeat: np!
<redmeat> OK. Home time now. Thanks for your help.
<trogdoro> redmeat: I’ll tweet that the ^R thing is fixed - send me your twitter username if you want me to @mention you in it
<trogdoro> redmeat: ty so much for helping me figure that out!
sirdancealot has quit [Ping timeout: 265 seconds]
redmeat has quit [Quit: Page closed]
chrisdotcode has quit [Remote host closed the connection]
chrisdotcode has joined #xiki
bwilson has quit [Quit: bwilson]
mrbond has quit [Quit: mrbond]
mrbond has joined #xiki
mrbond has quit [Ping timeout: 255 seconds]
bwilson has joined #xiki
informatom has joined #xiki
sirdancealot has joined #xiki
<informatom> Hi Trogdoro! I just answered your question on https://github.com/trogdoro/xiki/issues/140#issuecomment-91025937
<informatom> Maybe it's having set the locale to German that confuses the script.
<trogdoro> informatom: ty, looking...
<trogdoro> informatom: ja, ich glauba Sie haben rechts
<trogdoro> informatom: die Sprache ist warscheinlinch die Probleme
<trogdoro> informatom: what’s the output when you run this now?
<trogdoro> $ emacs —version
<trogdoro> stupid irc client changed the dash dash to a long dash
<informatom> no probs, i get it
<trogdoro> informatom: I saw that, but was thinking it would be different after the install
<trogdoro> informatom: but, it looks like it didn’t try to install emacs
<trogdoro> informatom: maybe I should change my locale settings in a local vm
<trogdoro> informatom: do you know how to do that off the top of your head?
<trogdoro> informatom: maybe this?:
<trogdoro> $ sudo update-locale LANG=de_DE.UTF-8 LC_MESSAGES=POSIX
<informatom> At least, this gives no error ...
<trogdoro> informatom: I think that’s how I change my locale to german on ubuntu - I wasn’t suggesting you run it :)
<informatom> Just trying to switch to English via: sudo update-locale LANG=en_GB.UTF-8 LC_MESSAGES=POSIX
<trogdoro> informatom: ah, good idea
<trogdoro> informatom: are you going to be online for a bit? I’m going to jump off, but will be back on in about 20 minutes
<informatom> But that's not enough, still the German massages after emacs --version
<trogdoro> informatom: you’re probably right, that this is the cause, so I should be able to fix it without much trouble
<informatom> Fine, I'[[ play around meanwhile.
<trogdoro> informatom: great, see you in a few!
<informatom> CU!
cschneid has joined #xiki
irclogger_com has joined #xiki
<informatom> Full locale change seems to be sudo update-locale LANG=en_GB.UTF-8 LANGUAGE="en_EN" LC_MESSAGES=POSIX , but sadly needs logout/login ...
<trogdoro> informatom: I’ll be back in like 10 more minutes or so…
<trogdoro> informatom: would be interesting to see if it works after you reboot
trogdoro has quit [Quit: trogdoro]
<informatom> I got it: We don't want to change the default settings, just the current ones. That's even easier:
<informatom> LANGUAGE="en_EN"
<informatom> No reboot needed, then running the installer and I even end in a running xsh session.
<informatom> Now resetting my VM ...
bwilson has quit [Quit: bwilson]
<informatom> actually setting LANG=en_GB.UTF-8 is also necessary ... testing once more from a clean vm ...
sirdancealot has quit [Quit: Leaving]
sirdancealot has joined #xiki
chrisdotcode has quit [Read error: Connection reset by peer]
trogdoro has joined #xiki
<trogdoro> informatom: sry, the cafe I was going to was closed
<trogdoro> back now
<trogdoro> when you run xsh, it’s supposed to detect that you don’t have emacs, and install it
<trogdoro> informatom: it looks like that’s probably failing because of the locale
<informatom> LANG=en_GB.UTF-8; LANGUAGE="en_EN"; cd ~; curl -LO https://github.com/trogdoro/xiki/archive/master.tar.gz ; tar xzf master.tar.gz; cd xiki-master/bin; ./clearxsh; ./xsh
<informatom> is a working one liner for Ubuntu :-)
trogdoro has quit [Client Quit]
trogdoro has joined #xiki
<trogdoro> informatom: cool!
<trogdoro> informatom: great thinking!
sirdancealot has quit [Quit: Leaving]
<trogdoro> informatom: let me try that in the reverse direction and try to trace through what the problem is…
koo5 has joined #xiki
trogdoro has left #xiki [#xiki]
trogdoro has joined #xiki
trogdoro has quit [Ping timeout: 246 seconds]
bwilson has joined #xiki
chrisdotcode has joined #xiki
trogdoro has joined #xiki
<trogdoro> informatom: Can you run this, and tell me what it says?
<trogdoro> $ cat /etc/default/locale
<informatom> LANG="de_DE.UTF-8"
<informatom> Learned meanwhile: is taken from /etc/default/locale at login
<informatom> I just walked through your latest video (SF Ruby), everything worked out of the box, except mysql.
<trogdoro> informatom: great!
<informatom> I figured out te configure the default db, but not to set the password in a config, so I assume I have to open mysql for root from localhost without pass. Right?
<trogdoro> informatom: yeah, I need to make the sql-related commands and patterns more aware
<trogdoro> informatom: I’ll make them detect when you haven’t configured the db yet, and prompt you for the settings
<trogdoro> informatom: for now, you can hard-code your connection info
<trogdoro> informatom: it’s isolated to one line in the source - let me find it
<trogdoro> :xiki/commands/mysql/mysql_index.rb
<trogdoro> : out = Shell.run "mysql -u root #{db} < /tmp/tmp.sql", :sync=>true
<trogdoro> informatom: if you paste those 2 lines into xiki, you can do ^X on the 2nd line to jump to it in the source
<trogdoro> informatom: It’ll be pretty straight-forward to make it load the user etc from the xiki conf file
<trogdoro> $ xsh -conf/mysql/
<trogdoro> informatom: you probably figured out that’s where the conf is
<trogdoro> informatom: the only thing I’m hesitant about is the password
<trogdoro> informatom: do you know if there’s a best practice for how mysql stores passwords?
<trogdoro> informatom: in Rails db config, you just dump it in a text file, so I suppose I could do the same thing
<informatom> Well, I think it has to be "bad" alse phpmyadmin stores it plain text in a config file (and they should know if there is a better way.
<informatom> Btw, just borked the file and the massage / error / backtrace output is great!
<trogdoro> informatom: cool
<trogdoro> informatom: there are some good comments on this page re db passwords in files: http://stackoverflow.com/questions/12461484/is-it-secure-to-store-passwords-as-environment-variables-rather-than-as-plain-t
<trogdoro> some propose storing them in ENV vars
<trogdoro> informatom: that seems like a good optional option to give people
<trogdoro> informatom: I can have a place for them in the config file, but say it’s insecure and if they’re concerned, they can add it to an environment variable and xiki will pull it from there if it exists
<informatom> Absolutely. Meanwhile connected to the database successfully from xiki ...
<trogdoro> informatom: great
<trogdoro> informatom: btw, those backtraces are navigable
<trogdoro> informatom: you can do ^X in them to jump to the lines in the source
<trogdoro> informatom: or double-click on them, if your terminal supports it
trogdoro has quit [Quit: trogdoro]
<informatom> Database browsing is insanely fast.
trogdoro has joined #xiki
<informatom> Meanwhile it's 1 am here, so I'll leave for some sleep (looking forward to an IOT conference tomorrow in town).
<trogdoro> informatom: heh, gute nacht
<informatom> I just want to say a big "THANK YOU" and I just read through the mysql command_index that's so aprroachable, just great.
<informatom> Gute Nacht, as well, from Vienna!
<trogdoro> informatom: thanks for the great troubleshooting help
<trogdoro> informatom: I was just in Vienna a couple months ago
<trogdoro> amazing city!
<trogdoro> informatom: no prob, hope to chat with you some more here in #xiki !
<trogdoro> informatom: I’m working on an elegant way to deal with the DE locale - hope to deploy a fix soon
<informatom> I'm a rails dev, I think you gave us something way more useful than the new hype "reactive programming" (well your demos for web interfaces are actually reactive ...). Gonna think about that.... Bye!
informatom has quit [Quit: Page closed]
ratdaddy has quit [Quit: Page closed]