<?xml version="1.0" encoding="utf-8"?>
<!-- generator="FeedCreator 1.7.2" -->
<rss version="2.0">
    <channel>
        <title>Lowyat.NET: Latest topics by extremeJ</title>
        <description></description>
        <link>http://forum.lowyat.net/</link>
        <lastBuildDate>Sat, 13 Jun 2026 02:03:56 +0800</lastBuildDate>
        <generator>FeedCreator 1.7.2</generator>
        <item>
            <title>Print to receipt printer</title>
            <link>http://forum.lowyat.net/topic/1738299</link>
            <description>I have problem when sending text to a receipt printer.&lt;br /&gt;I install the printer (Epson TM U950) using slip driver. When I do a test print, the printer prints in slip, which is OK.&lt;br /&gt;&lt;br /&gt;The place where I have problem is with my Java swing program.&lt;br /&gt;&lt;br /&gt;When I send the text to the printer for printing, it ALWAYS prints to the receipt+journal instead of slip.&lt;br /&gt;I&amp;#39;ve checked and confirmed that the paper source has been specified to Slip(Eject) in the printer setting, and the correct printer is chosen when printing.&lt;br /&gt;However, the printout always go to receipt/journal.&lt;br /&gt;&lt;br /&gt;Anything I missed out? Attached is my code for printing.&lt;br /&gt;&lt;br /&gt;&lt;!--c1--&gt;&lt;div class='codetop'&gt;CODE&lt;/div&gt;&lt;div class='codemain'&gt;&lt;!--ec1--&gt;&lt;br /&gt;private static boolean printToPrinter&amp;#40;String msg&amp;#41; {&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;PrintService pserv = getDefaultPrintService&amp;#40;&amp;#41;;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;DocFlavor&amp;#91;&amp;#93; dfArr = pserv.getSupportedDocFlavors&amp;#40;&amp;#41;;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if &amp;#40;dfArr &amp;#33;= null&amp;#41; {&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;for &amp;#40;int i = 0; i &amp;#60; dfArr.length; ++i&amp;#41; {&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;System.out.println&amp;#40;dfArr&amp;#91;i&amp;#93;.toString&amp;#40;&amp;#41;&amp;#41;;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;br /&gt;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;DocFlavor myFormat = DocFlavor.BYTE_ARRAY.AUTOSENSE;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// Create a Doc&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Doc myDoc = new SimpleDoc&amp;#40;msg.getBytes&amp;#40;&amp;#41;, myFormat, null&amp;#41;;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// Build a set of attributes&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;PrintRequestAttributeSet aset = new HashPrintRequestAttributeSet&amp;#40;&amp;#41;;&lt;br /&gt;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if &amp;#40;pserv &amp;#33;= null&amp;#41; {&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;DocPrintJob job = pserv.createPrintJob&amp;#40;&amp;#41;;&lt;br /&gt;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;try {&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;job.print&amp;#40;myDoc, aset&amp;#41;;&lt;br /&gt;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;} catch &amp;#40;PrintException pe&amp;#41; {&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;pe.printStackTrace&amp;#40;&amp;#41;;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return true;&lt;br /&gt; &amp;nbsp; &amp;nbsp;}&lt;br /&gt;&lt;br /&gt;&lt;!--c2--&gt;&lt;/div&gt;&lt;!--ec2--&gt;&lt;br /&gt;&lt;br /&gt;where msg is the text I want to print to the slip paper of the printer.&lt;br /&gt;&lt;br /&gt;Please help  &lt;!--emo&amp;:help:--&gt;&lt;img src='http://static.lowyat.net/style_emoticons/default/icon_question.gif' border='0' style='vertical-align:middle' alt='icon_question.gif' /&gt;&lt;!--endemo--&gt;</description>
            <author>extremeJ</author>
            <category>Codemasters</category>
            <pubDate>Mon, 31 Jan 2011 11:16:31 +0800</pubDate>
        </item>
        <item>
            <title>should i accept the offer?</title>
            <link>http://forum.lowyat.net/topic/1023941</link>
            <description>in dilemma now...&lt;br /&gt;&lt;br /&gt;I got an offer from a big company here as a IT dpt personnel, will be dealing with SAP related project.&lt;br /&gt;&lt;br /&gt;However the offered salary is lower than my current salary (yes, i have a job now, as java prog in a small comp).&lt;br /&gt;&lt;br /&gt;This offer is contracted, and after the contract period, will go thru another one year probation if they still want me.&lt;br /&gt;&lt;br /&gt;Shall I take it?&lt;br /&gt;&lt;br /&gt;</description>
            <author>extremeJ</author>
            <category>Jobs &amp;amp; Careers</category>
            <pubDate>Fri, 08 May 2009 16:42:19 +0800</pubDate>
        </item>
        <item>
            <title>Do I need a better antenna?</title>
            <link>http://forum.lowyat.net/topic/848570</link>
            <description>&lt;u&gt;Broadband provider&lt;/u&gt;&lt;br /&gt;ISP/package: Streamyx&lt;br /&gt;Location: Kuching, sarawak&lt;br /&gt;Have you called your ISP&amp;#39;s helpline?: &lt;br /&gt;&lt;br /&gt;&lt;u&gt;Personal equipment&lt;/u&gt;&lt;br /&gt;Modem: aztech dsl605ew&lt;br /&gt;Router: same as above&lt;br /&gt;Firewall used: yes&lt;br /&gt;&lt;br /&gt;&lt;u&gt;Problem details&lt;/u&gt;&lt;br /&gt;Currently I&amp;#39;m staying in a 2 storey house, with my wireless modem/router in ground floor&amp;#39;s study room.&lt;br /&gt;One desktop is connecting to that rt using lan cable.&lt;br /&gt;&lt;br /&gt;On upper floor, I have 1 laptop (centrino) and 1 desktop (using wifi usb dongle). My laptop&amp;#39;s position is fine in receiving the wifi signal (3 ~ 4 bars in vista), the problem is on my desktop.&lt;br /&gt;&lt;br /&gt;My desktop is struggling in receiving the signal, no matter how I position the usb dongle and the wireless router antenna position. The max it gets is 1 bar, most of the time no connection. So my question is, if I replace the antenna with something like D-LINK ANT24-0700, can the situation improve?&lt;br /&gt;If not, is there any workaround? (Moving the router/modem or the desktop using wifi is not an option &lt;!--emo&amp;:(--&gt;&lt;img src='http://static.lowyat.net/style_emoticons/default/sad.gif' border='0' style='vertical-align:middle' alt='sad.gif' /&gt;&lt;!--endemo--&gt; )&lt;br /&gt;&lt;br /&gt;p.s: position of the three comps:&lt;br /&gt;&lt;br /&gt;assume the house is square, each side marked as 1 2 3 4 (clockwise), the desktop using wifi is at upper floor position 1, whereas the router is at lower floor position 3.&lt;br /&gt;&lt;br /&gt;1    2&lt;br /&gt;4    3</description>
            <author>extremeJ</author>
            <category>Networks and Broadband</category>
            <pubDate>Mon, 17 Nov 2008 21:47:01 +0800</pubDate>
        </item>
        <item>
            <title>Comp cannot start</title>
            <link>http://forum.lowyat.net/topic/652364</link>
            <description>I have one problem here.&lt;br /&gt;&lt;br /&gt;There is one time that my CPU shut off itself, like electricity shortage.&lt;br /&gt;&lt;br /&gt;After that trying to switch it on, after a few seconds, shut off again.&lt;br /&gt;&lt;br /&gt;Try to swtich it on again, no more response. Press the ON switch no light fan not spinning everything juz quiet.&lt;br /&gt;&lt;br /&gt;Send to the shop and inspect, they replace a PSU but still the same. RAM checked on other pc, ok.&lt;br /&gt;&lt;br /&gt;They said is either motherboard or processor (or both) is faulty.&lt;br /&gt;&lt;br /&gt;The problem is, how do i confirm whether it is motherboard AND processor? I do not have another spare parts to test (so does the shop I sent my CPU to...)&lt;br /&gt;&lt;br /&gt;Anyone can teach me how to test?&lt;br /&gt;&lt;br /&gt;CPU spec:&lt;br /&gt;- Intel Celeron 2.4GHz (478)&lt;br /&gt;- Foxconn SiS MB&lt;br /&gt;- 2x 256MB DDR RAM</description>
            <author>extremeJ</author>
            <category>Technical Support</category>
            <pubDate>Sat, 15 Mar 2008 14:50:32 +0800</pubDate>
        </item>
        <item>
            <title>Streamyx - self installation</title>
            <link>http://forum.lowyat.net/topic/598358</link>
            <description>Hi everyone&amp;#33;&lt;br /&gt;I juz applied the streamyx through online application.&lt;br /&gt;But can&amp;#39;t seem to find any option to choose to do self installation (to save the RM88).&lt;br /&gt;&lt;br /&gt;Any idea how to opt to install by myself? i&amp;#39;m choosing the RM77 (merdeka bash) package.&lt;br /&gt;&lt;br /&gt;Thanks~</description>
            <author>extremeJ</author>
            <category>Networks and Broadband</category>
            <pubDate>Wed, 26 Dec 2007 17:24:41 +0800</pubDate>
        </item>
    </channel>
</rss>
