MSGEQ7 pain fun!

Taken from sparkfun.com Distributted by CC BY 2.0

Several years ago I had ordered five MSGEQ7 to eventually build a graphic equalizer. During my first attempts at it, I didn’t use any capacitors and couldn’t get it to work, so I gave up.

Fast forward to earlier this year when I decide I’m going to do something with these chips (project to be shown later) and tonight I finally break them out and give it a go.

The datasheet provides a working example of how to properly use the chip and I built up that example circuit; however, that didn’t work.

Next, I new Sparkfun had an Arduino Shield for the chip and they give both code examples and their schematics. So, I built that up, modified their code and….nothing. Garbage output.

I look for a third source and find this blog post. So I build it up and still garbage output.

At this point, I’m loosing my patience. Now I have cheap Chinese breadboads and sometimes they aren’t the best and since the circuit was so simple, I just pulled out a sheet of perfboard and made it. Still, nothing on the output.

Really upset now, I go to my drawer where I have extras and I pull them out and start popping them into the circuit and observing the output. The second one gives different garbage output, same with the third and fourth.

Finally, on my last one, I get some useful output. It isn’t perfect and one of the channels is garbage, but it is something.

So, with a somewhat working chip, I start to resort the defective chips to make sure I gave them a fair shake. As I put them back in and looked at the serial monitor, I still got garbage back. 🙁

I’m none too happy at the moment with this chip. I think I’d recommend people to get premade breakout boards. Yeah, they cost over $10, but it’s easier and faster to check for defects.

In the meantime, I have my own breakout board so if I ever feel like ordering more, then I’ve got something to test them with.

Posted in Engineering | Tagged , , , | Leave a comment

Eclipse Collage


Today was the big day! There was a total solar eclipse across the entire US!

Unfortunately, where I was at did not to a full 100%; however, I thought I’d show you part of what I did manage to get.

Posted in Photography | Tagged , , | Leave a comment

Pantum P2500 on Linux

I’ve had a Pantum P2500W laser printer for a while and it’s a cheap B&W printer. I use it for printing journal articles and for making PCBs.

It does its job quite well and I’d even recommend it.

What’s good about this printer is that it supports Linux! (yay!) However, if you’re on a rpm based distro, then you’re kinda out of luck.

You can get the official driver here for Ubuntu or Debian.

Normally I wouldn’t write something, because you can just use Alien to convert it. Nothing big…

However, let’s look at this:


./alien.pl --to-rpm ./Pantum-P2500-Series-2.6.x86_64.deb
Warning: alien is not running as root!
Warning: Ownerships of files in the generated packages will probably be wrong.
Use of uninitialized value $field in string eq at Alien/Package/Deb.pm line 262.
Use of uninitialized value in lc at Alien/Package/Deb.pm line 630.
Use of uninitialized value in lc at Alien/Package/Deb.pm line 630.
Warning: Skipping conversion of scripts in package : postinst postrm
Warning: Use the --scripts parameter to include the scripts.
Use of uninitialized value in lc at Alien/Package/Deb.pm line 630.
Use of uninitialized value $_ in pattern match (m//) at Alien/Package/Deb.pm line 673.
Use of uninitialized value $_ in concatenation (.) or string at Alien/Package/Deb.pm line 674.
mkdir: invalid option -- '0'
Try 'mkdir --help' for more information.
unable to mkdir -0: at Alien/Package.pm line 257.

And you get nothing…so how do we fix this?

Well, we need to extract the data from the deb. We can do this with ar.[1]


mkdir ./Pantum-P2500-Series-2.6.x86_64
ar -x ../Pantum-P2500-Series-2.6.x86_64.deb

You’ll see that I did this in a new directory. In this case, you get “tar bomb’d”; however, I imagine that is the case for other debs as well.

Anyway, with that you’ll see that you have two tar archives. Extracting them, you’ll get a layout like:


.
├── control
├── control.tar.gz
├── data.tar.gz
├── debian-binary
├── postinst
├── postrm
└── usr
├── lib
│   └── cups
│   └── filter
│   └── pt2500Filter
└── share
├── cups
│   └── model
│   └── Pantum
│   ├── Pantum P2200 Series.ppd
│   ├── Pantum P2200W Series.ppd
│   ├── Pantum P2500N Series.ppd
│   ├── Pantum P2500NW Series.ppd
│   ├── Pantum P2500 Series.ppd
│   ├── Pantum P2500W Series.ppd
│   ├── Pantum P2550N Series.ppd
│   ├── Pantum P2550 Series.ppd
│   ├── Pantum P2600N Series.ppd
│   ├── Pantum P2600NW Series.ppd
│   ├── Pantum P2600 Series.ppd
│   └── Pantum S2000 Series.ppd
└── doc
└── pantum-p2500-series
├── changelog.gz
└── copyright

At this point, we have everything we need to get our printer up and working. As root, do the following:


cp -rv ./usr/share/cups/model/Pantum /usr/share/cups/model
cp -rv ./usr/lib/cups/filter/pt2500Filter /usr/lib/cups/filter
systemctl restart cups

From here on out, you can add the printer the normal way that you would want to.

For those of you who don’t want to go through the hassle of extracting the deb and all of that, I’ve put the x86_64 and i386 tarballs on the site for you to get.

You’ll still need to do the copy portion, but that’s really all there is to it to get this printer up and going.

Posted in Computer Science | Tagged , , , , | Leave a comment

Remote Install of OpenSuSE

It’s time to update the network!

Most of the services I host have been running off of my main desktop which isn’t very safe, so I have this plan drawn out on my white board and I’m finally starting to implement it.

I’ll be using Tumbleweed from hereon out for my servers and I’ll stick with Leap for the desktop (because Nvidia…).

That said, I thought I’d try doing a remote install.

I plugged in a USB drive with the ISO “burned” on it and followed the standard procedure for remote install. A quick guide can be found here, but I’ll go over things just for fun.

At the boot screen, add the following boot options:


UseSSH=1 SSHPassword=unencrypted_password

I thought at that point, everything would be cool and I could just SSH into the box; however, it needs more user input than that.

You’ll first be required to say what language you want to use on your machine and then it’ll load Linux. After that, then it’ll prompt you for which network card to send a DHCP broadcast out to. This about five minuets, which is annoying to say the least.

I consider these prompts and the time it takes to be a problem. Suppose I wanted to just go into a datacenter, pop an install medium in, and put in those quick little boot parameters, then I’d be hosed as I couldn’t access my system remotely!

I know I’m nitpicking and that I should just do my installs with AutoYaST and the questions do actually make sense; however, it just isn’t what I expected.

Posted in Computer Science | Tagged , , , | Leave a comment

Rosabel Edney rosabeledney@yahoo.com


Return-Path:
Received-SPF: neutral (97.85.235.199 is neither permitted nor denied by domain of yahoo.com)
X-YMailISG: y0kbqkwWLDtXQ6qywIJZDParzJnUCJC2uii4vCwJgtwqu3Pz
j5PAfWBE_QMFQdoDigd7hzXMGZnupW9IwZ_MsXWfEEO.YBSRspD7pSeKpCzC
kjruJ..RxWdmU0RA0Yp6q.sO9EblvKW2P1YjDDwNr9woIaELVPUx6s2f4_Z_
y708ShAwqEyJRqyGO_EaZtxLMMS.pUk66Sa1hARs45XnlBPmHjDiLNW7Fftg
eai_9DB81n8JuR5HY7FoVPsO9GEJhFOdsRhpLqT2pQskunPffktxkIGnwqsd
wNVq3iK2S7Fj5jSaLQSdgSLNnd1cHJopGksu9INKvWe_idXRZwZa0IpniedZ
3QhlXNwFFftOr11G9WV65XLOLJcjxYduayMsHQ9ogAKV3DAwF8GP5d1cEMNK
2QMzJ8zqaKah4Jkzzd8DlcHZA90kmez9epE_UC2MoXkhbZf2uzwp5v6j6TFF
skyaWjy0Tp91SDI9lW9gZhIfxirl8QzFbC5oAUxUHknKe8AtUQj4cvuDy115
UO9GSKtZHM25hcFIecyYs6xbrFW5YNjEoCm7TbtquEWdNDqYroeALkQAOO4k
FyZmEQuCTZA1nWDkulZtXD.TmxaoRgL1fK6bQSdP0NxQMUz8OpBdx8.RUiEL
vmK9v1JYEawNBZ7MmhsVoNje_D3wHWpzqKWx2DssBhfqW0wJTv1n3xsSJ_NV
FPJQ0k5lFeEVt79PzIWUuyHtW3zdwUsXX5dXLJ0z6J2X_cOrN7.rRoVTwEsH
xCYjTImCt_PU0xkGGwdNxE2a3POGd0MfKaO2JZsxcdSX3.8wzgrnOGzZ0W00
nOz5XqSMQ1Ca5sMIz1wgg_HsH9sKQxIHl_8cjqgRgCB9DiFBmFWTPtPXYizV
HkcnFXwTYN7ZQlZ26VUaGPp3uSiPsFNuWmmg8F9m0F95Wem2h.v54PtYv8Nh
4qGSZQ6V1QUrtkvekrJnsm64NOsaAOU63CRWdR7CSlr2h4y2VuXW1i0OG8NE
i_CB1YWBCH35K1dHyQRY4f83QD2dOgzgTRfXy7_SZTRq9RvxR2rdVbb1RHiU
5O255tJ6MWsY8iEsUla9Q0.qbjdjcAXfeooihX1VhpFkolA29bOPY1nSDdPq
8CuqoqZ.LLdKDLz_1bQoJWW29uJ4t.1na91M7Ru7ghfp9OjijDcBmzB23cAO
hcS6S_H37ihwOb1dVFuvW2dsA62EkF1x
X-Originating-IP: [97.85.235.199]
Authentication-Results: mta1092.sbc.mail.ne1.yahoo.com from=yahoo.com; domainkeys=neutral (no sig); from=yahoo.com; dkim=pass (ok)
Received: from 144.160.152.199 (EHLO flpd590.prodigy.net) (144.160.152.199)
by mta1092.sbc.mail.ne1.yahoo.com with SMTP; Thu, 27 Jul 2017 12:39:02 +0000
X-Originating-IP: [97.85.235.199]
Received: by mail.ceneblock.com (Postfix)
id DA0742360A74; Thu, 27 Jul 2017 07:38:59 -0500 (CDT)
Delivered-To: ceneblock.website@ceneblock.com
Received: from sonic309-46.consmr.mail.sg3.yahoo.com (sonic309-46.consmr.mail.sg3.yahoo.com [106.10.244.109])
by mail.ceneblock.com (Postfix) with ESMTP id 54D9E23608B6
for ; Thu, 27 Jul 2017 07:38:59 -0500 (CDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1501159137; bh=3xtvoWf+uqiMNfoXA5+2aMga6XVC3AUBQkf2EO8zyjs=; h=Date:From:Reply-To:To:Subject:References:From:Subject; b=RCuzg5z0ejkJaWPaC9DwHhR7TvLams/jb0KGBZcXXJGr8lfD6XUsRxoMZxU54MlH6lCTTDD5R0BotI8DCKuccCKCo1+zkjbNE6JCkvDo2MFKmJYgAiTNnrruKlVrS7PB/HySI3Rx28WCYpRW8rvH5jfzWz00jiE5GngBgUlLlQDEkEw3lH5KDInWJt1ih6J+iJKtRCm5nQj5KOY7KE5sWoVLH2mnHD1K1sMXvaU4XbWif+rNQU2EPkNY2T+edpP9Uh67UFhgpVvdIfc2hK5eLi3oGAeHiO4/hYe4nyHWaRP6kBUVPxf+/z/fD3Rllyro/Y8sJyPem3CBuyiaAhvMRg==
X-YMail-OSG: S2nV19cVM1nisv33s1iaVNty2.eDHZGsUp8GfJGzeR.iang3h8iCB5FV4HhCOR0
KVCxF.pZRxsDwK2XzbIzSNKLUUF5d_PqDTMswaN9A0YdAsXxl2FKsntJudaPZtvRikrdsw1ZW.DY
Jgh12bcZt2mHbFOR9sEl7jAHQWgaodRcep5cYllIz5X4o6M9542a2t4MkDVTVFGZEIa8DPpz6dHE
yiI3KMfqd3Kw1YBPB.PscdI1LOg.SLVTLSdxHimw.mflMDF3KmVhdct6k3DOpe3VS1baBnxkJa6I
htZeJAaAL.i0.A6zfGqFyjJUXzhyIKZMxEv.JqRrzTSw6QJvkO2svhuw3dJ_rykXYOVdyY8KL.Cb
d4da7tuWCzdDlsFQm3_BEaaD7.RMNcfhZjr9nvYc1oVqd.8.XBelKetIxKlgclnfTr9JvErNO8kC
pDg2Sf19xhnIjsZsnjrrsqZ3QUa7j_b7HDDVKiVx98rpmcHEknAzHj_kdOPjwR5I8EjKE1z7g_xo
rW_jAHT23XUnQ9jXKX6BDx70u7CSQEbsHNDitwsHenObQ0z0-
Received: from sonic.gate.mail.ne1.yahoo.com by sonic309.consmr.mail.sg3.yahoo.com with HTTP; Thu, 27 Jul 2017 12:38:57 +0000
Date: Thu, 27 Jul 2017 12:34:55 +0000 (UTC)
From: Rosabel Edney
Reply-To: Rosabel Edney
To: "ceneblock.website@ceneblock.com"
Message-ID: <2100066133.760408.1501158895576@mail.yahoo.com>
Subject: Want more clients and customers?
MIME-Version: 1.0
Content-Type: multipart/alternative;
boundary="----=_Part_760407_996691090.1501158895574"
References: <2100066133.760408.1501158895576.ref@mail.yahoo.com>
X-Mailer: WebService/1.1.10181 YahooMailNeo Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36
Content-Length: 1391

------=_Part_760407_996691090.1501158895574
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

=C2=A0
| Hello,
=20
Want more clients and customers? We will help them find you by putting you=
on the 1st page of Google. Please reply to this message and we will prepar=
e a special proposal for you.
=20
Thanks you very much
|

------=_Part_760407_996691090.1501158895574
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: 7bit

 
Hello,

Want more clients and customers? We will help them find you by putting you
on the 1st page of Google. Please reply to this message and we will prepare a
special proposal for you.


Thanks you very much


------=_Part_760407_996691090.1501158895574--

Posted in Wall Of Shame | Tagged | Leave a comment

New Category! Wall of Shame

I’m going to start posting spam that I receive to my inbox.

The first post is in base64, so I’ll leave it as I got it; however, I hope to include full headers later on.

Posted in Wall Of Shame | Tagged | Leave a comment

Yvone Chen yvone@dunfa.com.cn

PCBA Services:
Quick-turn prototype assembly

Turn-key assembly

Partial turn-key assembly

Consignment assembly

RoHS compliant lead-free assembly

Non-RoHS assembly

Conformal coating

Final box-build and packaging

Components Sourcing:
We recommend you low costs, high quality components from China.
We provides the latest new products from stock.

We can reduce your project budget by HALF.
On-Line Shopping:
We are NO. 1 components on-line shopping mall from China.

Now our overseas version ready to service you www.rapidtronics.com
Yvone Chen Email : yvone@dunfa.com.cn Skype : philipsun8 Tel : 86-755-82544038 If you’d like to unsubscribe and stop receiving these emails:click here.

Posted in Wall Of Shame | Leave a comment

Nice little Hackathon

So I have an interview tomorrow and I was asked to show off a recent project I completed.

Well, I don’t really have one of those, so I decided to just make a project real quick.

I wound up making a webserver in about six hours (realize that includes taking breaks, having dinner, and so on). I think it does a good enough job to be honest. It probably has more memory leaks than FireFox, but I think it’s good enough.

I’d like to include the use of dlopen(3), but we’ll see how far I get on that tomorrow.

Anyway, if you want to see the code:
Here it is

Posted in Computer Science | Tagged , , | Leave a comment

Problems with JSON and FOSS

So, over the past year or so, I’ve been introduced to JSON.

JSON is an alright format and is easier to write than XML (did I remember that close tag?).

However, my biggest gripe with it is the license.

Behold this statement:

The Software shall be used for Good, not Evil.

I think that was meant to be tongue in cheek; however, IBM didn’t think so and got special permission to use it however they see fit.[1]

This brings up a problem, clearly JSON is not “Free” data interchange. In fact, GNU points this out.

It appears to be heavily relied on for the Ruby community. Which is of course problematic if you’re a die hard GNU fanboy. Now, I appreciate the GNU GPL licenses (although they are not without their flaws); however, it isn’t my go to license. That said, I do have concern for that clause.

Maybe I’ll contact the Mr. Crockford and ask him to clear it up.

Posted in Computer Science | Tagged , , , | Leave a comment

SSL is live!

So, for those of you who want to connect securely, the option is now available.

Secure Version

This is made with my own CA and keys, so you’ll get a warning, but as long as these fingerprints match up, then you’re good:

SHA1 Fingerprint 6B:55:C4:32:6A:72:B6:CA:29:2A:CE:E7:24:FA:B8:44:EE:70:C8:7A
SHA-256 Fingerprint 46:B8:6A:6B:D8:FE:39:45:25:AF:EB:53:B6:0D:73:38:50:34:8F:EC:21:C9:8A:4B:D3:2D:B6:8D:5D:BE:A1:14

Eventually, I won’t be so cheap and I’ll get this sort of info from a trusted certificate authority; however, this works for now.

Posted in Computer Science | Tagged , , | Leave a comment