Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. altendew

    Binary to Hex to Decimal.. Weird Hex Values FF FD should be 2 decimal

    Nevermind I have figured out the problem!
  2. altendew

    Binary to Hex to Decimal.. Weird Hex Values FF FD should be 2 decimal

    Correct code.. $short = @reset(unpack('n',$data)); $normal = hexdec(bin2hex(pack('n',-$short)))-1;
  3. altendew

    Binary to Hex to Decimal.. Weird Hex Values FF FD should be 2 decimal

    This is what I have to-do to get the result doesnt seem correct though.. $short = @reset(unpack('n',$data)); $normal = hexdec(bin2hex(unpack('n',-$short))); What I do is unpack the binary code as "unsigned short (always 16 bit, big endian byte order)" Then I negate it then convert it to hex...
  4. altendew

    Binary to Hex to Decimal.. Weird Hex Values FF FD should be 2 decimal

    According the Adobe Photoshop file specification they use the big endian format. So a value of 2 should be displaying as 0002 just suprised its not. Could you show me a PHP example of how to negate and subtract?
  5. altendew

    Binary to Hex to Decimal.. Weird Hex Values FF FD should be 2 decimal

    Also to follow up i noticed the 65533 I have tried it and didnt understand then I started adding more layers and looking at the hex values and noticed it was doing it backwards.
  6. altendew

    Binary to Hex to Decimal.. Weird Hex Values FF FD should be 2 decimal

    Well take a look at how its doing it backwards In hex FFFF is the highest you can go correct? Now the second highest would be FFFE then FFFD FFFF = 0 FFFE = 1 FFFD = 2 FFFC = 3 I am not sure why photoshop is doing it backwards like this?
  7. altendew

    Binary to Hex to Decimal.. Weird Hex Values FF FD should be 2 decimal

    This is kind of weird im trying to pull the number of layers from a .psd file. I get to the section where it contains the information. Its a 2 byte section (short integer) But it looks like this in hex FF FD and some how its suppose to equal 2? FF FC = 3 FF FB = 4 & so forth it seems...
  8. altendew

    ALTER TABLE -- really slow!

    persistent
  9. altendew

    ALTER TABLE -- really slow!

    Hi I really dont understand this check this out.. Field exclude has been dropped (Query took 5.8564 sec) SQL query: ALTER TABLE `_teamContest` DROP `exclude` This table has 0 rows and it takes 6 seconds to drop it??!? Why would it take so long to drop a row I am quite confised by this.
  10. altendew

    Apache Stops Responding?

    Ok I will keep you posted thank you so much for your help so far.
  11. altendew

    Apache Stops Responding?

    Actually its been running fine all day today.. I dont know why but it seems to be workiing now =/. But it did it like 20 times last night. yes we are running unix.. also I just played with exim a little but I shut exim off and the problem still occured.. but it was the only problem I was having.
  12. altendew

    Apache Stops Responding?

    Well its not in our logs because its stuck on just reading the request. Its not like somone is sending us 1,000 at once.. it sends us one request and it gets stuck on it for a long time.
  13. altendew

    Apache Stops Responding?

    <Location /statusqwerty> SetHandler server-status Order deny,allow Deny from all Allow from 67.149.101.251 </Location> Its the server status log.. but for some reason all the connection slots get filled with these reading requests and it locks everyone out.
  14. altendew

    Apache Stops Responding?

    Our Server Status is filled with... 60-17 16979 0/120/120 R 2.05 92 0 0.0 0.47 0.47 ? ? ..reading.. About 100's of those..
  15. altendew

    Apache Stops Responding?

    Hi we have a problem with our Apache server. Every once in a while our Apache server will stop responding for like 10 minutes.. its running fine but it will just not respond and load a blank page for 5 minutes and fail. All i do is restart apache and all is normal. Anyone ever heard of this...
  16. altendew

    Flash Problem w/ Frame Rate

    NVM. I figured it out! I was setting my setInterval wrong.
  17. altendew

    Flash Problem w/ Frame Rate

    Ok this is quite odd. I did what that topic said and no luck. Then I created a simple swf that moves a box from one of the screen to the other with a frame rate of 24. I tested it in my browser and it uses the 24 frame rate.. it just wont use it on my other game.. not making much sense here.
  18. altendew

    Flash Problem w/ Frame Rate

    Hi I currently set my FPS to 24. Now when I play the SWF file from my computer it runs just fine. But when I view it from Internet Explorer or FireFox the FPS is much slower like 12.. why does the browser make it go slower?
  19. altendew

    Setting SSL as Single Domain not Whole Root.

    I could do that thanks.
  20. altendew

    Setting SSL as Single Domain not Whole Root.

    But what if I want to get another domain name secure in the future? I dont like the fact that if someone did add https it will forward to another domain. If that server does not have https I do not want it to-do anything.

Part and Inventory Search

Back
Top