IRC log for #koha, 2013-06-22

All times shown according to UTC.

Time S Nick Message
00:00 mtompset druthb: considering that before no one thought about this, I'd like to get it right.
00:01 druthb My assertion stands.  There are a whole bunch of good tools for cooking random tokens, and they all seem to work just fine on sites way, way busier than a library catalog is likely to be.
00:01 mtompset can you point me at one. I rather trust something that works well than making my own.
00:03 druthb https://en.wikipedia.org/wiki//dev/random
00:04 druthb http://www.itworld.com/nlsunixrandom070531
00:06 mtompset I was reading a bug report on rand() which made it sound like it only had a 32768 upper limit on some OS's.
00:07 mtompset http://www.economist.com/blogs[…]/dc/dangerofdeath
00:07 mtompset I like the asteriod impact one at the bottom of the graph. :)
00:09 druthb I've never had a problem with rand(), in quite a few instances of using it for just this sort of thing.  take rand(), multiply by oh, 10^10 or so, and then take abs().  Or else take a 11 char substr, s/\.//, and you have a herkin long number
00:11 mtompset why not substr($v,-11,11)? ;)
00:11 druthb If you just use rand(), without a param, the odds of it producing an int on its' own are quite tiny.  if you take a substr starting with 0, you'll get 1 to 10 digits, with a *very* tiny chance of repetition during the same boot cycle...small enough that I totally wouldn't worry about it.
00:13 druthb There really is no such thing as "truly random."   There are things we don't get (or don't have the patience to do) the math for, but they're not really random.  What you're really looking for in this problem is "random enough to not have to worry about a repeat any time soon."  Once you define "any time soon", you've defined the problem, really.
00:14 druthb if "any time soon" is, say, 1 second, then you could use the last digit of a seconds counter, and smirk happily and go on about your business.
00:15 mtompset I would say anytime soon, worst case for me, is 2 minutes.
00:15 druthb Ten digits worth of rand() is going to be way, way plenty, then.
00:15 mtompset because by then there would be a timeout on the webpage. :)
00:16 druthb (unless you're twitter.  Then I'd say go for twenty.)
00:16 druthb (you're not twitter, so ten is plenty and a half.)
00:16 * druthb spent a whole semester on crap like that in Compiler Design, back in the 80s.  It made her head hurt a lot.
00:16 mtompset perhaps I have random unique id envy?
00:17 druthb Cleverness envy.  And yes, it is like that.
00:18 * druthb , being female, is immune to that.
00:18 talljoy joined #koha
00:20 * mtompset gives druthb a look.
00:21 druthb Oh, I have other sorts of envy.  I envy talljoy her amazing ability to wear amazing heels.  Other things like that.  But the one you name...no.
00:21 talljoy TALL SHOES
00:21 druthb <3 talljoy
00:21 talljoy LOL
00:21 talljoy hi druthb!!!
00:23 druthb seriously, though, mtompset, two minutes is an *eternity* to the entropy in /dev/random.  rand() will be just fine for what you want.  Give yourself ten digits or so for the my-number-is-bigger-than-yours factor, and move on to a problem that is more interesting and fun to work on.
00:24 mtompset druthb: Sorry for the slow reply. I stepped away, but yes... I was going to say just that. :P
00:25 plur joined #koha
00:25 druthb :)
00:32 peter joined #koha
00:55 plur joined #koha
01:03 mtompset druthb: Can I quote you in my commit message? ;)
01:03 druthb Absolutely.  :P
01:31 mtompset As druthb said, "That's a much lower chance than the odds of you dying by asteroid collision, so you've probably got something workable there."
01:31 druthb heh
01:31 mtompset That's my last sentence of my commit message. :)
01:31 plur joined #koha
01:37 mtompset okay... druthb, are you familiar with git-bz? I'm quite rusty.
01:38 druthb not very; I've used it a few times, but I'm rusty, too.
01:38 mtompset So, I'll do the old git format patch way then. ;)
01:38 mtompset Unless someone else is lurking who knows git-bz. ;)
01:40 talljoy left #koha
01:47 mtompset Okay... testing patch first... no sense putting up a busted patch. :)
01:55 mtompset Hmmm....
01:55 mtompset Does anyone know about ALTER TABLE permissions?
01:56 mtompset I copied my production system DB over, and went to the staff client to force the upgrade on my git dev system.
01:56 mtompset I get a bunch of things like: [Fri Jun 21 21:53:20 2013] updatedatabase.pl: DBD::mysql::db do failed: Can't create table 'kohadata.#sql-3cb_ce' (errno: 121) at /home/mtompset/kohaclone/install​er/data/mysql/updatedatabase.pl line 6877.
01:56 mtompset They seem to be ALTER TABLE's.
02:08 plur joined #koha
02:16 mtompset Nooooo!
02:17 mtompset Evil code... evil, evil code.
02:30 mtompset DOH! Bad tester! Bad tester. ;)
03:10 mtompset ARG! I refresh, and now my cardnumber skips again and again.
03:21 mtompset At least I know no duplicates are generated. :)
04:32 mtompset Have a great day (24 hour period) and weekend, #koha.
05:39 Oak joined #koha
06:45 cait @wunder muenchen
06:46 huginn cait: The current temperature in Berglern, Mitterlern, Germany is 15.1°C (8:41 AM CEST on June 22, 2013). Conditions: Rain. Humidity: 92%. Dew Point: 14.0°C. Pressure: 30.09 in 1019 hPa (Steady).
07:43 drojf joined #koha
07:43 drojf hi #koha
08:58 logbot joined #koha
08:58 Topic for #koha is now Welcome to the Koha IRC channel. The next general meeting is 10 July 2013 at 10:00 UTC. Please use paste.koha-community.org for long pastes
09:30 thd-away` joined #koha
09:54 peter_ joined #koha
09:59 peter__ joined #koha
11:59 paul_p joined #koha
12:41 drnoe joined #koha
12:44 talljoy joined #koha
14:00 NateC joined #koha
14:31 mtompset joined #koha
14:31 mtompset Greetings, #koha.
14:32 mtompset Anyone here able to help my with my massive git issues?
14:33 mtompset I'm getting a loose object is corrupt error.
14:40 mtompset good thing I have git diffs.
14:40 mtompset let's start from scratch again!
15:27 jenkins_koha Starting build #143 for job Koha_3.10.x (previous build: SUCCESS)
15:45 tcohen joined #koha
15:46 mtompset Greetings, tcohen.
15:47 tcohen hi mtompset
15:48 mtompset I'm playing with forking and threading right now, in attempts to bust things. :)
15:48 mtompset (or prove that they are a good idea)
15:48 mtompset I just forked a dbh, the child process ends, and the handle gets closed and parent can't use it any more.
15:49 mtompset On an interesting note. The last_insert_id is correct for the parent before it starts to fail miserably. :)
15:58 NateC joined #koha
16:02 mtompset Hmmm... C4::Context doesn't work with threads. :)
16:08 jenkins_koha Project Koha_3.10.x build #143: SUCCESS in 41 min: http://jenkins.koha-community.[…]/Koha_3.10.x/143/
16:08 jenkins_koha * Bernardo Gonzalez Kriegel: Translation updates for 3.10.7
16:08 jenkins_koha * Bernardo Gonzalez Kriegel: Database update for 3.10.7 release
16:09 mtompset Ah... use the _new_dbh, and it works okay.
16:11 mtompset tcohen: Do you know what I should fill in for $catalog and $schema from this example for Koha?
16:11 mtompset $rv = $dbh->last_insert_id($catalog, $schema, $table, $field);
16:50 mtompset Ah, it's the 22nd of the month.
16:50 mtompset Working on a release, tcohen?
16:50 tcohen excatly
17:07 tcohen jcamins?
17:07 wahanui i think jcamins is too young to be the President of the United States.  Which is a pity, because he had the votes at the 3.12 election.
17:07 * mtompset laughs.
17:08 tcohen #koha: what do m# and q# stand for?
17:09 mtompset Example?
17:10 tcohen nevermind, its just a delimiter renaming in a regexp match
17:27 tcohen gmcharlt around?
17:28 tcohen jcamins around?
17:29 mtompset That's what I was thinking. Sorry, it's only been me on the channel (with NateC coming and going) since 10:30ish.
17:55 gmcharlt tcohen: I am now
18:01 mtompset Greetings, gmcharlt. :)
18:02 gmcharlt hi mtompset
18:02 mtompset Care to look at my patch on bug 10454? :)
18:02 huginn Bug http://bugs.koha-community.org[…]_bug.cgi?id=10454 major, P5 - low, ---, mtompset, In Discussion , Duplicate card numbers may be generated
18:03 mtompset As far as I can tell, new patron, import patrons, and opac self registration all end up calling fixup_cardnumber.
18:17 drojf joined #koha
18:18 mtompset Greetings, drojf.
18:18 drojf hi mtompset and #koha
18:42 bgkriegel joined #koha
18:50 mtompset Thanks for the feedback, gmcharlt. This is the first time I've added a table, so I wasn't sure what to include or not (kohaversion.pl) :)
19:10 gmcharlt bgkriegel: I've updated the gitolate config so that you and tcohen can push tags
19:10 bgkriegel thanks gmlcharlt :)
19:11 tcohen yay! http://git.koha-community.org/[…]refs/heads/3.12.x
19:11 jenkins_koha Starting build #56 for job Koha_3.12.x (previous build: SUCCESS)
19:11 gmcharlt tcohen++
19:11 gmcharlt bgkriegel++
19:12 druthb o/
19:12 * gmcharlt is going to be afk for a whle
19:12 druthb nooooooooooo
19:12 * druthb will miss gmcharlt!
19:12 gmcharlt awwww ;)
19:13 tcohen gmcharlt: don't forget chris hall
19:13 tcohen (for 3.8)
19:29 mtompset Greetings, druthb.
19:29 druthb Hi, mtompset!
19:29 druthb :)
19:29 mtompset Greetings, bgkriegel.
19:30 bgkriegel Hi mtompset
19:33 mtompset "don't forget me" triggered a musical flashback: http://youtu.be/JG2IFsz_n5c
19:33 mtompset Glass Tiger. :)
19:33 mtompset I mean "don't forget chris hall"
19:36 gmcharlt tcohen: thanks for the reminder; done
19:52 jenkins_koha Project Koha_3.12.x build #56: SUCCESS in 41 min: http://jenkins.koha-community.[…]b/Koha_3.12.x/56/
19:52 jenkins_koha * Bernardo Gonzalez Kriegel: Translation updates for 3.12.1
19:52 jenkins_koha * Tomas Cohen Arazi: Increment version for 3.12.1 release
19:52 jenkins_koha * Tomas Cohen Arazi: Update release notes for 3.12.1 release
19:53 jenkins_koha Starting build #144 for job Koha_3.10.x (previous build: SUCCESS)
19:55 mtompset So, is it just the tarball you are generating, tcohen?
20:09 tcohen not just that, but yes, I'm building the tarball mtompset
20:34 jcamins tcohen++
20:35 CiM4 joined #koha
20:35 jcamins tcohen: don't forget to update the header on download.k-c.org.
20:38 jenkins_koha Project Koha_3.10.x build #144: SUCCESS in 45 min: http://jenkins.koha-community.[…]/Koha_3.10.x/144/
20:38 jenkins_koha Bernardo Gonzalez Kriegel: Update release notes for 3.10.7 release
20:38 CiM4 help
20:38 CiM4 !help
20:39 CiM4 left #koha
20:47 tcohen how do i do that jcamins?
20:48 tcohen i guess i also need to move the 3.12.00 files to old_releases too
20:49 tcohen who is the koha@ moderator?
20:50 tcohen we need to discard a message being held
20:57 mtompset CiM4?!
21:00 tcohen bgkriegel++
21:00 bgkriegel tcohen++
21:01 cait joined #koha
21:04 mtompset Greetings, cait.
21:04 cait g n8
21:05 mtompset tcohen++
21:05 mtompset bgkriegel++
21:05 mtompset Congratulations on your first release. :)
21:05 tcohen thanks mtompset
21:05 bgkriegel thanks :)
21:57 cjh bgkriegel: morning :)
21:57 bgkriegel morning cjh?
21:57 bgkriegel have you read last mail from tcohen?
21:57 cjh just logging in now :)
21:58 bgkriegel ok :)
21:58 bgkriegel @wunder cordoba, argentina
21:58 huginn bgkriegel: The current temperature in Cordoba Aerodrome, Argentina is 14.0°C (6:00 PM ART on June 22, 2013). Conditions: Partly Cloudy. Humidity: 27%. Dew Point: 0.0°C. Pressure: 30.06 in 1018 hPa (Rising).
21:59 cjh awesome read, now to figure out how this releasing thing works :p
21:59 bgkriegel jeje
21:59 bgkriegel have you rangi notes?
22:00 cjh I have a copy of the chat log which I can try skim
22:00 bgkriegel http://irc.koha-community.org/[…]3-06-20#i_1329645
22:00 cjh ty, saved me googling :)
22:01 cjh bgkriegel++ translation updates
22:03 bgkriegel good. first, update translations and database version, 2 commits
22:03 bgkriegel look http://git.koha-community.org/[…]refs/heads/3.10.x, and http://git.koha-community.org/[…]refs/heads/3.12.x
22:03 cjh and then release notes and tag?
22:03 cjh ty
22:03 bgkriegel yes
22:08 cjh I tried applying the patch with git am -ui3 and am gettng a few errors, it isnt applying to some files.
22:08 bgkriegel mm
22:08 bgkriegel strange
22:09 cjh ohhh nvm, the links in the email arent quite right. phewf.
22:09 bgkriegel no?
22:09 wahanui http://i.imgur.com/hVVuP.jpg
22:09 cjh 3.8.x
22:09 wahanui it has been said that 3.8.x is missing 7805
22:09 cjh http://translate.koha-communit[…]r-3.8.14.patch.gz<http://translate.koha-community.org/
22:09 cjh +assets/0001-Translation-up​dates-for-3.10.7.patch.gz>
22:09 cjh so the link for the 3.8 patch was for the 3.10 patch, easy fix :)
22:10 bgkriegel oh,sorry
22:10 cjh oh no problem, it could even be my email client.
22:11 cjh eik still some errors, will pastbin :)
22:12 bgkriegel ok
22:12 pastebot "cjh" at 127.0.0.1 pasted "3.8.14 translation updates" (35 lines) at http://paste.koha-community.org/78
22:12 cjh I am applying to the current 3.8.x branch
22:13 bgkriegel ok, let me try
22:23 bgkriegel cjh: done, file updated. Could you downoad and try?
22:23 cjh sure :)
22:25 cjh same errors, I may be getting a cached version or something.
22:26 bgkriegel I changed the name, remove 0001-
22:26 cjh ty
22:28 cjh same errors, did it apply cleanly for you?
22:28 bgkriegel yes
22:29 bgkriegel let me see
22:30 cjh did a fresh fetch and still same issues.
22:35 bgkriegel cjh: you are right, same errors.
22:35 bgkriegel let me see (again) :(
22:35 cjh ty for your time :)
23:19 bgkriegel cjh: this is very strange, I have problem with some po files. I'm trying to identfy which ones, and for what reason. Non of this on other versions :(
23:20 bgkriegel cjh: but i'm still here, just want you to know.
23:20 cjh thanks :)
23:21 cjh I guess if need be we could do this release without translation updates and get them next time.
23:21 cjh I'm studying for my exam but will try keep an eye on the channel.
23:21 bgkriegel that could be an option :(
23:22 gmcharlt cjh: bgkriegel: do you have accounts on the website with which to post the release announcements?
23:22 gmcharlt @later tell tcohen do you have an account on the website with which to post a release announcement?
23:22 huginn gmcharlt: The operation succeeded.
23:23 cjh I don't think so, also still need to generate some gpgp keys
23:24 bgkriegel No, I don't have a user
23:25 gmcharlt OK, I'll create account and PM you the initial passowrds
23:25 bgkriegel thanks :)
23:30 gmcharlt cjh: bgkriegel: you two (and tcohen) should now have emails inviting you to activate your account
23:30 cjh thanks :)
23:33 bgkriegel thanks, I need to learn a new name "bjkriegel" :) it's ok
23:33 bgkriegel I'm in
23:35 cjh me too, ty
23:35 gmcharlt bgkriegel: oops. typo -- would you prefer your username to be corrected?
23:36 bgkriegel no, it's ok :)
23:36 bgkriegel my second name is Jose, so I can remember it :)
23:37 gmcharlt heh]
23:41 gmcharlt cjh: bgkriegel: btw, please make sure that you update your WP account to include your real name (house style)
23:42 bgkriegel done!
23:45 cjh also done.
23:45 gmcharlt thanks

| Channels | #koha index | Today | | Search | Google Search | Plain-Text | plain, newest first | summary