pauamma: Cartooney crab holding drink (Default)
[personal profile] pauamma
It's time for another question thread!

The rules:

- You may ask any dev-related question you have in a comment. (It doesn't even need to be about Dreamwidth, although if it involves a language/library/framework/database Dreamwidth doesn't use, you will probably get answers pointing that out and suggesting a better place to ask.)
- You may also answer any question, using the guidelines given in To Answer, Or Not To Answer and in this comment thread.
ari_linn: (warrior - normal)
[personal profile] ari_linn
I have about 100 files that I want to upload to Dreamwidth. I want to do it with a script, if it's possible. I checked what happens in my browser when I'm logged in and uploading a file at https://www.dreamwidth.org/file/new , and it was pretty much the following request:

POST https://www.dreamwidth.org/api/v1/file/new 
Content-Type: multipart/form-data
Cookies: ljuniq=THISTOKENCHANGESWITHEVERYREQUEST;
BMLschemepref=celerity-local;
__utma=SOMETOKEN;ljmastersession=YETANOTHERTOKEN;
ljloggedin=FINALTOKEN

FILE BODY
My problem now is: how do I get the whole cookies/authorization stuff, or at least THISTOKENCHANGESWITHEVERYREQUEST token (other stuff seems to be reused? can I hijack my current session and simply use cookies from it in my script?) Is there any way to do it programmatically?
kaberett: A sleeping koalasheep (Avatar: the Last Airbender), with the dreamwidth logo above. (dreamkoalasheep)
[personal profile] kaberett
The volunteer weekend is nearly upon us! I'll be in and around from mid-afternoon Friday.

I'm expecting to provide crash space for [personal profile] shortcipher, [personal profile] cesy, and [personal profile] swaldman. If you think you should be on that list, please shout!

There are lots of local takeaways and I'll also be over-catering, as usual. Food is by default lacto-ovo vegetarian but lots of other configurations are available; the kitchen does contain both gluten and nuts.

Please also shout if you need my Skype details to join in that way, but I'll make sure we're paying attention to IRC too :-)

(aaaaaaaaaaaaaaaaaaaaaaaaaaaah)

(& if you don't have things in mind to work on, DON'T WORRY, I HAVE A WISHLIST and so too does [personal profile] kareila)
pauamma: Cartooney crab holding drink (Default)
[personal profile] pauamma
It's time for another question thread!

The rules:

- You may ask any dev-related question you have in a comment. (It doesn't even need to be about Dreamwidth, although if it involves a language/library/framework/database Dreamwidth doesn't use, you will probably get answers pointing that out and suggesting a better place to ask.)
- You may also answer any question, using the guidelines given in To Answer, Or Not To Answer and in this comment thread.
[personal profile] swaldman
I need a password reset on my Dreamhack. Possibly more - Sophira told me it was set up again after the wipe, but I never got the automatic email.

Who do I need to ask about this?

Thanks.
kaberett: A sleeping koalasheep (Avatar: the Last Airbender), with the dreamwidth logo above. (dreamkoalasheep)
[personal profile] kaberett
Tiiiiiiiiiiny code tour. It's okay, next month's will -- as a result of the volunteer weekend I'm hosting in London, joining us remotely very welcome -- be bigger. Unless it's so much bigger that I hide under my blanket until forced to face my fears by the next code push.

One of these is already live, one makes absolutely no difference unless you're poking around the code on github, and one will make a bit of a difference after the next code push.

Read more... )

3 total issues resolved
Contributors: [github.com profile] akpdw, [github.com profile] alierak, [github.com profile] me-and
pauamma: Cartooney crab holding drink (Default)
[personal profile] pauamma
It's time for another question thread!

The rules:

- You may ask any dev-related question you have in a comment. (It doesn't even need to be about Dreamwidth, although if it involves a language/library/framework/database Dreamwidth doesn't use, you will probably get answers pointing that out and suggesting a better place to ask.)
- You may also answer any question, using the guidelines given in To Answer, Or Not To Answer and in this comment thread.
kareila: Rosie the Riveter "We Can Do It!" with a DW swirl (dw)
[personal profile] kareila
Every few months, I run through [site community profile] changelog compiling a list of who has been contributing patches to our code repository, with the understanding that this is not a competition, or any sort of "high score" list. It's intended as a guide for casual developers, to discern not only our most prolific contributors, but also those who have contributed to the project most recently and therefore would be more likely to provide a timely, informed response to development questions. That is why the list is sorted by "Latest" instead of "Changes".

In general, one commit on Github equals one point in the "Changes" column, but fractional points are awarded for collaborative efforts — the most common example being a new S2 theme, where usually half credit is awarded to the theme author and the other half to the person who converts the theme into a code patch. Due to the nature of development, some changes are massive contributions of new code, and others are tiny tweaks; there is no correlation with the amount of effort involved. We are grateful to everyone who helps to improve Dreamwidth, in ways large or small.

I last compiled this list at the end of March — sorry it's been a while! Since that time, we have welcomed two new contributors: [github.com profile] nightflyer and [github.com profile] josh-berry. Congratulations and thank you again!

  #  User                      Changes     Latest
  1. pauamma                       150     Sat Jan 20 17:42:28 2018 UTC
  2. mark                        575.5     Wed Jan 10 23:43:32 2018 UTC
  3. kareila                      1292     Mon Jan 01 23:37:56 2018 UTC
  4. hotlevel4                      54     Mon Jan 01 23:33:48 2018 UTC
  5. srukle                         12     Mon Jan 01 23:08:09 2018 UTC
  6. alierak                        35     Sun Nov 19 21:08:28 2017 UTC
  7. allen                        62.5     Wed Sep 27 05:31:14 2017 UTC
  8. kaberett                     47.5     Sun Jul 16 16:02:58 2017 UTC
  9. momijizukamori             230.16     Sat Jun 10 14:29:26 2017 UTC
 10. pinterface                   17.5     Sat May 20 03:03:22 2017 UTC

 11. josh-berry                      1     Mon May 08 04:40:55 2017 UTC
 12. nightflyer                      1     Wed Apr 19 19:53:30 2017 UTC
 13. denise                     423.08     Fri Mar 31 06:03:58 2017 UTC
 14. fu                         2168.5     Thu Mar 30 04:12:07 2017 UTC
 15. woggy                          17     Thu Sep 29 22:26:43 2016 UTC
 16. onlyembers                    0.5     Thu Sep 29 19:58:05 2016 UTC
 17. wohali                          1     Wed Aug 31 14:12:26 2016 UTC
 18. phidari                         2     Sat Jun 18 21:14:12 2016 UTC
 19. cesy                        29.83     Sat Jun 18 15:28:34 2016 UTC
 20. chrisboyle                     15     Sun May 15 12:08:22 2016 UTC
The rest of the list... (161 total) )
kareila: Rosie the Riveter "We Can Do It!" with a DW swirl (dw)
[personal profile] kareila
Hello people of Dreamwidth! We're expecting to do a code push in a couple of weeks, but there are a few open issues I'd like to see resolved before then. If you think you can assist with any of these, now would be a good time to get involved!

Issue #2304: Make the email spellcheck test a soft reject/hint instead of the hard reject it is currently. - This came up in the comments of the most recent code tour, where a change was made to catch more possible email domain typos, but it was pointed out that the resulting page didn't give the user a way to opt out of the correction. - Thanks to the UK hackathon participants for getting this fixed!

Issue #2014: Membership option won't save in Account Settings - The support board has seen several complaints about this, and the most recent comments on the issue suggest the nature of the needed fix. - This has been fixed, thanks!

Issue #2264: Error messages in cgi-bin/DW/Setting/ShortcutsKeypress.pm - This is a minor problem with the new module for keyboard shortcuts for Previous/Next Entry: there are some obvious syntax errors that need to be fixed before deployment. - This has been fixed, thanks!

Issue #2262: Enforce new "no commas in trust group names" rule - As a result of the upcoming new feature to allow a comma-separated list of access groups to be specified when posting by email, going forward we want to prevent new trust groups from containing commas. - Thanks to the UK hackathon participants for getting this fixed!

Issue #2308: user names in markdown now fail to convert if they happen at the beginning of a line - Following the fix to escape @usernames preceded by a backslash, now there is an edge case where @usernames at the very beginning of a line of input text are failing to convert. - This has been fixed!

These are the issues I consider to be most urgent, but any and all contributions are appreciated!
kaberett: A sleeping koalasheep (Avatar: the Last Airbender), with the dreamwidth logo above. (dreamkoalasheep)
[personal profile] kaberett
The majority of these fixes are not yet live on the site, but will be coming to a Dreamwidth near you with the next code push! I've separated out the ones that are in fact already up-and-running. Special shout out to Pau for the epic bug-a-day run!

Read more... )

Meanwhile, in the already-live category... )

37 total issues resolved
Contributors: [github.com profile] alierak, [staff profile] denise, [github.com profile] hotlevel4, [github.com profile] kaberett, [github.com profile] kareila, [github.com profile] pauamma, [github.com profile] srukle, [github.com profile] zorkian
kaberett: A sleeping koalasheep (Avatar: the Last Airbender), with the dreamwidth logo above. (dreamkoalasheep)
[personal profile] kaberett
Following up on the previous post, I decree a volunteer weekend from the 23rd-25th of March, as being the one most people have expressed a preference for.

There's a bunch of access/parking/etc info in the comments on the previous post; if you have any particular dietary requirements/preferences you'd like me to cater for, please let me know (but you're also welcome to use the kitchen yourself!); we have a Sufficiency of computer to be able to lend some if necessary, and a wide variety of seating options. We'll have a dedicated machine running Skype for folk who want to Skype in.

If I've granted you access, this filtered post contains my address and other contact details. If you don't have access, holler and I'll ping it over to you.
pauamma: Cartooney crab holding drink (Default)
[personal profile] pauamma
It's time for another question thread!

The rules:

- You may ask any dev-related question you have in a comment. (It doesn't even need to be about Dreamwidth, although if it involves a language/library/framework/database Dreamwidth doesn't use, you will probably get answers pointing that out and suggesting a better place to ask.)
- You may also answer any question, using the guidelines given in To Answer, Or Not To Answer and in this comment thread.
kaberett: A sleeping koalasheep (Avatar: the Last Airbender), with the dreamwidth logo above. (dreamkoalasheep)
[personal profile] kaberett
Hello folk!

I would quite like some encouragement to host another Dreamwidth volunteer weekend. I am arbitrarily choosing March in the hopes that I will have got my current energy levels slightly more sorted out by then. As usual, I am offering to host (in North London, step-free access, Skyping/IRCing in welcome & encouraged). ERGO:

Open to: Registered Users, detailed results viewable to: All, participants: 6


Which weekends in March work for you?

View Answers

9th-11th (Alex might be otherwise occupied Friday night + Saturday afternoon/evening)
3 (50.0%)

16th-18th
5 (83.3%)

23rd-25th
5 (83.3%)

Which single weekend would you prefer, if you can do several? (Optional!)

View Answers

9th-11th
0 (0.0%)

16th-18th
1 (33.3%)

23rd-25th
2 (66.7%)

Any access questions or requests?

pauamma: Cartooney crab holding drink (Default)
[personal profile] pauamma
It's time for another question thread!

The rules:

- You may ask any dev-related question you have in a comment. (It doesn't even need to be about Dreamwidth, although if it involves a language/library/framework/database Dreamwidth doesn't use, you will probably get answers pointing that out and suggesting a better place to ask.)
- You may also answer any question, using the guidelines given in To Answer, Or Not To Answer and in this comment thread.
momijizukamori: Grey tabby cat with paws on keyboard and mouse. The text reads 'code cat is on the job', lolcats-style (CODE CAT)
[personal profile] momijizukamori
The new API I've been working on (more discussion here) is getting to the stage where it needs lots of rounds of testing and feedback, because I am extremely scatterbrained and bad at testing. Benefits of helping:
1) get to play with API things now instead of whenever it's ready to go live on the production site
2) my eternal gratitude?
3) idk if you want some custom CSS or something I'm happy to help

In particular, I'd love feedback from people who make use of different security settings on tags, and access and subscription filters, because I don't use these features and thus am less certain of expected behavior.

Caveats
-I don't have API keys working yet, though they're partially written and mostly just need debugging right now. In the meantime, auth is via regular session cookies.
-posting photos is still in the works, because I have to interface with and/or convert an older API to fit the current API conventions, and trying to understand file uploads gives me a headache.
-There is no support for reading or posting comments (outside of inbox notifs) right now, because there needs to be some larger high-level conversations about privacy expectations and what kind of query load the servers can support before we can work out implementation details.
-Icons and image uploads aren't working because I was testing some icon stuff unrelated to the API and slightly borked my config - I will try to get that sorted in the next day or two.

How to do the thing
-Make an account on my dev machine. The workers for content import should be working, if you want to import content from Dreamwidth to play around with.
-Poke at the API - raw JSON-formatted description is here and a slightly cleaner HTML-formatted one is here.
-Leave me feedback! This can be anything you notice - down to 'you misspelled this word'. It's all gotta get fixed at some point, so don't worry about being too picky.
pauamma: Cartooney crab holding drink (Default)
[personal profile] pauamma
It's time for another question thread!

The rules:

- You may ask any dev-related question you have in a comment. (It doesn't even need to be about Dreamwidth, although if it involves a language/library/framework/database Dreamwidth doesn't use, you will probably get answers pointing that out and suggesting a better place to ask.)
- You may also answer any question, using the guidelines given in To Answer, Or Not To Answer and in this comment thread.
kaberett: A sleeping koalasheep (Avatar: the Last Airbender), with the dreamwidth logo above. (dreamkoalasheep)
[personal profile] kaberett
Warm welcomes to [github.com profile] josh-berry and [github.com profile] akpdw!

These fixes are not yet live, but will be included in the next code push.

Read more... )

16 total issues resolved
Contributors: [github.com profile] akpdw, [github.com profile] alierak, [github.com profile] josh-berry, [github.com profile] kaberett, [github.com profile] kareila, [github.com profile] pinterface, [github.com profile] rshatch, [github.com profile] zorkian
pauamma: Cartooney crab holding drink (Default)
[personal profile] pauamma
It's time for another question thread!

The rules:

- You may ask any dev-related question you have in a comment. (It doesn't even need to be about Dreamwidth, although if it involves a language/library/framework/database Dreamwidth doesn't use, you will probably get answers pointing that out and suggesting a better place to ask.)
- You may also answer any question, using the guidelines given in To Answer, Or Not To Answer and in this comment thread.
momijizukamori: Grey tabby cat with paws on keyboard and mouse. The text reads 'code cat is on the job', lolcats-style (CODE CAT)
[personal profile] momijizukamori
So my workplace gives us a chance twice a year to work on anything we want for a few days, work-related or otherwise, and I thought I'd use some of my time to actually get the new API into a state where we can make it live. With that in mind! What endpoints would you like to see implemented? We're making this Swagger/OpenAPI-compliant, so everything takes JSON as arguments and return JSON formatted data. Stuff already on the list to do or partially done:

/api/v1/users/{username} - GET, shows info about the user (specific info TBD; subset of profile, probably?)
/api/v1/users/{username}/icons - GET, lists icons
/api/v1/users/{username}/icons/{iconid} - GET, returns icon data
/api/v1/users/{username}/journals - GET, returns list of journals with write access.
-- for now, returns only user's primary journal
/api/v1/journals/{username}/accesslists - GET, list of access lists for journal
/api/v1/journals/{username}/tags - GET, list of tags for journal
/api/v1/journals/{username}/xpostaccounts - GET list of xpost accounts
/api/v1/moods - GET list of moods
/api/v1/commentsettings - GET list of allowed comment settings
/api/v1/journals/{username}/entries - POST new entry, GET list of recent entries
/api/v1/journals/{username}/entries/{id} - POST edit entry, GET specific entry
/api/v1/journals/{username}/files - POST new file
/api/v1/spec - GET, returns a description of the API

(Mark and D, as usual, get the final say - some stuff people want may end up being security/privacy risks in non-obvious ways)

Profile

dw_dev: The word "develop" using the Swirly D logo.  (Default)
Dreamwidth Open Source Development

January 2019

S M T W T F S
  12345
6789101112
131415 16171819
202122232425 26
2728293031  

Syndicate

RSS Atom

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Feb. 16th, 2019 08:34 am
Powered by Dreamwidth Studios