 |
 |
Index ‹ java-programmer
|
- Previous
- 1
- Getting HTML title using HTMLEditorKit.ParserCallbackI am parsing an HTML file using ParseDelegator and a ParserCallback. I am
trying to get the document title and the HREF links. The ParserCallback is
successfully getting the HREF, so I know it is basically working. However,
when I try to get the title, I always get back null. Here is the relevant
code of the ParserCallback subclass. Anyone have any clue as to what I'm
doing wrong?
public void handleStartTag(HTML.Tag tag,
MutableAttributeSet attrSet, int pos)
{
if (tag == HTML.Tag.TITLE)
{
urlTitle = (String)attrSet.getAttribute(HTML.Attribute.TITLE);
System.out.println("attrSet: " + attrSet); // prints ""
System.out.println("found title: " + urlTitle); // prints null
}
if (tag == HTML.Tag.A)
{
// This successfully gets the target URL
String targetURLStr =
(String)attrSet.getAttribute(HTML.Attribute.HREF);
}
}
--
Bill Tschumy
Otherwise -- Austin, TX
http://www.otherwise.com
- 1
- Threads not running in starting order (?)Hi!
Below I do start Thread t1 before t2. t1 tries to call print1() on a
Printer object and t1 print2() but only the first will success since it
obtains a lock on the Printer object. I'm surprised that although t1 is
started first the code prints "2". If I put a sleep(5) between the
starting of the threads t1 wins the race.
Can somebody explain?
public class SyncThreadTest
{
public static void main( String[] args )
{
new SyncThreadTest().go();
}
private void go()
{
Thread t1 = new Thread( new Runner( 1 ) );
Thread t2 = new Thread( new Runner( 2 ) );
System.out.println(t1.toString());
t1.start();
System.out.println(t2.toString());
t2.start();
}
class Runner implements Runnable
{
int i = 0;
public Runner( int i )
{
this.i = i;
}
public void run()
{
// Printer p = Printer.getInstance();
Printer p = new Printer();
// synchronized( p )
// synchronized( Printer.class )
synchronized( p.MUTEX )
{
while( true )
{
System.out.println(toString());
if( i == 1 ) p.print1();
else p.print2();
try
{
Thread.sleep( 500 );
}
catch( InterruptedException e )
{
}
}
}
}
}
}
class Printer
{
private static final Printer instance = new Printer();
public static final Object MUTEX = new Object();
public static Printer getInstance()
{
return instance;
}
public synchronized void print1()
{
System.out.println( 1 );
}
public synchronized void print2()
{
System.out.println( 2 );
}
}
- 3
- Short question about JSliderHi,
I have a problem with the font of JSlider labels.
This code compiles but does not work and I am wondering how I can set
the label font :
JSlider s = new JSlider(JSlider.HORIZONTAL,min,max,value);
Font f = new Font("Monaco", Font.PLAIN,9);
s.setFont(f);
...
Thanks for your help and suggestions
- 3
- tomcat plugin for eclipse - tomcat not startingHi,
Tomcat is not starting from eclipse ide.
my configurations are
eclipse sdk3.1.2
j2sdk1.4.2_10
tomcat5.5.15
sysdeo plugin is tomcatplugin 4.1.30.1
I have unzipped the sysdeo plugin into plugins dir of eclipse and have
done all the configuration as given in docs..but when i try to start
tomcat from start button of tomcat ...from eclipse its not getting
started..
please ,some one help me work this one out.
patrick
Error is
Error 2006-03-27 23:18:56.267 org.eclipse.core.runtime.CoreException:
Error occurred during initialization of VM
java/lang/NoClassDefFoundError: java/lang/Object
at
org.eclipse.jdt.launching.AbstractVMRunner.abort(AbstractVMRunner.java:47)
at
org.eclipse.jdt.internal.launching.StandardVMDebugger.checkErrorMessage(StandardVMDebugger.java:322)
at
org.eclipse.jdt.internal.launching.StandardVMDebugger.run(StandardVMDebugger.java:236)
at
com.sysdeo.eclipse.tomcat.VMLauncherUtility.runVM(VMLauncherUtility.java:81)
at
com.sysdeo.eclipse.tomcat.TomcatBootstrap.runTomcatBootsrap(TomcatBootstrap.java:186)
at
com.sysdeo.eclipse.tomcat.TomcatBootstrap.start(TomcatBootstrap.java:79)
at
com.sysdeo.eclipse.tomcat.actions.StartActionDelegate.run(StartActionDelegate.java:38)
at
org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:246)
at
org.eclipse.ui.internal.WWinPluginAction.runWithEvent(WWinPluginAction.java:223)
at
org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:538)
at
org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:488)
at
org.eclipse.jface.action.ActionContributionItem$6.handleEvent(ActionContributionItem.java:441)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:843)
at
org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3125)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2758)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1699)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1663)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:367)
at
org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:143)
at
org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:103)
at
org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:226)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:376)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:163)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.core.launcher.Main.invokeFramework(Main.java:334)
at org.eclipse.core.launcher.Main.basicRun(Main.java:278)
at org.eclipse.core.launcher.Main.run(Main.java:973)
at org.eclipse.core.launcher.Main.main(Main.java:948)
Error 2006-03-27 23:18:56.257 Impossible to start Tomcat
Check home directory setup in Tomcat preference page/n
- 3
- freebsd eclipse plugins & mailing listVizion wrote:
> On Thursday 25 August 2005 18:41, the author David Wolfskill contributed to
> the dialogue on-
> Re: freebsd eclipse plugins & mailing list:
>
>
>>[Sorry about cluttering a technical list with administrivia, but it
>>seemed appropriate under the current circumstances. -- postmaster]
>>
>>On Thu, Aug 25, 2005 at 04:00:10PM -0700, Vizion wrote:
>>
>>>...
>>>
>>>
>>>>>Personally I would be in favor of also creating a
>>>>>email***@***.com mailing list but I am not certain how much
>>>>>interest there might be. If there is enough support I would be willing
>>>>>to help set it up.
>>>>
>>>>You may be willing to help set it up, but only the FreeBSD postmaster(s)
>>>>can actually do so :). I personally don't see enough interest for a
>>>>separate mailing list,
>>>
>>>How can we find if there is enough interest without creating the list?
>>>Eclipse is now a very serious EDI which is suitable for all kinds of
>>>development. Frankly I am dissappointed that freebsd has not been more
>>>active in the eclipse field. The lack of plugin support in the ports tree
>>>is a major deterent.
>>
>>Regardless of the structure of the ports tree or anything else, my basic
>>criterion for new list creation is this: Would creation of the new list
>>help the FreeBSD project more than retaining the status quo would?
>
>
> Well I think definitely yes. If you need any proof of its significance for
> developers of any project I would suggest you take a look at the eclipse site
> www.eclipse.org and at the links from that site. As to helping the freebsd
> project a search through the eclipse website on Linux will tell you how much
> support that community has gained through their involvement of a core of
> linux deveopers in the eclipse community.
>
>
>>If the answer is yes, then I am strongly in favor of cretaing it -- to
>>the point that unless someone in core@ or admin@ tells me not to, I
>>will create the list.
>
>
> So please will you create the list as quickly as possible and hopefully we can
> promulgate its presence on the many eclipse forums.
>
>>However, I have been so far "out of the loop" with respect to
>>"development environments" and the like ... well, no; that's not right:
>>I was never "in the loop." What "development" I do (generally in Perl)
>>is done in multiple xterm windows editing files with vi.
>
>
> You might find the eclipse edi in conjunction with the perl and php plugins
> very very usefuland a tremendous advance on using multiple xterms with vi.
> The one EDI will control all the development tasks and maintain a development
> history... very neat.
>
>>So: for folks who have an opinion -- persuade me. No, this isn't a
>>"vote;" I don't care about that. Write to me about what the presence of
>>the new list will do for the FreeBSD project ... for good or for ill.
>>Be honest about it.
>
>
> Eclipse is multi- faceted -- but is developed on a Java platform. However it
> is out of place in the Freebsd-java mailing list... every plugin needs to be
> discussed in the context of eclipse as a whole and the various plugins. The
> absense of a list means that Freebsd users are not able to benefit from the
> mutually support it can create to ensure freebsd developers are able to use
> the latest tools -- whether you develop in C of C++, or java, xul, sml, http
> php, or whatever there is an e clipse tool to help.
>
>
>>Note that I set Reply-To on purpose -- there's no
>>need to clutter FreeBSD.org technical mailing lists with opinions about
>>the creation of a mailing list.
>
>
> I have posted this to the freebsd java list but will ask anyone who joins in
> to delete that from the cc list and add their name to the cc list
>
>>Chances are, I'll create the list --
>
>
> please do
>
>>I recently created one dedicated to
>>the Proliant line of hardware (of all things). So if you can convince
>>me that Eclipse has a following at least comparable to Proliant
>>hardware, you're probably golden. Remember, the salient criterion is
>>"Overall, does creation of the new list help the FreeBSD project?"
>>
>>
>>>I know a number of developers who have moved from freebsd to linux just
>>>because freebsd has not kept up with this very powerful EDI.
>>>Who should I email to request a new list? ( I have cc'd
>>>email***@***.com )
>>
>>I noticed. :-}
>>
>>
>>>If there is no hope then I suppose I could start an independent mail list
>>>- but that idea goes against the grain!
>>
>>Right. I appreciate your restraint.
>>
>>
>>>....
>>>
>>>--
>>>40 yrs navigating and computing in blue waters.
>>>English Owner & Captain of British Registered 60' bluewater Ketch S/V
>>>Taurus. Currently in San Diego, CA. Sailing bound for Europe via Panama
>>>Canal after completing engineroom refit.
>>
>>Heh. Sorry about the need for the refit, but I've tended to have a bit
>>of a "soft spot" for ketches. Not that I've actually sailed one,
>>unfortunately.
>
>
> Ah well if you are near San Diego in a couple of months (when the engine is
> done, I'll be glad to welcome you aboard
>
> David
I understand and sympathize with what you are trying to achieve, but I
believe you are barking on the wrong tree here. Eclipse on FreeBSD has
been in a rather good shape for at least the last two years that I have
been using it:
- The IDE port gets updated a few days or weeks after the official release.
- The various milestone releases from the development version are
usually ported as well.
- Many different plugins exist in the ports tree for Eclipse.
I also believe that people do get help when posting to freebsd-java
about eclipse and I'll make sure the same thing happens on
freebsd-ports. There are some things that could be improved however, like:
- Faster response to open PRs.
- More people working on porting the platform or the plugins.
- Official support from the eclipse.org site.
The first two are not going to be improved by a new mailing list, since
a mailing list by itself does not spark new interest on a topic. I'm
afraid that they may be harmed instead, since there might not be many
(or any at all) subscribers to that list that are also ports committers.
The way things usually work in FreeBSD-land for contributors without a
commit bit, is that you submit an improvement, try to get the attention
of a committer and then work with him through any details. The committer
attention is not something you get very easily, especially if you
consider how many lists these people are usually subscribed to.
Don't get me wrong, I will subscribe if such a list is created, but I
fail to see the need for it. Check out the archives of freebsd-apache,
freebsd-rc, freebsd-python and freebsd-perl for examples on the nature
and the amount of postings I expect we will get. Do we need a new list
for such an amount of e-mails?
Regards,
Panagiotis
- 7
- Java and JSP to MySQL databaseDear all,
I am planning to build my web application with the following
architecture:
Redhat Linux 9.0 platform
Apache Tomcat Web Server
MySQL database
JSP with Java for writing the web page
But unfortunately, I encountered some problems in properly linking my
JSP to the mysql database. I have installed the JDBC connector
interface already.
I would apperciate if anyone can give me some hints on the proper set
up and configuring of the architecture.
Thanks a lot.
Ivan
- 8
- TCP Keep Alive probesHi All,
I have a java client app and want to send TCP Keep Alive probes to my
server every 10 minutes as opposed to the default 2 hours. I see a
setKeepAlive() call in the API, but that only turns on whether you want
to send Keep Alives or not. How do i specify the Keep Alive probe
interval?
Thanks,
Grant.
- 9
- Most Java apps are flawed on my systemI'm using a couple of free Java applications that easiliy outperform free native windows application. I'm very upset that those Java application share a common set of problems on Windows due to bugs in the Java libs and the authors are not willing to investigate and work around the problems. If I were a Java programmer I would probably send some patches to the authors or at least point to some resources but unfortunately I'm not a Java programmer. The reason why I post here is I hope to find some resources like code exmples that I can forward to the authors to work around the bugs. First issue is the Java applications save their settings in the root directory of my D partition.
D:\.entagged
D:\.LimeWire
D:\.Phex
Pretty much all Java apps got this all wrong because people get very upset if applications trash their system while they are supposed to write either xcopy style (windows power users prefer unanimously xcopy apps according to a poll I made because of the ultimate simplicity and transparency) to the startup dir where the application is located or to the user context as defined in Microsoft's design guidelines which would be 'C:\Dokumente und Einstellungen\Frank\Anwendungsdaten\' on my system and would translate to 'C:\Documents and Settings\Frank\Application data\'. Please note that the windows explorer wouldn't even allow to create a dir with preceding dot manually and no Windows user would want to use a name with esoteric characters, abreviations or casing. I've summarized the technical reasons for the problem here:
http://www.gnutellaforums.com/showthread.php?s=b443bdda9ec96e6db7a54aed0858e8f9&threadid=44579
The second problem is that strings like "ain't" are saved as "ain-t" in filenames, this is unacceptable for a MP3 tagger and for any other reasonable application, on top of that there are casing problems as well. Nobody is willing to work around these bugs, it appears they stop to read my crys for help as soon as they read Windows, am very disappointed about Java, I got a couple of GTK+, QT, wxWindows and XUL apps working here on Windows starting rocket fast, looking beautifully and working amazingly well, some of 'em much better than most native apps.
It's OK when a crossplatform app is a little out of the norm, I close the application and it's all good but messing with my files, folders and system is something I find very annoying.
Regards,
stax
- 9
- Applet Canvas / Panel ProblemHello,
I have written a threaded tree control which is displayed in an
applet.
The way it works is that the reusable control is a canvas.
The control is created in an applet and the canvas is drawn onto a
panel.
Things work great when the content is static, however when the tree
structure
is changed - i.e. someone adds a folder or deletes a file problems
creep in.
I have no problem updating the tree (which is the canvas) but after
every change the new canvas needs to be placed on the panel.
I have tried
Panel.remove(tree);
Panel.add("Center", tree);
(there are three panels in total - the other two have scrollbars in
them)
But this does not appear to update when changes are made.
So I have tried
Panel.removeAll();
Panel.add("Center", tree);
Panel.add("South", horizontalScrollbar);
Panel.add("East", verticalScrollbar);
This does the update perfect however I get a flickerwhen the update
occurs.
So basically my question is in two parts?
Can anyone suggest how I can update the panel to avoid it flickering?
Or anyone suggest an alternative way of organising my tree so it
remains a generic control but has a better method of updating?
does that make sense?
Any suggestion greatfully recieved.
Regards
Lloyd
- 9
- Regex GroupsHi,
I have a question concerning the behavior of regular expressions in Java. I
have a text: "text-123-234-535-235"
I use a regular expression to get the text: "text(-[0-9]*)*".
The problem is that I don't how many number blocks there will be. It can one
or twenty. Java only delivers me the last matched block as group. How can I
get all?
I can't use String.split because the regex is configued in a config file and
the regex can change as can the text. So the Java code needs to be flexible
what to do.
Is there any way to do this?
Thanks,
Andreas
- 11
- right click menu not highlightingIm working with a jtree and I have added the jpopupmenu to the jtree
object.
When I right click a node the menu comes up appropriately, it even
accepts clicks and performs the appropriate action. The only thing
that isnt working is the right menu highlighting when I have the mouse
over the menu items...
Im wondering if there is some place in my code where I perhaps overrode
some code that would typically be responsible for highlighting the
right click menu... I implemented a little drag and drop functionality
for the jtree, could this be messing with the highlighting of the menu?
Thanks
- 12
- java/115558: linux-sun-jdk-1.6.0.02 is incorrectly marked as
>Number: 115558
>Category: java
>Synopsis: linux-sun-jdk-1.6.0.02 is incorrectly marked as vulnerable
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: freebsd-java
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Wed Aug 15 18:20:00 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator: Ronald Klop
>Release: FreeBSD 6.2-STABLE i386
>Organization:
>Environment:
System: FreeBSD 6.2-STABLE #29: Sat Jul 14 14:44:18 CEST 2007
email***@***.com:/usr/obj/usr/src/sys/GUIDO
>Description:
I don't know if this is a 'java' issue or a 'ports' issue, sorry if the category is wrong.
But, the port linux-sun-jdk-1.6.0.02 is marked as vulnerable by portaudit/vuxml which is incorrect I think.
# portaudit -adF
auditfile.tbz 100% of 43 kB 30 kBps
New database installed.
Database created: Tue Aug 14 01:10:01 CEST 2007
Affected package: linux-sun-jdk-1.6.0.02
Type of problem: jdk -- jar directory traversal .
Reference: <http://www.FreeBSD.org/ports/portaudit/18e5428f-ae7c-11d9-837d-000e0c2e438a.html>
>How-To-Repeat:
install portaudit
try to install linux-sun-jdk-1.6.0; this will not succeed, because portaudit thinks the port is vulnerable
>Fix:
Fix the versions of the vulnerability.
>Release-Note:
>Audit-Trail:
>Unformatted:
_______________________________________________
email***@***.com mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-java
To unsubscribe, send any mail to "email***@***.com"
- 15
- toedter.com's jcalendar in jTable & a time chooserHi,
Did anybody managed to use the jCalendar swing bean ( from toedter.com
) in a jTable ?
I posted a question on their website, with no answer so far...
By the way, I googled for a free Time Picker javabean ( or Time
chooser, if you prefer ).
I did not find antyhting but commercial components.
Do anyone know of one ?
TIA,
--Philippe
- 15
- What Says The Blame America First Crowd?In comp.lang.java.advocacy, Luke Tulkas
<email***@***.com>
wrote
on Wed, 31 Mar 2004 15:36:37 +0200
<c4ehh5$2gef62$email***@***.com>:
> "Phil Earnhardt" <email***@***.com> wrote in message
> news:email***@***.com...
>
>> >> 7. You acted (and are still acting) dumb.
>> >
>> >No, wait, you _are_ dumb.
>>
>> You continue to paint a caricature of the Far Left
>
> Far Left? Whatsthat?
Presumably anyone who thinks that Rush Limbaugh is not The Voice Of God. :-)
Although in all fairness he more likely was referring
to those individuals who think, among other things, that
socialism/communism cures all ills, admires/admired Mao
Zedong and Lenin (*not* Stalin, who corrupted the notion),
and thinks that $100M/yr CEOs are obscenely overpaid.
(I've wondered, though: in a communistic economy, why would there
be any need of money at all, except for dealing with the other
countries? The existence of the ruble appeared to be a kludge;
of course now that Russia's capitalist, it's a moot point.
Not sure regarding the CEOs; I'd have to look. I wouldn't mind
$100M a year but I'm not a CEO...and I know which system works
better. If it's not obvious, look at N Korea and S Korea, and
then tell me which one's starving :-) . The weird bit is, the
US Prez only gets about *$400K*....)
>
>> that is very
>> unattractive: someone who fervently holds on to their beliefs but
>> demonstrates time and time again that they really have no idea what
>> they're talking about.
>>
>> This posting demonstrates another attribute of that charicature:
>> rather than debating the points that I made, you instead resort to ad
>> hominom attacks.
>
> Sometimes a man's gotta do what a man's gotta do. In this case, face you
> with hard facts about your sanity. No use trying to have a serious
> conversation if all you do is demonstrating your repeat-copy-paste
> skills. On top of your countless brainfarts.
>
>> Luke: you're demonstrating the fundamental irony of the Political
>> Correctness movement.
>
> Me politically correct? You must be confusing me with somebody else.
>
> [snip]
>
--
#191, email***@***.com
It's still legal to go .sigless.
- 16
- 08 new chanel d &g dior tous prada gucci lv versace fendi sandals stylewww.efootjoy.com wholesale Michael jordans shoes fusion force shoes
wholesale jordan shoes air force ones dunks, sandals, glasses, puma
air max 87 89 90 95 ltd timberland jeans ugg boots lacoste sandals
hoodies,
t-shirts, mauri shoes, dsquared , hogan shoes, dunks , red monkey,
polo t-shirts,
evisu jeans, bbc jeans , dior, lv, dg, versace, coach puma shoes, nfl
jerseys
shox r2 r3 r4 r5 r6 tn tl1 tl3, sandals, nhl jerseys, mlb jerseys,
nba
jerseys
probowl jerseys,prada shoes,kobe james, hockey jerseys, nfl jerseys,
football
jerseys, baseball jerseys, jordan shoes, jordan fusion air force ones
25 years at www.efootjoy.com
basketball jerseys Men's women's shocks OZ NZ TL shoes Discount
Coach
Sandals,
Dior Sandals, Prada Sandals, Chanel Sandals, Versace Sandals, Crocs
Sandals,
Women's Sandals Men's Slippers From China jordan shoes, jordan fusion
air force ones
Affliction T-shirts lacoste T-shirts Polo T-shirts Brand ShirtsGGG T-
shirts Designer
T-Shirts Helen Coat burberry coat Jacket Juicy Couture bbc hoodies
bape hoodies at:www.efootjoy.com Designer
Hoodies NFL NHL NBA MLB Jersey throwback jersey ,super bowl
jersey ,pro bowl jersey,boy
jersey,discounted jersey,customize jersey authentic jersey,
jersey,stitched jersey,reebok
jerseys,football jerey,basketball jersey,youth jersey,adult
jerseys,kids jersey, hockey
jersey,Mitchell Ness jersey,custom football jersey,allstar
jersey,official jersey ,
classics jersey , retired jersey ,autographejersey, lady
jersey ,baby jersey,vintage
jersey,throw back jersey,womens jersey at:www.efootjoy.com
|
| Author |
Message |
Peter T. Breuer

|
Posted: 2005-10-16 2:02:00 |
Top |
java-programmer, Microsoft Hatred FAQ
In comp.os.linux.misc John Wingate <email***@***.com> wrote:
> Peter T. Breuer <email***@***.com> wrote:
>> In comp.os.linux.misc Jeroen Wenting <jwenting at hornet dot demon dot nl> wrote:
>>> Without Microsoft 90% of us would never have seen a computer more powerful
>>> than a ZX-81 and 90% of the rest of us would never have used only dumb
>>> mainframe terminals.
>>
>> Uh - when microsoft produced dos 1.0, or whatever it was, I was sitting
>> at my Sun 360 workstation (with 4M of RAM, later upgraded to 8M),
>> running SunOS 3.8 or thereabouts.
> Peter, if you are serious, and not just pulling our legs, your memory is
> failing.
Well, it might be a bit off. I am talking about 1986.
> MS-DOS 1.0 came out in August 1981; SunOS 3.0 in February 1986.
Seems about right.
So what version of msdos was around at that time? Obviously I didn't
use it!
> Sun Microsystems was incorporated (with four employees) in February 1982.
> There never was a SunOS 3.8. (SunOS 3.5 was succeeded by 4.0.) And I'm
It seems to me that I was using 3.x. Maybe it was 3.1? I seem to
remember an earlier major ... was there a 2.8 or 2.9?
> not sure what you mean by "Sun 360"--a Sun 3/60, maybe?
Seems likely. I recall it as a Sun 360m. "Monica" by name, following
the cpu serial number, mncaxxx (or something close). "Sun 3" definitely
rings a bell.
Peter
|
| |
|
| |
 |
Peter T. Breuer

|
Posted: 2005-10-16 2:02:00 |
Top |
java-programmer >> Microsoft Hatred FAQ
In comp.os.linux.misc John Wingate <email***@***.com> wrote:
> Peter T. Breuer <email***@***.com> wrote:
>> In comp.os.linux.misc Jeroen Wenting <jwenting at hornet dot demon dot nl> wrote:
>>> Without Microsoft 90% of us would never have seen a computer more powerful
>>> than a ZX-81 and 90% of the rest of us would never have used only dumb
>>> mainframe terminals.
>>
>> Uh - when microsoft produced dos 1.0, or whatever it was, I was sitting
>> at my Sun 360 workstation (with 4M of RAM, later upgraded to 8M),
>> running SunOS 3.8 or thereabouts.
> Peter, if you are serious, and not just pulling our legs, your memory is
> failing.
Well, it might be a bit off. I am talking about 1986.
> MS-DOS 1.0 came out in August 1981; SunOS 3.0 in February 1986.
Seems about right.
So what version of msdos was around at that time? Obviously I didn't
use it!
> Sun Microsystems was incorporated (with four employees) in February 1982.
> There never was a SunOS 3.8. (SunOS 3.5 was succeeded by 4.0.) And I'm
It seems to me that I was using 3.x. Maybe it was 3.1? I seem to
remember an earlier major ... was there a 2.8 or 2.9?
> not sure what you mean by "Sun 360"--a Sun 3/60, maybe?
Seems likely. I recall it as a Sun 360m. "Monica" by name, following
the cpu serial number, mncaxxx (or something close). "Sun 3" definitely
rings a bell.
Peter
|
| |
|
| |
 |
John Bokma

|
Posted: 2005-10-16 2:06:00 |
Top |
java-programmer >> Microsoft Hatred FAQ
"Martin P. Hellwig" <email***@***.com> wrote:
> Jeroen Wenting wrote:
> <cut>
>>
>> Without Microsoft 90% of us would never have seen a computer more
>> powerful than a ZX-81 and 90% of the rest of us would never have used
>> only dumb mainframe terminals.
> <cut>
> At the time you "PC" guys where hacking around monochrome green and a
> bit lighter green screens I was doing multi-media editing on my Amiga
> 600. So perhaps we should state that we would have been a lot further
> if not an incredible amount of cool technologies where bought by MS
> and then simply put in the freezer to protect their future market
> share.
You mean like the lamp that keeps burning forever, like Philips has?
> Although Commodore where never serious competitors,
Because there programming skills were as worse as MS? I mean, their
BASIC had only 2 instuctions: PEEK and POKE?
> they had
> some "intern" difficulties, too bad but life goes on.
Yup, same for Acorn. Their RISC work station was the fastest computer
available for home users at that moment.
> To go on, stable version of truly free unix likes where released
> around 1994 that was in the same time MS was working on their super
> stable released windows 95 and a slightly better NT 3.5 and let me not
> forget OS/2 warp 3.0 .
>
> I'm not a MS basher,
Yet you call NT slightly better compared to Windows 95. So you have no
clue what you're talking about.
> hey I make money of them administrating them,
> however to state that if we didn't had MS we would been in the IT
> stone ages is blatantly wrong,
Now there is truth.
> I think we would have been a lot
> further
No, since companies are just companies, not little gods like some want
them to be.
> then where we are now. Perhaps we even had a other mainstream
> architecture like sparcs and powerpc's.
But "crippled" like Intel.
--
John Small Perl scripts: http://johnbokma.com/perl/
Perl programmer available: http://castleamber.com/
I ploink googlegroups.com :-)
|
| |
|
| |
 |
Michael Heiming

|
Posted: 2005-10-16 2:27:00 |
Top |
java-programmer >> Microsoft Hatred FAQ
In comp.os.linux.misc John Bokma <email***@***.com>:
> Michael Heiming <michael+email***@***.com> wrote:
>> The only thing positive about M$ entering the market, probably
>> due to their ineffective programming style they pushed Intel into
>> producing pretty fast while cheapo CPUs.
> Amazing, I thought Xah Lee was the only one able to fit so much BS in one
> sentence.
You them to have a talent to piss-off people with just a single
terse contribution. ;-)
>> Ironically exactly this
>> is the key to Linux/*BSD success in the unix server market. ;)
> Yeah, right.
Good riddance!
--
Michael Heiming (X-PGP-Sig > GPG-Key ID: EDD27B94)
mail: echo email***@***.com | perl -pe 'y/a-z/n-za-m/'
#bofh excuse 146: Communications satellite used by the military
for star wars.
|
| |
|
| |
 |
Michael Heiming

|
Posted: 2005-10-16 2:34:00 |
Top |
java-programmer >> Microsoft Hatred FAQ
In comp.os.linux.misc Peter T. Breuer <email***@***.com>:
> In comp.os.linux.misc John Wingate <email***@***.com> wrote:
>> Peter T. Breuer <email***@***.com> wrote:
>>> In comp.os.linux.misc Jeroen Wenting <jwenting at hornet dot demon dot nl> wrote:
[..]
>> Sun Microsystems was incorporated (with four employees) in February 1982.
>> There never was a SunOS 3.8. (SunOS 3.5 was succeeded by 4.0.) And I'm
> It seems to me that I was using 3.x. Maybe it was 3.1? I seem to
> remember an earlier major ... was there a 2.8 or 2.9?
Looks like SunOS 1.0 came out February 1982, according to:
http://www.levenez.com/unix/history.html#05
Kudos to the one who did the work!
--
Michael Heiming (X-PGP-Sig > GPG-Key ID: EDD27B94)
mail: echo email***@***.com | perl -pe 'y/a-z/n-za-m/'
#bofh excuse 44: bank holiday - system operating credits
not recharged^
|
| |
|
| |
 |
John Bokma

|
Posted: 2005-10-16 2:48:00 |
Top |
java-programmer >> Microsoft Hatred FAQ
Michael Heiming <michael+email***@***.com> wrote:
> In comp.os.linux.misc John Bokma <email***@***.com>:
>> Michael Heiming <michael+email***@***.com> wrote:
>
>>> The only thing positive about M$ entering the market, probably
>>> due to their ineffective programming style they pushed Intel into
>>> producing pretty fast while cheapo CPUs.
>
>> Amazing, I thought Xah Lee was the only one able to fit so much BS in
>> one sentence.
>
> You them to have a talent to piss-off people with just a single
> terse contribution. ;-)
Only if their contribution is utter BS and I point this out.
--
John Small Perl scripts: http://johnbokma.com/perl/
Perl programmer available: http://castleamber.com/
I ploink googlegroups.com :-)
|
| |
|
| |
 |
Michael Heiming

|
Posted: 2005-10-16 3:05:00 |
Top |
java-programmer >> Microsoft Hatred FAQ
In comp.os.linux.misc John Bokma <email***@***.com>:
> Michael Heiming <michael+email***@***.com> wrote:
>> In comp.os.linux.misc John Bokma <email***@***.com>:
>>> Michael Heiming <michael+email***@***.com> wrote:
>>
>>>> The only thing positive about M$ entering the market, probably
>>>> due to their ineffective programming style they pushed Intel into
>>>> producing pretty fast while cheapo CPUs.
>>
>>> Amazing, I thought Xah Lee was the only one able to fit so much BS in
>>> one sentence.
>>
>> You them to have a talent to piss-off people with just a single
>> terse contribution. ;-)
> Only if their contribution is utter BS and I point this out.
Dunno what's so BS about the possibility that the wintel mafia
works hand in hand, M$ introduces a new OS and Intel faster CPU.
People need to use the first, luckily both come bundled with the
latest PC people just need to buy right now. Iirc this is called
marketing, you don't seem to have much clue about.
BTW
Thx for reminding me to actually kill-file you.
PLONK
--
Michael Heiming (X-PGP-Sig > GPG-Key ID: EDD27B94)
mail: echo email***@***.com | perl -pe 'y/a-z/n-za-m/'
#bofh excuse 183: filesystem not big enough for Jumbo Kernel
Patch
|
| |
|
| |
 |
Martin P. Hellwig

|
Posted: 2005-10-16 3:55:00 |
Top |
java-programmer >> Microsoft Hatred FAQ
John Bokma wrote:
<cut>
> You mean like the lamp that keeps burning forever, like Philips has?
>
No more like all the hydrogen technologies that shell has in their
possession for the last decades and only recently has begun to restart
those projects.
>> Although Commodore where never serious competitors,
>
> Because there programming skills were as worse as MS? I mean, their
> BASIC had only 2 instuctions: PEEK and POKE?
eehm Amiga?
<cut>
>
> Yet you call NT slightly better compared to Windows 95. So you have no
> clue what you're talking about.
So I see you never worked serious with 3.5 .
>
>> hey I make money of them administrating them,
>> however to state that if we didn't had MS we would been in the IT
>> stone ages is blatantly wrong,
>
> Now there is truth.
>
>> I think we would have been a lot
>> further
>
> No, since companies are just companies, not little gods like some want
> them to be.
>
>> then where we are now. Perhaps we even had a other mainstream
>> architecture like sparcs and powerpc's.
>
> But "crippled" like Intel.
Yeah right sparc is crippled...
|
| |
|
| |
 |
Matt Garrish

|
Posted: 2005-10-16 5:12:00 |
Top |
java-programmer >> Microsoft Hatred FAQ
"Michael Heiming" <michael+email***@***.com> wrote in message
news:email***@***.com...
> In comp.os.linux.misc John Bokma <email***@***.com>:
>> Michael Heiming <michael+email***@***.com> wrote:
>
>>> In comp.os.linux.misc John Bokma <email***@***.com>:
>>>> Michael Heiming <michael+email***@***.com> wrote:
>>>
>>>>> The only thing positive about M$ entering the market, probably
>>>>> due to their ineffective programming style they pushed Intel into
>>>>> producing pretty fast while cheapo CPUs.
>>>
>>>> Amazing, I thought Xah Lee was the only one able to fit so much BS in
>>>> one sentence.
>>>
>>> You them to have a talent to piss-off people with just a single
>>> terse contribution. ;-)
>
>> Only if their contribution is utter BS and I point this out.
>
> Dunno what's so BS about the possibility that the wintel mafia
> works hand in hand, M$ introduces a new OS and Intel faster CPU.
Your presumption that poor coding has anything to do with CPU development is
absurd. There may be times that M$ has to wait on faster chips before
pushing new technologies or Intel has to wait on M$ before pushing new chips
(like their 64bit chips that probably won't be get over-hyped until the next
iteration of Winblows rolls around), but that's hardly evidence of the two
working hand-in-hand.
> People need to use the first, luckily both come bundled with the
> latest PC people just need to buy right now. Iirc this is called
> marketing, you don't seem to have much clue about.
>
Er, that's not called marketing but a software/hardware bundle. Marketing
would be the propaganda that tries to convince you that you need both. When
you have no option that's not marketing but a monopoly, which sort of brings
this all full-circle...
Matt
|
| |
|
| |
 |
Michael Heiming

|
Posted: 2005-10-16 5:38:00 |
Top |
java-programmer >> Microsoft Hatred FAQ
In comp.os.linux.misc Matt Garrish <email***@***.com>:
> "Michael Heiming" <michael+email***@***.com> wrote in message
[..]
>> Dunno what's so BS about the possibility that the wintel mafia
>> works hand in hand, M$ introduces a new OS and Intel faster CPU.
> Your presumption that poor coding has anything to do with CPU development is
> absurd. There may be times that M$ has to wait on faster chips before
> pushing new technologies or Intel has to wait on M$ before pushing new chips
> (like their 64bit chips that probably won't be get over-hyped until the next
> iteration of Winblows rolls around), but that's hardly evidence of the two
> working hand-in-hand.
Doesn't really matter who is providing faster something that'll
need or provide more power, the other will catch up soon, just to
keep the game going.
>> People need to use the first, luckily both come bundled with the
>> latest PC people just need to buy right now. Iirc this is called
>> marketing, you don't seem to have much clue about.
>>
> Er, that's not called marketing but a software/hardware bundle. Marketing
> would be the propaganda that tries to convince you that you need both. When
> you have no option that's not marketing but a monopoly, which sort of brings
> this all full-circle...
Ops, sorry. Having no option is M$ marketing (monopoly) for the
usual user. Glad to see you got my point. ;-)
--
Michael Heiming (X-PGP-Sig > GPG-Key ID: EDD27B94)
mail: echo email***@***.com | perl -pe 'y/a-z/n-za-m/'
#bofh excuse 71: The file system is full of it
|
| |
|
| |
 |
John Bokma

|
Posted: 2005-10-16 6:25:00 |
Top |
java-programmer >> Microsoft Hatred FAQ
Michael Heiming <michael+email***@***.com> wrote:
> PLONK
So you think you can make points by PLONKing people? Grow up and get a
life. You can learn from listening. You'll learn nothing from ploinking.
Oh, and I am not amazed, since people who claim utter BS is right, plonk
people who don't agree.
--
John Small Perl scripts: http://johnbokma.com/perl/
Perl programmer available: http://castleamber.com/
I ploink googlegroups.com :-)
|
| |
|
| |
 |
John Bokma

|
Posted: 2005-10-16 6:28:00 |
Top |
java-programmer >> Microsoft Hatred FAQ
"Martin P. Hellwig" <email***@***.com> wrote:
> John Bokma wrote:
> <cut>
>> You mean like the lamp that keeps burning forever, like Philips has?
>
> No more like all the hydrogen technologies that shell has in their
> possession for the last decades and only recently has begun to restart
> those projects.
>
>>> Although Commodore where never serious competitors,
>>
>> Because there programming skills were as worse as MS? I mean, their
>> BASIC had only 2 instuctions: PEEK and POKE?
>
> eehm Amiga?
Eehm: Acorn Archimedes?
> <cut>
>>
>> Yet you call NT slightly better compared to Windows 95. So you have
>> no clue what you're talking about.
>
> So I see you never worked serious with 3.5 .
Yeah, that's it, I am sure.
>>> then where we are now. Perhaps we even had a other mainstream
>>> architecture like sparcs and powerpc's.
>>
>> But "crippled" like Intel.
>
> Yeah right sparc is crippled...
Yeah, right: Sparc is the ultimate goal in processor design, the best of
the best. You think it would have been that good if it was a mainstream
processor?
--
John Small Perl scripts: http://johnbokma.com/perl/
Perl programmer available: http://castleamber.com/
I ploink googlegroups.com :-)
|
| |
|
| |
 |
Tim Roberts

|
Posted: 2005-10-16 6:31:00 |
Top |
java-programmer >> Microsoft Hatred FAQ
"Jeroen Wenting" <jwenting at hornet dot demon dot nl> wrote:
>
>Microsoft isn't evil, they're not a monopoly either.
>If they were a monopoly they'd have 100% of the market and there'd be no
>other software manufacturers at all.
This is wrong. The dictionary definition of a monopoly is when a
manufacturer has all or nearly all of a market. Microsoft DOES have a
monopoly on PC operating systems.
That, in itself, is not necessarily illegal. However, Microsoft then USED
that monopoly power to stifle their competition, and that IS illegal.
Part of their behavior really escape me. The whole thing about browser
wars confuses me. Web browsers represent a zero billion dollar a year
market. Why would you risk anything to own it?
>Without Microsoft 90% of us would never have seen a computer more powerful
>than a ZX-81 and 90% of the rest of us would never have used only dumb
>mainframe terminals.
Utter hogwash. Computer hardware would still have followed the path it
did. I suspect we'd all be using WordPerfect or AbiWord on some kind of
Unix clone, and I also suspect application integration wouldn't be as
commonplace as it now is, but it's silly to credit Microsoft with the
ubiquity of powerful computers.
--
- Tim Roberts, email***@***.com
Providenza & Boekelheide, Inc.
|
| |
|
| |
 |
David Schwartz

|
Posted: 2005-10-16 6:48:00 |
Top |
java-programmer >> Microsoft Hatred FAQ
"Mike Meyer" <email***@***.com> wrote in message
news:email***@***.com...
> What you call "clever marketing" the DOJ calls "monopolistic
> practices". The courts agreed with the DOJ. Having had several large
> PC manufacturers refuse to sell me a system without some form of
> Windows because MS made it impossible for them to compete if they
> didn't agree to do so, I agree with the courts and the DOJ.
Go down to your local car dealer and see if you can buy a new car
without an engine.
DS
|
| |
|
| |
 |
John Bokma

|
Posted: 2005-10-16 6:48:00 |
Top |
java-programmer >> Microsoft Hatred FAQ
Tim Roberts <email***@***.com> wrote:
> Part of their behavior really escape me. The whole thing about
> browser wars confuses me. Web browsers represent a zero billion
> dollar a year market. Why would you risk anything to own it?
Opera seems to be making money with it. Also, Firefox gets money from
Google kickback. Maybe MS had a similar idea in mind, but it failed
(remember how they wanted to add ads to keywords in webpages?)
--
John Small Perl scripts: http://johnbokma.com/perl/
Perl programmer available: http://castleamber.com/
I ploink googlegroups.com :-)
|
| |
|
| |
 |
David Schwartz

|
Posted: 2005-10-16 6:50:00 |
Top |
java-programmer >> Microsoft Hatred FAQ
"Tim Roberts" <email***@***.com> wrote in message
news:email***@***.com...
> Part of their behavior really escape me. The whole thing about browser
> wars confuses me. Web browsers represent a zero billion dollar a year
> market. Why would you risk anything to own it?
It really isn't that hard to understand that web-based applications that
work in any browser on any OS threaten to make it irrelevent what OS you're
running. MS has a strong interest in making sure it's important to be
running on one of their OSes.
DS
|
| |
|
| |
 |
John Bokma

|
Posted: 2005-10-16 7:03:00 |
Top |
java-programmer >> Microsoft Hatred FAQ
"David Schwartz" <email***@***.com> wrote:
>
> "Tim Roberts" <email***@***.com> wrote in message
> news:email***@***.com...
>
>> Part of their behavior really escape me. The whole thing about
>> browser wars confuses me. Web browsers represent a zero billion
>> dollar a year market. Why would you risk anything to own it?
>
> It really isn't that hard to understand that web-based
> applications that
> work in any browser on any OS threaten to make it irrelevent what OS
> you're running.
And it's even easier to understand that your statement is nonsense.
It doesn't matter which Linux distribution you pick, all use the Linux
kernel. On all I can run OpenOffice, and get the same results. Yet people
seem to prefer one distribution over one other.
> MS has a strong interest in making sure it's important
> to be running on one of their OSes.
Maybe *they* do have a point :-).
--
John Small Perl scripts: http://johnbokma.com/perl/
Perl programmer available: http://castleamber.com/
I ploink googlegroups.com :-)
|
| |
|
| |
 |
joe

|
Posted: 2005-10-16 7:12:00 |
Top |
java-programmer >> Microsoft Hatred FAQ
John Bokma <email***@***.com> writes:
> "David Schwartz" <email***@***.com> wrote:
> >
> > "Tim Roberts" <email***@***.com> wrote in message
> > news:email***@***.com...
> >
> >> Part of their behavior really escape me. The whole thing about
> >> browser wars confuses me. Web browsers represent a zero billion
> >> dollar a year market. Why would you risk anything to own it?
> >
> > It really isn't that hard to understand that web-based
> > applications that work in any browser on any OS threaten
> > to make it irrelevent what OS you're running.
>
> And it's even easier to understand that your statement is nonsense.
>
> It doesn't matter which Linux distribution you pick, all use the Linux
> kernel. On all I can run OpenOffice, and get the same results. Yet people
> seem to prefer one distribution over one other.
He was talking about the browser war, and gave a pretty good reason
why it was important. So you respond by pointing out that people
choose a linux distribution for personal (non-technical,
non-marketing) reasons. I think I missed the connection.
> > MS has a strong interest in making sure it's important
> > to be running on one of their OSes.
>
> Maybe *they* do have a point :-).
Which is?
Joe
--
Gort, klatu barada nikto
|
| |
|
| |
 |
Matt Garrish

|
Posted: 2005-10-16 7:13:00 |
Top |
java-programmer >> Microsoft Hatred FAQ
"Tim Roberts" <email***@***.com> wrote in message
news:email***@***.com...
> "Jeroen Wenting" <jwenting at hornet dot demon dot nl> wrote:
>>
>>Microsoft isn't evil, they're not a monopoly either.
>>If they were a monopoly they'd have 100% of the market and there'd be no
>>other software manufacturers at all.
>
> This is wrong. The dictionary definition of a monopoly is when a
> manufacturer has all or nearly all of a market. Microsoft DOES have a
> monopoly on PC operating systems.
>
> That, in itself, is not necessarily illegal. However, Microsoft then USED
> that monopoly power to stifle their competition, and that IS illegal.
>
> Part of their behavior really escape me. The whole thing about browser
> wars confuses me. Web browsers represent a zero billion dollar a year
> market. Why would you risk anything to own it?
>
It may not be worth loads of money in-and-of itself now (don't forget
Netscape wasn't always free, though), but if you control how people view the
Internet you can make a lot of money in other ways, especially if you build
your browser into your operating system and warp standards so that people
who design sites take advantage of the proprietary features. Eventually the
hope is that your OS and browser will become the only means of accessing the
internet. And if your OS and browser are the only way to access the
Internet, who in their right mind would use another system?
Matt
|
| |
|
| |
 |
David Schwartz

|
Posted: 2005-10-16 7:57:00 |
Top |
java-programmer >> Microsoft Hatred FAQ
"John Bokma" <email***@***.com> wrote in message
news:email***@***.com...
> "David Schwartz" <email***@***.com> wrote:
>> "Tim Roberts" <email***@***.com> wrote in message
>> news:email***@***.com...
>>> Part of their behavior really escape me. The whole thing about
>>> browser wars confuses me. Web browsers represent a zero billion
>>> dollar a year market. Why would you risk anything to own it?
>> It really isn't that hard to understand that web-based
>> applications that
>> work in any browser on any OS threaten to make it irrelevent what OS
>> you're running.
> And it's even easier to understand that your statement is nonsense.
To you, if you don't understand it.
> It doesn't matter which Linux distribution you pick, all use the Linux
> kernel. On all I can run OpenOffice, and get the same results. Yet people
> seem to prefer one distribution over one other.
Right, and that's what Microsoft wants to avoid. They wants to make sure
people *have* to choose a Microsoft operating system to get their
applications to work. He doesn't want most applications to work the same on
all operating systems. MS was afraid the browser would replace the operating
system in the sense that it would be the target platform for applications.
>> MS has a strong interest in making sure it's important
>> to be running on one of their OSes.
> Maybe *they* do have a point :-).
Well, they have their vision of the future of computing, and you can bet
all things made by Microsoft are at the center of it.
DS
|
| |
|
| |
 |
Greymaus

|
Posted: 2005-10-16 8:08:00 |
Top |
java-programmer >> Microsoft Hatred FAQ
Mike Meyer wrote:
> You clearly weren't paying attention to what the rest
> of the microcomputer industry was doing while Gates was selling IBM
> non-existent software. While IBM was introducing 16-bit processors and
> DOS was doing a flat file system, Tandy was selliig systems - for a
> fraction of the price of any MS-DOS based system - that were
> multitasking, multiuser, had an optional windowing system that came
> with a complete (for the time) office suite. Of course, that was while
> Tandy still thought they could sell computers by selling better
> computers than you could get running MS software.
Was that the Color Computer III running OS9 Level II for an operating
system, that you're talking about? Motorola 6809 processor? HELLUVA
little computer! OS9 was a bit quirky, though, even for a UNIX clone.
|
| |
|
| |
 |
M錸s Rullg錼d

|
Posted: 2005-10-16 8:18:00 |
Top |
java-programmer >> Microsoft Hatred FAQ
"David Schwartz" <email***@***.com> writes:
> "Mike Meyer" <email***@***.com> wrote in message
> news:email***@***.com...
>
>> What you call "clever marketing" the DOJ calls "monopolistic
>> practices". The courts agreed with the DOJ. Having had several large
>> PC manufacturers refuse to sell me a system without some form of
>> Windows because MS made it impossible for them to compete if they
>> didn't agree to do so, I agree with the courts and the DOJ.
>
> Go down to your local car dealer and see if you can buy a new car
> without an engine.
That's more like buying a computer without a CPU, which I can in fact
do. Buying a computer without ms windows is more like buying a hifi
set without a Britney Spears CD. I can do that too.
--
M錸s Rullg錼d
email***@***.com
|
| |
|
| |
 |
| |
 |
Index ‹ java-programmer |
- Next
- 1
- a quizz question about java bit operation???hi ,
what is the value of
-8>>-1
-8<<-1
it will be like
public class BitOperation {
/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
System.out.println(-8 << -1);
System.out.println(-8 >> -1);
}
}
the result is
0
-1
but if not -8, what will be the value?and why???
- 2
- Certificate was issued by an unrecognized entityI have problems running my application on the Samsung phones (SGH-E720,
SHG-E300) for HTTPS connection to server, I got next error on mobile
phone:
"Certificate was issued by an unrecognized entity Certificate:C=US;
O=VeriSign, Inc;OU=Class 3 Public Primary Certification Authority"
I checked certificates on both side: server certificate is present on
mobile phone, but still I got errors.
OU = Class 3 Public Primary Certification Authority
O = VeriSign, Inc.
C = US
Serial: 70 ba e4 1d 10 d9 29 34 b6 38 ca 7b 03 cc ba bf
Valid from Monday, 29. January 1996
Valid to Wednesday, 2. August 2028
Also, I have problems to install new certificates on mobile phone (I
tried via Bluetooth, WAP push, but mobile phone doesn't recognize that
it's a certificate and he can't handle this file.
BTW, same application is working properly on other vendor's phones
(Siemens, Motorola, Nokia,..)
Did somebody have similar problems and find some solution ?
Thanks in advance
- 3
- looking for java/JSP code to create my own RSS feed (with my own content)I am urgently looking to create an RSS feed supplying my own content
(which would be generated by unix/sql commands on my lab systems/
services and their state e.g "LDAP server not responsive"), does
anyone know where I can get code to do this? Or modify an existing
implementation?
thanks in advance
- 4
- Optional EJB2.x CMP many-to-one relationhipsIf I'm creating a CMP many-to-one relationship for an entity bean and that
link is optional, if the link is not active must I set a null value into
the field representing the many end of the relationhip?
For example, I have an Address entity bean that includes an integer
'RegionID' field. This field value is optional. I want to create a
relationship field that allows the Region entity to be accessed from the
Address entity. As the address to region many-to-one link is optional must
I set the default value of RegionID to be null?
- 5
- linux-sun-jdk15 or jdk15 on 5.3R-p2Hello,
I am another user who is not able to get linux-sun-jdk15=20
working on a 5.3-R machine. Truss shows:
linux_mkdir(0x805cba8,0x1ed) ERR#17 'File exists'
linux_lstat64(0x805cba8,0xbfbfc740,0xbfbfc898) =3D 0 (0x0)
linux_open("/tmp/hsperfdata_root/77570",0x242,0600) =3D 3 (0x3)
oftruncate(0x3,0x8000) =3D 0 (0x0)
linux_mmap(0xbfbfc8d0) =3D 681074688 =
(0x28986000)
close(3) =3D 0 (0x0)
#224() ERR#78 'Function not =
implemented'
SIGNAL 12 (SIGSYS)
SIGNAL 12 (SIGSYS)
Process stopped because of: 16
process exit, rval =3D 140
Bad system call
Is there a timetable on native support for 1.5 or=20
fixture of the linux-sun-jdk15 port? Should someone=20
mark the port as broken or remove it? It sounds like=20
it does not work on 4.x or 5.x at all.=20
-Will
_______________________________________________
email***@***.com mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-java
To unsubscribe, send any mail to "email***@***.com"
- 6
- Speeding up jsp
Hello, I'd like to know about ways to speed up a java application.
We're using jsp java beans on a webserver running Apache/Tomcat 4.1.18.
It's accessing database information through ODBC from a Microsoft SQL Server
version 8.0 database across a network. We're encountering some problems
with one jsp page because I think it's retrieving a large result set from
the database. The query in question selects from a database with over 30000
records. We're using JDBC, and limiting our select to only one database
column.
Any recommendations about speeding up the specific problem with this jsp
page, or any general suggestions on performance improvements would be
welcome.
Mike
- 7
- Problems Skewing Image (Trapezoid) with Graphics2Dhello!
right now i am working on a graphical output for a video projector. the
projection will be thrown on the wall from a little off center, so that i
will get the picture as a vertical trapezoid (the projectors i am using are
only able to correct horizontal trapezoids). my java program will have to
correct the effect. therefore i need to transform my graphics2d buffered
image NOT shearing the image, but genuinly skewing the image (that is two
parallel sides and two non parallel ones), as it would probably be possible
in java3d with the tilting of a plane.
how is it possible to skew rectangles with graphics2d?
thanks in advance!
roland
- 8
- Singletons and Serialization QuestionI am operating within Tomcat 6. I use 'collector' singletons to build
complex trees of objects from database queries. These singletons rely
on a pool of connections to various data sources, which are made
available via a 'connection pooling' singleton like this:
Connection
con=DriverManager.getConnection(MyPoolingSingleton.getPool("dbwrite"));
where "dbwrite" is the name of a connection that was established
earlier having certain permissions, etc.
My goal is to remove the 'collector' singletons to an app server and
obtain copies of them on a web server via serialization. They still
need access to the database after they are created. In this case the
'connection pooling' singleton must be instantiated locally on each
web server, since connections cannot be pooled across multiple JVM's
in my little world.
My question is, how to ensure the MySingleton.getPool() method call
points to the local singleton and not the singleton from the
originating server. Is it sufficient to ensure MyPoolingSingleton is
not serializable? Do I need to use a mechanism like a transient
instance variable to get a reference to the local copy of
MyPoolingSingleton?
Thanx all!
- 9
- java slows down suddenly?hi..
for some reason the java in our aix suddeny slowed down, meaning only
application using it (like tomcat 4.18) were extremly slow. (tomcat was
listening on port 18080)
tomcat was laucnehd by the a wrapper who reported messages like pingin
jvm and not getting a response.
another tomcat listening 8080 on the same machine, did do well, but
it's the application servlet took forever to start.
the cpu and memroy of the machine are all free, so no worries there..
any ideas on what to search for?
- 10
- Create new object the MenuItem is pressedHello,
I have develop an application, but I am having som problems what
eventshandling when a MenuItem in a Frame is pressed.
/*
menuFileUpdate.addActionListener(new Update());
*/
In this code the Update-object is created when the main-program i
initalized. This i a problem - I would like that the objekt is created at
"pressing time". Do anyone god any suggestion to how this i done?
The update-objekt i an class implementes Runnable. This class is af
singleton with a static instance. What I do right how is to test if the
static object i null, and if is I create a new one, and start the thread.
How ugly is it to set the static instance= null when the job is done - and
thereby create thread-objects if the getInstance() is called?
Do it give any proformace to run the Frame in a thread calling invalidate,
and let the Update run in a the too?
Thanks,
Brian
- 11
- Ug. what is wrong with this classloader???Hi, I keep getting the following error:
java.lang.NoClassDefFoundError: com/mydomain/tst/TestClass (wrong name:
com/mydomain/tst/TestClass)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:502)
at java.lang.ClassLoader.defineClass(ClassLoader.java:431)
at com.mydomain.loader.TNTClassLoader.findClass(TNTClassLoader.java:194)
at com.mydomain.loader.TNTClassLoader.loadClass(TNTClassLoader.java:115)
at com.mydomain.loader.TNTClassLoader.loadClass(TNTClassLoader.java:104)
at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
at com.mydomain.prm.bo.Test.redirectCheck(Unknown Source)
... 40 more
What causes this? Here is my code: (Search for the 'Chokes here') Note: I
am running under java 1.4
======================================================
package com.mydomain.loader;
import com.mydomain.rmi.*;
import com.mydomain.util.*;
import com.mydomain.exceptions.*;
import java.util.*;
import java.io.*;
import java.net.*;
/**
* Used to load TNT classes. TNT classes start with com.mydomain. There will
be
* one class loader for each environment file.
*
* @author Troy
* @version $Revision$
*/
public class TNTClassLoader extends ClassLoader {
private Context _context;
private ClassLoader _common;
private String _product;
private String _version;
private String _classKey;
private TNTClassLoader(Context context, ClassLoader common) {
super(common);
_context = context;
_common = common;
InsensitiveProperties p = _context.getEnvironment();
_product = p.getProperty("product");
_version = p.getProperty("version");
_classKey = _product + _version;
_classKey = _classKey.toLowerCase().trim();
} // constructor
protected synchronized Class loadClass(String name, boolean resolve)
throws java.lang.ClassNotFoundException {
boolean useTNTLoader = true;
String product = null;
if (name.startsWith("com.mydomain.")) {
int lastDot = name.lastIndexOf(".");
// should always be greater than 12 unless the package name is
'com.mydomain'
if (lastDot > 12) {
// match the product name to the product field in the
environment field
product = name.substring(13, lastDot);
} // end if
// ignore core packages
if (product == null ||
StrU.inStr(1,"/util/data/rmi/loader/","/"+product+"/") != 0) {
useTNTLoader = false;
} // end if
} else {
useTNTLoader = false;
} // end if
// use the regular classloader
if (!useTNTLoader) {
System.out.println("using parent classloader");
Class c = _common.loadClass(name);
if (resolve) {
resolveClass(c);
} // end if
return c;
} // end if
// match the product name to the product field in the environment
field
if (_product == null) {
throw new ClassNotFoundException("environment: " +
_context.getEnvironmentName() +
" does not define the product
field.");
} // end if
// make sure we are using the correct classloader
if (!product.equalsIgnoreCase(_product)) {
// the product doesn't match. we need a different classloader
// find the name of the actuall environment
InsensitiveProperties p = _context.getEnvironment();
String actualEnvironment = p.getProperty(product +
"Environment");
if (actualEnvironment == null) {
throw new java.lang.ClassNotFoundException(
"Actual environment could not be found, environment: " +
_context.getEnvironmentName() + ", product: " +
product);
} // end if
InsensitiveProperties pp =
_context.getEnvironment(actualEnvironment);
String checkProduct = pp.getProperty("product");
if (checkProduct == null) {
throw new ClassNotFoundException("environment: " +
actualEnvironment +
" does not define the
product field.");
} // end if
if (!checkProduct.equalsIgnoreCase(product)) {
throw new ClassNotFoundException("unable to find product -
environment: " +
_context.getEnvironmentName() +
", product: " + product);
} // end if
Context context;
context = (Context)_context.clone();
context.setEnvironmentName(actualEnvironment);
TNTClassLoader loader = getClassLoader(context, _common);
return loader.loadClass(name, resolve);
} // end if
/** @todo get class here */
System.out.println("using TNT classloader");
// First, check if the class has already been loaded
Class c = findLoadedClass0(name);
if (c == null) {
// If still not found, then call findClass in order
// to find the class.
c = findClass(name);
} // end if
if (resolve) {
resolveClass(c);
} // end if
return c;
} // loadClass
private Class findLoadedClass0(String name) {
// StaticClassCache is a synchronized cache
return StaticClassCache.getClass(_classKey,name);
} // findLoadedClass0
public static synchronized TNTClassLoader getClassLoader(Context
context, ClassLoader parent) {
String key = "System.classloader."+context.getEnvironmentName();
TNTClassLoader loader = (TNTClassLoader)StaticLoaderCache.get(key);
if (loader == null) {
loader = new TNTClassLoader(context,parent);
StaticLoaderCache.put(key,loader);
} // end if
return loader;
} // getClassLoader
protected Class findClass(String name) throws
java.lang.ClassNotFoundException {
String fileName = name.replace('.','/');
File file = new
File(_context.getLocation(),_product+_version+"/busobjs/"+fileName+".class")
;
System.out.println(file);
if (!file.exists()) {
throw new ClassNotFoundException(name);
} // end if
// Looking up the package
String packageName = null;
int pos = name.lastIndexOf('.');
if (pos != -1)
packageName = name.substring(0, pos);
Package pkg = null;
if (packageName != null) {
System.out.println("the package name is: "+packageName);
pkg = getPackage(packageName);
if (pkg == null) {
System.out.println("the package does not exist");
} else {
System.out.println("the package exists");
System.out.println(pkg.getImplementationTitle());
System.out.println(pkg.getImplementationVendor());
System.out.println(pkg.getImplementationVersion());
System.out.println(pkg.getName());
}
// Define the package (if null)
if (pkg == null) {
definePackage(packageName, "spectitle", "specversion",
"specvendor",
"impltitle", "implversion",
"implVendor", null);
} // end if
} // end if
byte[] buffer = new byte[8000];
try {
FileInputStream fis = new FileInputStream(file);
ByteArrayOutputStream baos = new ByteArrayOutputStream();
BufferedOutputStream bos = new BufferedOutputStream(baos);
int result = 0;
while ((result = fis.read(buffer)) != -1) {
bos.write(buffer,0,result);
} //wend
fis.close();
bos.flush();
byte[] bytes = baos.toByteArray();
bos.close();
System.out.println("number of bytes in class is "+bytes.length);
System.out.println("trying to define class: "+name+"|");
Class c = defineClass(name, bytes, 0, bytes.length); //
<----Chokes here!!!!
System.out.println("class is defined!");
return c;
} catch (IOException ex) {
throw new ClassNotFoundException(ex.toString());
} // try
} // findClass
} // class
- 12
- JTree and associating objects with nodesHi,
Sorry, ignore that last post. wrong component. Does anyone know how to store
objects in a name value pair data structure (i.e. hashmap) in a JTree? It
easy to store the name of the object but to store the object with the name,
I am not sure.
Any help would be great
Thanks
Bob
- 13
- remote JBoss on local consoleI'm using Eclipse 3.0 IDE and JBoss 3.2.3 app server for building and
deploying EJB's. The Problem is that JBoss is on another PC and when I
deploy my bean the eclipse console shows only that my jar file is
copied to the server directory.
no debug , no error messages ...
so my question is how to make server debugging shows up on my eclipse
console
- 14
- Online Chat, March 15, on HotSpot VM PerformanceJ2SE 5.0 includes a number of new features that can be used to enhance
the performance of the HotSpot Virtual Machine. Learn more and get
questions answered about HotSpot VM performance in this chat with Sun
engineers, Peter Kessler and Ross Knippel. Peter is the technical lead
for garbage collection in the HotSpot VM. See Peter's blog. Ross
focuses on the HotSpot Server Compiler. The chat is scheduled for March
15 at 11:00 A.M. PST (2:00 P.M. EST/19:00 UTC).
To join the chat, go to
http://java.sun.com/developer/community/chat/index.html on March 15 and
click on the "Join" link for the session.
- 15
- EnumSet + contains: strange behaviorDear all,
The following example of EnumTest seems to be inconsitent with the
interface definition of contains: It executes the lines marked with
XXX, which clearly is an error. Does anyone have an explanation?
Thank you,
Ulrich
import java.util.*;
public class EnumSetTest
{
public enum EnumTest
{
ONE,
TWO,
}
public final void testEnumSet()
{
final EnumSet<EnumTest> result = EnumSet.noneOf(EnumTest.class);
if(result.isEmpty())
{
System.out.println("empty"); // enters this branch: correct
}
else
{
System.out.println("not empty");
}
if(result.contains(EnumTest.ONE));
{
System.out.println("error"); // XXX
}
if(result.contains(EnumTest.TWO));
{
System.out.println("error"); // XXX
}
}
}
|
|
|