Register - Login
Views: 99412656
Main - Memberlist - Active users - Calendar - Wiki - IRC Chat - Online users
Ranks - Rules/FAQ - Stats - Latest Posts - Color Chart - Smilies
04-24-22 11:54:42 PM
Jul - Posts by IIMarckus
Pages: 1 2 3 4 5 6
IIMarckus
Member
Level: 25


Posts: 101/111
EXP: 82221
For next: 7399

Since: 10-11-08


Since last post: 3.0 years
Last activity: 1.7 years

Posted on 07-20-14 12:16:51 AM, in GBA cartridge bus question... Link

Coming into this thread way late, just to say that this reminds me of an old thread on PocketHeaven where people tried to run GBC games on the Game Boy Micro. I don’t think it was successful but it might have some useful info.

(Fun fact: the GBA was originally supposed to have software support for GBC carts, but they couldn’t get it to work, so they went with a hardware switch instead. See this post. I remember reading the relevant interview with the GBA developers several years ago but don’t have a link handy.)

____________________

IIMarckus
Member
Level: 25


Posts: 102/111
EXP: 82221
For next: 7399

Since: 10-11-08


Since last post: 3.0 years
Last activity: 1.7 years

Posted on 07-25-14 04:52:00 PM, in Quoting and previewing are broken (sometimes) Link
Originally posted by StapleButter
It's also worth noting that the board's pages don't specify an encoding.

Here, Firefox defaults to Windows-1252

Not all the time, which is part of the problem. By the way, I can quote and preview Joe’s original post. As usual, different people have different behavior in their browsers, and that leads to a mess.

The way to go here would be:

  1. Dump every field of the database to a separate file.
  2. Use something like uchardet to figure out exactly how each field is encoded.
  3. Use iconv to convert to UTF-8.
  4. (Maybe not necessary: strip out any UTF-8 byte‐order marks, the sequence of three bytes 0xEF,0xBB,0xBF. This shouldn’t happen but Windows likes to add them to UTF-8 files; PHP and MySQL do not play well with them.)
  5. Reconstruct the database from scratch using MySQL’s utf8mb4 encoding (not utf8, because in true MySQL form that doesn’t actually support the full range of Unicode).
  6. Have the board emit the following HTTP header: Content-Type: text/html;charset=utf-8
  7. And the following meta tag: <meta http-equiv="Content-Type" content="text/html;charset=utf-8">
  8. Keep a read‐only copy of the old board/database, just in case some posts got truncated.

After that, as long as nobody manually sets their browser otherwise, everything and everyone will being UTF-8 and there will be no more problems.

Originally posted by Joe
To be fair, I turned off Firefox's autodetect to make sure my posts get HTML-escaped when I post Japanese text, so it might happen less often to you than to me.

This helps for the moment but is not perfect—it only converts characters that aren’t representable in your native encoding. Since the board usually shows up for you as CP-1252, characters like × and — (which are valid in CP-1252) don’t get escaped when you post, and are inserted raw in the database.

Originally posted by Joe
Or does PHP detect the meta tag and become even more dumb than usual?

Thankfully not. That would be a nightmare…

____________________

IIMarckus
Member
Level: 25


Posts: 103/111
EXP: 82221
For next: 7399

Since: 10-11-08


Since last post: 3.0 years
Last activity: 1.7 years

Posted on 07-25-14 07:43:50 PM, in Quoting and previewing are broken (sometimes) Link
Originally posted by Joe
Originally posted by IIMarckus
Originally posted by Joe
To be fair, I turned off Firefox's autodetect to make sure my posts get HTML-escaped when I post Japanese text, so it might happen less often to you than to me.

This helps for the moment but is not perfect—it only converts characters that aren’t representable in your native encoding. Since the board usually shows up for you as CP-1252, characters like × and — (which are valid in CP-1252) don’t get escaped when you post, and are inserted raw in the database.


Many posts already contain punctuation encoded as Windows-1252, not just mine. I made this thread because I came across a post I couldn't quote.

Sure, I wasn’t trying to imply otherwise.

Originally posted by Joe
It would probably be best to assume Windows-1252 when the code page detection is inconclusive.

uchardet seems to be pretty good at detecting that things are 1252. But I haven’t tried it on anything as large as this database, just a few individual pages saved from the board.

____________________

IIMarckus
Member
Level: 25


Posts: 104/111
EXP: 82221
For next: 7399

Since: 10-11-08


Since last post: 3.0 years
Last activity: 1.7 years

Posted on 10-05-14 09:16:21 PM, in Pokemon Red: minor enhancements (patch) Link
Considered using the disassembly for this? Speaking from personal experience it makes maintaining patches much nicer.

____________________
IIMarckus
Member
Level: 25


Posts: 105/111
EXP: 82221
For next: 7399

Since: 10-11-08


Since last post: 3.0 years
Last activity: 1.7 years

Posted on 02-15-15 11:12:58 AM, in Weird Discoveries Link
Originally posted by Rena
How does that Pokemon patch work anyway? Code in the save file? Or just resetting some variables?

Updating the RTC.

Unrelated: Pokémon Stadium 2 (USA) contains chunks of the Pokémon Game Boy games, including most of a Crystal ROM that predates the released game. Further analysis happening when I get around to it… (the differences are probably minor)

____________________

IIMarckus
Member
Level: 25


Posts: 106/111
EXP: 82221
For next: 7399

Since: 10-11-08


Since last post: 3.0 years
Last activity: 1.7 years

Posted on 02-17-15 06:20:36 AM, in Weird Discoveries (last edited by IIMarckus at 02-17-15 06:28:01 AM) Link
Originally posted by Xkeeper
Parts of an earlier English ROM? Because if so I wonder if the JP game might have an earlier version of Crystal period.

Possible; JP Crystal and JP Stadium 3 were released the same day. Haven’t looked at the Japanese Stadiums yet. Stadium 1 USA has nothing interesting in this respect.

Originally posted by Foxhack
I wonder if they used the ROM to grab data for the Pokemon (attacks, behavior, etc.)?

Maybe. Unsure (but haven’t had time to test) because it also has movesets that are not valid in the games proper (e.g., NYPC). Also unlikely that they were used in Game Boy Tower (even more so given that they aren’t complete ROMs).

____________________

IIMarckus
Member
Level: 25


Posts: 107/111
EXP: 82221
For next: 7399

Since: 10-11-08


Since last post: 3.0 years
Last activity: 1.7 years

Posted on 05-04-17 08:19:14 AM, in What's your OS(es)? Link
Originally posted by IIMarckus

I use OpenBSD on all my computers. It’s pretty cool.


I still use OpenBSD on all my computers. It’s still pretty cool.

____________________

IIMarckus
Member
Level: 25


Posts: 108/111
EXP: 82221
For next: 7399

Since: 10-11-08


Since last post: 3.0 years
Last activity: 1.7 years

Posted on 02-18-18 06:35:24 AM, in There was yet another school shooting Link
Originally posted by Xkeeper
It would be nice if something, anything concrete was done about the gun problem here.
What do you propose?

Or rather, what do you propose that actually has a chance of surviving a constitutional challenge?

This isn’t a rhetorical question. The Second Amendment definitely limits the options, but it’s not some impossible barrier to gun control. Automatic weapons have been effectively banned since the ’30s. Domestic abusers and felons are prohibited from owning guns and have been for decades. None of these violate the Second. A bump stock ban would most likely be legal. (DC v. Heller is worth reading by anyone interested in the subject of what kinds of restrictions would pass constitutional muster.)

I’m going to go out on a limb and say repealing the Second Amendment is politically untenable. But that doesn’t mean gun control advocates have to sit on their hands. It does mean that they need to be shrewd and realistic in drafting legislation that is practical to pass.
Originally posted by Kazinsal
It's hard to find a workable solution for America because no matter what you do you're going to need to send in the National Guard to take two hundred million guns by force and a lot of people are going to die.
Trump is President, and you think it’s a good idea to flout the Fourth Amendment via the military? You don’t see how that could go wrong?

____________________
IIMarckus
Member
Level: 25


Posts: 109/111
EXP: 82221
For next: 7399

Since: 10-11-08


Since last post: 3.0 years
Last activity: 1.7 years

Posted on 02-18-18 08:20:10 AM, in There was yet another school shooting (last edited by IIMarckus at 02-18-18 08:20:37 AM) Link
Originally posted by Kazinsal
Originally posted by IIMarckus
Trump is President, and you think it’s a good idea to flout the Fourth Amendment via the military? You don’t see how that could go wrong?

What, you seriously think that any gun control is going to happen in the next three years, let alone the unilateral ban of firearms and subsequent buyback/mass enforcement?

No, but I think another authoritarian goon like Trump can be elected again. If the Bill of Rights have been sufficiently eroded—and I’m talking fourth and fifth amendments here—it’s game over.

Originally posted by Kazinsal
Originally posted by IIMarckus
What do you propose?

Designate the NRA as a terrorist organization and use that to arrest any politician who sides with them or takes their money.
That’s bonkers. You’re opening the door to legal persecution of people for supporting Planned Parenthood, or the Communist Party, or whatever flavor of the month is considered anathema by the party in power. Can you look at the history of the United States, or the present, and not imagine that these sweeping powers you’re proposing will be misused?

____________________
IIMarckus
Member
Level: 25


Posts: 110/111
EXP: 82221
For next: 7399

Since: 10-11-08


Since last post: 3.0 years
Last activity: 1.7 years

Posted on 02-22-19 11:41:56 PM, in Game Boy Advance appreciation thread Link

The Game Boy Advance had an excellent library. I’d say my top three are Wario Land 4, Advance Wars 2, and Rhythm Heaven. But I’m pretty sure I played the Mega Man Zero games more than anything else.

____________________

IIMarckus
Member
Level: 25


Posts: 111/111
EXP: 82221
For next: 7399

Since: 10-11-08


Since last post: 3.0 years
Last activity: 1.7 years

Posted on 04-16-19 03:53:10 AM, in What's the farthest you've traveled in each cardinal direction? Link

I’ve never been further north than Berlin. Next furthest is London. East, Budapest followed by Ljubljana. South and west are both taken by Taipei. All of these were vacation/sightseeing trips. Never been south of the equator… a dream is to hit Antarctica, but at this point in life I’m starting to doubt I can make it happen.

Challenge mode: surface travel only, no air travel allowed!

West would be San Francisco. I rode the Amtrak to California, rented a car, and road tripped and camped my way through Sequoia, King’s Canyon, and Yosemite, then headed to the ocean and drove down the coast all the way to the Mexican border. One of my favorite trips. California may have way too many people, but its national parks are to die for.

South: a road trip to Brownsville, Texas. Almost as far south as Taipei (within a degree of latitude), and as far south as you can get in the lower 48 except the very tip of Florida. Though Brownsville was a family trip when I was a kid, so it might not count. I guess on my own I never went past Austin.

East: Chicago, purely by train. And north: from Chicago, I took another train just over the state border to Kenosha, Wisconsin.

I suppose that time some friends and I drove to Niagara Falls from Ohio might count; I lived in Cleveland then.

____________________

Pages: 1 2 3 4 5 6
Jul - Posts by IIMarckus


Rusted Logic

Acmlmboard - commit 47be4dc [2021-08-23]
©2000-2022 Acmlm, Xkeeper, Kaito Sinclaire, et al.

33 database queries, 17 query cache hits.
Query execution time:  0.092772 seconds
Script execution time:  0.021266 seconds
Total render time:  0.114037 seconds


TidyHTML vomit below
line 1 column 1 - Warning: missing <!DOCTYPE> declaration
line 119 column 11 - Warning: <form> isn't allowed in <table> elements
line 118 column 10 - Info: <table> previously mentioned
line 120 column 11 - Warning: missing <tr>
line 120 column 119 - Warning: missing </font> before </td>
line 124 column 16 - Warning: plain text isn't allowed in <tr> elements
line 120 column 11 - Info: <tr> previously mentioned
line 125 column 68 - Warning: missing </nobr> before </td>
line 141 column 68 - Warning: missing </nobr> before <tr>
line 147 column 35 - Warning: missing <tr>
line 147 column 50 - Warning: missing </font> before </td>
line 147 column 136 - Warning: missing </font> before </table>
line 149 column 35 - Warning: missing <tr>
line 149 column 95 - Warning: unescaped & or unknown entity "&page"
line 149 column 128 - Warning: unescaped & or unknown entity "&page"
line 149 column 161 - Warning: unescaped & or unknown entity "&page"
line 149 column 194 - Warning: unescaped & or unknown entity "&page"
line 149 column 227 - Warning: unescaped & or unknown entity "&page"
line 149 column 50 - Warning: missing </font> before </td>
line 149 column 264 - Warning: missing </font> before </table>
line 156 column 9 - Warning: <div> isn't allowed in <table> elements
line 152 column 17 - Info: <table> previously mentioned
line 158 column 9 - Warning: missing <tr>
line 176 column 13 - Warning: missing <tr>
line 182 column 9 - Warning: <div> isn't allowed in <table> elements
line 152 column 17 - Info: <table> previously mentioned
line 184 column 9 - Warning: missing <tr>
line 202 column 13 - Warning: missing <tr>
line 212 column 9 - Warning: <div> isn't allowed in <table> elements
line 152 column 17 - Info: <table> previously mentioned
line 214 column 9 - Warning: missing <tr>
line 232 column 13 - Warning: missing <tr>
line 239 column 9 - Warning: <div> isn't allowed in <table> elements
line 152 column 17 - Info: <table> previously mentioned
line 241 column 9 - Warning: missing <tr>
line 259 column 13 - Warning: missing <tr>
line 265 column 9 - Warning: <div> isn't allowed in <table> elements
line 152 column 17 - Info: <table> previously mentioned
line 267 column 9 - Warning: missing <tr>
line 285 column 13 - Warning: missing <tr>
line 291 column 9 - Warning: <div> isn't allowed in <table> elements
line 152 column 17 - Info: <table> previously mentioned
line 293 column 9 - Warning: missing <tr>
line 311 column 13 - Warning: missing <tr>
line 317 column 9 - Warning: <div> isn't allowed in <table> elements
line 152 column 17 - Info: <table> previously mentioned
line 319 column 9 - Warning: missing <tr>
line 337 column 13 - Warning: missing <tr>
line 343 column 9 - Warning: <div> isn't allowed in <table> elements
line 152 column 17 - Info: <table> previously mentioned
line 345 column 9 - Warning: missing <tr>
line 363 column 13 - Warning: missing <tr>
line 376 column 9 - Warning: <div> isn't allowed in <table> elements
line 152 column 17 - Info: <table> previously mentioned
line 378 column 9 - Warning: missing <tr>
line 396 column 13 - Warning: missing <tr>
line 407 column 9 - Warning: <div> isn't allowed in <table> elements
line 152 column 17 - Info: <table> previously mentioned
line 409 column 9 - Warning: missing <tr>
line 427 column 13 - Warning: missing <tr>
line 433 column 9 - Warning: <div> isn't allowed in <table> elements
line 152 column 17 - Info: <table> previously mentioned
line 435 column 9 - Warning: missing <tr>
line 453 column 13 - Warning: missing <tr>
line 464 column 17 - Warning: missing <tr>
line 464 column 17 - Warning: discarding unexpected <table>
line 467 column 35 - Warning: missing <tr>
line 467 column 95 - Warning: unescaped & or unknown entity "&page"
line 467 column 128 - Warning: unescaped & or unknown entity "&page"
line 467 column 161 - Warning: unescaped & or unknown entity "&page"
line 467 column 194 - Warning: unescaped & or unknown entity "&page"
line 467 column 227 - Warning: unescaped & or unknown entity "&page"
line 467 column 50 - Warning: missing </font> before </td>
line 467 column 264 - Warning: missing </font> before </table>
line 469 column 35 - Warning: missing <tr>
line 469 column 50 - Warning: missing </font> before </td>
line 469 column 136 - Warning: missing </font> before </table>
line 471 column 17 - Warning: discarding unexpected </textarea>
line 471 column 28 - Warning: discarding unexpected </form>
line 471 column 35 - Warning: discarding unexpected </embed>
line 471 column 43 - Warning: discarding unexpected </noembed>
line 471 column 53 - Warning: discarding unexpected </noscript>
line 471 column 64 - Warning: discarding unexpected </noembed>
line 471 column 74 - Warning: discarding unexpected </embed>
line 471 column 82 - Warning: discarding unexpected </table>
line 471 column 90 - Warning: discarding unexpected </table>
line 473 column 9 - Warning: missing </font> before <table>
line 485 column 25 - Warning: discarding unexpected </font>
line 494 column 58 - Warning: discarding unexpected </font>
line 472 column 1 - Warning: missing </center>
line 120 column 63 - Warning: <img> lacks "alt" attribute
line 125 column 19 - Warning: <td> attribute "width" has invalid value "120px"
line 125 column 93 - Warning: <img> lacks "alt" attribute
line 141 column 19 - Warning: <td> attribute "width" has invalid value "120px"
line 141 column 98 - Warning: <img> lacks "alt" attribute
line 161 column 22 - Warning: <img> lacks "alt" attribute
line 161 column 63 - Warning: <img> lacks "alt" attribute
line 161 column 112 - Warning: <img> lacks "alt" attribute
line 161 column 162 - Warning: <img> lacks "alt" attribute
line 172 column 15 - Warning: <img> lacks "alt" attribute
line 187 column 22 - Warning: <img> lacks "alt" attribute
line 187 column 63 - Warning: <img> lacks "alt" attribute
line 187 column 112 - Warning: <img> lacks "alt" attribute
line 187 column 162 - Warning: <img> lacks "alt" attribute
line 198 column 15 - Warning: <img> lacks "alt" attribute
line 217 column 22 - Warning: <img> lacks "alt" attribute
line 217 column 63 - Warning: <img> lacks "alt" attribute
line 217 column 112 - Warning: <img> lacks "alt" attribute
line 217 column 162 - Warning: <img> lacks "alt" attribute
line 228 column 15 - Warning: <img> lacks "alt" attribute
line 235 column 1020 - Warning: <img> proprietary attribute value "absmiddle"
line 235 column 1020 - Warning: <img> lacks "alt" attribute
line 244 column 22 - Warning: <img> lacks "alt" attribute
line 244 column 63 - Warning: <img> lacks "alt" attribute
line 244 column 112 - Warning: <img> lacks "alt" attribute
line 244 column 162 - Warning: <img> lacks "alt" attribute
line 255 column 15 - Warning: <img> lacks "alt" attribute
line 270 column 22 - Warning: <img> lacks "alt" attribute
line 270 column 63 - Warning: <img> lacks "alt" attribute
line 270 column 112 - Warning: <img> lacks "alt" attribute
line 270 column 162 - Warning: <img> lacks "alt" attribute
line 281 column 15 - Warning: <img> lacks "alt" attribute
line 296 column 22 - Warning: <img> lacks "alt" attribute
line 296 column 63 - Warning: <img> lacks "alt" attribute
line 296 column 112 - Warning: <img> lacks "alt" attribute
line 296 column 162 - Warning: <img> lacks "alt" attribute
line 307 column 15 - Warning: <img> lacks "alt" attribute
line 322 column 22 - Warning: <img> lacks "alt" attribute
line 322 column 63 - Warning: <img> lacks "alt" attribute
line 322 column 112 - Warning: <img> lacks "alt" attribute
line 322 column 162 - Warning: <img> lacks "alt" attribute
line 333 column 15 - Warning: <img> lacks "alt" attribute
line 348 column 22 - Warning: <img> lacks "alt" attribute
line 348 column 63 - Warning: <img> lacks "alt" attribute
line 348 column 112 - Warning: <img> lacks "alt" attribute
line 348 column 162 - Warning: <img> lacks "alt" attribute
line 359 column 15 - Warning: <img> lacks "alt" attribute
line 381 column 22 - Warning: <img> lacks "alt" attribute
line 381 column 63 - Warning: <img> lacks "alt" attribute
line 381 column 112 - Warning: <img> lacks "alt" attribute
line 381 column 162 - Warning: <img> lacks "alt" attribute
line 392 column 15 - Warning: <img> lacks "alt" attribute
line 412 column 22 - Warning: <img> lacks "alt" attribute
line 412 column 63 - Warning: <img> lacks "alt" attribute
line 412 column 112 - Warning: <img> lacks "alt" attribute
line 412 column 162 - Warning: <img> lacks "alt" attribute
line 423 column 15 - Warning: <img> lacks "alt" attribute
line 438 column 22 - Warning: <img> lacks "alt" attribute
line 438 column 63 - Warning: <img> lacks "alt" attribute
line 438 column 112 - Warning: <img> lacks "alt" attribute
line 438 column 162 - Warning: <img> lacks "alt" attribute
line 449 column 15 - Warning: <img> lacks "alt" attribute
line 479 column 25 - Warning: <img> lacks "alt" attribute
line 484 column 267 - Warning: <img> lacks "alt" attribute
line 147 column 136 - Warning: trimming empty <font>
line 149 column 264 - Warning: trimming empty <font>
line 464 column 17 - Warning: trimming empty <tr>
line 467 column 264 - Warning: trimming empty <font>
line 469 column 136 - Warning: trimming empty <font>
line 125 column 68 - Warning: <nobr> is not approved by W3C
line 141 column 68 - Warning: <nobr> is not approved by W3C
line 177 column 27 - Warning: <nobr> is not approved by W3C
line 203 column 27 - Warning: <nobr> is not approved by W3C
line 233 column 27 - Warning: <nobr> is not approved by W3C
line 260 column 27 - Warning: <nobr> is not approved by W3C
line 286 column 27 - Warning: <nobr> is not approved by W3C
line 312 column 27 - Warning: <nobr> is not approved by W3C
line 338 column 27 - Warning: <nobr> is not approved by W3C
line 364 column 27 - Warning: <nobr> is not approved by W3C
line 397 column 27 - Warning: <nobr> is not approved by W3C
line 428 column 27 - Warning: <nobr> is not approved by W3C
line 454 column 27 - Warning: <nobr> is not approved by W3C
Info: Document content looks like HTML5
Info: No system identifier in emitted doctype
Tidy found 159 warnings and 0 errors!


The alt attribute should be used to give a short description
of an image; longer descriptions should be given with the
longdesc attribute which takes a URL linked to the description.
These measures are needed for people using non-graphical browsers.

For further advice on how to make your pages accessible
see http://www.w3.org/WAI/GL.
You are recommended to use CSS to specify the font and
properties such as its size and color. This will reduce
the size of HTML files and make them easier to maintain
compared with using <FONT> elements.

You are recommended to use CSS to control line wrapping.
Use "white-space: nowrap" to inhibit wrapping in place
of inserting <NOBR>...</NOBR> into the markup.

About HTML Tidy: https://github.com/htacg/tidy-html5
Bug reports and comments: https://github.com/htacg/tidy-html5/issues
Official mailing list: https://lists.w3.org/Archives/Public/public-htacg/
Latest HTML specification: http://dev.w3.org/html5/spec-author-view/
Validate your HTML documents: http://validator.w3.org/nu/
Lobby your company to join the W3C: http://www.w3.org/Consortium

Do you speak a language other than English, or a different variant of
English? Consider helping us to localize HTML Tidy. For details please see
https://github.com/htacg/tidy-html5/blob/master/README/LOCALIZE.md