<gildor>
edwin: but basically, if you do the change against fusionforge, I will get it
<gildor>
missing hook
<edwin>
can I clone via git://?
<edwin>
or can you run update-server-info?
alexyk has quit [Read error: Connection reset by peer]
<gildor>
edwin: I fix the missing update-server-info
<gildor>
try again
<edwin>
gildor: thanks, its cloning now
<gildor>
edwin: the link is at the bottom of the page of My page -> Account Maintenance
<edwin>
gildor: there is actually code there to show the ssh keys link
avsm has quit [Ping timeout: 260 seconds]
<gildor>
it is called "Edit keys "
<edwin>
not on my user page
<edwin>
if (($u->getUnixStatus() == 'A') && (forge_get_config('use_shell'))) {
infoe has quit [Ping timeout: 240 seconds]
<edwin>
maybe my status is wrong?
Yoric has joined #ocaml
<gildor>
nope, you are active
<gildor>
on the web page
<edwin>
did my user get its shell activated recently?
<edwin>
maybe its that cronjob that syncs keys didn't run yet, so something is wrong with my status
avsm has joined #ocaml
<gildor>
edwin: you unix status is N
<edwin>
am I member of any groups?
<edwin>
it will only activate if I am member of at least one group
<gildor>
yes, of ocaml-judy
<edwin>
looks like a bug in project approval then hmm
<gildor>
no, I don't think so
<gildor>
did you receive any emails that ask for confirmation ?
<edwin>
nope
<edwin>
1 mail for new project approved
<edwin>
1 for new list
<edwin>
1 for list password
<edwin>
was I supposed to receive another?
<gildor>
when you registered your user, you should have receive a confirmation email
<edwin>
ah there yes
<edwin>
I confirmed my account with that link
<edwin>
but it said nothing about shell
<gildor>
I know
<edwin>
I registered in december though
<edwin>
when did you roll out new forge?
<gildor>
in december
<edwin>
I registered 30th
<edwin>
I guess I was on the new forge already then
<gildor>
yes you was
<gildor>
have you ever try to login ?
<edwin>
sure, I submitted all those bugs for you ;)
<gildor>
to ssh-login
<edwin>
ah no
<gildor>
try once
<gildor>
(you will fail)
<edwin>
permission denied
<gildor>
don't try twice
<edwin>
I tried logging in to ssh.forge.ocamlcore.org and that failed
<edwin>
then I uploaded my key
<edwin>
(when I found the link to the editsshkeys.php)
<edwin>
I think I need to wait an hour or two for the keys to get synced though
<edwin>
but I don't see what that has to do with the edit keys being shown or not on the accounts page ...
<gildor>
edwin: I run out of time, I need to get back home
<gildor>
edwin: basically, some people registered before you and have an active unix status
<edwin>
gildor: I'll experiment with that forge VM
<gildor>
edwin: and some people after you as well
<edwin>
see if I can figure out whats wrong
<gildor>
edwin: if you can figure out which job update TABLE users COL unix_status
<gildor>
which cronjob
<gildor>
we will have half the answer
<gildor>
the other guy that have a valid unix account, didn't my help to get here, so I think it is probably just a matter of time
<gildor>
but it is better to know why, right now
<gildor>
gtg
<edwin>
k
Yoric has quit [Quit: Yoric]
avsm has quit [Quit: Leaving.]
jonrafkind has joined #ocaml
myu2 has quit [Remote host closed the connection]
_andre has quit [Quit: *puff*]
alexyk has joined #ocaml
<alexyk>
I'm wrapping a bunch of .cmo files into a lib.cma for easier loading into repl. Now I added a line, include Binary_graph, to common.ml, which I open in repl, and now I get an error even at the attempt to load lib.cma! http://paste.pocoo.org/show/316730/ -- why can this cappen?
roconnor has joined #ocaml
<hcarty>
alexyk: Try putting binary_graph.cmo before common.cmo in the lib: line
<julm>
you give binary_graph after common
<roconnor>
can modules contain functors?
<hcarty>
The order of files matters for OCaml
<hcarty>
roconnor: Yes
<hcarty>
roconnor: See Map.Make in the stdlib for an example
<roconnor>
so I can have a functor producing a module that conatins another functor?
<hcarty>
roconnor: Yes
<hcarty>
roconnor: Or a functor which takes multiple modules as arguments
<roconnor>
interesting
<thelema>
alexyk: umm, don't you need ocamlmklib to make a .cma?
<alexyk>
yep, now works. I was sure I was trying different orders. thelema: this actually works :)
<alexyk>
I can enjoy the .cma in repl
<hcarty>
thelema: I think think ocamlmklib is used?
<thelema>
alexyk: are you really making a .cma or really a .cmo with the wrong extension
<alexyk>
thelema: I got this line off this very forum :) So I'm not sure...
<alexyk>
thelema: what would real .cma have differently?
<hcarty>
thelema: Sorry - I apparently can't read or type. I misread your message, then mistyped my response...
<alexyk>
hcarty: sounds like a great excuse for every situation! :)
<alexyk>
another good one, "I was drunk" :)
<hcarty>
alexyk: thelema has corrected a few typos for me recently. I don't want to become dependent :-)
<hcarty>
thelema: According to the ocamlc documentation, it looks like you can build a cma without ocamlmklib. I don't know what the differences are in output between the two though.
<adrien>
"19:28 + raela : 2. to get the flag, you'd add for example 0x0010 + 0x0004 + 0x0001 = 16 + 8 + 1 = 27"
<adrien>
0x10 + 0x04 + 0x01 = 27
<thelema>
hcarty: okay then. I guess it is possible to create simple .cma files without ocamlmklib
<julm>
of course
<thelema>
on the other hand, that code makes me weep in terms of how much work simple things are.
alexyk has quit [Quit: alexyk]
<edwin>
gildor: new users are created with Unix account: N, however if I click on [update] as admin (after they registered a project) it changes instantly to 'A'
<edwin>
gildor: didn't manage to find a cronjob that does that
ygrek has joined #ocaml
alexyk has joined #ocaml
alexyk has quit [Client Quit]
jonrafkind has quit [Ping timeout: 264 seconds]
alexyk has joined #ocaml
<edwin>
gildor: AFAICT its supposed to get activated when project group is created
<edwin>
but its not
alexyk has quit [Client Quit]
metasyntax` has quit [Quit: Be seeing you.]
<thelema>
any help with a wierd 'Not_found' coming from pervasives when I move a binary from one computer to another?
<adrien>
well, backtrace?
<thelema>
Raised at file "pervasives.ml", line 280, characters 20-46
lamawithonel has joined #ocaml
<thelema>
ocaml 3.11.2, if it matters
<adrien>
what's the minimal testcase? empty sourcefile?
<thelema>
well, batteries is involved and bitsrring
<thelema>
*bitstring
<thelema>
gimme a bit to minimize
<adrien>
could that be camomile? I can't remember the exact issue
<thelema>
huh, apparently not either of those libraries, a simpler executable built with both seems to work
<thelema>
no, I already had and resolved the camomile issue by setting the environment var
<adrien>
it looks like it's in open_in_gen (grabbed 3.11.2's pervasives.ml)
<thelema>
yes, that's pretty clearly not it.
<thelema>
especially as that line is an external, and I can't see any way for it to raise Not_found
<thelema>
more likely it's the wrong location, as my native code tends to report on backtraces
Snark has quit [Quit: Ex-Chat]
<thelema>
hmm, doesn't even get to the entrypoint of my main module
* thelema
is learning about gdb
Yoric has joined #ocaml
<thelema>
hmm, maybe ocamlviz (which is linked in, but I'm not even using) is causing a problem...
<adrien>
you tried gdb?
<thelema>
yes, I can set breakpoints, but I can't find one it actually reaches
<thelema>
I guess I could set a breakpoint on pervasives...
<thelema>
yay, it does reach pervasives...
<thelema>
caml_program() seems to raise the exception...
<adrien>
tried getting a backtrace?
<adrien>
just "bt", nothing more
<thelema>
or not...
<thelema>
when do you want the backtrace?
<adrien>
I'd expect: "gdb ./a.out" "run" "bt" to show what's going on
<thelema>
"run" completes properly, with the ocaml runtime providing a backtrace
<thelema>
and the executable exiting
<adrien>
ah, right, had forgotten about that
<thelema>
here's the last backtrace, one step before it quits:
<thelema>
#0 0x0000000000443269 in caml_program ()
<thelema>
#1 0x000000000031ae4b in ?? ()
<thelema>
#2 0x000000000058a16a in caml_start_program ()
<thelema>
#3 0x0000000000000000 in ?? ()
<adrien>
ocamldebug? strace?
<thelema>
I thought ocamldebug was only for bytecode
<edwin>
gildor: in activateUsers(), Group->getUsers() /usr/share/gforge/common/include/Group.class.php returns an empty array for newly created group's members
<thelema>
sh, strace has helped, it quits right after failing to load /usr/share/camomile/database/age.mar
<adrien>
yeah, I forgot to ask if you had tried in bytecode: iirc the backtraces are sometimes better
<thelema>
s/sh/ah/
<thelema>
yes, they usually are. but my build system is hard to switch to bytecode
<hcarty>
thelema: I had a heck of a time getting the linking correct for the OCaml portion of PLplot, from the confines of CMake. The documentation seemed clear as mud at that time.
<hcarty>
OCamlMakefile and ocamlbuild (and now/soon oasis) help smooth over the difficulty, but I still don't think I have a solid handle on the details of OCaml compilation + linking
ezyang has joined #ocaml
<thelema>
I'm linking in some C, otherwise I'd be happy with ocamlbuild.
<ezyang>
Hello all, is there a pre-canned O(n) find the median of an unsorted array function I can use?
<thelema>
ezyang: no
<ezyang>
blah
<hcarty>
ezyang: GSL maybe?
<hcarty>
If GSL + ocamlgsl is pre-canned enough
<adrien>
thelema: well, you can use ocamlbuild but it has a serious limitation with headers (.h files are not copied to _build and are therefore not found during calls to gcc: you can 1- use -I to the original folder, 2- patch ocamlbuild but that won't always work [only mostly])
<hcarty>
thelema: Yes... every time I have to bring C in, it's a struggle to decide between the OCamlMakefile and ocamlbuild
<adrien>
also, oasis should help here (it should workaround the issue), need to try it again, in a bunch of days I hope
<ezyang>
hm, gsl seems a bit heavyweight
<thelema>
yay, copying the camomile data files over fixed things... (apparently I had old camomile installed on the other machine)
fraggle_ has quit [Ping timeout: 276 seconds]
fraggle_ has joined #ocaml
alexyk has joined #ocaml
<ezyang>
Looking for naming help. I have two constructors for a data structure: one where you specify the height and width, and one where you specify what probabalistic properties the structure should have and it calculates the height and width for you.
<ezyang>
Right now they are respectively make_raw and make, but those feel clunky.
<hcarty>
ezyang: It is potentially less checked at compile-time, but you could combine them in to one function and use optional arguments
<ezyang>
hcarty: Hm, I guess I could
<ezyang>
Though I think two separate functions makes a lot more sense.
<hcarty>
Combining is certainly not best for everything
<ezyang>
because make is literally "calculate height and width, and then call make_raw"
<jm_ocaml>
Why do you feel that the make and make_row are not good names? Also, what is your data structure representing?
mnabil_ has quit [Read error: Connection reset by peer]
<ezyang>
Ah, maybe they are fine names :-) The structure being created is a count min sketch.
<thelema>
separate functions makes more sense, from what I recall. It's common to see "_int" for the internal (not user-friendly) version of a function
<ezyang>
ok, that works well
<ezyang>
has a nice pun too (make : float -> float -> sketch and make_int : int -> int -> sketch :-)
<thelema>
:)
<ezyang>
Heh, it would be cool if ocamldoc could generate mathematical equations from LaTeX in its HTML output
<thelema>
yup, that would be nice. iirc, this was difficult to do back when ocamldoc was written. Now that it's easier... maybe some can patch ocamldoc
<jm_ocaml>
I agree! (Well, I'd be more interested in something similar to .lhs for ocaml. Closest I could find is ocamlweb which isn't nearly as nice.)
edwin has quit [Remote host closed the connection]
Yoric has quit [Quit: Yoric]
<ezyang>
Can I do an internal link {!foo} inside a module without getting full quantification?
vk0 has quit [Ping timeout: 255 seconds]
tautologico has joined #ocaml
vk0 has joined #ocaml
<thelema>
ezyang: {!foo}? a pointer to a record? or is that haskell syntax?
<thelema>
s/pointer/reference/
<ezyang>
as in, ocamldoc
<ezyang>
I want to refer to another function and make it generate a hyperlink
BMeph has left #ocaml []
ygrek has quit [Ping timeout: 240 seconds]
<hcarty>
ezyang: What do you mean by full quantification?
<ezyang>
{!foo} renders as Modulename.foo
<jm_ocaml>
Maybe the -hide list,of,module,name is what you want?
<jm_ocaml>
*option
<adrien>
oh, new Core is packaged with oasis =)
alexyk has quit [Quit: alexyk]
fraggle_ has quit [Quit: -ENOBRAIN]
fraggle_ has joined #ocaml
alexyk has joined #ocaml
boscop has quit [Ping timeout: 240 seconds]
alexyk has quit [Quit: alexyk]
Edward__ has quit []
<ezyang>
I need to implement the dot product of two arrays. Should I do it imperatively or functionally...
<mrvn>
yes
<ezyang>
"ha!"
<ezyang>
the way I'd do it in Haskell is sum (zipWith (*) a b)
<ezyang>
but I don't have any of those constructs :-/
<jm_ocaml>
Then write them!
<mrvn>
That would create a temporary array.
<ezyang>
yeah, in OCaml it would do that.
<mrvn>
If you do it imperatively then you need a reference for the sum. You have to be carefull with them so they get unpoxed properly.
<ezyang>
OCaml is making me think too much about low level details :-(
jm_ocaml has quit [Remote host closed the connection]