#microformats 2017-09-09

2017-09-09 UTC
davidmead and vivus joined the channel
#
vivus
Hello. Is anybody lurking here?
#
vivus
Hi KartikPrabhu :) how are you?
#
KartikPrabhu
very well
#
vivus
concerning this site: https://github.com/microformats/h2vx.com . is there a way to get it to run locally?
#
Loqi
[microformats] h2vx.com: H2VX microformats to vCard/iCalendar converter, test dev.h2vx.com for issues
#
vivus
It is running locally for me, but when I try to convert a generated hCard, it fails
#
KartikPrabhu
what about it is failing?
#
vivus
well I have adjusted all the URLs so that it points locally now. eg. 10.0.0.99
#
vivus
Unless ... it shouldn't be pointing to that address
#
KartikPrabhu
i think you sould use relative URLS
#
KartikPrabhu
just to be sure
#
KartikPrabhu
most likely the URLs in the code were relative anyway
#
vivus
they're hard-coded as the h2vx.com domain: https://github.com/microformats/h2vx.com/blob/master/vcf/index.html
#
vivus
document.getElementById('vcardlink').value = 'http://h2vx.com/vcf/'+uri;
#
KartikPrabhu
oh, then converting them to relative URLs is probably good instad of hard-coding another URL
#
vivus
KartikPrabhu: can you provide an example of relative URL?
#
KartikPrabhu
instead of "example.com/page" if you do "/page" then the "example.com" is assumed
#
vivus
should it be `/page` or `../page` ?
#
KartikPrabhu
from "example.com/test/page2" the URL "/page" links to "example.com/page" while "../page" links to "example.com/test/page"
#
vivus
KartikPrabhu: if you look here: https://github.com/microformats/h2vx.com/blob/master/vcf/sharing.js . you will see the URLs are hard-coded. what should I change those URLs to?
tantek joined the channel
#
vivus
KartikPrabhu: so nothing I am trying is fixing the errors for running the website locally
#
vivus
Hello tantek
nitot joined the channel
#
vivus
debugging the PHP app is quite a pain
#
Zegnat
vivus, you could always file an issue on the repository of you think all URLs should be made relative.
#
vivus
Zegnat: to get the site to run locally is proving impossible. I have been at it for like 5 hours, making random quirks to PHP settings without luck
#
vivus
I think I may just write my own parser in Python
#
Zegnat
Hmm, that's unexpected. I'm sure I have run it. Will take a look once I get my hands on breakfast
#
vivus
Thank you Zegnat . Please let me know what changes you made to run it and I will do the same
#
Zegnat
I don't remember any changes. But we'll see. Will keep you posted, vivus.
#
Zegnat
vivus, it seems to work for me locally. What is failing for you exactly?
#
Zegnat
I didn’t need to change any URLs to make it work.
#
Zegnat
Only URLs like /vcf/tantek.com will not work when you have the site sitting in a subdirectory, looks like. But through the form field: no problems.
[kevinmarks] joined the channel
#
[kevinmarks]
There is a microformats parser in python, it's constructing the vcard that needs doing
[colinwalker], davidmead and rodolfojcj_ joined the channel
#
vivus
Zegnat: so you just ran it as-is and had no conflicts with the domain-name?
#
vivus
and from what kevinmarks has said, is the vcard/hCard relationship not 1-to-1?
[kevinmarks] joined the channel
#
[kevinmarks]
It's pretty close - h-card is a bit different in terms of nesting
#
vivus
[kevinmarks]: the problem I have with using h-card is lack of support across devices. I believe hCard is supported on Android/iOS/Thunderbird/other-clients, so it might be better to adopt that option for now
#
vivus
unless h-card provides major benefits over hCard
#
Zegnat
The preview URL is wrong, yes, vivus. But that is a presentational thing, not a functional thing. You can still use the download button or the links with your domain substituted in.
ben_thatmustbeme joined the channel
#
@hirameki
(掘り返し) h:376 書誌情報のMicroFormats from id:kunimiya http://ryogrid.net/idea/twit/376
(twitter.com/_/status/906570405166563328)
davidmead, KartikPrabhu and rodolfojcj_ joined the channel