• Web Dev Questions That Don't Need Their Own Thread v4
    5,001 replies, posted
[QUOTE=commander204;43623479]What kind of testing do you mean? Usability?[/QUOTE] Checking for bugs, errors, functions correctly working...
[QUOTE=Coment;43620646]How do you deal with testing your pages? I mean, yes, you know exactly what to do for X to do this and that, as you've shape it that way. But how do you deal with 'unexpected results'? Any kind of TesterHire that you know? Bugging friends until one accepts?[/QUOTE] You should [I]really[/I] be writing automated tests. There is absolutely no way to match the amount of coverage that you get with automated tests using a human. Exploratory testing is a little different, although it can be automated to some degree as well, and that's definitely worth trying to do (by randomizing things like fake names in your automated tests). Exploratory testing is really best done by just hammering on your app and trying to break it. If you build well from the get go and have good test coverage it will be hard for anything 'unexpected' to happen though. If you're using an error tracking service (I recommend rollbar.com) or at least automatically emailing error reports whenever something goes wrong on the site like you should be you'll know as soon as something unexpected does happen and will have the info to track it down, which, IMO, makes initial exploratory testing a little less important.
I got 2 columns next to each other using inline-block, here's the setup: [code] <div class="footer-left"> <p>&COPY; <?php print date("Y"); ?> Morten Zimmer &amp; Mathias Joergensen</p> </div><div class="footer-right"> <ul class="fa-ul"> <li><i class="fa fa-twitter"></i> <a href="#">Morten</a></li> <li><i class="fa fa-twitter"></i> <a href="#">Mathias</a></li> </ul> </div> [/code] As you can see, horrible. It accepts white space in HTML, is there a way to trick it so I can actually have some space between the divs so it's easier to read? Like this: [code] <div class="footer-left"> <p>&COPY; <?php print date("Y"); ?> Morten Zimmer &amp; Mathias Joergensen</p> </div> <div class="footer-right"> <ul class="fa-ul"> <li><i class="fa fa-twitter"></i> <a href="#">Morten</a></li> <li><i class="fa fa-twitter"></i> <a href="#">Mathias</a></li> </ul> </div> [/code] [editline]22nd January 2014[/editline] Sorry for the messy code, I wanted to edit it to even the tabbing but if I edit the post it all disappears :suicide:
Put a comment between the </div> and <div class="footer-right"> Not perfect, but it gets rid of that annoying space that happens and looks slightly neater. [code] <div class="footer-left"> <p>&COPY; <?php print date("Y"); ?> Morten Zimmer &amp; Mathias Joergensen</p> </div><!-- --><div class="footer-right"> <ul class="fa-ul"> <li><i class="fa fa-twitter"></i> <a href="#">Morten</a></li> <li><i class="fa fa-twitter"></i> <a href="#">Mathias</a></li> </ul> </div> [/code]
[QUOTE=rieda1589;43628608]Put a comment between the </div> and <div class="footer-right"> Not perfect, but it gets rid of that annoying space that happens and looks slightly neater. [code] <div class="footer-left"> <p>© <?php print date("Y"); ?> Morten Zimmer & Mathias Joergensen</p> </div><!-- --><div class="footer-right"> <ul class="fa-ul"> <li><i class="fa fa-twitter"></i> <a href="#">Morten</a></li> <li><i class="fa fa-twitter"></i> <a href="#">Mathias</a></li> </ul> </div> [/code][/QUOTE] Yea it worked, annoying it does this though :c
Having trouble adding CNAME record with Lithium Hosting. Instructions tells me to use www as the name but cPanel is telling me it's reserved (already in use)
Does anyone know of a free service where I can post out a online survey then give 5% off at the end for the people that took part?
[QUOTE=Moofy;43628712]Yea it worked, annoying it does this though :c[/QUOTE] The reason for that is whitespace. If you put a new line that's whitespace. Alternatively remove the comment and put no newline.
[QUOTE=Moofy;43628712]Yea it worked, annoying it does this though :c[/QUOTE] What I do is set the font size of the container to 0 then set the correct font size inside the inline block elements, removing the unwanted spacing without using a comment.
[QUOTE=xianlee;43630426]then give 5% off at the end for the people that took part?[/QUOTE] 5% off in what? A discount?
[QUOTE=commander204;43631178]The reason for that is whitespace. If you put a new line that's whitespace. Alternatively remove the comment and put no newline.[/QUOTE] This is what I tried to avoid. :suicide: [QUOTE=seanm07;43633146]What I do is set the font size of the container to 0 then set the correct font size inside the inline block elements, removing the unwanted spacing without using a comment.[/QUOTE] Awesome, thanks!
I'm sorry, but now that I know Java I find PHP absolutely dreadful. It can't decide if it wants to be object oriented. I set a variable to the return value of curl_init(), but anything that manipulates that object is called through a function that takes that variable as an argument? $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "http://google.com"); seriously, is there nothing like Java out there for the web? I know there's Apache Tomcat but it's a real PITA to set up and I have to make a .war file for the Java servlet every time I make a change.
[QUOTE=Banana Lord.;43649206]I'm sorry, but now that I know Java I find PHP absolutely dreadful. It can't decide if it wants to be object oriented. I set a variable to the return value of curl_init(), but anything that manipulates that object is called through a function that takes that variable as an argument? $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "http://google.com"); seriously, is there nothing like Java out there for the web? I know there's Apache Tomcat but it's a real PITA to set up and I have to make a .war file for the Java servlet every time I make a change.[/QUOTE] There are tons of web frameworks for java. I don't do java but check out spring. As far as deployment goes I can't really help, but I'd be surprised if you find something that is going to make it so that you don't need to make wars or jars every time you make a change, because that's kind of how java works :P Have you checked out ruby yet? There are quite a few other languages with pretty awesome web frameworks that are WAAAAAAAAY more enjoyable to use than PHP
[QUOTE=Banana Lord.;43649206]I'm sorry, but now that I know Java I find PHP absolutely dreadful. It can't decide if it wants to be object oriented. I set a variable to the return value of curl_init(), but anything that manipulates that object is called through a function that takes that variable as an argument? $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "http://google.com"); seriously, is there nothing like Java out there for the web? I know there's Apache Tomcat but it's a real PITA to set up and I have to make a .war file for the Java servlet every time I make a change.[/QUOTE] [QUOTE=KmartSqrl;43649700]There are tons of web frameworks for java. I don't do java but check out spring. As far as deployment goes I can't really help, but I'd be surprised if you find something that is going to make it so that you don't need to make wars or jars every time you make a change, because that's kind of how java works :P Have you checked out ruby yet? There are quite a few other languages with pretty awesome web frameworks that are WAAAAAAAAY more enjoyable to use than PHP[/QUOTE] At this moment Ruby on Rails, Django or Sinatra or Flask pops up. There is also Node.js with Express or Connect.
Working with jQuery Mobile & iOS Web Apps (You know, bookmarking). I stumbled upon one problem. I wanted to make the header have some space by checking for window.navigator.standalone and then adding padding to that element. I however noticed it is NOT executing that script after changing pages? I can do .text() and all that shit and it still doesn't do anything, it does however load it on Chrome (Win). Anyone who has a clue what's going on?
What are some good relatively simple site ideas using a MVC like angular or backbone? I'm pretty new and my portfolio is limited. Maybe some cool APIs to work with? [editline]25th January 2014[/editline] also someone teach me oauth / passport.js. that shit terrifies me
I'm now finally done with the courses on HTML/CSS and PHP on codecademy. Should I grab XAMPP for further PHP fun or is it better to set up Apache and SQL manually?
A great color scheme for developing in Sublime text (2)? - Currently using Base 16 with eighties dark. It's good in some ways and other it's really weird looking. Suggestions?
[QUOTE=Moofy;43686209]A great color scheme for developing in Sublime text (2)? - Currently using Base 16 with eighties dark. It's good in some ways and other it's really weird looking. Suggestions?[/QUOTE] It's really just your taste, you can look here if you want something premade [url]https://github.com/daylerees/colour-schemes[/url] I use this one myself: Earthsong [thumb]https://raw.github.com/daylerees/colour-schemes/master/screenshots/earthsong.png[/thumb]
[QUOTE=Superkipje;43686362]It's really just your taste, you can look here if you want something premade [url]https://github.com/daylerees/colour-schemes[/url] I use this one myself: Earthsong [thumb]https://raw.github.com/daylerees/colour-schemes/master/screenshots/earthsong.png[/thumb][/QUOTE] I know it's taste, but still some recommendations are always great :v: [editline]27th January 2014[/editline] One request though, has to be dark, not Mac white themed.
I use spacegrey ocean dark. Also comes in ocean light and eighties dark. [url]https://github.com/kkga/spacegray[/url] [t]https://raw2.github.com/kkga/spacegray/master/Screenshots/spacegray.png[/t]
ITG.flat [url]http://itsthatguy.com/post/70191573560/sublime-text-theme-itg-flat[/url]
[QUOTE=Banana Lord.;43687905]ITG.flat [URL]http://itsthatguy.com/post/70191573560/sublime-text-theme-itg-flat[/URL][/QUOTE] My god this is glorious [editline]27th January 2014[/editline] However constantly getting errors through package manager :( [code] "itg_sidebar_tree_xsmall"[B]:[/B] [B]true[/B] "itg_sidebar_tree_small"[B]:[/B] [B]true[/B] "itg_sidebar_tree_medium"[B]:[/B] [B]true[/B] "itg_sidebar_tree_large"[B]:[/B] [B]true[/B] "itg_sidebar_tree_xlarge"[B]:[/B] [B]true[/B] [/code] What is all this by the way?
Yeah I love that theme. The author committed this to [url=https://github.com/itsthatguy/theme-itg-flat]his GitHub[/url] 9 hours ago: [quote]invalid JSON causing theme to not load in sublime text 2[/quote] His GitHub explains the different settings too :)
[QUOTE=Banana Lord.;43693562]Yeah I love that theme. The author committed this to [url=https://github.com/itsthatguy/theme-itg-flat]his GitHub[/url] 9 hours ago: His GitHub explains the different settings too :)[/QUOTE] Aah, perhaps I am blind but where exactly is the itg.monokai? The itg.dark color scheme is nice but a bit odd looking, so perhaps the Monokai would be better for me. I just don't see it there.
That was the original theme which was basically the same as the one that ships with sublime but the background was a lighter shade. Now he has a color scheme for both light and dark. It took me a day or two to get used to but I love it. To each his own though, there's a theme and color scheme combination out there for everyone!
[QUOTE=Banana Lord.;43698650]That was the original theme which was basically the same as the one that ships with sublime but the background was a lighter shade. Now he has a color scheme for both light and dark. It took me a day or two to get used to but I love it. To each his own though, there's a theme and color scheme combination out there for everyone![/QUOTE] I found this combination with the Base 16 color scheme: [t]http://i43.tinypic.com/8wjhqg.png[/t] I like it, doesn't blend too well but I don't notice it as much plus not that flashy colors :v: Now I can finally finish this school assignment with a proper interface.
Do you guys have any suggestions on how to find 'colleagues' for an open source project. Not sure if many remember, but I posted about a month back that I am working on a Forum. The problem is I fear that I am doing things in a way too opinionated way. Since I got nobody to discuss it with. It's not a problem in and of itself but I might have some routines burned in that are detrimental for performance or security. The project is on [URL="https://github.com/CommunityHub/ForumJS"]GitHub[/URL] so anyone could theoretically participate. I don't feel like randomly going around asking people if they want to participate since just joining a Community to 'advertise' is rude and I prefer to avoid that. (Even if I'm not actually selling anything.) So any tips how to find one or two interested people who want to hone their skills on Node and Angular by making a forum?
Ok, so I wanna start hosting my own DNS because a friend would like to use some web space on my VPS. He has his own domain he wants to link to my VPS and I dont have enough room on the DNS servers my host provides me (its limited to 3 domains). In light of that, I wanna host my own DNS server. Heres my problem.... I dont wanna fuck my current DNS up. At the moment, my host does all the DNS stuff for my main domains. Why is this a problem? Might not be, but Im worried if I setup my own DNS server on my VPS, itl some how mess up the domains I currently have linked to my hosts DNS server. Any ideas? Am I worrying over nothing?
[QUOTE=Chizbang;43699729]Ok, so I wanna start hosting my own DNS because a friend would like to use some web space on my VPS. He has his own domain he wants to link to my VPS and I dont have enough room on the DNS servers my host provides me (its limited to 3 domains). In light of that, I wanna host my own DNS server. Heres my problem.... I dont wanna fuck my current DNS up. At the moment, my host does all the DNS stuff for my main domains. Why is this a problem? Might not be, but Im worried if I setup my own DNS server on my VPS, itl some how mess up the domains I currently have linked to my hosts DNS server. Any ideas? Am I worrying over nothing?[/QUOTE] I don't really think you'd need to host an DNS server. All your friend has to do is set an A record at his domain host and point that A record towards the IP of your VPS. Something like this: [img]http://superkipje.com/images/90833962173597483243.png[/img] And then you handle it further with whatever webserver you might have on your VPS. I might have explained it a bit vague but if you can't get it to work I can write you a little tutorial on how to do it.
Sorry, you need to Log In to post a reply to this thread.