Jump to content

Unimportant

Member
  • Posts

    1,230
  • Joined

  • Last visited

Reputation Activity

  1. Like
    Unimportant got a reaction from Levent in worn mouse feet "fix" ?   
    Glass fabric teflon tape:
     
    http://www.shop.hightechflon.com/ptfe-teflon-tape-selfadhesive/Page-16-2-96-112.aspx
     
    Amazingly frictionless material. It's costly but you only need a tiny piece.
    If you can find someplace that'll sell you a small strip you should be set.
  2. Agree
    Unimportant got a reaction from bob345 in Replacement volume potentiometer for panasonic sg-50   
    Contact cleaner (applied internally) + 5 minutes of turning the dial from one end to the other might do the trick also.
     
    If not, take it apart like @Silverwolf_7 said and, if the part is no longer beeing made, find the closest match on www.farnell.com
  3. Agree
    Unimportant got a reaction from rhyseyness in What an odd repair. $2,500 laptop killed by a tiny ceramic capacitor.   
    Back when i still had my repair business we used a bench power supply limited to a current that would not damage anything and a infrared camera.
     
    Those SMD caps light up like a christmas tree with only a few 100mA when they are shorted out.
     
    Nice board level repair, respect, any muppet can swap a board, THIS is repair.
  4. Agree
    Unimportant got a reaction from iamdarkyoshi in What an odd repair. $2,500 laptop killed by a tiny ceramic capacitor.   
    Back when i still had my repair business we used a bench power supply limited to a current that would not damage anything and a infrared camera.
     
    Those SMD caps light up like a christmas tree with only a few 100mA when they are shorted out.
     
    Nice board level repair, respect, any muppet can swap a board, THIS is repair.
  5. Agree
    Unimportant got a reaction from straight_stewie in Visual STudio and C programming   
    Also note that C and C++ are not the same language. (And no, C is not just a subset of C++). Visual C++ is not very good at strict C. If you want to learn ISO C99 i'd suggest another compiler.
  6. Agree
    Unimportant got a reaction from RangerLunis in Resources for beginning C++ programming?   
    Playing uncompressed audio like WAVE files is so simple it can hardly be called a 'project'.
    Playing something like MP3 is more about the math and algorithms like Huffman then knowing the language.
     
    I'd suggest learning the language with a subject you already fully understand so you can focus on learning the language rather then having to study the subject.
  7. Agree
    Unimportant got a reaction from ClobberXD in How to extract exactly n-bits from file?   
    It's an example, nothing more. It's a useless 'compression' algorithm anyways for real world applications. A real compressor would be lossless AND take any data, not just text.
     
    It shows the byte packing tough, which seems to me to be the part he's struggling with, so it serves it's purpose.
  8. Like
    Unimportant got a reaction from Frode in Arduino programming   
    While the delay function will indeed take a unsigned long 32 bit value, the temporary variables "timeup" and "timeupa" are of type int which is 16 bit on arduino.
     
    because of this, the expression "timeup * 1000" is also of type int. If the result is higher then 32767 it will overflow into a negative value and the conversion to unsigned long will result in a very high value, causing it to look like it's no longer responding.
     
    change "int timeup = 30" to "unsigned long timeup = 30" and "int timeupa = timeup * 1000" to "unsigned long timeupa = timeup * 1000".
  9. Agree
    Unimportant got a reaction from Pinguinsan in Arduino programming   
    There is agreement. The standard states that an int must hold at minimum +32767 to -32767 which requires 16 bits. There is however no upper limit on the size. Since arduino (Atmel AVR) is a 8 bit machine they had to make it 16-bit since 8-bit is not allowed.
     
    Most compilers implement a int the size of a CPU register. Which is actually very useful. Whenever you use a int you can be pretty sure it is of native size to the target machine and thus efficient. Thus, whenever you need a counter or loop index that you can be sure of will fit in the range +32767 to -32767, make it a int so the target CPU can handle it efficiently.
     
    If you need fixed sizes use the header stdint.h which defines fixed size data types like "uint16_t" and so on.
  10. Agree
    Unimportant got a reaction from Pinguinsan in Arduino programming   
    While the delay function will indeed take a unsigned long 32 bit value, the temporary variables "timeup" and "timeupa" are of type int which is 16 bit on arduino.
     
    because of this, the expression "timeup * 1000" is also of type int. If the result is higher then 32767 it will overflow into a negative value and the conversion to unsigned long will result in a very high value, causing it to look like it's no longer responding.
     
    change "int timeup = 30" to "unsigned long timeup = 30" and "int timeupa = timeup * 1000" to "unsigned long timeupa = timeup * 1000".
  11. Informative
    Unimportant got a reaction from vorticalbox in Arduino programming   
    There is agreement. The standard states that an int must hold at minimum +32767 to -32767 which requires 16 bits. There is however no upper limit on the size. Since arduino (Atmel AVR) is a 8 bit machine they had to make it 16-bit since 8-bit is not allowed.
     
    Most compilers implement a int the size of a CPU register. Which is actually very useful. Whenever you use a int you can be pretty sure it is of native size to the target machine and thus efficient. Thus, whenever you need a counter or loop index that you can be sure of will fit in the range +32767 to -32767, make it a int so the target CPU can handle it efficiently.
     
    If you need fixed sizes use the header stdint.h which defines fixed size data types like "uint16_t" and so on.
  12. Like
    Unimportant got a reaction from ClobberXD in How do I get CPU, mobo, RAM, GPU, PSU info with C++?   
    I'd like to correct myself here. After some reading up it seems CPUID can return a string with the processor name using subfunctions 0x80000002, 0x80000003, 0x80000004. Each subfunction returns 16 bytes of the string in eax, ebx, ecx and edx, for a total of 48 bytes.
  13. Agree
    Unimportant reacted to mariushm in How to extract exactly n-bits from file?   
    The computer work with bytes, not bits. Get this in your head. A byte is the minimum possible to read or write. 
    I've said it in a previous post, you need to learn and understand that how data is actually stored in a file doesn't have to be exactly how you keep the data in memory and how you work with the data.
     
    You don't read 5 bits, you don't even read one byte at a time from the file, it's not efficient. 
    You need to write some code that when needed, will read a bunch of data from the file, keep it in memory in an array and when your code needs a few bits, a function will go in the array and position itself on the byte from where you need to extract bits and take 5 bits from that byte and potentially the next byte in the array (and if that one isn't read, read it from the file)
    If you're lazy, just make up an array that will hold only 0 or 1, one for each bit, read a few bytes from the file and put the 8 bits of each byte into 8 positions of that array holding 0 or 1
    Then when your code needs next 5 bits, a function just goes in that array and reads those 5 bits and puts them in a byte variable and keep track of where you were last positioned in the array, to continue reading the next 5 bits from that position or if there's less than 5 bits left in the buffer, to read more bytes from the file and populate the array with more information.
     
     
     
  14. Agree
    Unimportant got a reaction from Pinguinsan in Visual STudio and C programming   
    Also note that C and C++ are not the same language. (And no, C is not just a subset of C++). Visual C++ is not very good at strict C. If you want to learn ISO C99 i'd suggest another compiler.
  15. Informative
    Unimportant got a reaction from ClobberXD in How do I get CPU, mobo, RAM, GPU, PSU info with C++?   
    The question is: Do you just want to copy/paste some code or do you want to understand how it actually works?
     
    In the first case there's a example from MSDN: https://msdn.microsoft.com/en-us/library/xs6aek1h(v=vs.80).aspx
     
    In the second case you'll have to study some basic assembly. The CPUID instruction is actually very easy. You just have to preload some CPU registers with certain values about the kind of info you want and execute a CPUID instruction. Then inspect the CPU registers for the results.
     
    Search for "inline assembly" if you want to include some assembly code in your C++ code.
  16. Agree
    Unimportant got a reaction from straight_stewie in Fishy command   
    In a batch file (.bat) you can access environment variables using %x% where x is the variable you want to access.
    "Systemdrive" is a enviroment variable preloaded by windows with the OS's drive letter, thus %SystemDrive%\Windows\system32 would be expanded to "x:\Windows\system32" where x is the drive letter for your OS.
     
    You'd actually have to execute the batch file for it to do anything, just saving that line in a file won't do much
     
  17. Agree
    Unimportant got a reaction from rhyseyness in Radio kit/Capacitor Help!   
    You mean the 100n capacitor between VCC pin 5 and GND on the TEA5767? That's just there for power supply decoupling, the circuit should work fine without altough there could be the tiniest extra noise on the output. Replacing it with a bigger capacitor will render it pretty much useless as it will then no longer filter the high frequencies it's meant to, you might as well put no capacitor in in stead of a bigger one.
  18. Like
    Unimportant got a reaction from rhyseyness in Radio kit/Capacitor Help!   
    The 67 Ohm backlight resistor should not be replaced with a potentiometer, a pot will range from 0 to x ohms where x is the value of the pot. Turning the pot the wrong way (0) will blow the LED in the backlight. If you want adjustable backlight you can use a pot in series with a fixed 67 ohm resistor so you can never go below 67 ohm.
     
    Constrast could be done with a potentiometer as long as the value is not off by orders of magnitude.
  19. Like
    Unimportant got a reaction from rhyseyness in Radio kit/Capacitor Help!   
    Yes, it will get darker the higher the resistor value goes up until the point the LED's no longer reach their forward voltage, then it will cut out.
  20. Like
    Unimportant got a reaction from Dat Guy in How to hibernate PC without any CMD window popping up, using either CMD, or WINAPI in C++?   
    https://msdn.microsoft.com/en-us/library/windows/desktop/aa373201(v=vs.85).aspx
  21. Agree
    Unimportant got a reaction from colonel_mortis in How to hibernate PC without any CMD window popping up, using either CMD, or WINAPI in C++?   
    https://msdn.microsoft.com/en-us/library/windows/desktop/aa373201(v=vs.85).aspx
  22. Like
    Unimportant got a reaction from stconquest in PSA - Turkish Government being attacked by Turkish Military. Tanks and soldiers in Instanbul   
    Missed their chance to elect Ron Paul in 2012
  23. Like
    Unimportant got a reaction from stconquest in PSA - Turkish Government being attacked by Turkish Military. Tanks and soldiers in Instanbul   
    It's the part that they spend but do not tax tough - The debt - You don't want it rising too fast
     
    Got a nice little video here from RealVisionTv to illustrate the world's multi century debt bubble we're all in: https://www.youtube.com/watch?v=CLQsT9BPHpg
     
    I found it entertaining to watch, so might you
  24. Informative
    Unimportant got a reaction from stconquest in PSA - Turkish Government being attacked by Turkish Military. Tanks and soldiers in Instanbul   
    It's manufactured indeed. But I think more because most countries are so deeply indebted that they could not even pay the interest on their debt anymore. As a result, their central banks started buying their own debt with new money, which lowers rates. It also causes lots of speculators/investors to frontrun the central banks. (Buying the bonds to unload them to the central bank at a higher price later), driving rates even lower.
     
    It off course also lowers the value of the currency, which is seen by many politicians (wrongly imo) as a good side-effect as it boosts exports. When a few countries do this, others have to follow because their currencies are now to strong to compete. The result is the allout currency wars we're in.
  25. Agree
    Unimportant got a reaction from SurvivorNVL in PSA - Turkish Government being attacked by Turkish Military. Tanks and soldiers in Instanbul   
    I don't think ppl feel purpose and meaning in makeshift work. If they do it's because most don't realize they're doing makeshift work.
     
    A laissez faire system where you can bribe politicians is not a laissez faire system. In a true laissez faire system politicians don't have the power to benefit anyone at the expense of another. From the moment they do, it's no longer laissez faire.
     
    I don't really see what you mean by 'killing you in the market place'. The only thing you can do in such a system is offer a better product at a price your customers willingly pay.
     
     
×