Search:
Type: Posts; User: Slyke
Search:
Search took 0.53 seconds.
-
Not sure if I'm using this code correctly, but it seems to only bring up a black image?
This is the code I'm using on form load:
Dim objWebCam As New WebCam
...
-
Hello,
I'm making an application that will watch the webcam for changes in the scene, and when a change is detected, it will save the image to disk (or upload it).
Issue is that I can't find a...
-
Solved it.
var rotAngle;
// Mercury
objCanvasContext.save();
tmpObj=objScreen.celestrialObjects.mercury;
rotAngle=(((2*Math.PI)/tmpObj.orbitTime)*time.getSeconds() +...
-
For a university assignment I have to create a simple interactive game.
I'm using HTML5 and the Canvas element.
In my game I've written the code for simple textboxes and buttons using...
-
Here is my code solution. I'm not sure how secure this will be (Obviously $_GET['grantaccess']=="true" is going to be changed), any comments would be appreciated:
<?php
...
-
Not sure if this is the right place for this, but I need to be able to run some PHP code before anything loads up on the server.
So far I have a .htaccess file with the following in it:
Options...
-
I'm trying to configure my Bind9 Server to resolve hostnames, lets say *.example.com (I'm using another domain with name servers setup, it's hosted at hostgator).
example.com has public DNS...
-
So I have the following function that's grabbing some data from the query string:
function getQueryData($dataToGet, $queryIndex=-1)
{
// WARNING: This needs to have inputs sanitized. Do not have...
-
That's a great idea. Will do just that.
-
Thanks heaps for that jmcilhinney. Is there any reason that Lcontrol and RControl doesn't work when using KeyCode? Otherwise your code is working perfectly.
-
Hello, I'm making an application that will execute some functions on user defined key presses.
The user needs to set the keys they want to fire the function in a textbox. I've set the textbox to...
-
I tested out this code, but it crashed when the label reached 250. I ran it again to make sure, and it worked fine for a long time (Was passing something like 800)!!! The third time I ran it, it...
-
I only need one to be available in RAM. I'm basically trying to create a program that captures a section of the screen and then zooms it to a larger (or smaller) picture as a form background (the...
-
Is there any way to clear said memory? I am not taking a full screen image, but my resolution is at 2560x1440. Based off what you've said something must be allocating memory without disposing of old...
-
I made them so that they were global variables (global as in for this form) and placed this code at the top of each of the functions:
Try
returnImage.Dispose()
Catch...
-
Yep, messing around with it now.
If I change:
Return capture
To
takePicture = capture
capture.Dispose()
In the takePicture() function, I immediately get this error...
-
I tried this code:
Private Sub tmrRefresh_Tick(sender As Object, e As EventArgs) Handles tmrRefresh.Tick
tmrRefresh.Interval = getRedrawSpeed()
resizeImage(takePicture(),...
-
Yep, I had a counter variable incrementing (That was also updating some random textbox on another form) right before the code line. It would get to 55, then the exception would come up asking if I...
-
After the 55th time my code is run, I get the following exception:
The line that triggers this is:
capture = New System.Drawing.Bitmap(area.Width, area.Height,...
-
Hello,
Given the following code:
table[city] = population;
How is it possible to get the value of population inside the overloaded function:
int& HashTable::operator[](string key);
When...
-
After messing around with it, something like this seems to work:
void* vcalloc(int size) { return (void *)size; }
But I don't understand how, or if it's correct?
-
Hello,
For a University assignment, I've been tasked to create a memory management Class for a program. We've been given a Class we are to design it from.
I've basically got this all done, but...
-
Hey monk,
Thanks for the reply! It seems you must #define on every page that wants it, it, including a page doesn't carry over its defines. All fixed though =).
-
I have the following code on my main.cpp:
#ifdef _WIN64
#define hOS 1
#elif _WIN32
#define hOS 1
#elif __APPLE__
#define hOS 2
#elif __linux
-
Found one and can confirm it's working:
-
Hello,
I'm trying to get some PHP code matching what the Google Authenticator on my phone outputs. I'm using HOTP (Once I get this working, I'd image matching TOPT will be easy).
For a key of:...
-
Figured it out! Wasn't as complex as I made it out to be XD.
-
Hello,
I have an array that looks like this:
Array
(
[0] => Array
(
[bandwidthlocalTime] => 1349617319
[bandwidthTx] => 6
-
-
So, you want to add a column, depending on how many columns the database returns? Basically your code write as many columns as the database returns.
This code may point you to the right track:
...
-
Was wondering if anyone can point me to a resource (or even better, examples) of how to create a Presentation in Google Docs using PHP?
Basically, I want to create a presentation in my drive,...
-
Why would you want to do that?
-
Make sure it's listening on all IPs (Or at least, the network it's on)?
-
This is an excellent script. I will use it to backup some modem statistics I've been logging!
-
This is pretty sweet from what I can see. Will check it out soon!
-
Yeah, but this is a good way to manage who can see which passwords, and to easily update changed passwords across a team. If a password is leaked from a bad "apple", can be changed, the "bad apple"...
-
I should have mentioned that the encryption needs to be reversible.
Basically, this database is for storing say, root passwords into a database. Only certain people should be able to view certain...
-
I want to create a script that will securely store passwords, to create a sort of... password database.
Basically, a user will have a list of passwords that they can either read, write, and share...
-
Can you show us some code? There's many things that can cause this.
-
I think dropbox uses their own type of file transfer protocol, which means you can't (easily) do it in PHP.
|
Click Here to Expand Forum to Full Width
|