How should I add HTTP basic authentication (that isn't SOCKS or NTLM) to a Java command line app? Oracle and stackoverflow haven't really helped so I'm kind of stuck on this one.
[QUOTE=supersnail11;44002949][code]
html,body
{
margin: 0;
padding: 0;
}
[/code]
try this[/QUOTE]
Again, raising a faily simple question. I was taught it this way:
[code]
* {
margin: 0;
padding: 0;
}
[/code]
Though, I've heard it's bad practice. But I've used it ever since I was told to and nothing has really been bad at my end.
I just do body{
Looks like we all have our own ways
[QUOTE=djjkxbox360;44006329]I just do body{
Looks like we all have our own ways[/QUOTE]
When I did the codecademy course it warned me about using * because it was a "universal selector", but yet I am just removing the margin/padding so to me it seems harmless.
Hey guys, sorry to be a bother here, but if I want a website made for me, is it generally okay to ask in this forum or is it looked down upon?
Not sure if this is a programming question or a web design question (same thing???)
Say, out of curiositys sake, I want to log into facebook and use a webcrawler to get statuses on a webpage.
I found a PHP based webcrawler ([url]http://simplehtmldom.sourceforge.net/manual.htm[/url]). I followed a tutorial I found, but it's only for webpages where I don't need to log into them.
Is there any way I can log into facebook/whatever website I'd like through PHP and grab the HTML pages from there or would I have to make some other kind of program that logs in and saves the HTML page, and then pass it to my PHP code?
Not really sure what to do here. Advice would be appreciated.
Thanks folkses!
[QUOTE=NiandraLades;44010787]Hey guys, sorry to be a bother here, but if I want a website made for me, is it generally okay to ask in this forum or is it looked down upon?[/QUOTE]
We won't do it for free, and we won't do it for cheap, but if you can pay a reasonable price then it's okay.
Be warned that "reasonable price" is $20/hr minimum for any professional freelance web developer. Not $20 per project.
[editline]22nd February 2014[/editline]
[QUOTE=RoflKawpter;44010989]Not sure if this is a programming question or a web design question (same thing???)
Say, out of curiositys sake, I want to log into facebook and use a webcrawler to get statuses on a webpage.
I found a PHP based webcrawler ([url]http://simplehtmldom.sourceforge.net/manual.htm[/url]). I followed a tutorial I found, but it's only for webpages where I don't need to log into them.
Is there any way I can log into facebook/whatever website I'd like through PHP and grab the HTML pages from there or would I have to make some other kind of program that logs in and saves the HTML page, and then pass it to my PHP code?
Not really sure what to do here. Advice would be appreciated.
Thanks folkses![/QUOTE]
Use the API?
[QUOTE=RoflKawpter;44010989]Not sure if this is a programming question or a web design question (same thing???)
Say, out of curiositys sake, I want to log into facebook and use a webcrawler to get statuses on a webpage.
I found a PHP based webcrawler ([url]http://simplehtmldom.sourceforge.net/manual.htm[/url]). I followed a tutorial I found, but it's only for webpages where I don't need to log into them.
Is there any way I can log into facebook/whatever website I'd like through PHP and grab the HTML pages from there or would I have to make some other kind of program that logs in and saves the HTML page, and then pass it to my PHP code?
Not really sure what to do here. Advice would be appreciated.
Thanks folkses![/QUOTE]
...why wouldn't you just use Facebook's [URL="https://developers.facebook.com/docs/graph-api/"]API[/URL]?
[editline]23rd February 2014[/editline]
God dammit.
How do I get multiple javascript ajax buttons on a page?
I want to make this but working.
[url]http://jsfiddle.net/zpSVp/[/url]
So like when someone presses reserve it sends "12345" or 12346 or 12347 to a page.
any way to do that with jquery?
[QUOTE=01271;44011774]How do I get multiple javascript ajax buttons on a page?
I want to make this but working.
[url]http://jsfiddle.net/zpSVp/[/url]
So like when someone presses reserve it sends "12345" or 12346 or 12347 to a page.
any way to do that with jquery?[/QUOTE]
[code]
$('input[type=button]').click(function(){
alert($(this).attr('name'))
})
[/code]
replace alert with ajax
-snip-
Ninja'd on the next page
I have this array in PHP that's taken from a database. (I'm making some forum software)
[code]
array(2) {
[0]=> array(6) {
["id"]=> string(1) "1"
["parent"]=> string(2) "-1"
["title"]=> string(17) "General Category "
["description"]=> string(0) ""
["postcount"]=> string(1) "0"
["threadcount"]=> string(1) "0"
}
[1]=> array(6) {
["id"]=> string(1) "2"
["parent"]=> string(1) "1"
["title"]=> string(10) "Test Gamez"
["description"]=> string(8) "Generalz"
["postcount"]=> string(1) "0"
["threadcount"]=> string(1) "0"
}
}
[/code]
I want to make anything that doesn't have a parent of -1 a board that goes into a category (parent = id) and anything else a category.
So the array should look like this:
[code]
array(1) {
[0]=> array(6) {
["id"]=> string(1) "1"
["parent"]=> string(2) "-1"
["title"]=> string(17) "General Category"
["description"]=> string(0) ""
["postcount"]=> string(1) "0"
["threadcount"]=> string(1) "0"
["boards"]=> array(){
["id"]=> string(1) "2"
["parent"]=> string(1) "1"
["title"]=> string(10) "Test Gamez"
["description"]=> string(8) "Generalz"
["postcount"]=> string(1) "0"
["threadcount"]=> string(1) "0"
}
}
}
[/code]
How would I do this?
Hi guys, I'm looking for a free, lightweight forum software. I looked at [url]http://www.discourse.org/[/url] but it was just a little to simple. I like the category & forums layout, and I want something with basic features and syntax highlighting. Do you guys know of any?
[QUOTE=Coffeee;44021071]I have this array in PHP that's taken from a database. (I'm making some forum software)
I want to make anything that doesn't have a parent of -1 a board that goes into a category (parent = id) and anything else a category.
So the array should look like this:
How would I do this?[/QUOTE]
you should look into [url=http://www.codinghorror.com/blog/2007/10/a-visual-explanation-of-sql-joins.html]sql joins[/url]
you're probably thinking of "LEFT OUTER JOIN"
example [url]http://www.lornajane.net/posts/2012/sql-joining-a-table-to-itself[/url]
what's the best way to get a universally supported web font? I tried fontsquirrel's generator, but it completely broke the fonts for me on firefox. The original font files I have are .otf
Not sure if this is the right area, but I figured I'd ask.
Is there anyway to make Facepunch .. Darker? I mean black, with the text a different colour? Browsing this website at night is kind of a pain on the eyes after awhile.
So I was just wondering if there was a certain script, or install I could use, maybe on Chromes Stylish?
What would be the best way of handling translations on a site?
[QUOTE=Moofy;44006370]When I did the codecademy course it warned me about using * because it was a "universal selector", but yet I am just removing the margin/padding so to me it seems harmless.[/QUOTE]
This is true when using * with another selector, such as
[code].header * {}[/code]
But browsers have optimised the CSS renderers to treat
[code]* {}[/code]
as a special case which speeds it up massively.
This really annoys me.
How come whenever I set font-size: 0; in my body when using inline-block everything literally breaks if I measure in EM, it's impossible to set anything in EM values.
Why?
[QUOTE=Moofy;44027371]This really annoys me.
How come whenever I set font-size: 0; in my body when using inline-block everything literally breaks if I measure in EM, it's impossible to set anything in EM values.
Why?[/QUOTE]
1em is based on the current font size, if the font size is 0 then all em values are 0.
No idea why you want to set the font size to 0 though.
[QUOTE=PortalGod;44024446]what's the best way to get a universally supported web font? I tried fontsquirrel's generator, but it completely broke the fonts for me on firefox. The original font files I have are .otf[/QUOTE]
If you've bought the font, you would (in most cases) get a download link for webfont files and CSS.
[QUOTE=PortalGod;44024446]what's the best way to get a universally supported web font? I tried fontsquirrel's generator, but it completely broke the fonts for me on firefox. The original font files I have are .otf[/QUOTE]
[url]http://google.com/fonts[/url]
[QUOTE=CBastard;44027729]1em is based on the current font size, if the font size is 0 then all em values are 0.
No idea why you want to set the font size to 0 though.[/QUOTE]
To get rid of whitespace in the HTML when using inline-block.
Is there any reason for whitespace between inline-block elements?
[QUOTE=Moofy;44027949]To get rid of whitespace in the HTML when using inline-block.[/QUOTE]
I'd be interested in seeing an example of this in use because I've never needed to do this.
[QUOTE=CBastard;44028134]I'd be interested in seeing an example of this in use because I've never needed to do this.[/QUOTE]
Well, it used to happen, although I tried to replicate in jsfiddle and it doesn't seem to happen anymore I think.
[QUOTE=djjkxbox360;44028611]Well, it used to happen, although I tried to replicate in jsfiddle and it doesn't seem to happen anymore I think.[/QUOTE]
It doesn't happen anymore I think though it adds some default margin or something:
[URL]http://jsfiddle.net/gH74N/[/URL]
Adding the font-size: 0; removes that margin but then I end up with my EM problem:
[URL]http://jsfiddle.net/gH74N/1/[/URL]
[QUOTE=Moofy;44028784]It doesn't happen anymore I think though it adds some default margin or something:
[URL]http://jsfiddle.net/gH74N/[/URL]
Adding the font-size: 0; removes that margin but then I end up with my EM problem:
[URL]http://jsfiddle.net/gH74N/1/[/URL][/QUOTE]
What the hell? if you remove the new line after the div it gets rid of the spacing
[URL]http://jsfiddle.net/gH74N/2/[/URL]
I never noticed this before
Sorry, you need to Log In to post a reply to this thread.