Be a Supporter!

I want to make a peer-to-peer webcam client in flash, but I was wondering what codecs I can use, as well as if there are any API's out there. In particular, the VP6 codec would be great to send stuff with, but I read that it is a licensed proprietary codec.

Response to: Protection Against Decompilation Posted May 27th, 2011 in Game Development

Those results just beg the question... How secure is the encryption of Flash files against decompilers?

At 5/27/11 03:54 AM, PSvils wrote: Please use Google before coming here...fuck.
Search for swf encryption/encoding, there are plenty of programs out there for that.

I've found that the Sothink SWF Decompiler can completely decompile .SWF files and give you all something similar to the original .FLA file. I want to publish my flash files, but is there any way to protect against this sort of decompilation? Thanks.

File I/O in C++ Posted March 9th, 2011 in Programming

When using an instance of an ifstream or similar I/O class (inheriting from ios_base), do I need to explicitly call the .close() function, or is it implicitly called when the object goes out of scope? Thanks.

Using Console And Windows Api Posted February 22nd, 2011 in Programming

I am making a program that uses the Win32 API to create a GUI, however I want to use the console for debugging. Any ideas on how I can make this work? When I call "cout", nothing happens.

Response to: Parsing a .mp3 File Posted January 3rd, 2011 in Programming

At 1/3/11 03:15 PM, GustTheASGuy wrote: APIs are provided by libraries. To read an audio file you need to decode it.

You need an audio decoding library. Go get one.

OK so my terminology was imprecise, but I already understand all of this. I tried DirectShow but it seems very unnecessarily complicated and potentially quite slow. Do you know of any libraries that would do this in a simple, efficient manner?

Parsing a .mp3 File Posted January 3rd, 2011 in Programming

I want to read in a .mp3 file as an array of samples, preferably in C or C++. Does anyone know of a code snippet or simple API to accomplish this?

Search Box Posted October 24th, 2010 in Game Development

I want to create a search box that shows all the possible results of someone's search as they're typing it. For example, if the database had 2 entries, "Apple" and "Adam", it would display both when the user types "a", but then only "Apple" when the user types "ap". Similar to Google Instant. Does anyone know how to help with this or link me to a tutorial? Thanks.

Response to: Die, Visual Basic! Posted July 11th, 2010 in Programming

At 7/11/10 06:54 AM, MiLink wrote: See? So does Visual Basic really have to die? No. Because, in my eyes now, Visual Basic is the cheap way to making some quick bucks from people who don't know how to program. But if anyone else is going to talk to you about programming/coding, you better be prepared to talk about some real programming languages 1-2GL, certain 3GL would be appropriate I suppose.

Existing as an educational tool for younger sisters is one thing, but VB has no place in the professional world. Programmers exist to make quality products... People trying to cut costs shouldn't try to use shortcuts like using a beginner's programming language, they should hire a programmer or learn a decent language if they want the job done right.

Response to: Thesis Help! (AS3) Posted July 11th, 2010 in Game Development

I'll do this project for 700, PM me if you're interested.

Response to: Die, Visual Basic! Posted July 11th, 2010 in Programming

At 7/11/10 04:57 AM, MiLink wrote:
At 7/6/10 02:15 PM, Rawnern wrote: Respect to Visual Basic!
That was the first programminglanguage I learned!
VB6 was my first programming language too, and I regret it with every drop of programming blood I have. I think everything has a twist like Visual Basic has, but they don't. Learning a 2GL is more important than eventually getting stuck with a 3GL that has an easy-to-use drag-and-drop IDE. I wish I had learned Perl, or Python, maybe even Fortran (I now know all three of those, more than others).

Visual Basic gave me a rough start to my programming path, and if I had the possibility to change it, I would. Yeah, VB isn't good for several purposes, but people like it because it's easy to use and gets the job done, and companies who hire programmers like it because the GUI/GUID always meets expectations.

I had a similar start with a calculator programming language, TI-BASIC. While I got lots of terrible coding practices from using it, the shortcomings of the language I felt it also helped my development. Coming up with clever workarounds to deficiencies in the language, optimizations to compensate for the high-level (slow) code, etc. were helpful in their own way.

Response to: main Method Equivalent? Posted July 11th, 2010 in Game Development

At 7/11/10 04:34 AM, 346 wrote:
At 7/11/10 04:28 AM, marshmallow979 wrote: I have done programming in other languages and am just getting started with AS. I was wondering if there was a certain method that Flash looked to call first, similar to the main method in Java or C++. Thanks.
flash calls things in order. put the thing you want called first first.

Lets say I was hypothetically piecing together someone else's de-compiled program... Would there be any indicators as to one file coming before another?

main Method Equivalent? Posted July 11th, 2010 in Game Development

I have done programming in other languages and am just getting started with AS. I was wondering if there was a certain method that Flash looked to call first, similar to the main method in Java or C++. Thanks.

Response to: Die, Visual Basic! Posted July 5th, 2010 in Programming

At 7/5/10 04:52 PM, Jon-86 wrote: Some things are not worth your time and as you work more with software you learn to turn down unreasonable clients.

A good point. But seriously, as a broke student with no qualifications almost anything is worth my time. People like me may contribute to the downfall of whatever... Not really what I'm thinking about though as I go from job to job. Sorry! :)

Response to: Die, Visual Basic! Posted July 5th, 2010 in Programming

At 7/4/10 11:12 PM, Jon-86 wrote: I've done 3-4 years as a freelancer and the last 2 years have been full time with a web company. If someone said "I want this done in VB" My first question would be why? Like I said before, its not their job to hammer out the technical details of a project before its even been planned.

If you want another metaphor, I wouldn't go to a contractor and tell him or her what they can use to fix my broken gas pipe. They have the skills and the expertise. They know more about it than I do. Similarly you will know more about developing software than your client dose.

The only exception being the one I have already said, is if your doing maintenance or an upgrade. Which you said you weren't.

I do know more about my client when it comes to developing software, but as with a lot of people who hire programmers, they THINK they know a bit about it. Do I put them in their place and risk losing them to another bidder who doesn't? It's a risk you take or you don't take. Your side has valid points. But mine does too. You trade quality of the job versus the likelihood of getting the job.

Response to: Die, Visual Basic! Posted July 4th, 2010 in Programming

At 7/4/10 09:44 PM, Jon-86 wrote: If it made no difference either way. It would have been better to suggest a language of your preference that suited the job better and explain your reasons for that.

They didn't lay it out like, "I was thinking you might want to try VB...", they were like, "I want this done in VB".

If it really were the case they had 10 other people or even 2 other people ready to take it on. Language would have been irrelevant they would have gone for the cheapest offer. Sound like you got shafted!

I also provided the cheapest offer. You pull out the stops to get clients when there's money on the table. Call it getting shafted, but you could also say the other programmers got shafted by not getting the job. Just curious... How much programming have YOU done under contract?

Response to: Die, Visual Basic! Posted July 4th, 2010 in Programming

At 7/4/10 08:37 PM, Jon-86 wrote: So how dose allowing a client who knows nothing about programming (the reason their asking you to do it) decide on the language you use "distinguish yourself from the rest"

The client said that while it's not necessary, they prefer it to be in VB.NET. I could take my chances not following this request or I could try to secure the deal by giving them this perk.

the work you do distinguishes you. It just doesn't make any sense at all to handi-cap yourself with a language your not comfortable using.

The work I do? I haven't done any work for these people. They have almost nothing to judge me on in this case.

And you will find IT workers were least effected during the recession.

Well for whatever reason, I was competing against ten other people for this job.

Response to: Die, Visual Basic! Posted July 4th, 2010 in Programming

At 7/4/10 07:43 PM, Jon-86 wrote: Why not mention this when I asked if they had any reason to use VB?

It's really not a good reason. The work I'm doing for them is standalone.

Response to: Die, Visual Basic! Posted July 4th, 2010 in Programming

At 7/4/10 06:55 PM, VigilanteNighthawk wrote: Is there a specific reason why they want VB? Are they using an old version of ISS that doesn't have .net support? If they do have .net support, is there any reason you can't use a better language like C#?

They use VB.NET in most of their projects, but this is a moot point considering my work for them would run independent of anything else. So I guess they just want a language that they're comfortable with, perhaps to understand and improve the code themselves? I don't know. And to Jon, in this economy you need to distinguish yourself from the rest if you want to get any sort of good contracts. Since I don't have formal qualifications, acquiescing to a stubborn client's requests is often my best option.

Response to: Die, Visual Basic! Posted July 4th, 2010 in Programming

At 7/4/10 06:55 AM, Nano256 wrote:
At 7/3/10 04:29 PM, marshmallow979 wrote: If Arnold Schwarzenegger could do it, so can I.
But you aren't Arnold Schwarzenegger

That's right. I could do twice what that girly man can.

Response to: Die, Visual Basic! Posted July 4th, 2010 in Programming

At 7/3/10 06:12 PM, Jon-86 wrote:
At 7/3/10 06:07 PM, marshmallow979 wrote: The client's the one with the money, they make the rules lol.
They tell you what they want, its up to you, how you deliver it. Letting non-technical people make technical decisions is just asking for trouble and a mistake on your part.

I'm 18. Putting up with a client's insistence on using a shitty language is a small price to pay for not having to flip burgers this summer.

Response to: Die, Visual Basic! Posted July 3rd, 2010 in Programming

At 7/3/10 05:57 PM, Jon-86 wrote:
At 7/3/10 05:10 PM, marshmallow979 wrote: I don't...
But you said we would all be using Linux :P

That was a joke

Figured I'd rant about a language a client's making me use. If you don't want to read such things, you probably shouldn't go to threads titled, "Die, Visual Basic!"
Making you use? Thats like you telling a surgeon what tools to use! Unless your integrating with an existing system then that's something you choose to do. And thats no reason to not check a thread. You could have made some vlid points for all I knew before I looked ;-)

The client's the one with the money, they make the rules lol. And I did make a few valid points about why VB sucks, at the start of the thread.

Response to: Die, Visual Basic! Posted July 3rd, 2010 in Programming

At 7/3/10 04:59 PM, Jon-86 wrote: How do you know what we would be using?

I don't...

If your offended change the channel. If you dont like it dont use it.

No need to moan!

Figured I'd rant about a language a client's making me use. If you don't want to read such things, you probably shouldn't go to threads titled, "Die, Visual Basic!"

Response to: Die, Visual Basic! Posted July 3rd, 2010 in Programming

At 7/3/10 10:56 AM, Dragonslayerk wrote: If you killed Bill Gates and made it so Visual Basic never existed, then you wouldn't want it gone and would never have gone back in time to kill Bill Gates...
so 1st of all... PARADOX!!

If Arnold Schwarzenegger could do it, so can I.

2nd... if you killed Bill Gates, we'd all be using macs :O

We'd all be using Linux!

Response to: Allowing Sites to use Webcam Posted July 3rd, 2010 in Programming

At 6/30/10 06:58 AM, Jon-86 wrote: webcams dont use a specific protocol.

Exactly. This server has some way of receiving the webcam feed. Their own special way, in this case streaming data using the RTMP protocol. Which is undocumented. And not fun to reverse engineer. This is why it makes far more sense to open the webcam up to whatever listeners ask for it, and let them deal with the transport of the data.

Response to: Audio visualizer question Posted July 3rd, 2010 in Programming

You're going to have low performance and, assuming you don't want to make the visualizer yourself, will be hard pressed to find one more for such a newly developed version of HTML. It's likely worth your time to learn enough flash to load in a visualizer someone else has made.

Die, Visual Basic! Posted July 3rd, 2010 in Programming

Just spent an hour debugging my code for an error that didn't exist. Why? Because Visual Basic's astoundingly bad compiler lacks the common sense to stop testing an if statement when a condition that MUST be met has failed. Goodbye short circuiting. This is after dealing with it changing every word I type to some obscure function, like a sadistic version MS Word's auto-correct. When I write "go", I am NOT secretly hoping you'll change it to "GopherStyleUriParser()". It's allll good though. I know my mission.

Visual. Basic. Must. Die.

I am now going to travel back in time, assassinate Bill Gates when he only had a 35% market share of the world's soul, and come back to tell you all the good news.

Response to: TI-Basic Posted June 30th, 2010 in Programming

If coding in TI-BASIC is what you want to do, go for it!

You'll be more motivated to code if you actually enjoy doing it, and coding in TIBASIC has a lot of advantages. For example, you learn to make your code efficient because the language is pretty slow, and it doesn't take long to get a finished product.

Response to: Allowing Sites to use Webcam Posted June 29th, 2010 in Programming

At 6/29/10 07:52 PM, Jon-86 wrote: You would probably write a client program that accesses the webcam, then take that streaming video and either fire it straight out a socket connection to the server. Probably not the best way or setup a UDP connection.

God only knows why you want to use VB for this? But I did find a good guide while googeling for a second http://www.wikihow.com/Stream-Your-Webca m and after skim reading it looks to be what your after!

Unfortunately the site is designed to work with a webcam via whatever protocols the webcam normally uses.

Allowing Sites to use Webcam Posted June 29th, 2010 in Programming

Is there any way I could modify my local flash settings so that sites could access my webcam through a program? Any advice, esp pertaining to VB.NET, would be great. Thanks!