• Web Development Questions That Don't Need Their Own Thread v2
    3,079 replies, posted
Is there a way i can select 'save as' on a url before i actually go to that url?
[QUOTE=Sprite;32930887]Is there a way i can select 'save as' on a url before i actually go to that url?[/QUOTE] If you have Windows 7 with Powershell (comes with Pro and Ultimate, at least): [img]http://i.imgur.com/4zYDf.jpg[/img] That starts a new webclient, and downloads the contents of the google homepage to a file called google.html on the current working directory.
dag nabbit. i have 7 but not ultimate or pro [editline]23rd October 2011[/editline] well is there a way i can download multiple images at once? (that's what I'm trying to do) I have the list in this form: [url]http://file.com/file1.jpg[/url] [url]http://file.com/file2.jpg[/url] [url]http://file.com/file3.jpg[/url] [url]http://file.com/file4.jpg[/url]
[QUOTE=StinkyJoe;32930955]If you have Windows 7 with Powershell (comes with Pro and Ultimate, at least): [img]http://i.imgur.com/4zYDf.jpg[/img] That starts a new webclient, and downloads the contents of the google homepage to a file called google.html on the current working directory.[/QUOTE] alternately [img]http://dl.dropbox.com/u/11275736/s/d/f/curl.png[/img] [editline]23rd October 2011[/editline] google.html is the name of the file, [url]http://google.com[/url] is the link
[QUOTE=Ac!dL3ak;32931096]alternately [img]http://dl.dropbox.com/u/11275736/s/d/f/curl.png[/img] [editline]23rd October 2011[/editline] google.html is the name of the file, [url]http://google.com[/url] is the link[/QUOTE] I was going to point out curl, but was under the impression it didn't come with windows by default, and I had installed it for some reason - that's a much saner method. I also really wanted an excuse to show off my powershell setup.
[QUOTE=StinkyJoe;32931153]I was going to point out curl, but was under the impression it didn't come with windows by default, and I had installed it for some reason - that's a much saner method. I also really wanted an excuse to show off my powershell setup.[/QUOTE] i'm actually not sure if it does come with windows natively or not :V
[QUOTE=Ac!dL3ak;32931096]alternately [img]http://dl.dropbox.com/u/11275736/s/d/f/curl.png[/img] [editline]23rd October 2011[/editline] google.html is the name of the file, [url]http://google.com[/url] is the link[/QUOTE] Will that download it just like firefox or any other browser would download that page (including all the references and such?)
[QUOTE=Sprite;32931209]Will that download it just like firefox or any other browser would download that page (including all the references and such?)[/QUOTE] no, it wouldn't.
[QUOTE=Ac!dL3ak;32931238]no, it wouldn't.[/QUOTE] dag NABBIT! [editline]23rd October 2011[/editline] There's jus ta series of images i need to download all at once. that's all i was wondering about
curl can be set to mirror a page, which will download all linked references which it understand. Be careful with it though, I tried it once and forgot about it, and downloaded 1GB of content from a guy's site by accident.
Is there a browser that treats an iframe as a normal tab/window, but still in the window of the document calling it? this one website claims i'm leeching >.> (which i guess i am) This is not a public website, so don't worry. I'm just trying to accomplishing something very particular. and the situation is beginning to ware on me. I can't seem to get cURL to work [code] function grab_image($url,$saveto){ $ch = curl_init ($url); curl_setopt($ch, CURLOPT_HEADER, 0); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_BINARYTRANSFER,1); $raw=curl_exec($ch); curl_close ($ch); if(file_exists($saveto)){ unlink($saveto); } $fp = fopen($saveto,'x'); fwrite($fp, $raw); fclose($fp); } [/code] and I can't seem to find a program that allows me to plug in my list and download all the files. I could go to each file individually and save it, but i need to do this multiple times O_O! I did 4 sets, and that took me hours. maybe it just wasn't meant to be. :( [editline]24th October 2011[/editline] I've spent all day on this. trying to find some glitch, loophole, work around, or actual solution. I have failed. [editline]24th October 2011[/editline] i refuse to program some sloppy complex macro to get this done. I REFUSE!!! [editline]24th October 2011[/editline] now checking of opera has any work arounds for my issue... come on. this has to work opera has GOT to be good for SOMETHING
Is there any way to setup Chrome so it doesn't cache certain websites, because I've spent the last half an hour wondering why nothing would change until I realized it was loading the cached version of the site.
trying to learn javascript, found a youtube search template. this seems to work but as soon as i load the page it will perform the search instead of waiting for onSubmit (search tags will be added later, just trying to get it to work atm) [URL]http://pastebin.com/DAybEyUZ[/URL]
[QUOTE=Adzter;32938980]Is there any way to setup Chrome so it doesn't cache certain websites, because I've spent the last half an hour wondering why nothing would change until I realized it was loading the cached version of the site.[/QUOTE] Ctrl + F5
[QUOTE=commander204;32939148]Ctrl + F5[/QUOTE] I've tried that but it still insists on loading the cached version.
how do you change it so that when one border has a greater width then the ones perpendicular to it, the one with the greater width overlaps them (instead of the other way around)?
[QUOTE=Ac!dL3ak;32945740]how do you change it so that when one border has a greater width then the ones perpendicular to it, the one with the greater width overlaps them (instead of the other way around)?[/QUOTE] I believe that is done with positioning and giving the overlapping border a higher z value than the underlaying.
[QUOTE=mobrockers2;32946527]I believe that is done with positioning and giving the overlapping border a higher z value than the underlaying.[/QUOTE] um, could you show me an example or something?
[QUOTE=Ac!dL3ak;32946603]um, could you show me an example or something?[/QUOTE] [url]http://www.w3schools.com/css/css_positioning.asp[/url]
[QUOTE=Ac!dL3ak;32945740]how do you change it so that when one border has a greater width then the ones perpendicular to it, the one with the greater width overlaps them (instead of the other way around)?[/QUOTE] i don't understand.. can't you just do [code] border-top: border-bottom: border-right: border-left[/code] ?
[QUOTE=zzlawlzz;32946935]i don't understand.. can't you just do [code] border-top: border-bottom: border-right: border-left[/code] ?[/QUOTE] My bad, I completely misunderstood his post. Ac!d do what this guy said.
[QUOTE=zzlawlzz;32946935]i don't understand.. can't you just do [code] border-top: border-bottom: border-right: border-left[/code] ?[/QUOTE] the problem with that is that when i want a thick bottom border, the left and right borders seem to overlap it halfway through [editline]24th October 2011[/editline] i don't want that
[QUOTE=Ac!dL3ak;32947106]the problem with that is that when i want a thick bottom border, the left and right borders seem to overlap it halfway through [editline]24th October 2011[/editline] i don't want that[/QUOTE] Could you make a screenshot for us?
[img]http://dl.dropbox.com/u/11275736/s/d/f/eh.PNG[/img] [editline]24th October 2011[/editline] there! can you see it? [editline]24th October 2011[/editline] it does do it, and in some cases, it drives me insane because it fucks up the whole thing
[QUOTE=Ac!dL3ak;32947455][img]http://dl.dropbox.com/u/11275736/s/d/f/eh.PNG[/img] [editline]24th October 2011[/editline] there! can you see it? [editline]24th October 2011[/editline] it does do it, and in some cases, it drives me insane because it fucks up the whole thing[/QUOTE] I have no idea, and that picture isn't very helpful either.
What is the best way to echo a pattern based off of a certain order in PHP? [php]array('Person', 'You', 'Are', 'How');[/php] And I want it to echo: [I]How Are You Person[/I] How would I do so?
[QUOTE=Chessnut;32948225]What is the best way to echo a pattern based off of a certain order in PHP? [php]array('Person', 'You', 'Are', 'How');[/php] And I want it to echo: [I]How Are You Person[/I] How would I do so?[/QUOTE] Only way I can think of doing such a thing would be to have preset sentences and make the random words match up to them.
[QUOTE=Chessnut;32948225]What is the best way to echo a pattern based off of a certain order in PHP? [php]array('Person', 'You', 'Are', 'How');[/php] And I want it to echo: [I]How Are You Person[/I] How would I do so?[/QUOTE]You could have a separate array with the order and loop through them like so [php] $words = array('person', 'you', 'are', 'how'); $order = array(3, 2, 1, 0); $sortedwords = array(); $string = ''; foreach ($order as $num) $sortedwords[] = $words[$num]; $string = implode(" ", $sortedwords); [/php] E: Forgot about joining them with a space. Fixed now.
I need to slap together a 1 page website really quick. Doing the HTML and CSS is quite annoying. Is there a drag and drop editor you guys suggest?? [editline]25th October 2011[/editline] *free d&d
I don't think any of us here would recommend a WYSIWYG editor, but if you have to there's [url=http://kompozer.net/]KompoZer[/url].
Sorry, you need to Log In to post a reply to this thread.