Register a SA Forums Account here!
JOINING THE SA FORUMS WILL REMOVE THIS BIG AD, THE ANNOYING UNDERLINED ADS, AND STUPID INTERSTITIAL ADS!!!

You can: log in, read the tech support FAQ, or request your lost password. This dumb message (and those ads) will appear on every screen until you register! Get rid of this crap by registering your own SA Forums Account and joining roughly 150,000 Goons, for the one-time price of $9.95! We charge money because it costs us money per month for bills, and since we don't believe in showing ads to our users, we try to make the money back through forum registrations.
 
  • Post
  • Reply
Thermopyle
Jul 1, 2003

...the stupid are cocksure while the intelligent are full of doubt. —Bertrand Russell

Does anyone have any experience with mediaboxAdvanced and have anything good or bad to say about it? Are there any alternatives?

I've got a lot of links to various types of video files and I'm looking for the easiest way to reliably play them. Most of them are urls directly to video files, but it'd be nice to be able to do embeds from places like youtube and Vimeo with it as well.

Adbot
ADBOT LOVES YOU

Thermopyle
Jul 1, 2003

...the stupid are cocksure while the intelligent are full of doubt. —Bertrand Russell

Unfortunately, it looks like jplayer only supports HTML5 video types. A good chunk of the videos I'd like to serve are .mov (QuickTime) files and other non-HTML5 video types.

Thermopyle
Jul 1, 2003

...the stupid are cocksure while the intelligent are full of doubt. —Bertrand Russell

Munkeymon posted:

I imagine it'll be an unpopular opinion, but poo poo like this just depresses me.


good stuff

I agree with all of this. The general idea behind CSS is good, but the actual way you do stuff is just obtuse.

Web development involves taking a bunch of sub-optimal parts, mashing them together in the most elegant way possible, and calling it a day.

Thermopyle
Jul 1, 2003

...the stupid are cocksure while the intelligent are full of doubt. —Bertrand Russell

I'm more looking for some ideas on how to organize some information and less looking for critiques, so maybe this should go here instead of the super (un)popular critique thread?

This is just early stages of a toy site I made and on which I was really just concerned with writing the backend, but currently I'm kinda stumped with how to organize the info that appears when you click any of the movie titles. Right now I have it all just kinda dumped in a Bootstrap well, but I'm not married to that idea.

I just don't really have any ideas about how else to display it, and it looks kinda blah as is.

Any ideas or sources of inspiration that you think would match up with the type of info I'm trying to display?

http://www.trailerthingy.com/
password: imagoon

Thermopyle
Jul 1, 2003

...the stupid are cocksure while the intelligent are full of doubt. —Bertrand Russell

spacebard posted:

If you're planning on making it public, then I would organize it semantically. Maybe with the Movie schema?

Maybe have a main trailer (hero class?) and then some related ones underneath as an aside.

Oh My Science posted:

I think there are two things that stand out most to me.

1. You cant click on the entire row to expand the content, I found myself being stupid on an iPad having to click the link.

2. The expanded content looks out of place inside the .well, having a different color background than the title looks awkward. You also need more white space.

I played around with bootstrap on codepen and came up with http://cdpn.io/rfgdJ. It addresses both issues. Please note the mock up is incredibly rough and that you may want to refine how I nested the rows if you choose to do something similar.

Thanks guys. That'll help me get my creative juices unstuck.

Thermopyle
Jul 1, 2003

...the stupid are cocksure while the intelligent are full of doubt. —Bertrand Russell

fuf posted:

What was the name of that software that set up some kind of virtual web server really easily? I feel like the word 'up' was involved somehow.

http://www.vagrantup.com/

Thermopyle
Jul 1, 2003

...the stupid are cocksure while the intelligent are full of doubt. —Bertrand Russell

haakman posted:

there is a ) at the end. There is no corresponding ( anywhere above it. Why does this work? Is this intended? Is it just a quirk of the language that it needs to be there?

code:
$(document).ready(function() {
$(firstbox).fadeOut(1000);
});
Right after .ready

Thermopyle
Jul 1, 2003

...the stupid are cocksure while the intelligent are full of doubt. —Bertrand Russell

Bootstrap 3 RC1 is out.

quote:

While our last major version bump (2.0) was a complete rewrite of the docs, CSS, and JavaScript, the move to 3.0 is equally ambitious, but for a different reason: Bootstrap 3 will be mobile-first.

The single biggest change is that there are no longer separate fluid/responsive/fixed stuff. Just one type of grid/css.

Rest of changes here.

Thermopyle fucked around with this message at 20:33 on Jul 29, 2013

Thermopyle
Jul 1, 2003

...the stupid are cocksure while the intelligent are full of doubt. —Bertrand Russell

I'm messing around with Bootstrap 3 here.

Is there some sort of design principle behind why they use a media query to remove the rounded corners on the nav pills at the top when the width is > 768px, or is that just weird?

It certainly just seems weird to me, but I'm just a programmer pretending to design.

Thermopyle
Jul 1, 2003

...the stupid are cocksure while the intelligent are full of doubt. —Bertrand Russell

Oh My Science posted:

Found it! Your nav ul has an extra class in it. Remove navbar-nav and it fixes itself.

Oops, thanks! That's a remnant of migrating from Bootstrap 2.


Oh My Science posted:

Note - It seems to break the way it scales down, consider using the navbar instead.

Hrmph. It sure does.

Thermopyle
Jul 1, 2003

...the stupid are cocksure while the intelligent are full of doubt. —Bertrand Russell

Jake Blues posted:

but they JUST updated php.net

Ha. Sounds about par for the course when it comes to PHP.

Thermopyle
Jul 1, 2003

...the stupid are cocksure while the intelligent are full of doubt. —Bertrand Russell

#web on synirc.

Done.

Go there.

Thermopyle
Jul 1, 2003

...the stupid are cocksure while the intelligent are full of doubt. —Bertrand Russell

I don't think this has been mentioned yet, but there's a new attack that allows recovery of data from SSL encrypted sessions that are compressed via gzip.

Here's a surprisingly readable paper on the attack.

The current mitigation involves disabling gzip compression on your server or framework.

Thermopyle
Jul 1, 2003

...the stupid are cocksure while the intelligent are full of doubt. —Bertrand Russell

Lightning Zwei posted:

Thanks for the quick replies, and no I'm not necessarily stuck on learning asp.net or c# I just assumed it would be easier to learn given that I'm already learning Java.

You'll become a better programmer if you learn completely different languages.

Lightning Zwei posted:

I started out messing around with twitter bootstrap and bootstrap plus because I liked how simple it was to modify the templates and I like the clean visual aesthetics. But I suppose I can use bootstrap stylesheets and still code with ruby, and once I get the hang of it I can just create my own custom stylesheets anyway.

Any technology stack you use is going to have to have stylesheets and Bootstrap is a fine framework to use. I'd challenge you a little bit on the "I can just create my own custom stylesheets anyway" part. There's nothing wrong with using a framework like Bootstrap, and in fact, as long as it meets your needs, you're possibly better off not creating your own and just customizing Bootstrap as needed.


Lightning Zwei posted:

So ruby is probably my best bet?


I'd vote for Python+Flask+Peewee (or Django, but I think Flask is probably better to get your head around everything that goes on with a modern server+site+client), but that's a personal preference. Ruby+Rails is also good.

Thermopyle
Jul 1, 2003

...the stupid are cocksure while the intelligent are full of doubt. —Bertrand Russell

Sudden Infant Def Syndrome posted:

As someone who has always programmed in PHP, are there benefits I could be missing out on with Python or Ruby?

Most of my programming is running an intranet for my company for sales information and such as that.

Hmm. This is a hard question to answer. I mean, if you're getting your job done with PHP and you don't hate it, then don't bother. I mean, if your sites work, and you don't care about being more efficient because you're just there to punch the clock and besides you've got to convince management to change their technology stack...there's no point in it.

I've only lightly dabbled in PHP because PHP sucks so bad (completely possible that I just don't get it, but going by the Coding Horrors thread, and stuff like this I'm thinking I do get it and it just sucks), but I'm pretty sure you took the time to learn Python you'd be pretty happy.

Thermopyle
Jul 1, 2003

...the stupid are cocksure while the intelligent are full of doubt. —Bertrand Russell

Mr. Wynand posted:

__metaclass__

Nobody learning python will ever hear about __metaclass__, and by the time you've got to the point where you do hear about it, you'll go "why the hell would I use that?", and if you don't there's no hope for you and there's bound to be other horrors in your code.

Thermopyle
Jul 1, 2003

...the stupid are cocksure while the intelligent are full of doubt. —Bertrand Russell

Mr. Wynand posted:

It's really not that bad now. They even have exceptions! All the truly unconscionable poo poo like REGISTER_GLOBALS has been gone for some time now.

Not my first choice for anything, but it is perfectly workable.

Well, yeah it's workable. Obviously. Existing sites use it and new things are developed in it.

What it boils down to is that the answer to the question "Should I use PHP for new project X?" is always:

No.*














* Unless you only know PHP, and you absolutely can't learn something new or if your existing environment forces it upon you.

Thermopyle
Jul 1, 2003

...the stupid are cocksure while the intelligent are full of doubt. —Bertrand Russell

Lightning Zwei posted:

So I've been messing around with Ruby/Rails, Python/Django, and asp.net MVC for the past few days and I've decided to stick with asp.net MVC for the time being. I may be an idiot but the learning curve with Ruby seems insane, especially having no prior web development experience. I don't want to be messing around with a command line while I'm still just starting to understand POST and GET. MVC makes more sense to me after working with Visual Studio C++ and JCreator IDE's. Are there Ruby IDE's(clearly I don't get it)?

PyCharm for Python/Django, and while I haven't used it, there's RubyMine from the same developers for Ruby.

Honestly, for a lot of stuff the command line is easier than the IDE, but whatever floats your boat.

To be honest, with your background and if you're still interested in learning something new and we're choosing between Ruby/Rails and Python/Django, I think you'd get on best with Python/Django/PyCharm. That trio offers the most handholding à la Visual Studio.

I also wonder if you're not starting off on too complex of a project.

Maybe do Python/Django and a small twitter clone. That should be possible to learn and do in Django in...I dunno...10 or 20 hours? I don't really know on those numbers, but it would be easy for someone who already knows how to program anything.

Actually, on second thought, if you're coming from languages like C++, you may have a hard time grasping the true nature of languages like Python without some more fundamental instruction than you'll receive in the tutorials for Rails or Django, and you may want to try something like How To Think Like A Computer Scientist: Think Python, before you step up to doing Django.

Thermopyle
Jul 1, 2003

...the stupid are cocksure while the intelligent are full of doubt. —Bertrand Russell

Hey, W3C, lets make HTML/CSS even shittier.

When I decided to start working on web stuff I spent a few days learning HTML/CSS and DOM stuff and thought "wow, this sure is a lovely system. Well, maybe it's because I'm not as fluent in it yet as I am with the handful of programming languages/frameworks/thingys I think are really nice. I'll give it more time."

Couple years later: "No, this is poo poo."

Glad to see the W3C is keeping it up.

Thermopyle
Jul 1, 2003

...the stupid are cocksure while the intelligent are full of doubt. —Bertrand Russell

Authentic You posted:

Can someone please explain the appeal and goodness of Bootstrap? Namely the base CSS. Because I don't get it. Maybe we're just doing it wrong, but I dunno.

I recently started a job doing UI design and front-end dev for a web-based application. When I first went into the code, my initial thought was 'dear god, what the hell is up with all this bizarre, non-semantic markup? :psyduck:' It was all Bootstrap classes. I guess I thought Bootstrap CSS was a more low-level thing that took care of resetting/formatting all that annoying poo poo that takes forever to do from scratch on each project (like buttons and horizontal menus), but after having dealt with it for the last couple weeks, I've found it to be incredibly overbearing and hard to modify. The back-end developer (who built the UI and did the front-end stuff before I came along) ended up implementing a bunch of weird hacks to work around some Bootstrap styling issues, which ended up causing even more bugs. When I coded up a new feature, I ended up jettisoning pretty much all the Bootstrap markup and just writing new CSS. And we have a Bootstrap-based form where the two columns of labels/fields merge into each other and overlap if the browser window gets too small, rather than wrap around and stack. I don't know if this is just poor implementation of Bootstrap or what, but ugh.

So after learning that the back-end developer had also been fighting with Bootstrap CSS and using hacks to get around it, we decided that it would be a good idea and better in the long run to write our own foundation CSS that's designed specifically for this application and eventually phase out Bootstrap, sooo that's what I'm working on. I mean, I guess Bootstrap's great for getting a polished-looking site or an app set up really fast, but not so much when you're trying to get a generalized (and heavy-handed) thing handle the appearance and behavior of a specialized application.

... I hope I don't get lynched for not liking Bootstrap. :ohdear:

It lets you churn out a decent site fast. Especially for developers who aren't mainly front-end web developers.

However, I also think you are probably judging it based upon a poorly done implementation of a Bootstrap site, coupled with a lack of familiarity with the way Bootstrap works.

Thermopyle
Jul 1, 2003

...the stupid are cocksure while the intelligent are full of doubt. —Bertrand Russell

Facebook uses PHP.

Thermopyle
Jul 1, 2003

...the stupid are cocksure while the intelligent are full of doubt. —Bertrand Russell

Mr. Wynand posted:

I've just done a bit of this for a contract. It was fine. PHP has always been fine (well, save for the famous HOLY poo poo WHAT WERE THEY THINKING stuff e.g. register_globals). I would never make it my full-time job, nor do I see a reason to actually choose it over anything else, but people keep acting like they'll catch cooties if they even open up a PHP file. It's still made up of if statements and function calls and poo poo, you're going to live through it. It's not even that weird a language. You want to see some poo poo, try ColdFusion or AppleScript.

The only reason people act like they'll get cooties is because there's like 2500:1 PHP developers versus other developers all over the internet. So, when someone says HOW I MAEK WEB SITEZ, PHP inevitably gets recommended.

It's like...yes, I can use this to build a house:


(I swear I didn't go searching for a PHP hammer, I just did an image search for "lovely hammer")

But why when I can use this or a dozen other high-quality hammers?


Or even this?


If you know better and yet everywhere you go people go "USE A lovely HAMMER", most people are going to (quite reasonably) stop saying "That is a recommendation that can get you a great house, however you may want to check out these other options if your use case will allow you to move away from the PHP double-clawed hammer" and start going "gently caress you to hell for even mentioning PHP".

Thermopyle
Jul 1, 2003

...the stupid are cocksure while the intelligent are full of doubt. —Bertrand Russell

Look in to openshift. I'd say more, but my phone is being dumb.

Thermopyle
Jul 1, 2003

...the stupid are cocksure while the intelligent are full of doubt. —Bertrand Russell

I switched to Ubuntu a year or two ago just to ease dev work. It's been pretty great.

Thermopyle
Jul 1, 2003

...the stupid are cocksure while the intelligent are full of doubt. —Bertrand Russell

Fayez Butts posted:

That's what I was hoping to hear.

1: Not very often

2: myself

3: Not really, I can make a static php based site but I can't code in it. I could probably learn pretty quickly if pointed in the right direction

4: Not particularly

Is this supposed to be a springboard to learning more backend stuff, or do you just want the easiest way to get this done?

Thermopyle
Jul 1, 2003

...the stupid are cocksure while the intelligent are full of doubt. —Bertrand Russell

jiggerypokery posted:

Can anyone give a definitive answer as to why (or even if) PostgreSQL is better than MySQL? It seems a lot of people just say it is without any kind of substance behind why.

Ask in the SQL or general programming threads.

Thermopyle
Jul 1, 2003

...the stupid are cocksure while the intelligent are full of doubt. —Bertrand Russell

Ask in the general programming questions thread. (where you'll get more/better answers, which is good because I want to know what the answer(s) are)

Thermopyle
Jul 1, 2003

...the stupid are cocksure while the intelligent are full of doubt. —Bertrand Russell

I'm revamping the UI on my movie trailers site to use a "card"-based UI (à la Google+) and I'm trying to decide between delivering full pages from the server, loading HTML snippets for each card from the server, or just building the HTML for each card by downloading the data via my API and building the view with JS.

In the simplest case I'd just deliver full pages, but I'm planning on having lots of filtering (different dates, keyword searches, etc) and viewtype (compact cards, expanded cards, lists, etc) options, and I think it'd be slick to not do page reloads for these types of things.

I could deliver HTML snippets, but I got to thinking if I'm going to do that, I might consider just using my already existing API. One of the things that makes me hesitate about using the API is that I'm offering public API access via API keys (so I can rate limit API users who need it), and I don't know of any way to access my API via in-browser JS without someone being able to do a simple View Source and see the API key I'm using for public web site views.

Any thoughts?

Thermopyle
Jul 1, 2003

...the stupid are cocksure while the intelligent are full of doubt. —Bertrand Russell

Oh My Science posted:

How are you building your API? Are you using a back-end framework?

Google Tech talk on API Design https://www.youtube.com/watch?v=aAb7hSCtvGw

I can do whatever. Right now I'm using django-rest-framework.

Thermopyle
Jul 1, 2003

...the stupid are cocksure while the intelligent are full of doubt. —Bertrand Russell

ufarn posted:

Two brief observations:

1) Add `html { height: 100%; margin-bottom: 1px; }` to your CSS, so the scrollbar doesn't appear and disappear, when a box is opened.

2) There is something that makes the entire container jerk left, when a box is expanded, in Chrome.

Both are pretty annoying visually.

Thanks. I'm rewriting the all of the HTML currently. What's up there now is just the first quick iteration, and I don't like it and neither does anyone else. So I'm changing it completely.

Thermopyle
Jul 1, 2003

...the stupid are cocksure while the intelligent are full of doubt. —Bertrand Russell

caiman posted:

I have a "how stuff works" type question about browsers and website resources. Google is failing me. Question: when I visit a website, my browser requests the resources (html file, css, images, js, etc) from the server. The server sends a response back and my browser renders the resources as appropriate. At this point, WHERE ARE the resources I'm looking at stored? For example, I visit https://www.somethingawful.com and the grenade logo is rendered - at this point where is my browser reading this image file from? It had to be transferred from the server to my computer, so does the file actually reside on my local machine somewhere? If it actually resides on my local computer, then why is right click --> Save As something entirely different from what's already happened? If it doesn't reside locally, then what's actually occurring as it's loading in my browser?

As mentioned it will vary between browsers, but if you're looking at anything on your screen (browser or not) the data for that is in RAM on your computer and, optionally, stored in a file somewhere on your hard drive.

Thermopyle
Jul 1, 2003

...the stupid are cocksure while the intelligent are full of doubt. —Bertrand Russell

kedo posted:

Looks like that might do the trick! Thanks!

And for my own edification, I'd also be interested in any non-WP solutions for future projects.

Well, it's a very simple thing to whip up in any of the popular web frameworks out there (Rails, Flask, Django, etc)...but you have to know the framework to do it.

It's worth the effort to learn any of them...IIRC, Flask has the simplest getting started tutorial.

Thermopyle
Jul 1, 2003

...the stupid are cocksure while the intelligent are full of doubt. —Bertrand Russell

As I've posted in this thread many times, you can write fine code in PHP.

It's just that there's no reason to pick PHP outside of external factors like it's what your boss wants, your infrastructure only supports it, you want to write WP plugins, etc.

Thermopyle
Jul 1, 2003

...the stupid are cocksure while the intelligent are full of doubt. —Bertrand Russell

Pollyanna posted:

Isn't that kinda how Django works, maybe? I know it assigns HTML "objects" to stuff in the database. Or is that different?

You really need to go through that Django tutorial a few more times.

Thermopyle
Jul 1, 2003

...the stupid are cocksure while the intelligent are full of doubt. —Bertrand Russell

Well, if the theory that people are dropping XP is true, then it could be that they used Chrome on XP and when they switched to a newer operating system they didn't bother to go back because, while it still sucks, newer versions of IE are better.

Thermopyle
Jul 1, 2003

...the stupid are cocksure while the intelligent are full of doubt. —Bertrand Russell

You can probably do this with HTTrack.

Thermopyle
Jul 1, 2003

...the stupid are cocksure while the intelligent are full of doubt. —Bertrand Russell

PyCharm also work great with CoffeeScript.

Just write CS. It automatically transpiles it to JS. Your pages work.

Thermopyle
Jul 1, 2003

...the stupid are cocksure while the intelligent are full of doubt. —Bertrand Russell

Pollyanna posted:

What does Grunt have that CodeKit doesn't? What does it do better? In fact, what about Grunt in general makes it better than CodeKit or other programs? Isn't Grunt specifically for Javascript?

I know you're using PyCharm and it should be noted that it already does a large part of what CodeKit or Grunt does.

Except you're using the free version, so I'm not sure how much that limits it in this regard.

Thermopyle
Jul 1, 2003

...the stupid are cocksure while the intelligent are full of doubt. —Bertrand Russell

Pollyanna posted:

I've been thinking that I might just stick with web dev after all. It makes the most sense to me compared to everything else. Thing is, though, I don't really know what to do next. What should I learn to really make myself competitive? I know the very basics and I can at least deploy a rudimentary website onto Heroku, but the next steps to take kind of escape me.

What would you do if you were in my shoes?

Make something. Think of something you like and make a web app dealing with that.

Adbot
ADBOT LOVES YOU

Thermopyle
Jul 1, 2003

...the stupid are cocksure while the intelligent are full of doubt. —Bertrand Russell

Pollyanna posted:

I certainly learned a lot by tinkering around by myself, yeah. But there's a point where I need structure to get any farther. I just don't have very good self-discipline, sense of structure or executive functions :( Even something easy like "I want you to make me this" from someone else is enough to get me going. There's only so much I need, and I've never been the type to really want for much.

That's why I keep bugging for advice, I keep running into this wall. I suppose the best thing I can do is offer my services for anyone who needs it.

Anyway...I suppose I'll start on another project idea I had: a simple game written in Javascript. JS has graphics libraries, doesn't it? Problem solved.

Don't just tinker around. Come up with an idea and carry it through to completion. Tinkering around is great and all and will teach you about disparate parts, but the hard part is taking an idea from inception to completion.

Note that on these very forums, I've espoused the virtues of trying lots of different things without worrying about making a complete project ready for the world, but that's not instead of actually completing anything.

So, maybe you decide this JS game is what you want to make a complete project out of. Buckle down and do it.

If you really have to have someone tell you what to make, I hereby tell you to make this JS game you're thinking about.

  • 1
  • 2
  • 3
  • 4
  • 5
  • Post
  • Reply