|
Mecca-Benghazi posted:I decided that I want to move my personal website (which has a rarely updated blog ) from WordPress to some static pages, so I'm looking into using a static site generator and maybe hosting on GitHub Pages. The obvious answer is to use Jekyll, but I'm leaning towards using Hugo because Ruby on Windows is a headache and a half. Anyone have any thoughts about other static site generators or static site generators in general? Odette posted:You could always chuck Ubuntu on a VM, and have full access to all static generators. This exactly. For example, you can get up and running with Sculpin (PHP) via the following: 1. Install Vagrant and VirtualBox 2. git clone https://github.com/pulkitjalan/vagrant-sculpin.git blog-vm 3. git clone https://github.com/sculpin/sculpin-blog-skeleton.git blog-vm/www/blog 3. vagrant up 4. vagrant ssh 5. cd /home/vagrant/www/blog && sculpin install && serve 6. open http://192.168.10.10:8000 7. Learn to use sculpin. Disclaimer: I haven't tested this procedure Edit: Here's the equivalent for Jekyll. Edit2: And this one for Hugo? There's no readme VMs are awesome. v1nce fucked around with this message at 04:02 on Mar 7, 2016 |
# ? Mar 7, 2016 03:41 |
|
|
# ? May 10, 2024 01:32 |
|
Mecca-Benghazi posted:I decided that I want to move my personal website (which has a rarely updated blog ) from WordPress to some static pages, so I'm looking into using a static site generator and maybe hosting on GitHub Pages. The obvious answer is to use Jekyll, but I'm leaning towards using Hugo because Ruby on Windows is a headache and a half. Anyone have any thoughts about other static site generators or static site generators in general? I love Pelican, which is Python. Only one I've ever used, so I can't compare it to others, but I really like it.
|
# ? Mar 7, 2016 13:01 |
|
I should clarify that I'm completely fine with command line, adding stuff to my PATH, git, etc, and I've already got cygwin added to my PATH (so I can run everything through Powershell ). It's just that Jekyll itself seems to be a particular pain on Windows. Why VirtualBox over Hyper-V, which is built in to Windows? The appeals of Hugo for me were speed at actually making the static HTML pages and the fact that it's just one executable that I can add to the PATH, nothing else required. This is the same cross-platform, no need to build it. Lumpy posted:I love Pelican, which is Python. Only one I've ever used, so I can't compare it to others, but I really like it.
|
# ? Mar 7, 2016 17:44 |
|
Mecca-Benghazi posted:Why VirtualBox over Hyper-V, which is built in to Windows? Using Hyper-V makes it start up on boot as your main Windows' hypervisor, so what you think is your root OS is actually a guest on the system. That probably doesn't really matter unless you want to use a different VM product because you won't be able to without rebooting with it disabled, but it's something to consider.
|
# ? Mar 7, 2016 18:07 |
|
Mecca-Benghazi posted:Why VirtualBox over Hyper-V, which is built in to Windows? quote:Virtualbox
|
# ? Mar 7, 2016 19:07 |
|
So, Transactional Email Services. One of my clients has had their little Email Marketing program from a non descript company crap out from licensing and now the company is unreachable, so they need something better. They DON'T need anything that manages the contacts, segments them, or anything like that. All they need is a way to add templates, and upload an .xls/csv/whatever with the mail merge variables, and then have all that stuff go out. I could write an integration with Mandrill myself but I ain't got time for that, nor is it something I really would like to build the UI for if someone has already done it way better. I'm well aware of stuff that supports bulk sending over API, having templates, but not sure which ones support a simple mail merge using an uploaded CSV, and the marketing bullet points make it kinda impenetrable to find out for sure what they mean. Does anyone know of a service that definitely has csv importing to mail merge?
|
# ? Mar 8, 2016 03:37 |
|
Maluco Marinero posted:So, Transactional Email Services. One of my clients has had their little Email Marketing program from a non descript company crap out from licensing and now the company is unreachable, so they need something better. They DON'T need anything that manages the contacts, segments them, or anything like that. All they need is a way to add templates, and upload an .xls/csv/whatever with the mail merge variables, and then have all that stuff go out. I could write an integration with Mandrill myself but I ain't got time for that, nor is it something I really would like to build the UI for if someone has already done it way better. FYI, since you mentioned Mandrill, it's going away as a standalone service and now requires a paid mailchimp account to use mandrill as an addon.
|
# ? Mar 8, 2016 04:49 |
|
Yeah, I'm aware of that one too. Tbh already steering towards mailgun for transactional as an easy answer if my clients don't use any service. Mailgun has worked well enough for low volume. Price is right too.
|
# ? Mar 8, 2016 05:54 |
|
Mecca-Benghazi posted:I should clarify that I'm completely fine with command line, adding stuff to my PATH, git, etc, and I've already got cygwin added to my PATH (so I can run everything through Powershell ). It's just that Jekyll itself seems to be a particular pain on Windows. As fun as it is to hack your own machine to bits to make things run, you're missing the point of why VMs are great: - Portable. You give the VM spec to someone else and they get exactly the same box. - Disposable. If it stops working, you just burn it down and build it again. - Customisable. You can modify the provisioning of the VM to include all your favourite tools, set up just-so. This also lowers the cost of entry, as other people can use that same VM to get started without needing to know how to install everything. - Agile. Because it's both disposable the customisable, it's really easy to incrementally change things in the box and try new configurations, upgrade versions, etc. These points are less pertinent for static site generators, but still marginally relevant. Once you start taking steps beyond your basic web stack, VMs become a lot more necessary. Mecca-Benghazi posted:Why VirtualBox over Hyper-V, which is built in to Windows? The steps I specified in my previous post are the same for everyone on every supported OS.
|
# ? Mar 8, 2016 23:52 |
|
I have this search form on my homepage with fields: location, type, and priceFrom and priceTo The type is a dropdown and the prices are textboxes. My problem is that the prices are acting like the TYPE dropdown, meaning, when i click on the textboxes, the Type dropdown comes up. I found that the solution may be in this style code:
My problem is, the stylesheet the code is on is on an outside cdn. I guess i can copy down that stylesheet and remove it manually, but is there a way where i can override the width and say don't use a width? I find if i put in width=0px, the dropdown doesn't work for the type. if it doesn't make any sense, i can post up a dev link Any help is appreciated.
|
# ? Mar 9, 2016 16:43 |
|
unfortunately because it has the !important declaration it will be harder than normal to override, any other rule that targets the width will also need to have important, and you would want to make sure that your rule to override it is loaded after the css from the CDN. If your stylesheet from the CDN is loaded in the head, it might be best to inline your override on the element.
|
# ? Mar 9, 2016 21:46 |
|
I got inspired and put this together: A Complete Guide to CSS Grid Layout. Perhaps some of you may find it useful.
|
# ? Mar 9, 2016 22:05 |
|
caiman posted:I got inspired and put this together: A Complete Guide to CSS Grid Layout. Perhaps some of you may find it useful. What a great domain/name combo!
|
# ? Mar 9, 2016 22:30 |
|
caiman posted:I got inspired and put this together: A Complete Guide to CSS Grid Layout. Perhaps some of you may find it useful. Aside from the great guide, I'm loving the idea of collapsing the introduction and terminology portions of the article, so you can just start reading about the tech. Ace.
|
# ? Mar 9, 2016 23:57 |
|
v1nce posted:Aside from the great guide, I'm loving the idea of collapsing the introduction and terminology portions of the article, so you can just start reading about the tech. Ace. I can't seem to expand the collapsed sections on mobile though.
|
# ? Mar 10, 2016 00:47 |
|
Diabolik900 posted:I can't seem to expand the collapsed sections on mobile though. Hmm. What device and browser are you using? Anyone else having this problem?
|
# ? Mar 10, 2016 01:46 |
|
caiman posted:Hmm. What device and browser are you using? iPhone 6s+ Safari.
|
# ? Mar 10, 2016 01:49 |
|
Diabolik900 posted:iPhone 6s+ Safari. Apparently something to do with mobile safari and the click event: http://www.shdon.com/blog/2013/06/07/why-your-click-events-don-t-work-on-mobile-safari Not sure if it can be solved by just changing the .collapsible-control:hover with the cursor rule to just .collapsible-control?
|
# ? Mar 10, 2016 02:33 |
|
Diabolik900 posted:iPhone 6s+ Safari. Would you mind please checking it again? I've taken v1nce's suggestion.
|
# ? Mar 10, 2016 02:51 |
|
caiman posted:Would you mind please checking it again? I've taken v1nce's suggestion. Works now! Thanks.
|
# ? Mar 10, 2016 03:10 |
|
Diabolik900 posted:Works now! Thanks. Awesome. Big thanks to v1nce for the link and the suggestion. Makes me realize how much I need to set up a device lab.
|
# ? Mar 10, 2016 03:36 |
Anmitzcuaca posted:unfortunately because it has the !important declaration it will be harder than normal to override, any other rule that targets the width will also need to have important, and you would want to make sure that your rule to override it is loaded after the css from the CDN. If your stylesheet from the CDN is loaded in the head, it might be best to inline your override on the element. Ffffuuuu, up until just now I assumed "!important" meant "not important", and never bothered trying to use it (because it's not important)
|
|
# ? Mar 10, 2016 04:09 |
|
Data Graham posted:Ffffuuuu, up until just now I assumed "!important" meant "not important", and never bothered trying to use it (because it's not important)
|
# ? Mar 10, 2016 08:48 |
I thought it was a thing browsers could choose to ignore if they wanted to or something. Like, rather than just being a keyword that gets ignored because browsers don't recognize it, they could recognize it but opt to fall through it under certain circumstances that I didn't put much thought into speculating about.
|
|
# ? Mar 10, 2016 15:36 |
|
Well you avoided a misfeature, so that's not so bad.
|
# ? Mar 10, 2016 16:44 |
|
Is the iPhone version of Safari identical to the iPad version? I'm thinking about buying an Apple device for site testing and I'm leaning towards an iPad.
|
# ? Mar 11, 2016 16:51 |
|
caiman posted:Is the iPhone version of Safari identical to the iPad version? I'm thinking about buying an Apple device for site testing and I'm leaning towards an iPad. If you have a Mac, Xcode comes with a device simulator and costs $0.
|
# ? Mar 11, 2016 17:26 |
|
kedo posted:If you have a Mac, Xcode comes with a device simulator and costs $0. I don't.
|
# ? Mar 11, 2016 17:43 |
|
I have been trying to use localstorage (or sessionstorage) to store the contents of a JSON and no matter what I look up or try it doesn't return anything, or maybe null, or maybe undefined I just want to run a function that uses a JSON object, first checks if it's localstorage, if it is, great, use it, if not go to the url via .ajax and save it, then use it, yes I know I need to stringify the contents.
|
# ? Mar 11, 2016 18:02 |
|
caiman posted:I don't. Bummer. Well, if you're looking at an iPad you're already going to spend about half the price of a refurbished laptop. It's hard to beat testing on a physical device, but I'd rather pay the few extra hundred dollars to be able to simulate and test on any Apple device rather than on just one. Sadly I don't have an answer to your original question. :\
|
# ? Mar 11, 2016 18:06 |
|
caiman posted:Is the iPhone version of Safari identical to the iPad version? I'm thinking about buying an Apple device for site testing and I'm leaning towards an iPad. I know they handle video elements slightly differently, but that's the only thing I'm sure of. For testing, get a mac mini and run the emulators and connect to them in Safari for a decent debugging experience. Otherwise you have to maintain an OSX VM to debug and that's a pain in the rear end.
|
# ? Mar 11, 2016 18:32 |
|
The Merkinman posted:I have been trying to use localstorage (or sessionstorage) to store the contents of a JSON and no matter what I look up or try it doesn't return anything, or maybe null, or maybe undefined Are you in private browsing mode? I think that disables local (or maybe session storage). Some devices also limit how much you can store.
|
# ? Mar 11, 2016 18:52 |
|
spacebard posted:Are you in private browsing mode? I think that disables local (or maybe session storage). Some devices also limit how much you can store. IIRC you don't have to be in Incognito or equivalent because some privacy options kill localstorage, too. Disabling third party cookies in Chrome will, I think. Oh and every browser will disable it differently, so that's fun.
|
# ? Mar 11, 2016 19:06 |
|
Munkeymon posted:IIRC you don't have to be in Incognito or equivalent because some privacy options kill localstorage, too. Disabling third party cookies in Chrome will, I think. Incognito in Chrome (desktop anyways) won't disable LocalStorage, it's just a separate LocalStorage from all other Chrome tabs, and is automatically cleared as soon as the last Incognito window is closed.
|
# ? Mar 11, 2016 19:18 |
|
Yeah, it's safari that does things the dumb way IMO, throwing exceptions if you try to use local storage in private browsing. I have no idea why this is still a problem in 2016, when you can just wipe the storage when the private tab clears or whatever.
|
# ? Mar 12, 2016 10:35 |
|
Things came up and I wasn't able to work on it. I tried switching to sessionStorage since that should still be good enough for what I'm trying to accomplish, but it's still not working. Testing all of your theories about incognito, I hardcoded a value and it works (the commented out line), so I'm guessing it has to do with some failure in terms of my coding for AJAX/scope/closure: code:
|
# ? Mar 14, 2016 14:36 |
|
The Merkinman posted:Things came up and I wasn't able to work on it. Just looking at the API for $.getJSON(), it looks like you are passing in your success function in the wrong spot (should be 3rd parameter, not 2nd. 2nd is a post object) http://api.jquery.com/jquery.getjson/ Edit: Hmmm, their own example does it that way too. Are you sure your AJAX call is succeeding, and you're getting back the data you are expecting?
|
# ? Mar 14, 2016 16:24 |
|
The Merkinman posted:Things came up and I wasn't able to work on it. Have you tried using a library like localForage?
|
# ? Mar 14, 2016 16:37 |
|
nexus6 posted:Have you tried using a library like localForage? Skandranon posted:Edit: Hmmm, their own example does it that way too. Are you sure your AJAX call is succeeding, and you're getting back the data you are expecting? Moreover, if I do a console.log immediately after setting the variable: code:
code:
|
# ? Mar 14, 2016 17:15 |
|
|
# ? May 10, 2024 01:32 |
|
The Merkinman posted:No, I might go that route eventually, but I'd hope not to include a whole library for what is now, one thing. Oh... yes, you are doing the ajax part wrong. You are going to hit your "savedJSONTree = window.sessionStorage.getItem("jsonTree");" before your AJAX call returns, your Success function passed into $.getJSON is not blocking. You need to deal with this in a completely async way. Your "savedJSONTree = window.sessionStorage.getItem("jsonTree");" line should be IN your success callback.
|
# ? Mar 14, 2016 17:24 |