24,434 reputation
561105
bio website bcastell.com
location Toronto, Canada
age
visits member for 4 years, 10 months
seen 1 hour ago

I'm currently a graduate student with a B.E.Sc in Electrical Engineering, working towards a M.E.Sc in Robotics & Control Systems. My research involves implementation of computer vision algorithms, in parallel and in hardware, for real-time robotics. In my studies, I focused mostly on computer architectures, embedded systems, image processing, and parallel processing/GPGPU. For now, I'm just enjoying school, updating my website when I can, working on various projects (like PySceneDetect), slaving away on my thesis/research, and of course, contributing to Stack Exchange!

If you should need to contact me directly, leave a comment on this page and I will e-mail you back.

(Extensive) Experienced with Linux / Windows, assembly (x86 & m68k), C/C++, Python, VBA, C#, MATLAB, SDL, GTK+ / Glade, Qt, OpenGL, OpenCV, CUDA, SQL, SQLAlchemy, OpenCL, and VHDL / Verilog.


1d
comment unable to read /dev/sda: Input/output error
Make a backup with dd ASAP, and get a new physical drive - your current one is definitely toast. You can restore the image to the new drive, and then attempt to recover your data on the new drive. Do not even attempt to mount the old one, just make a raw clone.
Jul
8
comment Adding together values from multiple spreadsheets (VBA)
There are plenty of existing Python modules that can work directly with XLS and XLSX files, as well as a newer module called OpenPyXL.
Jul
3
comment How can I delete over 2,000,000 files in a single directory efficiently?
possible duplicate of Deleting large amount of files in Windows is slow
Jul
3
comment How can I delete over 2,000,000 files in a single directory efficiently?
What about using rmdir? The command rmdir /s [FOLDER TO DELETE] should do the trick.
Jul
2
comment Should I move to Gentoo Linux?
This question is off-topic, but in general, I would say Gentoo might be a bit too advanced for your "average" computer user. Something like Ubuntu, which also has corporate support options, might be a better choice - but at the end of the day, it all depends on what you need, why you need it, and who will be using it.
Jul
2
comment unable to read /dev/sda: Input/output error
A sector check should be done for the entire drive, as any bad sectors on the drive is bad news. Again, check the SMART status of the drive in addition to performing a sector check (chkdsk /R is a quick way to do it in Windows). In general though, if you're getting read/write errors with a drive, make a backup and get ready for any possibility :3
Jul
1
comment How to tell which parts of a binary file are changing
Possible duplicate of Binary Diff Tools On Windows or How do I compare binary files in Linux?
Jul
1
comment How to choose if you want to close the command prompt window or not running a .exe or .bat file?
To do this programmatically, you need to check whether or not you are running the program in a debugger (in the latter, sometimes the console window is displayed). You can simply add a prompt when your program finishes telling the user to "Press any key to exit." and then simply close your program after the user enters anything.
Jul
1
comment Why MIPS CPU has 32 Register?
Possible duplicate of these questions on Stack Overflow: Why 16 Registers is ideal number of registers in CPU ARM Architecture? (the answer covers MIPS, not ARM) and If registers are so blazingly fast, why don't we have more of them?.
Jul
1
comment Changing the size of a FAT32 partition?
A FAT32 partition can be resized non-destructively. Depending on how full the partition is, some data might have to be physically moved within the new partition boundary when shrinking it. If a given software tool does not support this operation, it's not uncommon for that tool to then exclaim "Cannot Resize FAT32 Partitions" which, although technically possible, is simply not supported by that one particular application.
Jul
1
comment installing windows in gpt partition style
From The Windows and GPT FAQ, "Q: Can Windows 7, Windows Vista, and Windows Server 2008 read, write, and boot from GPT disks? A: Yes, all versions can use GPT partitioned disks for data. Booting is only supported for 64-bit editions on UEFI-based systems."
Jun
30
comment unable to read /dev/sda: Input/output error
Awesome, thank you for following up (just wanted to rule out SSD wearing or full partitions). Good luck with badblocks, and remember to make a backup of the drive with dd as soon as you can! Keep us posted with the result.
Jun
30
comment Windows 7 Tray Icons Invisible
@TheAdamGaskins that little pop-up window represents any "hidden" tray icons (hidden meaning not immediately visible from the task bar without clicking the little pop-up arrow); in the past, by disabling this feature, then re-enabling it, any invisible/unusable icons that were 'stuck' went away. I'm not on Windows at the moment, but all you have to do is click Customize... and set Windows to Show All Icons or something like that (I can't remember the setting name, but when configured, all icons should appear on the taskbar - sans the "invisible" ones, now).
Jun
30
comment Audio flicking at back port
Does the menu itself keep flickering when the volume is under 60%?
Jun
30
comment Audio flicking at back port
It seems like the "flickering" is the sound card rapidly detecting you inserting/removing an output device from your front audio port (the "headphone" jack). Try leaving a device stuck in the front port. Does this "flickering" between devices still occur when you set the system output level below 60% as you've said, or does that only resolve the audible flicker? As a quick solution, you might want to investigate forcing a particular output channel for your system's audio (i.e. disabling automatic detection when plugging a pair of headphones/speakers in).
Jun
30
comment unable to read /dev/sda: Input/output error
Check the drive for bad sectors (or look at the SMART information, UBCD includes a few tools you can boot the system with to check). UBCD also includes a live copy of GParted, as well as many, many other tools which can assist with repairing a filesystem. Finally, just for completeness, are any of the partitions on the drive full/almost full, or are you using a solid-state drive (SSD)?
Jun
30
comment New Motherboard, but no display output on motherboard nor on graphic card
Make sure you disable iGPU/dGPU support in your motherboard settings, and that the default graphics adapter is set to an external PCIe one. Do you have another graphics card lying around you could test the system with? If you remove the graphics card entirely, does the computer still work fine with the with the onboard graphics?
Jun
30
comment What happens if a RAM gets filled completely
This literally is a one-word answer, which is a fundamental part of almost all virtual memory implementations: memory paging. "Memory" in a computer is just an array of binary information - where the CPU fetches this information from, whether it be CPU registers, CPU cache, system RAM, your hard drive (or another device) is irrelevant, especially in systems using memory-mapped I/O where each device in the computer exists in the virtual address space alongside the RAM itself.
Jun
30
comment How to capture packets from router
Related: Network Traffic Log
Jun
30
comment How to capture packets from router
So long as you're on the appropriate network segment, Wireshark should be more than enough for this.