<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Source_code :: Tag :: JP&#39;s Domain</title>
    <link>https://www.jpsdomain.org/tags/source_code/index.html</link>
    <description></description>
    <generator>Hugo</generator>
    <language>en-us</language>
    <atom:link href="https://www.jpsdomain.org/tags/source_code/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Black Page</title>
      <link>https://www.jpsdomain.org/source/blacksrc/index.html</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>https://www.jpsdomain.org/source/blacksrc/index.html</guid>
      <description>Description Programs to print a BLACK page to an HP LaserJet. I plan to move this to https://github.com/vossenjp/ at some point…&#xA;C Source #include &lt;stdio.h&gt; /* Program to print a BLACK page to an HP LaserJet */ main() { /* begin of main */ printf(&#34;\n\n\nBlack PC Computing October 1991&#34;); printf(&#34;\n\nNow printing black page...\n&#34;); fprintf(stdprn,&#34;%c%s&#34;,&#39;\33&#39;,&#34;&amp;l0E&#34;); fprintf(stdprn,&#34;%c%s&#34;,&#39;\33&#39;,&#34;&amp;l0L&#34;); fprintf(stdprn,&#34;%c%s&#34;,&#39;\33&#39;,&#34;*p0x0Y&#34;); fprintf(stdprn,&#34;%c%s&#34;,&#39;\33&#39;,&#34;*c2400a3300B&#34;); fprintf(stdprn,&#34;%c%s&#34;,&#39;\33&#39;,&#34;*c0P&#34;); fprintf(stdprn,&#34;%c%s&#34;,&#39;\33&#39;,&#34;E&#34;); } /* end of main */ BASIC Source 10 REM Program to print a BLACK page on an HP LaserJet 20 PRINT : PRINT : PRINT &#34;BLACK PC Computing October 1991&#34; 30 PRINT : PRINT &#34;Now printing Black page...&#34; 40 OPEN &#34;lpt1&#34; FOR OUTPUT AS #1 50 PRINT #1, CHR$(27) + &#34;&amp;l0E&#34; 60 PRINT #1, CHR$(27) + &#34;&amp;l0L&#34; 70 PRINT #1, CHR$(27) + &#34;*p0x0Y&#34; 80 PRINT #1, CHR$(27) + &#34;*c2400a3300B&#34; 90 PRINT #1, CHR$(27) + &#34;*c0P&#34; 100 PRINT #1, CHR$(27) + &#34;E&#34; 110 CLOSE #1</description>
    </item>
    <item>
      <title>Perl Source Code</title>
      <link>https://www.jpsdomain.org/source/perl/index.html</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>https://www.jpsdomain.org/source/perl/index.html</guid>
      <description>Description I plan to move all of this to https://github.com/vossenjp/ at some point…&#xA;When saving, rename from *.pl.txt to *.pl or whatever you use for Perl. If using on Unix, you may need to convert CRLF to LF, and modify the “shebang” line (e.g. #!/usr/local/bin). “CleanUp” can fix the line termination. Or find a good dos2unix and unix2dos program like those found in the UNXUtils.</description>
    </item>
    <item>
      <title>Reboot Source Code</title>
      <link>https://www.jpsdomain.org/source/rebt-src/index.html</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>https://www.jpsdomain.org/source/rebt-src/index.html</guid>
      <description>Source Source Code for programs that reboot your PC. I plan to move this to https://github.com/vossenjp/ at some point…&#xA;Reboot.c #define MAGIC 0 /* for cold restart */ /* #define MAGIC 0x1234 /* for warm restart */ #define BOOT_SEG 0xffffL #define BOOT_OFF 0x0000L #define BOOT_ADR ((BOOT_SEG &lt;&lt; 16) | BOOT_OFF) #define DOS_SEG 0x0040L #define RESET_FLAG 0x0072L #define RESET_ADR ((DOS_SEG &lt;&lt; 16) | RESET_FLAG) main() { void ((far *fp)()) = (void (far *)()) BOOT_ADR; *(int far *)RESET_ADR = MAGIC; (*fp)(); return 0; /* never gets here, but keeps compiler happy */ } Reboot.bas REM From PC Mag, Vol11 Number 5 DECLARE SUB ReBoot (Warm%) CALL ReBoot(1) &#39;be sure to save this program before running it! SUB ReBoot (Warm%) STATIC IF Warm% THEN &#39;if they want a warm boot DEF SEG = 0 &#39;assign the value 1234 Hex POKE &amp;H473, &amp;H12 &#39;to address 0000:0473 Hex POKE &amp;H472, &amp;H34 END IF DEF SEG = &amp;HFFFF &#39;either way call the BIOS CALL Absolute(0) &#39;routine at FFFF:0000 Hex END SUB Assembly To use these “scripts” cut&amp;paste the source into a file, then issue the following command “debug &lt; cldboot.scr”.</description>
    </item>
    <item>
      <title>Windows port of Logcheck</title>
      <link>https://www.jpsdomain.org/windows/winlogcheck/index.html</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>https://www.jpsdomain.org/windows/winlogcheck/index.html</guid>
      <description>Obsolete Content This content is obsolete, but I am leaving it here as a historical reference.&#xA;Introduction Welcome to the Windows port of Logcheck (now called LogSentry), the famous UNIX log processing tool. Psionic was bought by Cisco who has moved the cool Abacus tools, including LogSentry, to http://sourceforge.net/projects/sentrytools/&#xA;As you probably know if you are bothering to read this, LogSentry helps spot problems and security violations in your logfiles automatically and will send the results to you in e-mail. However, it can only work with what it’s given. I personally find the Windows Event Logs to be verbose, yet un-informative. So when you get e-mailed messages with three or 4 lines on arcane gibberish, remember that it’s the same information as you would see in the Event Log, except it’s in a slightly different format, and you are actually SEEING it! (Of course, you would have reviewed the Event Logs anyway, right?) :-)</description>
    </item>
  </channel>
</rss>