• Web Dev Questions That Don't Need Their Own Thread v4
    5,001 replies, posted
[QUOTE=eternalflamez;40994847] Howcome you know no Javascript but your teacher makes you use it anyway?[/QUOTE] Because he wanted us to check the web, I just dont want to take a random script, I want to know how they work and how to do it myself
Okay, I'm really quite new to all of this so bear with me if im being retarded or something. My question is, how would I go about making a webpage that captures and saves audio recorded from the client's webcam(or other sound input device)? What I had in mind was that I would have a button to start/stop recording, and then after the clip has been recorded, the clip could be send off to its destination etc.
How do I make [html]<form name="myForm" action="demo_form.asp" onsubmit="return validateForm();" method="post"> Email: <input type="text" name="email"> <input type="submit" value="Submit"> </form>[/html] Redirect to a picture instead of "demo_form.asp"? [editline]12th June 2013[/editline] do I just replace it with the img adress? [editline]12th June 2013[/editline] and yes its w3 because Im really terrible and insecure about everything that has to do with html and java
[QUOTE=Killdozer;41000374]Okay, I'm really quite new to all of this so bear with me if im being retarded or something. My question is, how would I go about making a webpage that captures and saves audio recorded from the client's webcam(or other sound input device)? What I had in mind was that I would have a button to start/stop recording, and then after the clip has been recorded, the clip could be send off to its destination etc.[/QUOTE] Here's some ideas: - [url]http://soundcloud.com/101/dropbox[/url] - [url]http://vocaroo.com/?widgets[/url] - [url]http://www.voice-it.biz/homepage[/url] - [url]http://www.speakpipe.com[/url] - [url]http://webmasters.stackexchange.com/questions/17521/recording-audio-from-webpage[/url] - [url]http://www.twilio.com/docs/howto/twilio-client-record[/url] [QUOTE=Rankzerox;41000883]How do I ... Redirect to a picture?[/QUOTE] One option is to place a redirect in the demo_form.asp file so that it forwards the visitor on to the image after receiving the submitted data from the form. This might work... replace YOUR_URL_HERE with either a full url like "http://example.com" or a relative url like "thankyou.asp" - In your case grab the URL of the image you want to send people to and paste it in there. [html]<form name="myForm" action="demo_form.asp" onclick="return validateForm();" onsubmit="window.location.href='YOUR_URL_HERE';" method="post"> Email: <input type="text" name="email"> <input type="submit" value="Submit"> </form>[/html] And CONGRATS for doing the HTML stuff even though you're not 100% comfortable with it. That's awesome!
[QUOTE=Rankzerox;40995494]I kinda wanted to look like it was really shitty, so it was funny, but its not fun when its beyond not-fun-shit [editline]11th June 2013[/editline] Im using Komodo so it changes the names of my things when I ctrl-c them for some odd reason, its supposed to make the image be in the center of the .main [editline]11th June 2013[/editline] I would love to remove them somehow but Im just so bad at this [editline]11th June 2013[/editline] Arrrgh I dont even know what type of JQuery Im supposed to download :([/QUOTE] Well, if you ever need a break tag it should just be <br> And [URL="http://jquery.com/"]jquery[/URL] (I enjoy using [URL="http://jqueryui.com/"]jquery UI[/URL])
-snip-
So I am looking to get something out of a database. I either have a userID or itemID. What would I do if I wanted to fetch something with either one of them, or both?
SELECT * from table WHERE userID = $id ?
[QUOTE=pinecleandog;41006928]SELECT * from table WHERE userID = $user_id OR itemID = $item_id[/QUOTE] Edited your post, since I guess that will do better.
[QUOTE=eternalflamez;41008158]Edited your post, since I guess that will do better.[/QUOTE] I think I will try that tomorrow then. (I actually feel bad because I remembered you could OR in SQL on the train home.)
This question might be a bit off-topic, but since it's related to a web site I'm running, I thought I could post it here. [HR][/HR] I've been running a pastebin site called BitBin for a while: [url]http://bitbin.it[/url] It's basically like a normal pastebin-type site except that it pays out in bitcoins and has optional paste encryption. However, today I got an e-mail from a person claiming to represent a capital fund of sorts. [QUOTE]Hello Janne, I’m writing to you from e.ventures, an early-stage venture capital fund based in San Francisco with offices in Germany, Russia, China, Japan and Brazil. You might know some of our portfolio companies, which include Groupon, Angie’s List, nginx and del.icio.us. BitBin is growing rapidly and one of our partners, REDACTED was impressed by your product and asked me to find out more about the team behind it and the company's financing plans. Could I ask you to make time for a brief call in the next couple of days? When would be good for you? Kind regards, REDACTED[/QUOTE] Their website is here: [url]http://www.eventures.vc/[/url] I really have no idea how to react to this. Up to this point BitBin has been just a side project and having a capital fund contact me sounds both exciting and scary. So, how should I continue from here? Because I have absolutely no experience about this kind of stuff.
I've got my site to appear in google, but there's no text from the site shown under it. How can I sort that out?
You need a meta description tag, google that and you'll find all the info you need :)
[QUOTE=KmartSqrl;41011219]You need a meta description tag, google that and you'll find all the info you need :)[/QUOTE] Thanks for your help! :smile: It was difficult to find out what I needed because anything I googled just turned up people doing SEO.
[QUOTE=chaz13;41011278]Thanks for your help! :smile: It was difficult to find out what I needed because anything I googled just turned up people doing SEO.[/QUOTE] Then perhaps this will help: [url]http://static.googleusercontent.com/external_content/untrusted_dlcp/www.google.com/en//webmasters/docs/search-engine-optimization-starter-guide.pdf[/url] It's what I used to learn it.
[QUOTE=Killdozer;41000374]How would I go about making a webpage that captures and saves audio recorded from the client's webcam(or other sound input device) and saves it to the server?[/QUOTE] [QUOTE=Lev;41001322]Here's some ideas: [/QUOTE] I looked at those and they seem to provide neat objects that I can embed in my webpage, but I am more interested in how I would make my own version of what they are doing. I noticed that a lot of them integrate a .swf or .js(Java Script?) file. Do I need a special compiler to go ahead? [editline]12th June 2013[/editline] Alright so I'm hearing that javascript doesn't record microphone input, so I'll have to use Flash then, right? Any alternatives?
[QUOTE=Matoking;41010084]I really have no idea how to react to this. Up to this point BitBin has been just a side project and having a capital fund contact me sounds both exciting and scary. So, how should I continue from here? Because I have absolutely no experience about this kind of stuff.[/QUOTE] DUDE CONGRATS!! I bet this is super exciting. You need to post your questions on Hacker News since there's a lot of people with startup & investing experience over there: [url]https://news.ycombinator.com[/url] Good luck!!! [QUOTE=Killdozer;41013969]Alright so I'm hearing that javascript doesn't record microphone input, so I'll have to use Flash then, right? Any alternatives?[/QUOTE] Yep your only options right now are Flash, Java, ActiveX or build your own browser extension. WebRTC may be another option, although it has limited browser support: [url]http://www.webrtc.org[/url] Once browsers fully implement the Stream API you'll be (theoretically) able to capture full audio/video with just JS. I think your best bet is to write as much as possible in Javascript, and the rest in Flash. Keep the Flash to a minimum.
[QUOTE=Lev;41014297]Yep your only options right now are Flash, Java, ActiveX or build your own browser extension. WebRTC may be another option, although it has limited browser support: [url]http://www.webrtc.org[/url] Once browsers fully implement the Stream API you'll be (theoretically) able to capture full audio/video with just JS. I think your best bet is to write as much as possible in Javascript, and the rest in Flash. Keep the Flash to a minimum.[/QUOTE] Actually I found this [URL="https://code.google.com/p/wami-recorder/"]WAMI[/URL] project that should work just fine for me. I'm trying to mount it on my own server right now.
[QUOTE=Killdozer;41014729]Actually I found this [URL="https://code.google.com/p/wami-recorder/"]WAMI[/URL] project that should work just fine for me. I'm trying to mount it on my own server right now.[/QUOTE] Sweet find! That looks like a great interim solution until browser devs get their HTML5 spec 100% implemented.
[del]So I have an if and an else in PHP, after the if is run I want to go to the else, and the other way around. How would I do that?[/del] [editline]if[/editline] Nevermind. I managed to fix it with a header(Location: );
I've got a homepage; [url]www.skymercs.com[/url] And the background fits nicely and doesn't stretch the page. However, on another page using the same code to display the background, it seems to stretch the page: [url]http://www.skymercs.com/planebuilder.html[/url] I assume it's because of the html5 canvas, but I'm not 100% why. Could anyone shed any light on it? Thanks for all the help! :smile: EDIT: Sorted :smile:
[QUOTE=chaz13;41018797]I've got a homepage; [url]www.skymercs.com[/url] And the background fits nicely and doesn't stretch the page. However, on another page using the same code to display the background, it seems to stretch the page: [url]http://www.skymercs.com/planebuilder.html[/url] I assume it's because of the html5 canvas, but I'm not 100% why. Could anyone shed any light on it? Thanks for all the help! :smile:[/QUOTE] Eh? I see the background as CSS on one page, and <img> on another. And why are you using a class on your <body>?
[QUOTE=gokiyono;41018824]Eh? I see the background as CSS on one page, and <img> on another. And why are you using a class on your <body>?[/QUOTE] Ah that actually cleared it up for me, I'd copied the code from an older version of the page to the plane building one and didn't link to the style sheet, whoops. I'll sort out the body class too, thanks.
[QUOTE=chaz13;41018881]Ah that actually cleared it up for me, I'd copied the code from an older version of the page to the plane building one and didn't link to the style sheet, whoops. I'll sort out the body class too, thanks.[/QUOTE] Now that that is out of the way, [URL="http://www.youtube.com/watch?v=KZr_4XmB6uA"]get this[/URL], the colours are... Well, maybe I am colourblind, hehe
[QUOTE=gokiyono;41018952]Now that that is out of the way, [URL="http://www.youtube.com/watch?v=KZr_4XmB6uA"]get this[/URL], the colours are... Well, maybe I am colourblind, hehe[/QUOTE] Oh wow. That's all pretty messed up... web-dev just isn't for me :v:
[QUOTE=chaz13;41018964]Oh wow. That's all pretty messed up... web-dev just isn't for me :v:[/QUOTE] You will eventually get it. Trust me, I was about to quit when I somehow made HTML that only worked on the Apple OS
Any webdevs here that wanna work on a currently private but soon to be open source project which involves Moodle? I'm mainly looking for someone to fix this god damn frontend but backend help would also be greatful as this code is a mess :( It isn't moodle, it just interfaces with Moodle
[QUOTE=jamie1130;41021743]Any webdevs here that wanna work on a currently private but soon to be open source project which involves Moodle? I'm mainly looking for someone to fix this god damn frontend but backend help would also be greatful as this code is a mess :( It isn't moodle, it just interfaces with Moodle[/QUOTE] Yeah, hit me up on PM with details we'll see what can be done.
Never mind it was resolved.
how do I fix this with mongo. Fatal error: Uncaught exception 'MongoConnectionException' with message 'Failed to connect to: localhost:27017: Permission denied' in /var/www/html/MongoDB/mongoDBTest.php:39 Stack trace: #0 /var/www/html/MongoDB/mongoDBTest.php(39): MongoClient->__construct() #1 {main} thrown in /var/www/html/MongoDB/mongoDBTest.php on line 39
Sorry, you need to Log In to post a reply to this thread.