ninetydegrees (90d)☕ (
ninetydegrees) wrote in
dreamscapes2010-05-27 11:25 pm
Wanna patch?
We've had lots of lovely themes submitted in the last few days - thank you, designers! - and I thought it would be a good opportunity to ask if anybody wants to try and patch one but has never dared to or simply doesn't know where to start. Don't worry if you've never done that before or never written any code. I've been in your very shoes. :) I know it looks scary and complicated and impossible but I promise it won't look that way once you've done it. If you're on Windows, I can walk you through the process from start to finish. If you're on a Mac or Linux, I'm sure someone else will volunteer to help you (and the process isn't that different so I may be able to help as well or ask the right people questions). If you'd like to give it a try, simply comment. You can also PM me.

no subject
This sounds like a good way to learn some of this stuff and give a little back at the same time.
no subject
Think that could be something you want to learn how to do?
You've got a lovely layout BTW!
no subject
I've got a free account now. Do I need to upgrade to paid account in order to do this? I'm experiencing some confusion at the moment over what I can/cannot/should be able to do with the whole style system and S2 with only a free account. I was going to go post some questions over in the "getting started" journal.
And I have to say, yours is one of the most stunning layouts I've seen here since I joined Dreamwidth. Wonderful job!
no subject
No, you don't. Dreamwidth provides Dreamhacks aka a mirror installation of the Dreamwidth site to any developer who requests it, beginner or experienced. Over there, you can create any type of account you want and as many as you want without any codes so that you can test everything, create as many layers and styles as you need, etc.
If I remember well, free accounts can't create more than five custom layers and styles. They can have more layers and styles if they've been created by the system (Auto-generated Customizations layers and wizard-xxx styles) but not custom ones and if they already have five layers/styles, including system ones, they can't create more. So you can always use the ones you already have/have the system create more but you can't do it yourself.
Thank you! I've had it for quite a long time now and, to my utter despair, can't make it an official layout. The traditional wave pattern is mine but the rest isn't and isn't licensed to be shared. I haven't given up, though and am still looking for good replacements.
no subject
Hm, looks like I didn't scrape out enough of the auto-generated layers. I'll test your thought later.
Shall I go request a Dreamhacks account?
no subject
Yep! The request form is right here.
You also need to download two free programs: PuTTY (take the "A Windows installer for everything except PuTTYtel" installer) and WinSCP (take the "Installation package" file) to be able to manage your Dreamhack and manipulate files. Installing them can wait till you have your Dreamhack.
BTW, I've written a guide for Windows people but it can be pretty overwhelming so feel free to ignore it and ask me questions (or read it and ask questions anyway!). I've got a crappy connection at the moment so comments or e-mails are best.
no subject
I've gotten a Dreamhacks account, and WinSCP. I already had PuTTY, from previous remote online development work. I'll read more of your guide as time permits. I've also been reading what you shared above with others to get more of an idea how this type of patching works. And it told me a lot about cleaning up my layout and theme—thanks!
So, what, specifically, should I do next?
no subject
no subject
no subject
1 -- PuTTY
Set hack.dreamwidth.net as the host
Set dh-suncat as your username
Save the session of course if you don't want to type everything again.
Click on open and enter the password you've got in the welcome e-mail.
If you get a pop up message asking you about a key click yes.
Once you're logged in type
passwdto reset it to something easier.2 -- WinSCP
Install WInSCP. I think it'll ask you to choose between two modes: Commander and Explorer. Commander works as an FTP client if you're familiar with that: your files on one site, the remote files on the other. I think Explorer suits our needs better since we don't really need to access our computer files but it's up to you.
Set data in WinSCP: host name, username and password (the new one!) and save settings too.
3 -- PuTTY
Back up and protect your config files by following the steps outlined in http://wiki.dwscoalition.org/notes/Dreamhack_getting_started#Back_up_your_configs and http://wiki.dwscoalition.org/notes/Dreamhack_getting_started#Protect_your_configs_from_updates
=> Config files should now be edited in /dw/cvs/local/etc and you have clean copies in /config-backup.
Then you have to create the files mentioned in http://wiki.dwscoalition.org/notes/Dev_Maintenance#Scripting - dwu, dws and dwdb - and make them executable in PuTTY using the chmod command. But first, do you have a better text editor than Notepad? I use Notepad++ for example (http://sourceforge.net/projects/notepad-plus/files/). You have to set it as your default editor in WinSCP by going to Preferences/Editor/Add/External editor and upping it up to make it your default.
Ok I'll think I'll stop there for now so that you tell me if you're ok with everything so far or if you have questions.
no subject
Okay! Did #1 when I first got the Dreamhack account. Worked fine. #2 is done. I got the Commander version; I'm comfortable with FTP clients.
Have done #3. Worked fine. I did create the dwu, dws and dwdb scripts, using the vi editor.
I've just been using Notepad on my local machine. How would Notepad++ help for this work? If I hook it up with WinSCP as you suggest, does that mean I can edit remote files locally, and don't have to use vi anymore? I can use vi, doesn't mean I like to.
no subject
Yep, it can work as Windows's Notepad. Download, install, set as default editor in WinSCP and edit. :)
Ok next step is to create Mercurial queues in /dw/cvs/dw-free and /dw/cvs/dw-nonfree by using
hg qinit -cYou may also want to edit your .hgrc files as explained inhttp://wiki.dwscoalition.org/notes/Mercurial_Queues_Walkthrough#Getting_started.
Then you're all set. All that's left is changing the system account password with
$LJHOME/bin/upgrading/make_system.pland you can log in to your Dreamhack, and also creating a Bugzilla account (http://bugs.dwscoalition.org/).And about all you have to know about patching styles is here: http://wiki.dwscoalition.org/notes/Newbie_Guide_for_People_Patching_Styles
no subject
When you said create the Mercurial queues, I assume you meant simply in dw/cvs/dw-free and dw/cvs/dw-nonfree. There is no directory /dw at root. But there is ~/dw under my account home directory.
But, I did do the hg qinit -c and it seemed to create a directory and copy in files. Almost forgot I had to use the -a option on ls in order to see them. Heh.
Then started reading the #Getting_started section, and it talks about editing file ~/.hgrc. There is no such file on my account. Am I instead supposed to create the file new? Oh wait, I looked again and I see the file hgrc in each of the newly created .hg directories. Is that what should be edited? Or since there was no error message when the Mercurial repository was created, maybe it means nothing needs to be edited?
A bit confused again.
no subject
no subject
You were right about the layers/styles limit. I went back and scraped out everything except the layer/style that I'm actually using on the journal, and then it let me create new custom ones. Thanks!
no subject
no subject