technicaltinkering
technicaltinkering
Technical Tinkering
9 posts
Solutions to problems I haven't been able to find, and general tinkering.
Don't wanna be here? Send us removal request.
technicaltinkering 10 years ago
Text
Multiples
So, I have finally written something that actually works. Finding the multiples of 3 and 5, even though it does so very slowly. Anyway, here goes!
(defun multiple (k &optional (lim 10) (n 1) (sum 0)) 聽聽聽聽"Find the multiples of k up to limit lim." 聽聽聽聽(if (>= (* k n) lim) 聽聽聽聽聽聽聽聽sum 聽聽聽聽聽聽聽聽(multiple k lim (+ n 1) (+ sum (* k n)))))
For finding the sum of multiples for 3 and 5, I call that function as follows:
(- (+ (multiple 3) (multiple 5)) (multiple 15))
Status: Working on something faster, and more efficient.
0 notes
technicaltinkering 10 years ago
Text
Emacs!
I have started using Emacs, instead of vim.. And I know a lot of people will flame me for this, and some will praise me.
The biggest issues I have so far is finding a lot of 'h', 'j', 'k', and 'l''s in my code.
I am amazed at how everything you can do on a pc, is also doable in Emacs. People aren't kidding when they say it's almost like an OS in itself.
I like the experience so far, but I have yet to decide if I will keep using this overwhelming text (life) editor.
1 note View note
technicaltinkering 10 years ago
Text
Thinking Lisp
I have started to dawdle in the world of Lisp. Let's see where this takes me.
0 notes
technicaltinkering 10 years ago
Text
More Sound Issues
The first thing that happened when I installed Arch on this laptop again, was a lack of sound when I connected to my monitor via HDMI cable.
After some searching I found a quick fix.
It seems that my laptop wanted to use HDMI as my main sound card, and not my PCH. Anyway, point being, I made the following file in my home directory:
.asoundrc
The contents are as follows:
defaults.pcm.!card PCH defaults.pcm.!device 0
Of course, you will need to find the correct values for your cards, on your system to make this work.
0 notes
technicaltinkering 10 years ago
Text
Back on Linux
So, now I am finally back on Linux, trying to make things work. Updates to come.
0 notes
technicaltinkering 12 years ago
Text
Server
Lately, because of school, I have had to switch from Linux to Windows on my main pc, which was most dissapointing.
After a while, I decided that I would install Arch on a netbook I had lying around, and use it for tinkering, coding, etc.
So I did.
Seeing that it is me, I will most likely have some issues with this project, but I will keep updating with the results.
0 notes
technicaltinkering 12 years ago
Text
Second life - media_plugin_webkit error
So, I forgot to mention in the last post, that I was also experiencing a problem with starting the SL client, getting a media_plugin_webkit error.
The solution to this, was to install the lib32-pangox-compat as root:
sudo aura -A lib32-pangox-compat
Note, you need to have aura installed from the AUR.
0 notes
technicaltinkering 12 years ago
Text
Second life - Sound problems
I recently installed Second Life on my freshly installed Arch box, and everything worked, except the sound. I searched around on different forums, even on the official Second Life forums, but nothing was to be found.
The problem was, seeing that I run on a 64 bit machine, and the SL client is 32 bit, I needed the 32 bit versions of the alsa libraries.
I did this by:
pacman -S lib32-alsa-lib lib32-alsa-plugins lib32-libpulse
And everything worked.
0 notes
technicaltinkering 12 years ago
Text
Arch Linux
I have recently installed Arch on my pc, which was a challenge in itself, and it gave me an idea to start this blog.
I often find myself in situations where I wish I had an answer to a problem I was working on, so I have decided to post the solutions I find to my problems for everybody to enjoy.
Knowledge should be free anyway.
0 notes