Jump to content

wangyuji431

Member
  • Posts

    380
  • Joined

  • Last visited

Reputation Activity

  1. Like
    wangyuji431 reacted to jaslion in Why can my wireless mouse wake up my laptop?   
    Depends tho most decent mice should not wake up a sleeping laptop. However there are multiple sleep modes. Standby, sleep and deep sleep. A mouse input should wake a standby system but not a sleep or deep sleep (sleep could happen some mice trigger it but deep sleep should not). The share mouse software might be forcing the laptop in standby instead of sleep so it can keep sending information to the system.
  2. Agree
    wangyuji431 got a reaction from Trilex in Purchasing Used Intel Xeon QS (Quaification Sample) Chips or ES (Engineering Sample) Chips?   
    I don't think it's legal to sell your engineering sample, otherwise Linus wouldn't need our support other than for views...
  3. Like
    wangyuji431 reacted to LogicalDrm in Is my Hyper 212 evo compatible with a Gigabyte - X470 AORUS ULTRA?   
    Aftermarket coolers use their own mounting. Most of them. If you would pick something that uses push-pins, that would fit right to stock bracket, like stock cooler. But bigger towers require backplate to mount securely.
  4. Like
    wangyuji431 reacted to Meag in Is my Hyper 212 evo compatible with a Gigabyte - X470 AORUS ULTRA?   
    My Hyper 212 evo didn't come with an Am4 bracket, if it doesn't then you can contact cooler-master and they will likely ship you one, free of charge, providing you have proof of purchase.
  5. Like
    wangyuji431 reacted to DocSwag in Is my Hyper 212 evo compatible with a Gigabyte - X470 AORUS ULTRA?   
    I believe the 212 should have am4 brackets. You might want to consider a different mobo though, the ultra gaming doesn't have good vrms
  6. Informative
    wangyuji431 reacted to ThorArise in Make Image Pixel by Pixel   
    Maybe you want to look into the Opencv library for C/C++ which offers some easy way to manipulate pictures pixel by pixel. 
  7. Informative
    wangyuji431 reacted to RedWulf in Make Image Pixel by Pixel   
    I know java has a way, look up the iron-puzzle.png and go from there, python does as well with the PIL module
  8. Informative
    wangyuji431 reacted to mariushm in Make Image Pixel by Pixel   
    What exactly is the problem?
     
    For a 24 bit image, you have 3 bytes for each pixel , red green and blue ... you just define an array of bytes in memory , three for each pixel.
    When you're done... just save those bytes into a particular file format.
    BMP is the simplest, you just have some headers and then basically you dump the bytes in the file.. just have to keep in mind with BMP files the last line in the image is saved first (you go from bottom to top)
    See http://www.fileformat.info/format/bmp/egff.htm or  http://www.digicamsoft.com/bmp/bmp.html  or https://en.wikipedia.org/wiki/BMP_file_format for very detailed information about bmp file format.
     
    PNG files are also super simple, but you'd have to add crc32 and zlib libraries to compress the bytes when saving to file.
     
    Windows API also has some image handling functions but you don't have to use them. See for example https://msdn.microsoft.com/en-us/library/windows/desktop/dd183388(v=vs.85).aspx
     
  9. Agree
    wangyuji431 reacted to prolemur in Make Image Pixel by Pixel   
    It is super easy in Java
     
    BufferedImage img = ImageIO.read(new File("image-orginal")); // change pixels in here with img.setRGB(x, y, rgb) ImageIO.write(img, "png", new File("image-final.png"));  
  10. Informative
    wangyuji431 reacted to Nineshadow in Make Image Pixel by Pixel   
    You could do it yourself If you used a really simple format. Or you could use a library like libpng.
  11. Informative
    wangyuji431 reacted to straight_stewie in Make Image Pixel by Pixel   
    You can totally do that in any Touring Complete language! Uncompressed image formats are actually super simple and usually only have 3 bytes per pixel, plus an image header. 

    A bitmap is super simple, as it is really just an array of arrays where each sub array is 3 bytes and represents one pixel. The jagged array is then preceded by a a header which describes image parameters necessary for decoding and displaying the image.

    Here's some light reading as a start: BMP Image Format
  12. Agree
    wangyuji431 reacted to mariushm in Make Image Pixel by Pixel   
    No, PNG images are compressed using the DEFLATE algorithm  (available in the zlib library , similar to zip compression, very common and popular, used to compress website pages on the fly while sending to users' browsers, also used in 7z and other file compressors): http://www.libpng.org/pub/png/spec/1.2/PNG-Compression.html
     
    Besides BMP, the only easier file format I could think of that's also somewhat well known and decodable by image viewers is TGA  (Truevision Targa). It's basically a header and then a dump of bytes with the image contents (uncompressed or compressed, as configured by programmer in the header)
    Here's the format information : http://www.paulbourke.net/dataformats/tga/
     
    BMP has some quirks which makes is slightly annoying. For example, besides the fact that you have to save to file the last horizontal line and then move up towards the first line, for each horizontal line your program must write to disk a quantity of bytes that's multiple of 4. So for example, if your image is 24 bit rgb and it's 301 pixels wide, that means for each line you'd write 301 x 3 bytes per pixel = 903 bytes but this is not a multiple of 4, so you'd write an extra byte to have a multiple of 4 (226 x 4 = 904 bytes). It's not rocket science, but it's yet another quirk which has to be kept track of, and naturally these extra bytes have to be added to the image size specified in the bmp header and so on.
     
  13. Like
    wangyuji431 reacted to Syntaxvgm in This email from Apple isn't legit, is it?   
    Fake and gay
     
     
     
    the email not your post
  14. Agree
    wangyuji431 got a reaction from shadowbyte in Makes no sense...   
    The fx 9590 is based on (i think) piledriver architecture. This architecture is less efficient than that of intel's lineup of devil's canyon cpus, which use both hyperthreading, more efficient cpu construction (less electricity and more cashmoney) and more efficiency per ghz.
  15. Like
    wangyuji431 reacted to tt2468 in A 3-core virtual machine   
    The guest vm will only see 3 cores, even though the host has more than 3.
  16. Funny
    wangyuji431 got a reaction from casbro11 in Audio coming from motherboard?   
    The monitor may have audio with it.
    Check to see if that is the case.
    To redirect audio to your earbuds, simply right click on the audio on your bottom right hand side corner of your screen, and select playback devices.
    From there, you can select your earbuds
    -tips fedora
  17. Agree
    wangyuji431 reacted to OsuMasterz in Audio coming from motherboard?   
    only if he has true/tru audio or Nvidia's HDMI audio support
    or even if he is plugged in through HDMI or DisplayPort
  18. Informative
    wangyuji431 reacted to CNY RMB in Linux won't install on my Windows tablet.   
    Is there any way for you to enter the bios/enter the boot menu? Maybe you can choose to boot from the USB from there.
     
    Also, what kind of tablet is it? If it is one of the Chinese Dual booting Android and WIndows tablets it will be quite difficult afaik, as they require a custom bios.
  19. Funny
    wangyuji431 got a reaction from Joeyfla95 in Audio coming from motherboard?   
    The monitor may have audio with it.
    Check to see if that is the case.
    To redirect audio to your earbuds, simply right click on the audio on your bottom right hand side corner of your screen, and select playback devices.
    From there, you can select your earbuds
    -tips fedora
  20. Informative
    wangyuji431 reacted to Enderman in Someone might be buying my 390x, what equal performance lower TDP card should I go for?   
    a 1070
    and its more powerful than a 390x, with much lower TDP
  21. Agree
    wangyuji431 got a reaction from burnttoastnice in [Resolved] What is "LAN Option ROM"?   
    I think it's boot from lan, which is unnecessary for the most part.
     
     
  22. Informative
    wangyuji431 got a reaction from Rektum in [Resolved] What is "LAN Option ROM"?   
    I just searched it up, and my original statement yields true
     
  23. Funny
    wangyuji431 got a reaction from Big-G in Dual 980's or Single 1070?   
    the 980 cf would probably be better
    however, cf is usually lackluster across games, so i would personally sell the 980 and go for gold
  24. Informative
    wangyuji431 got a reaction from Rektum in [Resolved] What is "LAN Option ROM"?   
    I think it's boot from lan, which is unnecessary for the most part.
     
     
  25. Like
    wangyuji431 got a reaction from Aytex in Dual 980's or Single 1070?   
    Whoops 
    I guess all that rx 480 hype is getting to me
    thanks tho
×