#dev 2017-10-24
2017-10-24 UTC
snarfed joined the channel
[kevinmarks] and snarfed joined the channel
# tantek !tell petermolnar re: https://chat.indieweb.org/dev/2017-10-23/1508756804030000 did you survey https://indieweb.org/reacji#IndieWeb_Reacji_Posts first? If so what was the summary result?
EmreSokullu, [miklb] and mblaney joined the channel
snarfed joined the channel
# tantek !tell bear for your review (off the top of my head because aaronpk asked) https://indieweb.org/email#phishing
snarfed1 and eli_oat joined the channel
# www.tangerinelaboratories.com created /User:Www.tangerinelaboratories.com (+407) "who am i 1" (view diff)
renem joined the channel
# tantek.com edited /reacji (+973) "Move slack to history and keep diagram purely for illustrative purposes at the top, more explicit how to about the markup of a reacji post, call for code example" (view diff)
[miklb], [kpraslowicz] and tbbrown joined the channel
# gRegorLove what is web sign in
# gRegorLove Loqi y u no
dougbeal|iOS, snarfed and [eddie] joined the channel
# [eddie] !tell aaronpk: As you work on Microsub stuff if you have any realizations let me know! I’ve been working on a secret project when I’ve had some time here and there: https://github.com/EdwardHinkle/influx a node.js Microsub Server. My goal was to try to finish it and launch it incognito but with discussions being raised definitely wanna be part of those ?
# [eddie] !tell aaronpk https://github.com/EdwardHinkle/influx/issues?q=is%3Aissue+is%3Aclosed shows what’s done. My current blocker is getting subscribed sites parsed and added to the respective channels
tantek, EmreSokullu and cweiske joined the channel
# @lorcanD “D-Lib Magazine will cease routine publication with this, our 265th issue” http://buff.ly/2too9mN (twitter.com/_/status/885947315940450312)
# tantek alright I've reported https://twitter.com/dallaslones as spam, not sure what else to do
renem joined the channel
tantek, j12t, [kevinmarks] and EmreSokullu joined the channel
# petermolnar !tell aaronpk it would be nice to have people covering all timezones who can add to Loqi's blocklist
# Loqi petermolnar: tantek left you a message 7 hours, 32 minutes ago: re: https://chat.indieweb.org/dev/2017-10-23/1508756804030000 did you survey https://indieweb.org/reacji#IndieWeb_Reacji_Posts first? If so what was the summary result?
dgold joined the channel
# Loqi dgold: aaronpk left you a message 12 hours, 15 minutes ago: re: https://chat.indieweb.org/2017-10-21/1508610459552000 Correct, it requires a POST to trigger the distribution. Is that not clear from the docs? or did you just not find the docs? https://switchboard.p3k.io/docs
calumryan and jeremycherfas joined the channel
j12t joined the channel
# jeremycherfas Hello sknebel
# jeremycherfas Glad I missed that spam storm.
# jeremycherfas.net edited /site-deaths (+316) "Site death of Opinion podcast hosting --~~~~" (view diff)
# jeremycherfas !tell cweiske you mentioned something a few days back about installing pear and pecl so that I can then install SSH2. I'm confused about where I should be installing from. Trying to follow https://jason.pureconcepts.net/2012/10/install-pear-pecl-mac-os-x/
# Loqi cweiske: jeremycherfas left you a message 24 minutes ago: you mentioned something a few days back about installing pear and pecl so that I can then install SSH2. I'm confused about where I should be installing from. Trying to follow https://jason.pureconcepts.net/2012/10/install-pear-pecl-mac-os-x/
# jeremycherfas Mostly about the various places and paths to things. Probably it comes down to my using MAMP for local development, which seems to have a whole suite of folders for different versions of PHP etc.
# jeremycherfas So if I want to add the SSH@ stuff, I don't know where it should go.
# jeremycherfas So in /Applications/MAMP/bin/php/php7.1.6 I see pear and pecl, but I am not sure where in should be in order to use pecl to install ssh2
# jeremycherfas Oh, I want to be able to log into my remote server and then delete a file there.
# jeremycherfas That's what zegnat was saying. I guess I need to look again at exec().
# jeremycherfas You're saying I should give up on ssh2? OK. Back to the drawing board!
# jeremycherfas This is where I get confused again about WHERE things are. Is the script on the remote server, or local?
# jeremycherfas But the script has to log in to the remote server. Doesn't that require SSH2?
# jeremycherfas Thanks. It is becoming clearer. Maybe the first thing would be to set up passwordless login.
[pfefferle] joined the channel
# [pfefferle] yes site is gone... I made a copy on github
# jeremycherfas Right. Got to go out.
# jeremycherfas A little, yes. Cweiske++ zegnat++
# jeremycherfas I guess that needs to be at the start of the line.
# jeremycherfas Cweiske++
# jeremycherfas Zegnat++
# jeremycherfas There are good instructions at DreamHost, thanks.
j12t joined the channel
# jeremycherfas I seem to have three; github_rsa, id_rsa (which I think was generated for a previous dreamhost server, and user_rsa. And a file for known_hosts.
# jeremycherfas Not sure how I would know.
# jeremycherfas Filename being id_rsa.pub?
# jeremycherfas Permissions 0644 for 'id_rsa.pub' are too open.
# jeremycherfas Which is odd
# jeremycherfas That's the message I am getting, yes
# jeremycherfas For all three. OK, I'll try that.
# jeremycherfas Id_rsa did not ask for a password. Just showed me the contents.
# jeremycherfas Contents of the pub file, that is.
# jeremycherfas I'm late. Must leave for an hour or so. Thanks so much for your help. Will resume later.
John___ joined the channel
# jeremycherfas Done. I can now log in to my remote server without a password.
# jeremycherfas Yup. Next step will be to pass a variable to the script.
j12t and eli_oat joined the channel
# jeremycherfas Better than just using doublequotes?
# jeremycherfas Thanks.
calumryan joined the channel
# cweiske turns out that /site-deaths is full of dead links
# www.svenknebel.de edited /projects (-23) "/* WordPress */ petermolnar isn't wordpressing anymore, replace with GWG" (view diff)
# petermolnar hm, I missed that somehow
# petermolnar I tried to clean up when I changed
# jeremycherfas But shouldn't we leave those dead links as a warning?
# jeremycherfas The ones in site deaths
# cweiske of course did I NOT delete dead links on /site-deaths
# jeremycherfas Misunderstood.
snarfed and singpolyma joined the channel
# jeremycherfas If I ssh user@host in terminal, I am quickly taken to the server and shown the splash. But if I exec(ssh server@host); in php it seems to be stuck forever and then eventually returns with a broken pipe message.
# jeremycherfas Is this because I am not asking it to do something when it is there?
# jeremycherfas $date = (Exec("ssh $server date")); gets stuck too.
snarfed joined the channel
# jeremycherfas On command line it works fine. I am trying to do this via PHP built-in server
dougbeal|iOS joined the channel
# jeremycherfas Breakthrough! I had single quotes and I needed double, because I was passing $server as a variable.
# petermolnar jeremycherfas a long term tip: always use sprintf
# jeremycherfas Instead of echo?
# petermolnar or printf
# petermolnar if you want to echo
# jeremycherfas Yes, I've had that tip before, and had forgotten it.
# petermolnar I used . concat,
{$var}
, $var, etc, basically all the possible combinations in PHP# petermolnar the only long term maintainable for me was printf/sprintf
# jeremycherfas I'm creating $server with escapewshellarg() before I call exec.
# jeremycherfas I'm creating $server with escapewshellarg() before I call exec.
# jeremycherfas Can I just concatenate commands after ssh like you just did?
# jeremycherfas Multiple commands. Ssh cd rm
# cweiske "cd /path/to && rm file" is the same as "rm /path/to/file"
# jeremycherfas I'd quite like to test that file exists before rm
# jeremycherfas Nervousness?
# jeremycherfas But you're right. I don't absolutely need to.
# jeremycherfas You've been a huge help.
# petermolnar oh, it has a sibling: https://github.com/tlrobinson/evil.css/blob/master/evil.css
# petermolnar eh, sorry, should have been -chat
# jeremycherfas Speaking of slowly going insane, php script.php string works perfectly the first time, with string doing what it should, but second and subsequent times, argv[1] stubbornly becomes 'r' and refuses to change.
# jeremycherfas How do I make sure argv[1] is null before calling the script? Is there any way?
# jeremycherfas I mean, not argv[1] -- that will be whatever I pass -- but when the script starts operating, how do I ensure that my targetvariable will be null before I set it to argv[1]?
John___ joined the channel
# jeremycherfas I guess I should create a gist
# jeremycherfas As I say, it worked perfectly the first time I ran `php delete-bad-filename.php badfile.yaml` from the command line.
# jeremycherfas Every subsequent time, $targetfile seems to be set to 'r'
j12t joined the channel
# jeremycherfas Forgive my stupidity; I had left the $ out of $argv, somehow.
# jeremycherfas Hohoho More like aaaaarrrrrggggghhhhh
tbbrown and snarfed joined the channel
# Loqi aaronpk: [eddie] left you a message 11 hours, 36 minutes ago: As you work on Microsub stuff if you have any realizations let me know! I’ve been working on a secret project when I’ve had some time here and there: https://github.com/EdwardHinkle/influx a node.js Microsub Server. My goal was to try to finish it and launch it incognito but with discussions being raised definitely wanna be part of those ?
# Loqi aaronpk: [eddie] left you a message 11 hours, 35 minutes ago: https://github.com/EdwardHinkle/influx/issues?q=is%3Aissue+is%3Aclosed shows what’s done. My current blocker is getting subscribed sites parsed and added to the respective channels
tantek, calumryan_, [kevinmarks], j12t and [cleverdevil] joined the channel
# [cleverdevil] eddie excited about your secret project! Would be an awesome companion to https://github.com/cleverdevil/together/
snarfed and [eddie] joined the channel
KartikPrabhu joined the channel
# [cleverdevil] Cool!
# [cleverdevil] Well, so far grantcodes has done nearly all of the work on Together, but I see you sent over a pull request, too.
# [cleverdevil] You're welcome to use Together as your reference client for Influx, and to make any changes needed to make that happen.
# tantek snarfed, you may be interested in https://test.activitypub.rocks/
# Loqi snarfed: tantek left you a message 18 hours, 33 minutes ago: welcome we're chatting about the first documented examples of webmention spam - see 2017 comments on adactio's post here: https://adactio.com/journal/6469
# grantcodes hmm secret project huh...
# grantcodes Meant to merge that channels branch back into master. But it doesn't do anything, just pops out a fake list of channels
# snarfed aww https://test.activitypub.rocks/ doesn't actually test. it's just a form that generates an implementation report.
# [cleverdevil] Yeah, I took a look at it, and its a good start.
[jeremyzilar] joined the channel
# grantcodes I think I pushed up a gallery view for the photos feed as well :)
# grantcodes Oops it was still local, online now
# [cleverdevil] Sweet!
# [cleverdevil] I'll check it out as well.
# [cleverdevil] I still like the idea of the channels being pinned to the left, like in the mockup.
# sknebel !tell snarfed: see https://chat.indieweb.org/social/2017-10-24#t1508865395522000 and surrounding, seems like its not fully online yet
# grantcodes @cleverdevil, yeah I just couldn't figure out how to do that yet :P
# [cleverdevil] That gallery view is ?
# [cleverdevil] For anyone who wants to see current progress ?
# [cleverdevil] Its a distant dream to have all of this working, but all of the pieces are there!
# [cleverdevil] Building blocks, at least.
# [cleverdevil] Sure.
# grantcodes Yeah, as before kinda stuck untill there's some sort of backend.
# [cleverdevil] Well, the more the merrier!
# [cleverdevil] I think you definitely can. The bulk of the user experience will likely end up in readers.
# [cleverdevil] Fair point.
# grantcodes Was also thinking would be really great if websub supported websockets or something, instead of constant polling
# [cleverdevil] Maybe just presenting the raw data.
# [cleverdevil] Rather than worry about rendering it.
# grantcodes Oh sorry, microsub!
snarfed joined the channel
# grantcodes Yeah, it's complicated! I'm pretty sure the reader will require it's own server as well, so that could do the realtime pushing
# grantcodes CORS is maybe going to kill your dreams there
# grantcodes oh really, I don't fully understand it, just know I always run into it ?
# snarfed obligatory: https://anyorigin.com/ etc
# Loqi snarfed: sknebel left you a message 24 minutes ago: see https://chat.indieweb.org/social/2017-10-24#t1508865395522000 and surrounding, seems like its not fully online yet
# grantcodes Yup, auth and discovery I think is the more common cors issue. Need to scrape the users page for the endpoints.
# grantcodes Maybe I can use something like anyorigin for that, but dependencies...
# grantcodes Or it would be easy to build my own, just always feels dirty to have a middleman like that haha
raziellight joined the channel
# KartikPrabhu hi raziellight
# raziellight what is the difference between the two chats if you don't mind me asking?
# raziellight i thought indieweb was essentially developing
# raziellight hihi :D
# KartikPrabhu raziellight: this one is more for dev stuff. the other one we try to keep the "code" stuff out of
# KartikPrabhu so that it is more accessible to beginners and people just coming in
# raziellight oh hmm odd
# raziellight ah i see
# raziellight oh..
# KartikPrabhu raziellight: so yes. I do use Django and python
# raziellight ah i see
# raziellight like i was looking at snippets awhile ago, and i feel like a core tenent of programming is or atleast should be inserting data that is maybe sometimes variable
# raziellight this is how things are created, and atom based approaches as in the book, and component based web design is taking a hold
# Loqi CASSIS, short for Client And Server Scripting Implementation Subset, is an intersection of the syntaxes of Javascript and PHP, as well as an open source library, cassis.js, that enables writing code once, and having it natively execute in both JS and PHP https://indieweb.org/CASSIS
# raziellight i feel like there should be libraries that essentially let you select and insert commonly used applications would be an ideal form of reducing repetition and keystrokes
# KartikPrabhu raziellight: yes. I do that in Django using templates for components
# raziellight hmm yeah i have been just looking at templates, and was trying to understand the difference between using templates and snippets
# KartikPrabhu again it depends on what you are using. for JS + PHP Cassis seems to be good but I have not used it since I use python
# Loqi It looks like we don't have a page for "snippet" yet. Would you like to create it?
# raziellight they both seem to achieve similar aims, but templates tend to be more part of the webpage construction, where as the snippet is more a command that input common reusable code in the first place
# KartikPrabhu raziellight: right. snippets are bits of reusable backend code and tempaltes are for rendering them on the we page
# raziellight but very similar. i remember trying to reduce repetition using templates, but ultimately failed and feel snippets may be a better solution. a snippet is essentially a block of code binded to a command where by code can be reused
# KartikPrabhu you can use both
# raziellight hmm ya..
# raziellight for reusable code, but i feel like a lot of repetitive tasks could better be done using snippets rather than def blocks
# raziellight but this is a whole other story that i will eventually figure out. i want there to be libraries for which people can browze and insert code to create from components into specific webpages. and it's a project i'm willing to take on
# KartikPrabhu raziellight: i suppose that depends on your style
# raziellight but i feel like this should exist..
# raziellight or people all have their own private collections
# raziellight which seems like an aweful lot of repeating
# raziellight so that's the gist of what i'm trying to accomplish
# KartikPrabhu raziellight: be careful not to get trapped into https://xkcd.com/927/
# Loqi [XKCD] Standards https://imgs.xkcd.com/comics/standards.png
# raziellight there are a few shabby repositories i've found highly disorganized and not refined
# raziellight lol.. ya well there is variation and there is reptition
# KartikPrabhu my repos are highly disorganized too. Mianly because I am just making stuff for my own site
# raziellight so ultimately it should be good to catalog the variation and make it easy to goto the variation, but there seems to be more tools to create more variation and less tools to do more repetition
# raziellight i see
# raziellight ya.. well i am a very analytical and organize person who is on a mission to make things more organized
# raziellight organized*
# KartikPrabhu raziellight: maybe a good approach is to make something for your site and keep it well-maintained and documented and people will use it
# raziellight ya well i'm definitely going to do that as i reinvent the wheel :o!
# raziellight lol :D
# raziellight and add some engines and wheels to it while i'm at it
# raziellight i don't have a personal site. i'm in the process of analyzing web page design to better improve efficiency
# raziellight but i want to make a site.. and i'm in the process of not only making a site, but also setting myself up to reuse code and make it easier to make sites in the future
# raziellight i have three goals. better organizating. making a website. and making stuff to make it easier a website
# raziellight to make a website*
# raziellight ya exactly :D
# raziellight but like i said i'm highly analytical, and am weighing my options
# raziellight so i appreciate any insight or methods that i come upon
# raziellight that have already been made
# KartikPrabhu right. I started out with a pretty bad mish-mash of code for my site. But now that I have it in place I can move things around and organise it
# raziellight ya you're right. it is. i guess i am carefully treading my steps forward so i can create a good workflow as i learn and improve
# raziellight no tantek. i've been working on organization software i've yet to publish. it's my first real piece of code that i've built
# raziellight and i want to get better at web design
# raziellight ya well i'm probably going to start making snippets to make my webpage
# raziellight and templates or some combination of the two
# raziellight and figure this out
# KartikPrabhu I learnt python to make my site so you can learn while making
# raziellight i know python
# raziellight and i know html and css and done very little in javascript
# raziellight architecture astronomy? :D
# KartikPrabhu what is architecture astronomy?
# Loqi architecture astronomy is the practice of analyzing problems, seeing patterns, and then generalizing to higher and higher level abstractions on top of those patterns to the point where the abstractions become so general, so vague, so detached from the original problems being analyzed, that they don't mean anything at all https://indieweb.org/architecture_astronomy
# raziellight well ya thank you for the advise. i was very well going to do just that, but also started thinking about how i can reuse what i do
# raziellight because i've created a webpage base frame like three times now? and it's getting repetitive
# raziellight or more..
# raziellight probably more
# raziellight so i realized snippets were what i need
# Loqi It looks like we don't have a page for "snippet" yet. Would you like to create it?
# raziellight a snippet is a reusable piece of code that is set to a command
# raziellight it's definitely useful
# raziellight tantek it is not a matter of websites using them. it's a way to write code in a quicker more repetitive component based fashion while still providing arguments for the variation
# raziellight for example you write div<tab> and it completes <div class="%1">%2</div>
# raziellight creating things is a process of inserting code. snippets is a way to do that in a repetitive manner. if there was a snippet for every component in existence, all creation of webpage would be a matter of having the snippets organized enough to first goto and find the snippet. and then copy and pasting
# raziellight but that is on a grand scale
# raziellight there are more modest collections i've found in the wild
# raziellight maybe some people like writing code one letter at a time. but this is a possible waay to be super productive
# raziellight well if it's component based, good ui and ux design can be built into the snippets
# raziellight well i don't have a production ready example. only exploring and asking around may you find someone who has got it to that level
# raziellight this is all in the design phase for myself personally
# raziellight but i have a vision of component based web design that i'm willing to think over carefully to something usable
# raziellight ya exactly aaronpk. like bootstrap, but in components, and ready at hand in the text editor
# raziellight for easy commands and searching and browzing
tbbrown joined the channel
# raziellight i already know how to make a webpage. what i am after is to do it very productively
# raziellight and my personal webpage will probably start with just like you said
# raziellight but that's only one of my goals
# raziellight what do you think is aaron?
# raziellight i've already seen many attempts going in the direction of component based web design. react. jsx. some google projects.. etc
# KartikPrabhu raziellight: designing using components does not have to be with huge frameworks like React
# raziellight is react huge? i'm tottally unaware of this. i just read the tutorial
# KartikPrabhu as I mentioned. I use components in my backend and then put them together into a webpage
# KartikPrabhu it is a pretty big javascript dependency just to render a webpage
# raziellight ya well i guess i'll continue to fumble around until i have this all figured out
# KartikPrabhu raziellight: there is no need to have it figured out before building
# raziellight but ya i forgot about that django page. i'm definitely going to be reinspecting it
# KartikPrabhu i found it more useful to make my site. and then see which patterns are being repeated and then later move them into their own "component"
# raziellight well ya i mean if everyone all has their own libraries and this is repeated, then ya that's the only approach i have going for me
# raziellight i have tried empirical iteraction in developing skill in a game. i've found it far from efficient. it's a lot of trial and error and mucking about. i've adopted a more analytical approach now to skill building
# raziellight part of that analysis made me realize the usefulness of snippets, which i'm definitely going to use
# raziellight well ya i can see that. analytical trial and error where a model is created, but that is different than trial and error without any vision or knowledge gained from it or very little
# raziellight it definitely translates. they are two different skills, but the process by which one changes sequences of events and conditions to create an optimal workflow holds true to both
# raziellight ya well you got me there :D
# raziellight i was mucking about awhile ago with template engines, and that went no where
# raziellight so it's not like i'm not trying things
# raziellight it definitely translates..
# raziellight i know i know
# KartikPrabhu raziellight: I fear you are falling into the architecture astronomy trap
# raziellight hmm it's plain as day to me. i went through a whole learning curve with that game. it was quite amazing. what i learned there can be applied to other skills in some ways
# KartikPrabhu what is python?
# Loqi Python is a programming language and web server runtime environment used for many IndieWeb projects https://indieweb.org/Python
# raziellight ya kartik i may be a little bit..
# KartikPrabhu raziellight: if you want to look at reusable code that some of us are using check out https://indieweb.org/Python for python
# raziellight ah thank you kartik :D i'll check it out
# raziellight this is actually great kartik. a list of examples where people are actually using code and making a success of it
# KartikPrabhu yup
# raziellight i remember making a webpage from scratch ages ago with just html back in the age of tables. i was so proud i did the code myself. then i learned to code and it opened a whole world for me
# raziellight i mean programming code
# KartikPrabhu most of those things do one small task. but you can glue them together
# raziellight anyway brb going to get some tea and go over these examples. this is invaluable information and i feel would be great if there was more of it
# raziellight for newbies and what have you
# @MidlandsMaidens Post Pinging and Webmentions at Midlands Maidens Nottingham Escorts - https://www.midlandsmaidens-escorts.com/post-pinger/ https://pbs.twimg.com/media/DM7O8-2WAAAVxPA.jpg (twitter.com/_/status/922902523664576518)
# raziellight i guess to be clear what i learned from that game is that there is trial and error and repeating the same mistake over again until you slowly very slowly change, or there is the way of analysis and trial and error where by you analyze and try and get feedback and create models which to be more effective. they lead to dramatically different results in skill level
# raziellight and the rate in learning
# KartikPrabhu raziellight: yes. I think tantek was pointing out that the "trial and error" is also essential along with analysis
# raziellight but yes i will try to be careful not to land in the analysis paralysis trap
# raziellight yes i see that :D
# raziellight some kind of mid ground :D
# KartikPrabhu so I would recommend starting with a simple homepage and building up from there using both analysis and trial and error
# raziellight but i feel like writing good code is also a lot of careful planning which i've found successful in my first major project
# raziellight will do. i think these indieweb examples are a great place to start. going to get into them now
# raziellight thank you again for your patience and your help kartik :D
# KartikPrabhu sure thing
snarfed and tantek joined the channel
tantek and snarfed joined the channel
# @MidlandsMaidens Post Pinging and Webmentions at Midlands Maidens Nottingham Escorts - https://www.midlandsmaidens-escorts.com/post-pinger/ https://pbs.twimg.com/media/DM7nTAqW4AUr-hB.jpg (twitter.com/_/status/922929291205267457)
[tantek] joined the channel
# loqi.me edited /phone_number (+64) "tantek added "https://twitter.com/swiftonsecurity/status/922857208488103936" to "See Also"" (view diff)
[kevinmarks] joined the channel
# [kevinmarks] Razielight - in a sense micropub and webmention are examples of standard forms that you can use on multiple domains
# raziellight yes kevin ! i just found out about micropub and webmention. micropub + h-entry p-category is the answer i've been looking for plus boilerplate to solve all my problems
# raziellight create a webpage. check. organize bookmarks. check. organize everything. check. share everything and keep backups. check. reuse code. check. it is all coming together
# raziellight this is really an awesome little community you got going here
# raziellight now i just have to write the code and i'm golden
KartikPrabhu joined the channel
# raziellight wb kartik
# raziellight i see a way forward to solve everything in one kartik ! i must say i'm excited
[chrisaldrich] joined the channel
# raziellight dang there's even a browser plugin for micropub in firefox :o
# raziellight no micropub for emacs? :O
millette joined the channel
[tantek] joined the channel
# KartikPrabhu raziellight: cool, what did you decide t use?
# 00dani.me edited /User:00dani.me () "(-1031) update my indieweb status - a lot has changed since last time!" (view diff)
# raziellight well kartik i am still learning, but it seems that i can post bookmarks online. i can link that to my program and create an html/css/javascript ui. i also found skelton which seems like a great simple css boilerplate
# raziellight i can use h-entry and category to post and link into my software(hopefully) . this will also be the start of me building a usable app and will improve my ability to create another webpage i want
# raziellight like everything fits, and i'm astounded. i just have to figure out how to use micropub indieauth with python
# raziellight if i'm getting this straight i might be able to use eve as a simple curl request, but i'm still not sure how that actually posts the data. i'm guessing it's plugged into like a database on the backend
dougbeal|iOS joined the channel
# raziellight how do you post?
# raziellight and what is actually changing the post request to html?
# raziellight but this is *huge* this heads me in three directions i wanted to in one. if i take this one direction. i didn't realize this was possible. might i add this with a little work and browser integration this could be a great way to manage bookmarks
# raziellight backup share exchange everything
# KartikPrabhu raziellight: as I mentioned I use Django in the backend and so currently I am using its posting interface. I want to switch to micropub though
# raziellight hmm
# raziellight i'm not sure how it's all put together. i'm looking at kaku's code right now. have you any experience with those flask engines at all, and your opinion on them?
# KartikPrabhu I haven't used Flask much. It is similar to Django but more lightweight
# KartikPrabhu if you need help with kaku you can ask bear
# raziellight i'm just wondering what i can use to take the post events and turn that into html on my webpage
# raziellight is there no micropub library for that in python?
# raziellight or like put them in a database or something for query
# KartikPrabhu micropub is only about what requests are sent for posting. To save them in a database or something you'll have to write your own code, since that depends on what your backend is
# raziellight hmm i see
# raziellight i'm just trying to figure out what i need. a restful api like eve i'm thinking..
# raziellight and then some work on parsing the requests
# KartikPrabhu what is hugo?
# Loqi Hugo is a static site generator written in Go https://indieweb.org/Hugo
# KartikPrabhu what is hyde
# Loqi It looks like we don't have a page for "hyde" yet. Would you like to create it?
# KartikPrabhu hyde is http://hyde.github.io/
# KartikPrabhu raziellight: right the parsing stuff depends on your backend. the posting can be done by micropub requests
# [kevinmarks] you could use jinja2 templates to turn posted data into html in python
# raziellight red wind and kaku seem like multi purpose libraries. but what i need, unless it's so simple that it's not been created, is a library that just handles micropub requests
# raziellight or am i wrong about that?
# raziellight ya forsure kevin. i have studied jinja2 a bit. what i'm very inexperienced in is handling requests
# KartikPrabhu depends on what you mean handle, since again that depends on what backend you are using
# raziellight handle as the first point where by a micropub request is handled and have something done with it
# raziellight i guess it must listen for a post request but i am essentially in the dark about what happens when it it recieved
# KartikPrabhu that is what I mean. it depends on what you want to do, put in a database, write to file etc...
# KartikPrabhu so there is no general thing for it
# raziellight i guess my concern is not so much where to put it, but the parsing that the micro format specs cover
# raziellight like handling all the tags and category and stuff
# raziellight but i guess it may be directly put into a database with those table headers..
# KartikPrabhu raziellight: the microformats parsing is to parse a webpage not to handle incoming requests
# KartikPrabhu micropub will send the post data either as a form-encoded format or as a JSON dictionary
# raziellight hmm ok that would simplify things if it's just json..
# raziellight i guess stick the tags in my tinydb and the posts in some kind of sql database
# raziellight that would be a start
# raziellight oh hey.. have you heard of flask micropub
# raziellight i just found it
# KartikPrabhu yes i have seen it mentioned
# KartikPrabhu never used it since it is Flask
# raziellight this might be exactly what i'm looking for
# raziellight why did you decide to go with django over flask?
# KartikPrabhu i didn't decide. I just started using Django as it had good docs
# raziellight ah i see
# raziellight ya i tried django. great docs. but pretty complicated and i never got anything made with it. then again i didn't have much to make at the time
# KartikPrabhu right. I have heard Flask is simpler. but you also get a lot less out-of-the-box
# raziellight ya exactly. and django has a pretty nice repository of add-ons
# raziellight flask is so dead simple. it's really easy to learn
# [kevinmarks] a POST in python gives you a request which has a dictionary of the posted elements
# raziellight er i think flask micropub is for clients :o
# raziellight ah i see kevin ty
# [kevinmarks] so you put the ones you want into a dictionary, and then call jinja2 with the dictionary
# raziellight oh that sounds dead simple
# raziellight but how is a request handled? does it require an api or something like eve
# raziellight or special indieauth code
# KartikPrabhu raziellight: you can use existing micropub clients like Quill to post on your site. You will need to use indieauth for that
# KartikPrabhu Quill will send a POST request and then your backend can handle that request like [kevinmarks] said
# raziellight no i mean endpoints. there seems to be plenty for clients. and if i get this straight i can just pretty much use a post with curl even
# raziellight but for endpoints i'm not sure how to handle it.
# KartikPrabhu you might have to write that code on your own depending on what you want to do with the data
# [kevinmarks] python uses WSGI so whichever framework will usually end up giving you a request object in your handler
# raziellight ya i think that might be the case kartik. i'm definitely going to have to write some of my own code. but i guess it somehow gets to a dictionary. if i can handle the post request and get it in a dictionary i'm golden
[eddie] joined the channel
# raziellight i'm total newb at such matters like recieving requests so please excuse me if i'm missing something basic
# snarfed raziellight: https://webob.readthedocs.io/
# raziellight oh right eddie
# KartikPrabhu right [eddie]. making small steps is more helpful than thinking about the whole picture right away
# raziellight hey sweet snarfed. this is what i need i think!
# raziellight bmed!
# raziellight ya i was wondering if i just needed some kind of request library
# raziellight ya snarfed :D exactly. finding the code to reuse seems to be the hard part !
# raziellight well sometimes you don't know what to search for
# raziellight better browzing options and waypoints would be super useful for another way to look for stuff
# raziellight but ya.. right now that's what we got. google and effort
# raziellight or duckduckgo :D
# raziellight ya that's essentially what i do :o
# raziellight :)
# snarfed btw here's another big collection of utilities for working with http reqs, resps, urls, etc: https://github.com/snarfed/webutil/blob/master/util.py
# raziellight been browzing the indieweb wiki though. and been learning as much as i can
# raziellight sweet ty. bmed!
snarfed joined the channel