Earlz.biz.tm -- The reasoning is bacon

My sponsor

This guy isn't really a sponsor but I thought it'd be funny to link to his blog so here ya go: http://brynet.biz.tm/

Tags: blog
Permalink to this entry

Comments

By: js
"Your browser/crawler doesn't support gzip, how sad." WTF ? Ah, stupid proxy... Well, https shall be the way to go :) http://brynet.biz.tm/
At: 2010-08-25 19:03:19.315199

By: Earlz
so, who exactly are you js? Are you from osdev?
At: 2010-08-26 01:14:40.85011

By: js
Yes, I'm the not-famous-at-all js from forum.osdev.org :) and IRL I'm a CS student in southern France.
At: 2010-08-27 19:41:30.307421

By: Earlz
Ah ok then js. I couldn't remember if you were someone from StackOverflow, the XKCD forums, or OSDev
At: 2010-08-28 23:55:18.055635

Post a comment!
Your name:
Comment:

What is 2 to the power of 1? (use digits)

Calculators

Seriously TI, why have your calculators not gone down in price in over 10 years? For instance the standard TI-83 costs $99 USD. It has almost always cost about that much for one. I mean really you can get a cell phone with more processing power and RAM and better display for cheaper now.

Anyone else want to start a homebrew calculator design? You can get cheap ARM processors with way more power than a Z80. RAM for such a design is definitely not much for probably like 16megs. The most expensive thing is the display but even those can be had(with controllers!) for less than $50 now. Oh and surely we can make something better than that hellish language dubbed TI-Basic.

Tags: wtf blog rant ideas
Permalink to this entry

Comments

By: Earlz
Royce quit reading my blog!
At: 2010-08-18 01:44:26.198881

Post a comment!
Your name:
Comment:

What is 2 to the power of 1? (use digits)

TLang -- The thing that isn't suppose to suck.

Ok so I've been recently kicking around the old TLang idea. I'm considering it because every thing kinda just sucks for programming languages.

Let me go through each language:

1. C and C++ -- Great unless you want a non-hackish garbage collection system(managed pointers, whatever) or want to do any kind of string manipulation.Also, very easy to make non-portable code.

2. C# -- Excellent under Windows, but Mono is abysmal and always will be. They are trying to hit a target that is moving too fast. Mono will always be behind, and will always be buggy because they are trying to plow forward and implement new features before fixing old bugs.

3. VB6 -- what the hell?

4. Java -- It is the general consensus that the language sucks bad. GUI work is difficult to make look "right". Weird licensing.

5. Go -- Hardly any support and still considered to be obscure.

6. Ruby and Python -- Yes, I love these languages but interpreted languages are just not right for some tasks. It's not a speed issue it's a not-capable-of-checking-if-correct problem. You can't compile it. I can't say much about Python, but I personally don't like the very meta approach to writing Ruby. Basically it's not good Ruby code if less than 75% of your program is Meta Programming. It has it's uses, but it's not a cure-all. Not a ton of library support

7. PHP -- Leaving the language's problems aside, extremely unnatural to use outside of web development.



And so therefore, here comes TLang.

The primary purposes of the language to be:
1. A compiler that works across the common platforms without any hacks.
2. A great language that is both DRY, expressive, and full featured.
3. Not be tied down by trying to match up to another language.
4. To skip the straight-to-assembly part. The first target will be translating to C.
5. Easy, if not trivial to interface with libraries of different languages.
6. To allow enough expression so that optimization is obvious.

And so, we have the TLang project. I will be giving a list of features with language examples soon. I am unsure the language that the bootstrap compiler will be written in.

Tags: programming tl tlang blog
Permalink to this entry

Comments

By: js
Great ! Glad to see you're working on it again :) . Reminds me that I must start working again on my own pet language...
At: 2010-08-15 14:32:26.793775

By: Earlz
Yea I've been really busy with school and work though. Any ideas for what to write the bootstrapping compiler in?
At: 2010-08-16 02:20:44.032029

By: js
Lay out your compiler in pseudocode first, then choose the language that has most of the features you need, and with which you feel most comfortable. Usually it will be obvious.
At: 2010-08-18 19:47:17.065269

By: js
You're lucky to be able to choose your language... I'm working on a paid project on which I have to use php... *hate* *hate* *hate*.
At: 2010-08-18 19:49:18.704541

By: Earlz
In my job I actually wrote a full featured interpreter in C#. The language it implements is also a very good starting point for this project. It's such a shame that it's proprietary :( And I don't mind PHP for some stuff... of course I completely disregard it's hacked up object system and just do straight procedural code, which I really like in certain cases.
At: 2010-08-19 21:44:44.284038

Post a comment!
Your name:
Comment:

What is 2 to the power of 1? (use digits)

SubSonic With Postgres

I decided to attempt to get SubSonic3 to work on Mono using Postgres as the database. I couldn't get it to run on Mono due to incomplete support of Linq, but I did get what I think are meaningful templates for Postgres with ActiveRecord, as of right now though it requires a different provider outside of SubSonic.Core

You can download the entire source here in tar.gz format

Tags: programming blog postgresql subsonic .net
Permalink to this entry

Comments

Post a comment!
Your name:
Comment:

What is 2 to the power of 1? (use digits)

Super minimalist ASP.Net

So I've been kicking around how to create a web application running on .Net and applicable servers(IIS, xsp, etc) WITHOUT using a Webforms or MVC, and I've just now made a mini victory.

I now have a very minimal application running and it runs on both Mono and .Net. First off, I added a new ASHX handler named Test1.ashx

I went ahead and deleted all of the code from the class and put this bit in it:

Code:

protected virtual void Application_BeginRequest (Object sender, EventArgs e)
{
if(Request.Url.AbsolutePath=="/test"){
var h=new Test1(); //make our Test1.ashx handler
h.ProcessRequest(Context);
}else{
Response.ContentType="text/plain";
Response.Write("Hi world!");
}
CompleteRequest();
}


And then in my Web.config I removed a huge amount of junk. It ended up looking like this in the end:

Code:

<?xml version="1.0"?>
<configuration>
<system.web>
<compilation debug="true">
</compilation>
</system.web>
<system.codedom>
<compilers>
<compiler language="c#;cs;csharp" extension=".cs" warningLevel="4" type="Microsoft.CSharp.CSharpCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<providerOption name="CompilerVersion" value="v3.5"/>
<providerOption name="WarnAsError" value="false"/>
</compiler>
</compilers>
</system.codedom>
<!--
The system.webServer section is required for running ASP.NET AJAX under Internet
Information Services 7.0. It is not necessary for previous version of IIS.
-->
<system.webServer>
</system.webServer>
<runtime>
</runtime>
</configuration>


ahh, the best web.config is a short one.

Put it all together and run it, and poof it works as you'd expect. One thing I'm trying to figure out now is how error pages work and why CompleteRequest(); is required at the end of the BeginRequest.

I'll probably put this in an SVN repo pretty soon and I'll post a link to it when I do..

Tags: blog programming .net asp.net
Permalink to this entry

Comments

By: earlz
Oops, I meant I added a Global.asax and that's where the first code snipplet goes
At: 2010-07-24 17:46:51.90862

Post a comment!
Your name:
Comment:

What is 2 to the power of 1? (use digits)

What? That's it?

Ok so I made a cool new little tool for updating multi-line fields in a SQL database. It's extremely simple and runs completely in browser. Basically because Microsoft SQL Server Management Studio doesn't let you insert new lines into text fields you have to write update statements by hand. Well, I use this cool little thing to generate the update statement and escape everything for me.

You can see it at jsbin. Because it's a jsbin you can also update it quickly if you have some way of improving it, etc etc. It's public domain because it's so freaking simple so give it a shot if you too are tired of having to hand-escape multi-line text data for update statements..

Tags: blog tools programming sql
Permalink to this entry

Comments

By: chuck
HELLO DID YOU EVER FIGURE OUT ANY COOL CIRCUTS YOU COULD MAKE WITH PENCIL AND PAPER ? PLEASE EMAIL ME !! CHUCKVICIOUS AT G MAIL DOT COM
At: 2010-07-23 03:43:14.380736

By: earlz
heh, I see we have an xkcd visitor
At: 2010-07-23 16:46:35.733013

Post a comment!
Your name:
Comment:

What is 2 to the power of 1? (use digits)

Artificial Intelligence

I've been thinking about artificial intelligence a lot recently.. A possible environment to test out things with evolution would be a world where objects(life) must fight to live. But that's not all there is to it. In such a simplistic world you would only create a surviver, not an intelligent being. Intelligence would be whenever clans are organized and the world becomes slightly more complex so that these survivalists can create tools.

Basically to create intelligence as we know it, we must implement a large subset of the world as we see it(simplistically)..

After that we have our "test case" for if a being is intelligent. If it survives many many iterations and evolves to have a reason behind it's primitive actions then there is hope for it to be intelligent..

The problem then is just actually creating a genetic algorithm flexible enough to contain any possible intelligent combination of codes and also being simple enough to be practical with today's limitations of computation...


Just had to write a bit about AI.. I'm itching to start designing something but it's so vast that it seems impossible to get a starting point

Tags: blog ai programming
Permalink to this entry

Comments

By: js
Ha ! A new post... Been waiting a long time :) . Have you thought about what your artificial midgets might think of you, their "god" ? Playing with life gives you big responsibilities, even with artificial life :-p .
At: 2010-06-27 20:02:05.364622

By: Earlz
js, wow I wasn't aware anyone but bry was trolling my blog :) and I think it'd be cool to have an artificial pet colony of life... it's a very interesting problem though anyway and yea you're right. what if we are just a simulation of some machine? Can never actually know...
At: 2010-06-28 16:58:11.239584

Post a comment!
Your name:
Comment:

What is 2 to the power of 1? (use digits)

OMG Awesome new.. disconnected WTF?!

Ok so I'm a big fan of the game Mag. They recently put out a new update which has a ton of awesome goodies. Included are new base weapons(including the awesome Mod 1 marksman rifle), new armor, and Flashbang grenades being available from the get-go. (instead of after spending skill points for them). Also a new game mode, but I haven't played it cause you have to actually buy it..

Anyway, so the Playstation 3 network got updated recently also because for about 2 hours I couldn't sign in to my playstation account. No big deal.

So come home from work, I can sign in and do everything. Start playing Mag and I'm noticing some pretty bad glitches*falling through floor, you're invisible when you die, shooting through walls, etc). The worst of all though is the random disconnects! This past 30 minutes or so I've played 4 games of Sabotage, er attempted to play. One of them died after 15 minutes of game play and I had amassed quite a bit of exp that round. When you get disconnected though your exp doesn't get saved. What a waste. Next game I play for bout 3 minutes, disconnect. Game after lasted about 7 minutes and the last game lasted about 4.

So what the hell Mag? Why can't you keep your servers online long enough for me to play a single game? I'll go ahead and give them some grace cause maybe it's actually the PS3 Networks fault or maybe it's cause I'm technically in the "server maintenance window" but still. If you're going to need to disconnect everyone, just say "you can't play the game right now" rather than disconnecting us right before a good game ends.

Tags: mag blog wtf games
Permalink to this entry

Comments

By: Bry
Silly gamers.
At: 2010-06-10 04:39:53.815311

By: Bry
Add some new content, I keep accidentally getting to your site.. stupid firefox auto-completion.
At: 2010-06-17 00:00:37.419326

By: Earlz
You do realize you have to constantly go to my site for it to be put in the firefox auto complete right? lol.. I'll get around to it, working 60 hours a week is hard enough though
At: 2010-06-17 00:42:04.569356

Post a comment!
Your name:
Comment:

What is 2 to the power of 1? (use digits)

Trolls.. sigh

I recently came across this useful blog post

Well I decided to read the comments and this one struck me as a "what the... " moment.

Quote:

Hi, Using Microsoft Windows is more better
Windows is the BEST OS around the world
I can’t find netcat ur talking in Windows, so it is not a good software, let using Windows and the program inside it
Thanks


Ah yes I forgot about the new corporate policy of If It's Not Microsoft, It's Not Good. Sorry we bursted your bubble back in 2008. Next time I suggest you only browse the company intranet, I'm sure there is all sorts of bad stuff out here on the internet. I wouldn't want your Microsoft Pride to be deflated.

Well, that's my rant of the day...

Tags: rant blog wtf
Permalink to this entry

Comments

Post a comment!
Your name:
Comment:

What is 2 to the power of 1? (use digits)

(codename? ) Universal Chaos!

Ok so that's the name of this new build server project. Or possibly a code name since I think it's weird.

So what is Universal Chaos? Put shortly it is snapshot building service for multiple operating systems. If I get "unique" hardware than I'm completely open to expanding it to include other CPU architectures as well.

"Why would I need a building service? I build all the time." Oh you do? Do you make these builds available to the public in binary format? How many Operating Systems do you build for? This is where I come in. I make binary builds for multiple operating systems daily and make them available on my servers. It's a win-win-win. First, I will possibly get ad profit(hopefully to offset the cost of electricity). Second, you win because you don't have to setup your own nightly builds. Third, your users win because they get to test your bleeding edge software easily and from the comfort of their own OS. Fourth, you win because of more testing coverage :)

How will it work? Basically I have a bunch of computers at my home. At a predefined time(probably 7AM GMT+7) my master build computer will check for updates from the source control for your project. If it has updates then it will send these updates to the slave build computers. This is so I can preserve my home line's precious bandwidth. Then the slave computers will build a copy of your project from scratch.(doing make clean && make). And finally it will tar up the binaries produced and send them to the master build computer. Once the master build computer has all the new binary files, it will upload them to the server that this site rests on. This is again so that I preserve bandwidth on my home connection and also so that you can download the files at good speeds.

Why are you doing this? Because I want to give back to the community. And maybe if enough people start doing this then more than just Linux and Windows builds will be given out by projects.

My project depends on library X though, can I still use your service? Yes! You can, at least for the OSs that Library X will work on. Tell me of any dependencies before hand and I will install them myself on each OS that supports it.

I require root access for something, surely I can't use this...can I? The truth is that these computers that will be the slave computers are mostly trash. So with approval you can get partial root access for what you need to do. This is especially handy for when you need to build a disk image using a loopback device.

What OSs will you support?
At the moment this is my "support ASAP" list

* Arch Linux (x86 and x86-64)
* OpenBSD (x86 and x86-64)
* FreeBSD (x86 and x86-64)
* Windows (using MinGW 32 bit only)
* Whatever you request!
I want to support any OS you need. As long as it is free and installable in x86 hardware then I will install it.

That being said my "support sometime maybe" list is:
* Debian Linux (x86 and x86-64)
* Darwin or MacOSX (for the latter I'd need a hardware donation though)
* Windows 64bit.
* NetBSD (x86 and x86-64)

Now then for the beginning I will offer only 32bit builds and 64bit builds for OpenBSD and Arch Linux. This is because I don't have a ton of newer hardware.


This sounds awesome. How can I help? You can definitely help by having your own build servers that contribute to "my network"(don't worry you don't have to mail your PC to me). Right now I'm not really ready for any extra servers though because all of the automatic stuff is being built.

When can I start getting stuff built by you? Well, probably in a few weeks or maybe a month or two. I'm currently building in all the automation and installing Operating Systems on (several!) computers.

Will you build anything? In short, no. If you are a commercial project then contact me and maybe we can work something out but it's definitely on a per-project basis. Open source projects will almost always be accepted. The only time they are not is for very large projects. If you project takes longer than 2 hours to build on modern hardware or has a final executable size greater than 40MB then you may be considered too large, at least for daily usage. I may consider doing a weekly thing or something like that though. Also you do not have to be a developer or owner of the project to submit it! If you're tired of not getting nightly builds from an opensource project then submit it! I'll probably approve it. In fact how I plan on testing it is building things like PCC and Firefox and such nightly.


Tags: blog news universal-chaos programming
Permalink to this entry

Comments

By: Bry
Gay.
At: 2010-06-04 02:37:57.863578

By: js
"build a disk image using a loopback device" => loopback is bad, use genext2fs for ext2, mtools for fat, make your own script for sfs, or directly work with offsets on your floppy image with grub (works quite well actually). :-p
At: 2010-06-16 22:47:40.164248

By:
Also firefox already has official nightly builds, so you might want to build something more worthy… Nice idea by the way :)
At: 2010-06-16 22:48:54.306456

By: js
As far as I can tell, you don't need exotic hardware to build for that hardware, since you can cross-compile. Or maybe I'm mistaken ? (software with prerequisites that work on that hardware ?)
At: 2010-06-16 22:52:07.403437

By: Roger
Codeblocks does not have recent builds for Win32, might be a worthwhile project to add to the list.
At: 2010-06-18 16:12:15.306147

Post a comment!
Your name:
Comment:

What is 2 to the power of 1? (use digits)

|< Latest < Next Previous > Earliest >|