Search:

Type: Posts; User: Slyke

Page 1 of 13 1 2 3 4

Search: Search took 0.26 seconds.

  1. Replies
    7
    Views
    1,523

    VS 2015 Re: How to get webcam feed?

    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

    ...
  2. Replies
    7
    Views
    1,523

    VS 2015 How to get webcam feed?

    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...
  3. Replies
    1
    Views
    1,256

    Re: HTML5 Canvas Mouse Over Object

    Solved it.



    var rotAngle;
    // Mercury
    objCanvasContext.save();
    tmpObj=objScreen.celestrialObjects.mercury;
    rotAngle=(((2*Math.PI)/tmpObj.orbitTime)*time.getSeconds() +...
  4. Replies
    1
    Views
    1,256

    [RESOLVED] HTML5 Canvas Mouse Over Object

    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...
  5. Re: Execute PHP code before any files using .htaccess

    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
    ...
  6. Execute PHP code before any files using .htaccess

    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...
  7. Replies
    1
    Views
    1,188

    Bind9 DNS Question

    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...
  8. Replies
    0
    Views
    737

    Normal or arrayed query string.

    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...
  9. Replies
    4
    Views
    5,309

    VS 2013 Re: Capture key press for hotkey

    That's a great idea. Will do just that.
  10. Replies
    4
    Views
    5,309

    VS 2013 Re: Capture key press for hotkey

    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.
  11. Replies
    4
    Views
    5,309

    VS 2013 [RESOLVED] Capture key press for hotkey

    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...
  12. Replies
    18
    Views
    4,109

    Re: PixelFormat.Format32bppArgb causing exception

    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...
  13. Replies
    18
    Views
    4,109

    Re: PixelFormat.Format32bppArgb causing exception

    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...
  14. Replies
    18
    Views
    4,109

    Re: PixelFormat.Format32bppArgb causing exception

    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...
  15. Replies
    18
    Views
    4,109

    Re: PixelFormat.Format32bppArgb causing exception

    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...
  16. Replies
    18
    Views
    4,109

    Re: PixelFormat.Format32bppArgb causing exception

    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...
  17. Replies
    18
    Views
    4,109

    Re: PixelFormat.Format32bppArgb causing exception

    I tried this code:
    Private Sub tmrRefresh_Tick(sender As Object, e As EventArgs) Handles tmrRefresh.Tick

    tmrRefresh.Interval = getRedrawSpeed()
    resizeImage(takePicture(),...
  18. Replies
    18
    Views
    4,109

    Re: PixelFormat.Format32bppArgb causing exception

    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...
  19. Replies
    18
    Views
    4,109

    PixelFormat.Format32bppArgb causing exception

    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,...
  20. Replies
    0
    Views
    788

    Trying to understand some code?

    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...
  21. Replies
    2
    Views
    1,052

    Re: Void Pointer Function type

    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?
  22. Replies
    2
    Views
    1,052

    [RESOLVED] Void Pointer Function type

    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...
  23. Re: #define not working between includes

    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 =).
  24. [RESOLVED] #define not working between includes

    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
  25. Re: PHP code not matching Google Authenticator output.

    Found one and can confirm it's working:
  26. [RESOLVED] PHP code not matching Google Authenticator output.

    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:...
  27. Replies
    2
    Views
    1,450

    Re: Rearranging Multidimensional Array

    Figured it out! Wasn't as complex as I made it out to be XD.
  28. Replies
    2
    Views
    1,450

    [RESOLVED] Rearranging Multidimensional Array

    Hello,

    I have an array that looks like this:

    Array
    (
    [0] => Array
    (
    [bandwidthlocalTime] => 1349617319
    [bandwidthTx] => 6
  29. Replies
    6
    Views
    2,169

    Re: create report with a dynamic column.

    ....
  30. Replies
    6
    Views
    2,169

    Re: create report with a dynamic column.

    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:

    ...
  31. Replies
    1
    Views
    1,185

    Generate Google Docs Files In PHP

    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,...
  32. Replies
    4
    Views
    6,816

    Re: how can i write in sector 0 on hard disk

    Why would you want to do that?
  33. Replies
    2
    Views
    1,293

    Re: xamp on domain server

    Make sure it's listening on all IPs (Or at least, the network it's on)?
  34. Replies
    10
    Views
    38,926

    Re: Backup a Mysql database (php 5.3.0)

    This is an excellent script. I will use it to backup some modem statistics I've been logging!
  35. Replies
    1
    Views
    11,951

    Re: GDLib Graphing Class

    This is pretty sweet from what I can see. Will check it out soon!
  36. Replies
    6
    Views
    1,628

    Re: Secure way to store passwords.

    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"...
  37. Replies
    6
    Views
    1,628

    Re: Secure way to store passwords.

    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...
  38. Replies
    6
    Views
    1,628

    Secure way to store passwords.

    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...
  39. Re: How do you erase the echo outputs so they don't add up all the time?

    Can you show us some code? There's many things that can cause this.
  40. Re: how to upload a remote file to dropbox cloud using php?

    I think dropbox uses their own type of file transfer protocol, which means you can't (easily) do it in PHP.
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width