1): Create a file in /etc/udev/rules.d called 51-android.rules
2): Fill that file with the following:
SUBSYSTEM==”usb”, ATTR{idVendor}==”04e8″, ATTR{idProduct}==”6860″, MODE=”0666″, OWNER=”your_user_name”
SUBSYSTEM==”usb”, ATTR{idVendor}==”18d1″, ATTR{idProduct}==”4e42″, MODE=”0666″, OWNER=”your_user_name”
restart the udev service
Wednesday, February 20, 2013
Thursday, January 24, 2013
Rich Block Poor Block
A really interesting site, using data from the census, on a per zip code basis (I think)
http://www.richblockspoorblocks.com/
http://www.richblockspoorblocks.com/
Wednesday, January 23, 2013
Compiling Altera Libraries for Modelsim DE
One thing I do rarely is compile Altera libraries for simulation, and when I have to it involves web searching. Anyway, now it is appearing here so I don't have to think about it anymore
This example compiles the altera_mf.v file into a library. Update the path accordingly, as of this moment I am using quartus 11.1. The main thing is paying attention to where altera_mf.v can be found
vlib altera_mf_ver
vmap altera_mf_ver altera_mf_ver
vlog -work altera_mf_ver C:/altera/11.1/quartus/eda/sim_lib/altera_mf.v
This example compiles the altera_mf.v file into a library. Update the path accordingly, as of this moment I am using quartus 11.1. The main thing is paying attention to where altera_mf.v can be found
vlib altera_mf_ver
vmap altera_mf_ver altera_mf_ver
vlog -work altera_mf_ver C:/altera/11.1/quartus/eda/sim_lib/altera_mf.v
Sunday, January 13, 2013
Juniper VPN, Network Connect, and Linux
I need to use Juniper VPN and Network Connect to remote to my work's network. Network Connect chooses to use 32-bit java, which upsets most 64-bit systems. Don't worry, it won't actually tell you this, it will just crash randomly
The following forum solved most of my issues. Basically you are installing a 32-bit browser with a 32-bit java plugin, after which Network Connect will well, connect
http://ubuntuforums.org/showthread.php?t=2067521
The following forum solved most of my issues. Basically you are installing a 32-bit browser with a 32-bit java plugin, after which Network Connect will well, connect
http://ubuntuforums.org/showthread.php?t=2067521
Thursday, August 30, 2012
Xilinx + Modelsim
I keep forgetting how to compile Xilinx libraries and import them into modelsim...so here goes a list
use compxlib from appropriate Xilinx version, select version of modelsim (in my case 10.0d)
--Will output to Xilinx\Ver##\ISE\verilog\modelsim_10dbli
In Modelsim, right click work, add library
DONE
Simulate and include the appropriate libraries as so...
vsim -L SimPrim_Vers10 -L UniMacro_Ver10 -L UniSim_Ver10 -L XilinxCoreLib_Ver10 work.afe_tb work.glbl
Remembering to include the global file glbl
Tada!
use compxlib from appropriate Xilinx version, select version of modelsim (in my case 10.0d)
--Will output to Xilinx\Ver##\ISE\verilog\modelsim_10dbli
In Modelsim, right click work, add library
DONE
Simulate and include the appropriate libraries as so...
vsim -L SimPrim_Vers10 -L UniMacro_Ver10 -L UniSim_Ver10 -L XilinxCoreLib_Ver10 work.afe_tb work.glbl
Remembering to include the global file glbl
Tada!
Thursday, June 21, 2012
Colleges and Alumni donations
My grad and undergrad alumni associates have decided to call me as often as possible, in attempts to get donations.
I'm always confused by this. The time period in which I give them money in exchange for goods or services has past. This isn't like PBS, which I actively use
Target does not call me up to see if I'm enjoying the Gatorade I purchased from them, and ask me if I would like to pay them more retroactively for it
Particularly undergrad -- you guys didn't bother to give me scholarships, opting for more need based over academic based. Sorry friends, knock on those people's doors
Sunday, June 10, 2012
Birth Control Statistics in GNU Octave
Hello! A fun thought occurred to me while looking over an old statistics textbook -- how effective is our birth control?
For the sake of argument, lets say that condoms, used properly, have a 97% effective rate. A birth control pill, properly used, have a 99% effective rate. Those may sound high, but they aren't really. Lets take a look and assume you are having sex once a week for two years. What is the likelihood that you will have at least one condom break, the pill be ineffective, or both failing simultaneously? Rut Roe!
Since each condom use can be considered an independent test, the probability of failure is 1 - 0.97, or 3% chance of failure. Similarly, the pill would have a 1% chance of failure. The data is as follows:
What does this graph tell us? It is 1- (the chance of getting X amount of condoms in a row that are successful), or the ever increasing chance that your next condom / birth control pill, combination will be faulty. As the blue line shows, over two years, or 104 condom uses, you have a ~95% chance of one of those condoms being defective and failing. With straight birth control and 104 tests, you have a 63% chance that at least one time it did not work. The best though, is the redundant method: The chance that during a two year period that both the condom and the birth control would fail at exactly the same time. This would be the same as modeled as a system in parallel:
(1 - 0.03*0.01) = 99.7% individual chance of success with some kind of protection in parallel system per sexy times. Hooray. The green line shows that over 104 weeks, the chance of double failure is nearly negligible. This is the way to be!
So wait wait wait, a failed condom or birth control pill does not necessarily mean pregnancy occurs. Every menstrual cycle, there are about ~5 days of which sperm in the system could meet an egg. 5 days out of every 28, or ~18% of all days in a year. This reduces the 1 / week for 104 week chance of issue significantly, as the following graph shows:
This graph basically states that, having random sex once / week, over two years, presents a 17% chance of a condom breaking while in ovulation, a 11% chance of the pill not working during ovulation, and basically a 0% chance of the pill and the condom breaking at exactly the same time.
Lesson in all of this? Redundancy in parallel systems is the way to go.
For the sake of argument, lets say that condoms, used properly, have a 97% effective rate. A birth control pill, properly used, have a 99% effective rate. Those may sound high, but they aren't really. Lets take a look and assume you are having sex once a week for two years. What is the likelihood that you will have at least one condom break, the pill be ineffective, or both failing simultaneously? Rut Roe!
Since each condom use can be considered an independent test, the probability of failure is 1 - 0.97, or 3% chance of failure. Similarly, the pill would have a 1% chance of failure. The data is as follows:
![]() |
| Probability of faulty birth control method over time |
(1 - 0.03*0.01) = 99.7% individual chance of success with some kind of protection in parallel system per sexy times. Hooray. The green line shows that over 104 weeks, the chance of double failure is nearly negligible. This is the way to be!
So wait wait wait, a failed condom or birth control pill does not necessarily mean pregnancy occurs. Every menstrual cycle, there are about ~5 days of which sperm in the system could meet an egg. 5 days out of every 28, or ~18% of all days in a year. This reduces the 1 / week for 104 week chance of issue significantly, as the following graph shows:
This graph basically states that, having random sex once / week, over two years, presents a 17% chance of a condom breaking while in ovulation, a 11% chance of the pill not working during ovulation, and basically a 0% chance of the pill and the condom breaking at exactly the same time.
Lesson in all of this? Redundancy in parallel systems is the way to go.
Subscribe to:
Posts (Atom)

