Dec 16, 2014 23:56
Striving to be a selfless positive influence on others in any way you're capable of - that has no match in religion, and that would be the point of life for someone nonreligious. You'd be of no use to humanity if you killed yourself. Think about that.
 

 Root Access

For all you Super Users out there. You have backups, right?
Oct 18, 2014 09:42
@Psycogeek I would say migrate it to the Android site.
Oct 18, 2014 07:22
@Bob could you show some sites that are recommending Chrome?
Oct 18, 2014 07:21
All Windows computers have IE, and all Mac OS X computers have Safari. Is that justification enough to support these two browsers first? I mean shouldn't it be based on what's more widely used rather than what's more readily available?
Oct 18, 2014 06:58
Don't they trust Firefox or Chrome or other competing browsers to let the websites function properly? Is there still an industrial-level mistrust on alternative browsers a user may install? (I would suppose tech support for a user on Mac would instruct the user to use Safari, which is IE's equivalent on OS X)
Oct 18, 2014 06:57
Of course you only see such messages in sites from early 2000s that are still around, but then if you call customer support related to many sites and tell them you're using Firefox or Chrome, their first response is "Please use Internet Explorer.". Are veteran web developers still making and maintaining sites to function properly on Internet Explorer first?
Oct 18, 2014 06:56
Something that baffled me but can't really ask as a question (it's opinion-based). Why do many web based companies prioritize Internet Explorer over other browsers? Quite often I find small fine print in sites saying "This site is best viewed on Internet Explorer with 1024 x 768 resolution."
 
Apr 29, 2014 10:20
oh, looks like the split vote count shows it. i can indeed see the actual negative score for a candidate using this feature even if the final score is just shown as no less than -1
Apr 29, 2014 10:17
out of curiosity, how did you determine the number of downvotes JG got?
Apr 29, 2014 09:59
actually i meant to refer to your point "negative votes are recorded not displayed". unless the script can query SE servers and fetch the negative vote count, it only has the information in the page code. the question is, does the page code have the negative vote counts even if they are not displayed?
Apr 29, 2014 09:48
so your script can detect the hidden downvotes? are they somehow encoded in the page even if hidden from display?
Apr 29, 2014 09:16
But, I see the vote count on one candidate is -1 but your script takes it as 1...
Apr 29, 2014 08:13
Never mind, figured it out. Right-click > Inspect Element > Console > Paste > Press Enter =) But I think there are bugs. Negative votes show as positive.
Apr 29, 2014 08:08
How can I do this in Chrome?
> Copy + paste in this code in Election page for some fancy graphs & sorted votes
Apr 29, 2014 02:51
Is HopelessN00b serious about his "surly cruelty and snarky sarcasm" and "crushing users' spirits"?
 
Feb 26, 2012 00:30
So when you doubleclick file.myext your java program opens and displays the file contents?
Feb 25, 2012 23:17
@Mike Thanks for accepting :) So everything is working as intended right?
Feb 25, 2012 22:23
Didn't catch you when you got online. So now your Java app works and can open file when the file is double-clicked?
Feb 25, 2012 03:02
I also found out that if you use javaw, the System.out.println does not print to the command window. You have to use the java command for that. It will probably not allow your GUI to run, but it can show you that the arguments are working correctly.
Feb 25, 2012 02:52
Sorry, please change if (args.length == 1) { to if (args.length >= 1) { so that it works even if more than one argument is supplied (the other arguments will be ignored).
Feb 25, 2012 02:47
	public static void main (String[] args) {

		System.out.println ("args length = " + args.length);

		for (int i=0; i<args.length; i++) {
			System.out.println(args[i]);
		}

		if (args.length == 1) {
			myMethod(args[0]);
		}

	}
Feb 25, 2012 02:47
Here is the problem, the args array will have zero length if there are no arguments. You will need to have proper checks for the length of the array. Please try these in your main method (along with the necessary GUI stuff that would come before this code):
Feb 25, 2012 00:57
See you.
Feb 25, 2012 00:57
i'll do some testing in the meanwhile, and post results up in this chat
Feb 25, 2012 00:56
no problem.
Feb 25, 2012 00:55
hmm ok
Feb 25, 2012 00:55
23 hours later you mean?
Feb 25, 2012 00:54
(or your location)
Feb 25, 2012 00:54
?*
Feb 25, 2012 00:54
what time and time zone+
Feb 25, 2012 00:54
that's very strange, it shouldn't give an exception. even if there's no argument, the args[0] value would simply be a blank string.
Feb 25, 2012 00:53
when will you be online next?
Feb 25, 2012 00:53
oh, i actually need to go now.
Feb 25, 2012 00:52
hey, will you stay online for another hour or two?
Feb 25, 2012 00:52
which line gives exception?
Feb 25, 2012 00:50
also tell me if Testing file args[0] prints out.
Feb 25, 2012 00:49
try again.
Feb 25, 2012 00:49
see the myMethod(args[0]); there?
Feb 25, 2012 00:49
public static void main (String args[])
{
    set up your GUI and everything here first
    myMethod(args[0]); //this will open the incoming file
}
Feb 25, 2012 00:49
Actually I wanted you to split out the actual opening of file into myMethod so that you can re-use it in the main method.
Feb 25, 2012 00:47
Btw, does anything in your new myMethod depend on anything else? For example, does it have to wait for something to be setup, something that will surely be setup when user does File > Open, but may not be set up when the main method is executing on program start?
Feb 25, 2012 00:45
well then it should get printed out, especially if rest of the main method executes.
Feb 25, 2012 00:44
is it done before anything else?
Feb 25, 2012 00:44
hmm yes.
Feb 25, 2012 00:43
show me the code line that should supposedly print it
Feb 25, 2012 00:42
it's not printing out in the command window?
Feb 25, 2012 00:41
Where did you place the Testing: args[0]?
Feb 25, 2012 00:41
is the GUI running?
Feb 25, 2012 00:40
Oh, and please try File > Open even if the args[0] failed. You'll want to make sure myMethod works correctly.
Feb 25, 2012 00:39
(I hope you're only putting ... in your paths to truncate them here in superuser.)