User Profile

Collapse

Profile Sidebar

Collapse
Osiris Dragon
Osiris Dragon
Last Activity: Jun 12 '14, 01:45 PM
Joined: Aug 9 '11
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • HTML5 - Copying image taken from <input> to <img>

    Hi,
    I am trying to take a photo using HTML5 input field, and need to move it to a img tag as below:

    Code:
    <p>Capture Image: <input type="file" accept="image/*" id="f_capture" capture="camera"/> </p>
    
    <img id="imageholder" src="" />
    In Chrome (for testing), when I try to
    $("#f_capture") .val() evaluates...
    See more | Go to post

  • Osiris Dragon
    replied to Why does this value return true?
    in PHP
    Cheers guys. Type casting it fixed it.

    @Dormilich, thanks for the explanation. Never thought hex was in the picture
    See more | Go to post

    Leave a comment:


  • Osiris Dragon
    started a topic Why does this value return true?
    in PHP

    Why does this value return true?

    Hi All, when running this in php, it returns true.

    Which doesn't make sense as 800 is smaller than

    Code:
    	if(0124 >= 0800)
    		{
    			echo "this doesnt makes sense";	
    		}
    Not sure why this is the case. However getting rid of the 0 in front fixes it. But I need to keep it as I am comparing time. EG: 0124 is greater than 0800 (8am) etc.

    Can...
    See more | Go to post

  • Osiris Dragon
    replied to How does this piece of code work?
    in PHP
    Thanks Phillis,

    I fiddled around a bit more. The fopen bit is irrelevant. I can remove it will still work fine.

    I think its got to do with the command print

    The code is:
    Code:
    <html>
    <head>
    	<title>Some title</title>
    </head>
    
    <body>
    <h1>A title </h1>
    
    <?php 
    		$content="<html><p><h2>some
    ...
    See more | Go to post

    Leave a comment:


  • Osiris Dragon
    started a topic How does this piece of code work?
    in PHP

    How does this piece of code work?

    Hi Guys,

    I wrote a piece of code by piecing together bits from tutorials on fopen and outputting it in word doc.

    But looking back I don't get how it works. Here is the code:

    Code:
    <html>
    <head>
    	<title>Some title</title>
    </head>
    
    <body>
    <h1>A title </h1>
    
    <?php 
    		$content="<html><p><h2>some
    ...
    See more | Go to post

  • Osiris Dragon
    replied to Time datatype in Oracle Database
    Well I was using Oracle SQL developer to enter values (not using the INSERT query) manually in a data entry table just like in a spreadsheet.

    And I get the error why I try to commit the changes:

    Row 1: ORA-01847: day of month must be between 1 and last day of month
    ORA-06512: at line 1


    By formatting I meant tweaking the TIMESTAMP datatype in ALTER TABLE statement in such a way so I can...
    See more | Go to post

    Leave a comment:


  • Osiris Dragon
    started a topic Time datatype in Oracle Database

    Time datatype in Oracle Database

    Hi Guys,

    I have a table where I where I can enter date in HH:MM format.

    I have already created the table as:

    Code:
    CREATE TABLE "test"."SLA"
      (
        "SLAID"    NUMBER(10,0) NOT NULL ENABLE,
        "SLALEVEL" VARCHAR2(200 BYTE) NOT NULL ENABLE,
        "WEEKDAY_START_TIME" TIMESTAMP (6),
        "WEEKDAY_END_TIME" TIMESTAMP
    ...
    See more | Go to post

  • Osiris Dragon
    replied to Creating a schema
    Thanks. I missed the part

    This statement does not actually create a schema. Oracle Database automatically creates a schema when you create a user (see CREATE USER ).


    when I first read the documentation on how to create a schema.

    But its just seems bizarre. if it does not create a schema, isn't the clause "create schema" a bit misleading? Besides if I wanted to create tables, I could just do so with...
    See more | Go to post

    Leave a comment:


  • Osiris Dragon
    started a topic Creating a schema

    Creating a schema

    I am trying to create a schema using SYS as SYSDBA account.

    Code:
    create schema authorization testschema
    create table timsheet(tid INTEGER PRIMARY KEY)


    Error at Command Line:1 Column:0
    Error report:
    SQL Error: ORA-02421: missing or invalid schema authorization identifier
    02421. 00000 - "missing or invalid schema authorization identifier"
    *Cause: the schema...
    See more | Go to post

  • Osiris Dragon
    started a topic The -p in MYSQL

    The -p in MYSQL

    Guys I was trying to take a tutorial in MSYQL.

    I changed my root password, however when I try:

    > mysql -u root

    I can still login without any password.

    However if I do:

    > mysql -u root -p
    Enter Password:

    Then I get prompted, my question is, what is the -p for? And how can I stop root signing in by omitting "-p" as arguments?
    See more | Go to post
No activity results to display
Show More
Working...