Posts

Showing posts from August, 2019

KDE Neon Error

Error: org.kde.pim.akonadiserver: Starting up the Akonadi Server... mysqld-akonadi: [ERROR] Could not open required defaults file: /home/irandom419/.local/share/ mysqld-akonadi: [ERROR] Fatal error in defaults handling. Program aborted! org.kde.pim.akonadiserver: database server stopped unexpectedly org.kde.pim.akonadiserver: Database process exited unexpectedly during initial connection! org.kde.pim.akonadiserver: executable: "/usr/sbin/mysqld-akonadi" org.kde.pim.akonadiserver: arguments: ("--defaults-file=/home/irandom419/.local/share/akonadi/mysql.conf", "--datadir=/home/irandom419/.local/share/ako nadi/db_data/", "--socket=/run/user/1000/akonadi/mysql.socket", "--pid-file=/run/user/1000/akonadi/mysql.pid") org.kde.pim.akonadiserver: stdout: "" org.kde.pim.akonadiserver: stderr: "mysqld-akonadi: [ERROR] Could not open required defaults file: /home/irandom419/.local/share/akonadi/mysql.conf\nmy sqld-akonadi: [ERROR]

Compiling C# at the Command Line

I frequently have to compile stuff outside of Visual Studio 2008, to access .Net 4.0. Here is what I came-up with a simple batch file to do it. %windir%\Microsoft.Net\Framework\v4.0.30319\csc.exe /t:exe /out:getIt.exe getIt.cs /r:SimpleImpersonation.dll /lib:"./"

Cyrus Logrotate Script

I can't find anything on how to configure Cyrus to deal with this, so I made a logrotate script. I probably need to verify it more, but here is what I got and below was my solution. -rw------- 1 cyrus mail 49650661 Aug 18 10:30 imap-19468 -rw------- 1 cyrus mail     6056 Aug 19 04:51 imap-19496 -rw------- 1 cyrus mail     8717 Aug 19 04:51 imap-19504 -rw------- 1 cyrus mail   253145 Aug 19 05:06 imap-19514 -rw------- 1 cyrus mail     8113 Aug 18 03:13 imap-19523 -rw------- 1 cyrus mail    69985 Aug 18 12:16 imap-22864 -rw------- 1 cyrus mail     2223 Aug 18 05:39 imap-23489 -rw------- 1 cyrus mail    13759 Aug 18 04:32 imap-24078 -rw------- 1 cyrus mail 48699986 Aug 18 23:30 imap-24091 -rw------- 1 cyrus mail 48706721 Aug 19 00:30 imap-27202 -rw------- 1 cyrus mail 48719302 Aug 19 01:30 imap-30681 -rw------- 1 cyrus mail 48741130 Aug 19 02:30 imap-30766 -rw------- 1 cyrus mail 48830788 Aug 18 13:30 imap-30967 -rw------- 1 cyrus mail 49007316 Aug 18 00:30 imap-31936 -rw------- 1

Cage Free Oregon

Thought this was funny: https://www.opb.org/news/article/oregon-cage-free-hens-chickens-eggs-law/

HttpWebRequest in 3.5

I have to back port everything to 3.5 and had a hell of a time getting it to work. Here’s what finally succeeded.             var httpWebRequest = (HttpWebRequest)WebRequest.Create(URL);             httpWebRequest.Timeout = 50000;            httpWebRequest.Proxy = null;             httpWebRequest.AllowAutoRedirect = true;             httpWebRequest.ContentType = "application/x-www-form-urlencoded";             httpWebRequest.Method = "POST";             httpWebRequest.Accept = "application/json";             httpWebRequest.KeepAlive = false;             //Technically posts should use 100-continue, but I'm lazy             httpWebRequest.ServicePoint.Expect100Continue = false;             var postData = "type=potato";             try             {                 using (var streamWriter = new StreamWriter(httpWebRequest.GetRequestStream()))                 {                     streamWriter.Write(postData)

Going Postal on the Roku Channel

It's pretty good so far. https://therokuchannel.roku.com/details/7c820a0e5c775a328ec69d67aa815012/going-postal Ian

Java & .Net Together is Possible

I needed to access phone stats and the only mechanism was JDBC and associated port. So rather than make a project and pull in a bunch of people to get the ODBC port opened, I just converted the JDBC to .NET and compiled it. It uses a lot of DLL's, but that's nothing compared to meetings. https://www.ikvm.net/