Web Dev Questions That Don't Need Their Own Thread v4
5,001 replies, posted
[QUOTE=Alcapwne;44512852][url]http://stackoverflow.com/questions/23000757/creating-divs-and-getting-content-dynamically-using-javascript[/url]
can anyone help with this pls[/QUOTE]
[url]http://stackoverflow.com/questions/703774/this-id-in-jquery-wont-fetch-the-element-id-if-it-is-a-number-or-contains-numbe[/url]
pls no number only id
[editline]10th April 2014[/editline]
also, check to see if the response gives you the id of the person you were requesting.
the call is asynchronous so forloop doesnt wait for the data being sent back and when it does, it grabs the "friend.id" of someone else.
[QUOTE=jetboy;44509306]Also just thought I'd clear this up. (No offense to you, AndrewPH, just wanting to get the correct information out there)
That comparison is not correct in the slightest. MariaDB is a [i]drop-in[/i] replacement for MySQL. This means that you can 98% of the time freely switch between the two data stores without touching a line of code.
This is obviously not the case with Apache and Nginx. If you want to switch you'll have to deal with migrating configurations and rewriting any dependent code.[/QUOTE]
I was more referring to the part where the client for both is the same.
[QUOTE=jetboy;44509195][url]http://ramnode.com[/url] is also run by a Facepuncher fyi.
Also I would not _ever_ recommend using Arch as a production web server. It is the best damned distro for desktops, but Arch would be my last choice for a production server. The two biggest reasons for this are its forte. Being rolling release and having bleeding edge packages.
I seriously suggest using Debian (derivatives included) or CentOS.[/QUOTE]
I don't understand why that's a problem.
Your system always has the chance of breaking with a pacman -Syu. Arch's testing of packages is not comparable to the scrutinization that Debian/CentOS/RHEL offers. Bleeding edge packages are great but that's the trade you have to make. It's just not worth it with prod servers.
Problem with rolling release is that core components get changed out on a whim. This is great if you're on a desktop where you can fix things, but horrible for production.
Not even mentioning the /lib fiasco, there's the migration from initscripts to systemd. Definitely a forward-moving change. But it would've been a nightmare for any sysadmin with more than a few custom start scripts.
Bottom line: Arch is fantastic for desktops. I use it daily. Production servers not so much. Use something stable.
What would be the best place to ask for help/info on making a app for an android device?
[QUOTE=jetboy;44519516]Your system always has the chance of breaking with a pacman -Syu. Arch's testing of packages is not comparable to the scrutinization that Debian/CentOS/RHEL offers. Bleeding edge packages are great but that's the trade you have to make. It's just not worth it with prod servers.
Problem with rolling release is that core components get changed out on a whim. This is great if you're on a desktop where you can fix things, but horrible for production.
Not even mentioning the /lib fiasco, there's the migration from initscripts to systemd. Definitely a forward-moving change. But it would've been a nightmare for any sysadmin with more than a few custom start scripts.
Bottom line: Arch is fantastic for desktops. I use it daily. Production servers not so much. Use something stable.[/QUOTE]
If it's good enough to host all the official Arch servers and others (I know FluxBB is completely Arch hosted) then it's good enough for me. It will be maintained by me, not a client. We have backup solutions on Arch itself (through Aura) and through DigitalOcean. I'm not too worried about it.
Not sure if I should be posting this here, but I've got a bit of a problem
compare: [url]http://www.maxofs2d.net/[/url] vs. [url]https://www.maxofs2d.net/[/url]
I've never touched anything SSL related and as far as I can tell my account wasn't broken into. I have bought my domain name at OVH and the hosting is at LithiumHosting.net. I've looked around both control panels but couldn't spot a misconfiguration of the domain names or anything of the sort.
Basically... I'm at a loss as to what is causing this. Could anyone shed a light?
The problem is you're using certificate that belongs to [url]www.barnettaccounting.net[/url].
If you're with Lithium that probably means you're using cPanel, right? Have you tried looking under its SSL settings?
[editline]12th April 2014[/editline]
If nothing else you should contact Lithium. Certs are passed from the server.
Hey guys, I have a general Git workflow question. I wasn't sure where to ask but I figured you guys are developers that probably use Git so you could probably help. Apologies if this post shouldn't be here anyway though.
Anyway, I fell in love with Git a few months ago but so far I've only been using branches to separate released code and code for things in development. What I want to do now is "import" all of the code from Repo A and use it in Repo B. I wouldn't be changing the code, just building Repo B with it, which also means I'd like to be able to update the "imported" Repo A whenever it actually updates.
Is that less confusing then I think? Am I missing something obvious here that can do this?
Want to try playing with web development again. I've noticed several frameworks for writing APIs, and I really like how Google Cloud Endpoints works, but I don't wish to be tied to App Engine. Is there anything similar in functionality, eg providing client libraries, or is it just a case of using something like Django REST framework and dealing with the clients separately?
How do you query a TS3 server for online status and user count without using the TS3 framework or admin username or password?
Like Gametracker does just off the query port?
[QUOTE=Banana Lord.;44526052]Hey guys, I have a general Git workflow question. I wasn't sure where to ask but I figured you guys are developers that probably use Git so you could probably help. Apologies if this post shouldn't be here anyway though.
Anyway, I fell in love with Git a few months ago but so far I've only been using branches to separate released code and code for things in development. What I want to do now is "import" all of the code from Repo A and use it in Repo B. I wouldn't be changing the code, just building Repo B with it, which also means I'd like to be able to update the "imported" Repo A whenever it actually updates.
Is that less confusing then I think? Am I missing something obvious here that can do this?[/QUOTE]
I think git submodules are what you're looking for.
[QUOTE=Neophyte;44526351]How do you query a TS3 server for online status and user count without using the TS3 framework or admin username or password?
Like Gametracker does just off the query port?[/QUOTE]
why dont you want to use the ts3 framework? Also, doesn't Gametracker have their own ts server hosting?
Hey guys, I'm working with <span> tags right now, having a small problem...
How would I get the text colour to outline (example red)?
The current span is like: <span style='color:black;outline-color:red;'>test</span>
Nothing works, the text is only black and has no outline
Any help will be appreciated.
PS: I'm using SPAN for group configuring on IP.Board.
Uh, outline is for the div box itself, not the text. To create an outline on text you can need to use the CSS3 stroke (I think its only supported by webkit browsers at the moment), or alternatively text-shadow which is supported by more browsers
[url]http://jsfiddle.net/5m64m/[/url]
[QUOTE=djjkxbox360;44526794]Uh, outline is for the div box itself, not the text. To create an outline on text you can need to use the CSS3 stroke (I think its only supported by webkit browsers at the moment), or alternatively text-shadow which is supported by more browsers
[url]http://jsfiddle.net/5m64m/[/url][/QUOTE]
So in the SPAN sense, would it be
<span style='color:black;text-stroke:red;'>test</span>
[QUOTE=ENG.jonny;44526826]So in the SPAN sense, would it be
<span style='color:black;text-stroke:red;'>test</span>[/QUOTE]
You could do it with a class and save some time if you need it edited.
[url]http://jsfiddle.net/5m64m/1/[/url]
(text-stroke isn't really supported in Firefox yet, which sucks.)
[QUOTE=gokiyono;44527036]You could do it with a class and save some time if you need it edited.
[url]http://jsfiddle.net/5m64m/1/[/url]
(text-stroke isn't really supported in Firefox yet, which sucks.)[/QUOTE]
"filter: glow(color=black,strength=3);" for IE7/8
[QUOTE=MaxOfS2D;44523529]Not sure if I should be posting this here, but I've got a bit of a problem
compare: [URL]http://www.maxofs2d.net/[/URL] vs. [URL]https://www.maxofs2d.net/[/URL]
I've never touched anything SSL related and as far as I can tell my account wasn't broken into. I have bought my domain name at OVH and the hosting is at LithiumHosting.net. I've looked around both control panels but couldn't spot a misconfiguration of the domain names or anything of the sort.
Basically... I'm at a loss as to what is causing this. Could anyone shed a light?[/QUOTE]
Both domains - maxofs2d.net and barnettaccounting.net - have the A record of 162.216.5.108. Shared hosts usually have one IP for multiple sites, and use the domain to determine which site is being accessed. Lithium doesn't know [URL]https://maxofs2d.net/[/URL] points to your website, so it loads barnettaccounting.net instead.
On a side note, since I just remembered, do you ever want the [URL="http://maxofs2d.deviantart.com/"]maxofs2d[/URL] deviantart account? The joke's kind of worn off at this point.
[QUOTE=CBastard;44527185]"filter: glow(color=black,strength=3);" for IE7/8[/QUOTE]
If for some reason you'd want to support a browser that old. IE9 was the maximum XP could use, and XP is dead now, so there really is no excuse to use that
[QUOTE=djjkxbox360;44527510]If for some reason you'd want to support a browser that old. IE9 was the maximum XP could use, and XP is dead now, so there really is no excuse to use that[/QUOTE]
Unfortunately IE8 still accounts for a sizeable chunk of usage around 3-8% based on the stats I've seen, if you're developing commercial websites then it doesn't make sense to ignore them. Yes they shouldn't be using it but they are.
[QUOTE=CBastard;44527747]Unfortunately IE8 still accounts for a sizeable chunk of usage around 3-8% based on the stats I've seen, if you're developing commercial websites then it doesn't make sense to ignore them. Yes they shouldn't be using it but they are.[/QUOTE]
Makes sense to ignore them because they are using an unsupported browser and they know that so you shouldn't have to create workarounds just because people are lazy
[QUOTE=djjkxbox360;44527817]Makes sense to ignore them because they are using an unsupported browser and they know that so you shouldn't have to create workarounds just because people are lazy[/QUOTE]
this is a great idea if you hate getting work because a lot of corporate clients are going to be looking at your stuff at work using old ass computers with old ass software
[QUOTE=Eltro102;44527847]this is a great idea if you hate getting work because a lot of corporate clients are going to be looking at your stuff at work using old ass computers with old ass software[/QUOTE]
I am actually employed, and software developers usually don't cater for unsupported operating systems, why should web developers cater for unsupported browsers? Old ass computers are going to have problems with modern websites, they [b]know[/b] that
[QUOTE=djjkxbox360;44527817]Makes sense to ignore them because they are using an unsupported browser and they know that so you shouldn't have to create workarounds just because people are lazy[/QUOTE]
You should develop for what your users are using. Ignoring them because they don't know why it matters or they are using a computer in a large organisation that doesn't care is just plain stupid.
[QUOTE=CBastard;44527879]You should develop for what your users are using. Ignoring them because they don't know why it matters or they are using a computer in a large organisation that doesn't care is just plain stupid.[/QUOTE]
No, it's plain stupid when a user knows what they're using is [b]UNSUPPORTED[/b] therefore they know they are going to have problems. Having a million workarounds looks ugly and can be difficult to manage, and we're in 2014, you shouldn't be making workarounds for IE7 in 2014
[QUOTE=djjkxbox360;44527896]No, it's plain stupid when a user knows what they're using is [b]UNSUPPORTED[/b] therefore they know they are going to have problems. Having a million workarounds looks ugly and can be difficult to manage, and we're in 2014, you shouldn't be making workarounds for IE7 in 2014[/QUOTE]
I'm talking about IE8 not 7.
But what we are saying is that the user doesn't necessarily know this or have a means of using a supported browser.
If your company can make more money back from supporting those users than the cost of development for them then you should do it.
[QUOTE=CBastard;44527968]If your company can make more money back from supporting those users
[/QUOTE]
Are you kidding me? You think users that have refused to upgrade from Windows XP are going to give money? Money is the reason they didn't upgrade, so there's really no benefit from supporting these users
[QUOTE=djjkxbox360;44527986]Are you kidding me? You think users that have refused to upgrade from Windows XP are going to give money? Money is the reason they didn't upgrade, so there's really no benefit from supporting these users[/QUOTE]
Not always.
Try asking the older people with XP to upgrade and see what happens. (Or just someone who isn't as [I]in[/I] with technology)
[QUOTE=djjkxbox360;44527986]Are you kidding me? You think users that have refused to upgrade from Windows XP are going to give money?[/QUOTE]
XP has a huge install share currently so yes. Again lots of these people don't know they need to, think they need to or want to upgrade.
Sorry, you need to Log In to post a reply to this thread.