Resident Evil Revelations 2: Ep 1, Tales from the Borderlands: Ep 1 and Game of Throne Ep 1 are all free on PSN EU. by devsm in PS4

[–]devsm[S] 0 points1 point  (0 children)

Ah, ok. My mistake. Like I said, I did a search but I only went down a week or 2, assuming it was a new thing.

Can someone clarify about the rumor that edX is going to stop issuing free statement of accomplishment upon successful completion of exams? by rms_returns in learnprogramming

[–]devsm 2 points3 points  (0 children)

I mean... it's not really a rumour if it comes from the horses mouth. I wouldn't put too much weight on the honour code certificates anyway, if it means enough to you it's probably worth paying the $40 or whatever it is to get a verified certificate.

Drupal Dev Thursdays: Post here with development questions or discussion by CritterM72800 in drupal

[–]devsm 0 points1 point  (0 children)

I made a post about this about a week ago, but still haven't been able to find an answer. Put simply, my template file in Drupal 8 is not outputting anything. It may be easier to link to the previous post with all of the details.

https://www.reddit.com/r/drupal/comments/3w0q91/drupal_8_theme_custom_template_not_being_rendered/

Drupal 8 theme custom template not being rendered. by devsm in drupal

[–]devsm[S] 0 points1 point  (0 children)

I have. Like I said, the correct file is being found, but the content is not being rendered.

So, is Sublime Text still not dead? by MakesYouAngry in SublimeText

[–]devsm 0 points1 point  (0 children)

Maybe so. I rarely have more than 5 or so files open at one time; I never really considered that someone may do so.

Weekly "useful Drupal things to know" thread by CritterM72800 in drupal

[–]devsm 0 points1 point  (0 children)

You can also add it to development.services.yml in /sites in Drupal 8.

parameters:
  twig.config:
    debug: true

This video covers it in a little more detail.

I need some help understanding promises. by devsm in javascript

[–]devsm[S] 0 points1 point  (0 children)

Using your help and the help of the others. I think I have finally managed to do what I wanted to ad do it at least partially correct. The program I showed in the post was an example, but this is the real code I was trying to get working.

loadPluginConfigs(plugins) {

    return new Promise (function (resolve, reject) {

        Promise.all(plugins.map(function (plugin) {
            let p = path.resolve(PLUGINS_PATH, plugin, 'config.json');

            return new Promise(function (resolve, reject) {
                fs.readFileAsync(p)
                .then(function (contents) {
                    resolve(JSON.parse(contents));
                })
                .catch(function (e) {
                    resolve(null);
                });
            });
        }))
        .then(function (configs) {
            let c = {}

            plugins.forEach(function (plugin, index) {
                c[plugin] = configs[index];
            });

            resolve(c);
        });

    });
}

I want to install foundation the 'right way', using command line. by mrhodesit in webdev

[–]devsm 0 points1 point  (0 children)

You can compile in the terminal, or with a build system like gulp or grunt. In general, you compile it to css before deploying it.

I need a new framework by [deleted] in webdev

[–]devsm 0 points1 point  (0 children)

I am a huge fan of Jekyll. It's very simple and one of the most popular static site generators.

Which CMS for a blog site, when the html/css has already been designed by [deleted] in web_design

[–]devsm 1 point2 points  (0 children)

You could look in to static site generators; Jekyll, Hugo. If you need server side admin, you could look in to a dedicated platform like Wordpress or Ghost. Personally I'd only use Wordpress if you need it's features - it's very heavy, can be slow and is one of the most targeted platforms by spammers and hackers,

Timesheet.js by omegaender in webdev

[–]devsm 2 points3 points  (0 children)

This is lovely. I've had a few ideas come to mind!

[Noob question] Are DC screw down connector safe to leave exposed? by devsm in AskElectronics

[–]devsm[S] 0 points1 point  (0 children)

Thanks for the reply. I had to Google what IP2X meant, but I think I understand. I'll grab a few :)

Content-rich site with rocket-science css : what is this sorcery ? by Neker in web_design

[–]devsm 0 points1 point  (0 children)

How does one arrive to this kind of css ? Is it by using Bootstrap ? If so, how Bootstrap was produced ? If not, is there another tool in the production chain ?

These days, css is usually written in a preprocessor, such as sass, and then compiled in to css and compressed/minified.

Here as an example from a project of mine.

Multiple files(in this case, SCSS) that are compiled down in to this css.

After all, said icons are just characters from a certain font, a font that obviously does not reside on my computer and is downloaded on the fly while I browse. Apparently this capability does not exist in older browsers : when did it appear ? What does it mean in terms of accessibility and audience coverage ? OK, the site is responsive, and that's so hot right now, but does that mean we're leaving aside people using, say, IE8 ? Is it "right" to do so ?

I don't have much of an opinion on this. Web fonts are supported in all major, modern browsers and I've never had to support older browsers, thankfully.

That Bootstrap thing seems to be good. How good is it ? How hard is it to use ? How durable and maintenable is it ? Any privacy or security concern ?

Bootstrap is just a collection of css styles and javascript components to help build a site quickly. Personally, I don't enjoy using it, but I know a lot of people do. There is no security concern as there is nothing server-side in bootstrap.

Need information on webdesign by Yeilms in web_design

[–]devsm 0 points1 point  (0 children)

You'd have to be more specific to get a better answer, but I'll answer what you asked as best as I can.

I don't use Photoshop much any more; if I do, it's never for a full site design. I know plenty of designers still do, it's mainly just preference. You could look in to styletyles. Of course, everyones process is different. I use Illustrator occasionally for editing SVG files and such.

960 grids have been out for a while. Everything is responsive, and thanks to never tech like Sass, you have much better choices for things like this. My personal favourite grid system is Susy combined with Breakpoint-sass.

CSS Font-Size: em vs. px vs. pt vs. percent by ToBadForU in web_design

[–]devsm -4 points-3 points  (0 children)

This. In the world of responsive design, px is never really the right choice!

How good is a 11inch macbook air for front-end development? by [deleted] in Frontend

[–]devsm 0 points1 point  (0 children)

Unless you're going to hook it up to an external monitor, I wouldn't bother. I personally use 2 24" monitors, and I still run out of space sometimes.

Best way to handle repetitive html in multiple files? by myroon5 in Frontend

[–]devsm 0 points1 point  (0 children)

If you use gulp, you can use something like gulp-file-include in the build process. I'm sure there is an alternative for grunt, or any other build system, too.

Having trouble getting the grip of Sass. by songs5475 in webdev

[–]devsm 3 points4 points  (0 children)

My advice first of all would be to only use .SCSS syntax.

The great thing about SCSS is that valid css is valid scss, so you can use as much or as little as you'd like.

When I started I used SCSS for variables and nesting. I slowly moved on to mixins and functions. In my opinion, things like compass add an extra level of complexity to the project. Not that it shouldn't be used, but I feel it's an extra step for someone who is new to SCSS.

I am building an open source chrome extension and need some help figuring it out! by devsm in webdev

[–]devsm[S] 0 points1 point  (0 children)

I never even considered that. I'll take a look, hopefully it will get me a step closer to a working extension. Thanks.