Web Dev Questions That Don't Need Their Own Thread v4
5,001 replies, posted
There's no argument here, it's up to you if you want to support typewriters, but like many other web developers, I'm sticking to what's supported, supporting IE9 was annoying enough for me, and I don't have to support that anymore thanks to XP [B]finally[/B] losing its support. Google doesn't fully support browsers that don't support HTML5 now.
Lots of users are stuck on old browsers and old operating systems. Users who are accessing your site from work or school, for example.
That's not my point, if a computer/browser is unsupported, that means you don't need to support it, if you want to spend time writing workarounds then that's your choice
ruby on rails
[img]http://i.cubeupload.com/kGzkX2.png[/img]
[code]
module CampaignHelper
def character_strings( char_num, speech_type)
char_num = 1
speech_type = 'attack'
strings = {
1 => [
'enemyname' => 'First Class Lieutenant James',
'intro' => 'Stop right there! I see you, pirate, you were the only ship in the area when the civilian craft was destroyed!',
'commander_image' => '/assets/commander1.png',
'ship_image' => '/assets/enemy1.png',
'attack' => [
'Just like they taught me at the academy.',
'There\'s no surrender now',
'You can\'nt match the combat prowess of a fully-qualified Lieutenant.',
'Pirates like you deserve to die.',
'Take this, mongrel!'
],
'hurt' => [
'The academy didn\'t tell me about this!',
'How can I be taking damage, I didn\'nt in the simulations!',
'How am I losing? I have no subordinates holding me back...',
'The might of the Space Navy cannot be hurt so easily.'
],
],
2 => [
'enemyname' => 'Mercenary Pirate Yoseph',
'intro' => 'Got any valuables? No? Your life\'ll do then, hehehe...',
'commander_image' => '/assets/commander2.png',
'ship_image' => '/assets/enemy2.png',
'attack' => [
'I hope my missiles leave your ship in salvageable condition.',
'I\'ll have smelted most of you down before the fight\'s over.',
'Give in to my lasers.',
'You\'re Nothing more than scrap to me.'
],
'hurt' => [
'Nothing more than a scratch in my paint.',
],
],
3 => [
'enemyname' => '!???',
'intro' => 'So you\'ve found me... I am surprised you made it so far.',
'commander_image' => '/assets/commander3.png',
'ship_image' => '/assets/enemy3.png',
'attack' => [
'It\'s over for you now.',
'You will die here.',
],
'hurt' => [
'I don\'t even care.'
],
]
}
return strings[char_num][speech_type].sample
end
end
[/code]
What is going wrong?
[QUOTE=djjkxbox360;44527817]Makes sense to ignore them because they are using an unsupported browser [B]and they know that[/B] so you shouldn't have to create workarounds just because people are lazy[/QUOTE]
You are way overestimating the computer literacy of the average computer user.
[editline]13th April 2014[/editline]
[QUOTE=01271;44536227]ruby on rails
[img]http://i.cubeupload.com/kGzkX2.png[/img]
[code]
module CampaignHelper
def character_strings( char_num, speech_type)
char_num = 1
speech_type = 'attack'
strings = {
1 => [
'enemyname' => 'First Class Lieutenant James',
'intro' => 'Stop right there! I see you, pirate, you were the only ship in the area when the civilian craft was destroyed!',
'commander_image' => '/assets/commander1.png',
'ship_image' => '/assets/enemy1.png',
'attack' => [
'Just like they taught me at the academy.',
'There\'s no surrender now',
'You can\'nt match the combat prowess of a fully-qualified Lieutenant.',
'Pirates like you deserve to die.',
'Take this, mongrel!'
],
'hurt' => [
'The academy didn\'t tell me about this!',
'How can I be taking damage, I didn\'nt in the simulations!',
'How am I losing? I have no subordinates holding me back...',
'The might of the Space Navy cannot be hurt so easily.'
],
],
2 => [
'enemyname' => 'Mercenary Pirate Yoseph',
'intro' => 'Got any valuables? No? Your life\'ll do then, hehehe...',
'commander_image' => '/assets/commander2.png',
'ship_image' => '/assets/enemy2.png',
'attack' => [
'I hope my missiles leave your ship in salvageable condition.',
'I\'ll have smelted most of you down before the fight\'s over.',
'Give in to my lasers.',
'You\'re Nothing more than scrap to me.'
],
'hurt' => [
'Nothing more than a scratch in my paint.',
],
],
3 => [
'enemyname' => '!???',
'intro' => 'So you\'ve found me... I am surprised you made it so far.',
'commander_image' => '/assets/commander3.png',
'ship_image' => '/assets/enemy3.png',
'attack' => [
'It\'s over for you now.',
'You will die here.',
],
'hurt' => [
'I don\'t even care.'
],
]
}
return strings[char_num][speech_type].sample
end
end
[/code]
What is going wrong?[/QUOTE]
You should be using curly brackets for the 1 = [] 2 = [] 3 = [] instead of square brackets. You're making an array (which can only be indexed by integers) when you want to be making a hash.
[IMG]http://i57.tinypic.com/2v9f7k8.png[/IMG]
Working on my Minecraft page.
Used Hellsgamers as some dummy logos and text.
[QUOTE=KmartSqrl;44537089]You are way overestimating the computer literacy of the average computer user.[/QUOTE]
If anything, a really computer illiterate user would just buy a new computer if things stopped working properly, which would solve their problem anyway. Like I said, there's no argument/loss here. I'm not ignoring users, but there's a line you have to draw, and for software/web developers that's what the unsupported OS/browser thing is for
Don't get me wrong, I supported IE9 as it was the last version of IE supported by Windows XP, but now that Windows XP is unsupported there's no point, the line has moved
heroku:
-----> Removing .DS_Store files
-----> Ruby app detected
-----> Compiling Ruby/Rails
-----> Using Ruby version: ruby-2.0.0
-----> Installing dependencies using 1.5.2
New app detected loading default bundler cache
Running: bundle install --without development:test --path vendor/bundle --binstubs vendor/bundle/bin -j4 --deployment
Fetching gem metadata from [url]https://rubygems.org/[/url].........
Fetching additional metadata from [url]https://rubygems.org/[/url]..
Could not find thread_safe-0.3.0 in any of the sources
Bundler Output: Fetching gem metadata from [url]https://rubygems.org/[/url].........
Fetching additional metadata from [url]https://rubygems.org/[/url]..
Could not find thread_safe-0.3.0 in any of the sources
!
! Failed to install gems via Bundler.
!
! Push rejected, failed to compile Ruby app
How do I fix this now, it's annoying that I've gotta ask you guys over and over but yeah.
[QUOTE=Neophyte;44537376]
Working on my Minecraft page.
Used Hellsgamers as some dummy logos and text.[/QUOTE]
It looks good, nailed the white on black. However
[t]http://i.imgur.com/wLLSt5E.png[/t]
It's John :(
[QUOTE=djjkxbox360;44537590]If anything, a really computer illiterate user would just buy a new computer if things stopped working properly, which would solve their problem anyway. Like I said, there's no argument/loss here. I'm not ignoring users, but there's a line you have to draw, and for software/web developers that's what the unsupported OS/browser thing is for
Don't get me wrong, I supported IE9 as it was the last version of IE supported by Windows XP, but now that Windows XP is unsupported there's no point, the line has moved[/QUOTE]
No one ever said anything was wrong with their computer in the first place though. If their computer is working fine and most websites look like they're working they aren't necessarily going to know that their browser is out of date or think something is wrong with their computer. They are going to think your website is broken.
I don't support old versions of browsers unless I really need to for a given project, but your assumption that people would know that they are using out of date browsers was really, [I]really[/I] wrong. Never assume non-tech people know technical things.
[editline]13th April 2014[/editline]
[QUOTE=01271;44538172]heroku:
-----> Removing .DS_Store files
-----> Ruby app detected
-----> Compiling Ruby/Rails
-----> Using Ruby version: ruby-2.0.0
-----> Installing dependencies using 1.5.2
New app detected loading default bundler cache
Running: bundle install --without development:test --path vendor/bundle --binstubs vendor/bundle/bin -j4 --deployment
Fetching gem metadata from [url]https://rubygems.org/[/url].........
Fetching additional metadata from [url]https://rubygems.org/[/url]..
Could not find thread_safe-0.3.0 in any of the sources
Bundler Output: Fetching gem metadata from [url]https://rubygems.org/[/url].........
Fetching additional metadata from [url]https://rubygems.org/[/url]..
Could not find thread_safe-0.3.0 in any of the sources
!
! Failed to install gems via Bundler.
!
! Push rejected, failed to compile Ruby app
How do I fix this now, it's annoying that I've gotta ask you guys over and over but yeah.[/QUOTE]
Update thread_safe to a newer version. The version you are trying to use was yanked: [url]http://rubygems.org/gems/thread_safe/versions[/url]
[QUOTE=KmartSqrl;44538780]They are going to think your website is broken.[/QUOTE]
And also many others
I'm redoing a site that was originally made in 1999. It's littered with tables and messy styles, but it has a lot of content that has stayed the same. Is there a way to salvage the content and remove or reformat the styling, or will I have to quasi-manually re-implement every page without the old styles?
[QUOTE=smlance;44543039]I'm redoing a site that was originally made in 1999. It's littered with tables and messy styles, but it has a lot of content that has stayed the same. Is there a way to salvage the content and remove or reformat the styling, or will I have to quasi-manually re-implement every page without the old styles?[/QUOTE]
You're asking whether you can remove the old styles, then saying can you implement it without removing the old styles? You should be able to use the old styles, if they're applied to tables, just transfer them to divs, and the content should be pretty much a copy and paste job
[QUOTE=djjkxbox360;44540919]And also many others[/QUOTE]
That doesn't have any impact on what I am saying in the first place, but it's also not necessarily true. There are tons of people that hardly use anything other than gmail and facebook. Not everyone uses the internet as much as we do.
[QUOTE=KmartSqrl;44544385]That doesn't have any impact on what I am saying in the first place, but it's also not necessarily true. There are tons of people that hardly use anything other than gmail and facebook. Not everyone uses the internet as much as we do.[/QUOTE]
Then you're basically saying these people won't see my websites anyway, so there's no problem here :v:
[QUOTE=djjkxbox360;44543322]You're asking whether you can remove the old styles, then saying can you implement it without removing the old styles? You should be able to use the old styles, if they're applied to tables, just transfer them to divs, and the content should be pretty much a copy and paste job[/QUOTE]
"Without" the old styles, not "without removing" the old styles. I do not want the old styles; I just want the content. A copy-and-paste job will not do the trick.
I may have a small job I'm being hired to work on, however I've got a bit of a dilemma.
The website is for a residential home, currently it might actually be uglier than most of the sites used by the right-wing crazies over here (and man, these things are awful). The current webmaster is being paid something like £50 a month to maintain the site, and she isn't doing this, is using a sitebuilder built site (Yola to be specific) and doesn't seem to understand colour theory at all. I'll give her some credit, the site has its own domain name at least!
So I need to replace this, I already have some ideas, however I'm trying to work out how to go about it, seeing as its the first thing I'll have ever done in a professional manner. I understand web design, HTML, web systems design, etc. But I'm used to coding shit from scratch, in Java EE, which works fine for me but that seems massively overkill for this.
The site basically has one or two dynamic elements, a news feed and newsletter itself. I've never touched any frameworks or CMS software before, never had a need to really, but are there any that are flexible enough to contain a mixture of static pages and dynamic pages, that don't necessarily rely on a database (seems overkill as all hell for a news feed). I've been shown SimpleCMS, seems pretty flexible and uses an XML store, but are there any others people recommend? It has to let me create something a ~50 year old (probably) computer illiterate can update themselves.
I'd feel wrong taking £50/month from them just to occasionally post news items. Oh, and hosting...never actually looked at hosting so I don't know where to begin. Cheap is basically the only constraint, the site doesn't get tons of hits or anything (maybe it will if there was a mote of SEO...)
[QUOTE=Noi;44545346]How can I catch, say, a creation of some element with certain class? I need to do some manipulations with it in my userscript.[/QUOTE]
I found this: [url]http://stackoverflow.com/questions/11047266/testing-for-div-creation[/url]
[b]What is the best website dev. language?[/b]
And by 'the best' I meant:
-in terms of being up to date
-in terms of possibilities.
[QUOTE=Netheous;44546029][b]What is the best website dev. language?[/b]
And by 'the best' I meant:
-in terms of being up to date
-in terms of possibilities.[/QUOTE]
There is no "best language", but Ruby or Node are pretty cool.
[QUOTE=djjkxbox360;44544413]Then you're basically saying these people won't see my websites anyway, so there's no problem here :v:[/QUOTE]
No. I'm saying that your assumptions about the average computer user are really wrong. Do you actually not understand that, or are you being dense on purpose? :v:
It might have something to do with the error clearly displayed at the top:
[code]2014-04-14T21:23:18.694687+00:00 app[web.1]: ActiveRecord::StatementInvalid (PG::UndefinedTable: ERROR: relation "users" does not exist
2014-04-14T21:23:18.694689+00:00 app[web.1]: LINE 5: WHERE a.attrelid = '"users"'::regclass
2014-04-14T21:23:18.694690+00:00 app[web.1]: ^
2014-04-14T21:23:18.694691+00:00 app[web.1]: : SELECT a.attname, format_type(a.atttypid, a.atttypmod),
2014-04-14T21:23:18.694693+00:00 app[web.1]: pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
2014-04-14T21:23:18.694694+00:00 app[web.1]: FROM pg_attribute a LEFT JOIN pg_attrdef d
2014-04-14T21:23:18.694695+00:00 app[web.1]: ON a.attrelid = d.adrelid AND a.attnum = d.adnum
2014-04-14T21:23:18.694697+00:00 app[web.1]: WHERE a.attrelid = '"users"'::regclass
2014-04-14T21:23:18.694698+00:00 app[web.1]: AND a.attnum > 0 AND NOT a.attisdropped
2014-04-14T21:23:18.694700+00:00 app[web.1]: ORDER BY a.attnum
2014-04-14T21:23:18.694701+00:00 app[web.1]: ):[/code]
[QUOTE=KmartSqrl;44546187]No. I'm saying that your assumptions about the average computer user are really wrong. Do you actually not understand that, or are you being dense on purpose? :v:[/QUOTE]
I understand that, I know I was wrong in saying that people should know they are using unsupported software, but that wasn't my original point, my original point got derailed. I originally replied to this:
[QUOTE=CBastard;44527185]"filter: glow(color=black,strength=3);" for IE7/8[/QUOTE]
Saying I don't understand why you'd want to use this. I just see it as writing extra stuff when it's really not the web developers problem. If for some reason your web application [I]really[/I] requires to be functional on IE7, then go ahead, otherwise, if you want to be friendly to computer illiterate people, put a one-time pop up on the website that lets them know they're using an out of date browser, directing them to where to download a new one and maybe even how to install it, rather than spending time creating workarounds when you could be developing important features.
That was my original point, until it got derailed by certain people, one user saying the most ridiculous line "I was talking about IE8, not IE7", which made me laugh
[QUOTE=supersnail11;44546403]It might have something to do with the error clearly displayed at the top:[/QUOTE]
Oh, I actually had to run heroku rake db:migrate.
Didn't know that even existed.
[QUOTE=Netheous;44546029][b]What is the best website dev. language?[/b]
And by 'the best' I meant:
-in terms of being up to date
-in terms of possibilities.[/QUOTE]
Just please don't do this. All webdev-languages are good, it's just a matter of preference.
[QUOTE=TrinityX;44546941]Just please don't do this. All webdev-languages are good, it's just a matter of preference.[/QUOTE]
They all get the job done but that doesn't mean they are all good or that some are not more well-designed than others.
If you think all web-dev languages are cool, check out VBScript.
Can someone take a look at this please: [url]http://stackoverflow.com/questions/23049506/facebook-api-disrupting-rest-of-page-until-it-loads-data[/url]
Many thanks
[QUOTE=TrinityX;44546941]Just please don't do this. All webdev-languages are good, it's just a matter of preference.[/QUOTE]
I asked this question on purpose.
I wanted to hear your opinion, but appearently it's a 'dumb' question.
Sorry, you need to Log In to post a reply to this thread.