Bitcoin Forum

Alternate cryptocurrencies => Mining (Altcoins) => Topic started by: pooler on November 20, 2011, 05:46:12 PM



Title: [LTC] Online Litecoin Miner
Post by: pooler on November 20, 2011, 05:46:12 PM
I have finally succeeded in putting together a (hopefully) working online miner for Litecoin.
This is still highly experimental, and of course this kind of miner will always be slower than the classic minerd.

http://www.litecoinpool.org/miner

You can use the username and password of one of your pool workers, or you can leave the "Worker" field blank if you just want to test it out (shares found this way are credited to a special pool account, and you will not be able to redeem them).

Please check it out, and let me know of any unexpected behavior!
It would also be useful to have some feedback on hashrates for different machines. For instance, on the box I'm using for testing (a Core 2 Duo) this first version is about 3 times slower than ArtForz's cpuminer. I think that's quite a good Java-to-C ratio (I haven't finished optimizing the code yet), but of course your mileage may vary.

UPDATE: On 64-bit systems, the current version can get up to 67% the speed of the reference miner by ArtForz (you must be running a 64-bit Java Virtual Machine and a 64-bit browser). 32-bit systems don't perform as well, but still manage to get about 50% of the speed.

The source code is available under the GNU GPL license. https://github.com/pooler/JMiner


Title: Re: [ANN] Online Litecoin Miner - beta testers wanted!
Post by: terrytibbs on November 20, 2011, 06:03:19 PM
This shortly follows the release of Vanderbleek's miner, so I have to ask:
Is this his miner or have you both been working your asses off on independent projects?

(https://github.com/Vanderbleek/JavaSCryptMiner)


Title: Re: [ANN] Online Litecoin Miner - beta testers wanted!
Post by: pooler on November 20, 2011, 06:12:33 PM
This shortly follows the release of Vanderbleek's miner, so I have to ask:
Is this his miner or have you both been working your asses off on independent projects?

(https://github.com/Vanderbleek/JavaSCryptMiner)

This is an independent project. I knew that Vanderbleek was working on a stand-alone Java miner because of his posts in the main Litecoin thread, but I didn't know his code was on GitHub (thank you for the link!). As far as I can see, though, both projects are based on the same pre-existing Scrypt implementation.


Title: Re: [ANN] Online Litecoin Miner - beta testers wanted!
Post by: terrytibbs on November 20, 2011, 06:15:20 PM
This is an independent project. I knew that Vanderbleek was working on a stand-alone Java miner because of his posts in the main Litecoin thread, but I didn't know his code was on GitHub (thank you for the link!). As far as I can see, though, both projects are based on the same pre-existing Scrypt implementation.
Ah, I see.

Great work, I hope you open-source it, you can learn from each other and hopefully make the most kick-ass miner on the face of the earth.


Title: Re: [ANN] Online Litecoin Miner - beta testers wanted!
Post by: kjlimo on November 20, 2011, 08:24:41 PM
Java(TM) Plug-in Fatal Error

Several Java Virtual Machines running in the same process caused an error


What does this mean?  I'm running another cpu miner; should I turn that off before using your website?


Title: Re: [ANN] Online Litecoin Miner - beta testers wanted!
Post by: pooler on November 20, 2011, 08:45:56 PM
Java(TM) Plug-in Fatal Error

Several Java Virtual Machines running in the same process caused an error

What does this mean?

I've looked that up on Google, and it looks like that message is often an indication of a corrupted Java installation. Check here if your browser has problems loading applets:
http://javatester.org/version.html
Also, if you have an old version of the JRE, please update it. There appears to be a Java bug (now fixed) connected with the message you reported.
http://bugs.sun.com/view_bug.do?bug_id=6433218

Quote
I'm running another cpu miner; should I turn that off before using your website?

That should not be necessary, but of course if you run two miners at the same time they will share CPU cycles, so you won't be able to compare their performance.


Title: Re: [ANN] Online Litecoin Miner - beta testers wanted!
Post by: kano on November 20, 2011, 08:55:21 PM
Java doesn't need opensource to check the code - you just decompile it back to java :)

Hmm - obfuscated - that hardly hides anything either ...

Again I ask - why these projects?
The only real application for them is to steal CPU cycles from people browsing your web sites.


Title: Re: [ANN] Online Litecoin Miner - beta testers wanted!
Post by: kjlimo on November 20, 2011, 09:12:12 PM
Java doesn't need opensource to check the code - you just decompile it back to java :)

Hmm - obfuscated - that hardly hides anything either ...

Again I ask - why these projects?
The only real application for them is to steal CPU cycles from people browsing your web sites.

Or to give simple mined people a way to join the mining and increase the security of the currency/ get others involved.


Title: Re: [ANN] Online Litecoin Miner - beta testers wanted!
Post by: terrytibbs on November 20, 2011, 09:17:38 PM
Java doesn't need opensource to check the code - you just decompile it back to java :)
Using that would be stealing.

Again I ask - why these projects?
The only real application for them is to steal CPU cycles from people browsing your web sites.
This is far from stealing, the user has to give explicit permission for the Java applet to run. Besides, it's a way of contributing to authors you love without having to watch disturbing advertisements.


Title: Re: [ANN] Online Litecoin Miner - beta testers wanted!
Post by: pooler on November 20, 2011, 09:29:49 PM
Java doesn't need opensource to check the code - you just decompile it back to java :)

Hmm - obfuscated - that hardly hides anything either ...

I minified the bytecode because that makes it a little faster, not to obfuscate it. I'm as enthusiastic a supporter of OSS as anyone, and I will release the source code soon.
But first I would like to take a few days to see how much further I can push the miner's speed myself. Kind of a personal challenge :D


Title: Re: [ANN] Online Litecoin Miner - beta testers wanted!
Post by: kano on November 20, 2011, 10:21:07 PM
Java doesn't need opensource to check the code - you just decompile it back to java :)
Using that would be stealing.
Luckily I have no use for it other than to look at it ...
And that is NOT stealing (as I said above to 'check the code')
However, taking money from people and supplying them with faulty goods IS stealing.

Quote
Again I ask - why these projects?
The only real application for them is to steal CPU cycles from people browsing your web sites.
This is far from stealing, the user has to give explicit permission for the Java applet to run. Besides, it's a way of contributing to authors you love without having to watch disturbing advertisements.
Wrong.
You do not have to give explicit permission for A Java applet to run unless the applet codes that into it ...


Title: Re: [ANN] Online Litecoin Miner - beta testers wanted!
Post by: kano on November 20, 2011, 10:23:42 PM
Java doesn't need opensource to check the code - you just decompile it back to java :)

Hmm - obfuscated - that hardly hides anything either ...

Again I ask - why these projects?
The only real application for them is to steal CPU cycles from people browsing your web sites.

Or to give simple mined people a way to join the mining and increase the security of the currency/ get others involved.
LOL yeah the standard excuse given by many who are simply stealing CPU cycles from others.
Who are these "simple mined people" :P


Title: Re: [ANN] Online Litecoin Miner - beta testers wanted!
Post by: terrytibbs on November 20, 2011, 10:30:28 PM
You do not have to give explicit permission for A Java applet to run unless the applet codes that into it ...
That depends on your browser, but I must say, you're either blatantly stupid, or just use a really crappy browser, if it allows proprietary code to be ran on your machine without permission.


Title: Re: [ANN] Online Litecoin Miner - beta testers wanted!
Post by: pooler on November 20, 2011, 10:48:14 PM
Good news, I have done some optimization and managed to get a ~40% speed increase.
The C-to-Java speed ratio has fallen below 2 on my test box!

Core 2 Duo (64 bit) 1.6 GHz, 2 threads
ArtForz's minerd: 3.3 kH/s
Online miner: 1.8 kH/s


Title: Re: [ANN] Online Litecoin Miner - beta testers wanted!
Post by: kano on November 21, 2011, 12:56:17 AM
You do not have to give explicit permission for A Java applet to run unless the applet codes that into it ...
That depends on your browser, but I must say, you're either blatantly stupid, or just use a really crappy browser, if it allows proprietary code to be ran on your machine without permission.
At least learn a little about Java before showing your ignorance and stupidity.


Title: Re: [ANN] Online Litecoin Miner - beta testers wanted!
Post by: rTech on November 21, 2011, 04:52:28 AM
Tested with my slowest miner machine: Atom 1.6ghz

With optimized
- minerd-amdfam10-sse4a-64: t0: 0.49 / t1:0.50
- minerd-i7-64: t0: 0.47 / t1:0.45

With this online miner i get constant: 0.289.



Title: Re: [ANN] Online Litecoin Miner - beta testers wanted!
Post by: kjlimo on November 21, 2011, 02:50:20 PM
I'm getting about half the speed from a dual core processor.


Title: Re: [ANN] Online Litecoin Miner - beta testers wanted!
Post by: Vanderbleek on November 21, 2011, 02:52:16 PM
Awesome pooler -- I'm going to have to take a look at your code later. I was wondering how long it was going to take for someone else to get one working.

Yours definitely seems to be faster than mine, good work.


Title: Re: [ANN] Online Litecoin Miner - beta testers wanted!
Post by: pooler on November 21, 2011, 04:19:38 PM
Awesome pooler -- I'm going to have to take a look at your code later. I was wondering how long it was going to take for someone else to get one working.

Yours definitely seems to be faster than mine, good work.

Thank you!

I still have to work on a couple bugs that I detected yesterday, apparently related to long polling. I'll also try and see if I can push the speed a little more, I got some ideas I want to try out.


Title: Re: [ANN] Online Litecoin Miner - beta testers wanted!
Post by: CAMOPEJB on November 21, 2011, 04:24:57 PM
Nice work!  :)


Title: Re: [ANN] Online Litecoin Miner - beta testers wanted!
Post by: pooler on November 21, 2011, 09:54:31 PM
Another 20% speed increase! :)

The Online Miner is now at about 66% of the optimized C minerd on my box. :o
It looks like JIT compilers can do wonders these days!

ArtForz's minerd: 3.28 kH/s
Online miner: 2.20 kH/s

EDIT: More info about my setup:
Intel Core 2 Duo T5500 @ 1.66 GHz
64-bit Gentoo Linux
64-bit Firefox 3.6.20
64-bit Sun JDK 1.6.0.26


Title: Re: [ANN] Online Litecoin Miner - beta testers wanted!
Post by: terrytibbs on November 21, 2011, 10:51:06 PM
At least learn a little about Java before showing your ignorance and stupidity.
Insults: use when you run out of arguments. One per customer.


Title: Re: [ANN] Online Litecoin Miner - beta testers wanted!
Post by: Vanderbleek on November 21, 2011, 10:55:44 PM
Another 20% speed increase! :)

The Online Miner is now at about 66% of the optimized C minerd on my box. :o
It looks like JIT compilers can do wonders these days!

ArtForz's minerd: 3.28 kH/s
Online miner: 2.19 kH/s


Is there a way to run the online miner with just a single thread for more concrete/side by side comparison?


Title: Re: [ANN] Online Litecoin Miner - beta testers wanted!
Post by: pooler on November 21, 2011, 11:21:53 PM
Is there a way to run the online miner with just a single thread for more concrete/side by side comparison?

Well, it would be very easy to add an input box to select the number of threads, but I would have to add some Java bindings and change the layout of the page... I think that would be a nice feature to have, I will probably look into it tomorrow when I have some time.
On the other hand, the miner should already be able to detect how many CPU cores you have, and start that many threads. The number of threads is printed when you start mining. Please let me know if this doesn't work for you.
Moreover, the hash rate of a single thread should not be much more than 1/n of the hash rate achieved by n threads.
That said, I haven't tested this on more than 2 cores at a time yet, so I'm still wondering how it will do on 4- and 6-core CPUs.


Title: Re: [ANN] Online Litecoin Miner - beta testers wanted!
Post by: Vanderbleek on November 21, 2011, 11:39:14 PM
It does correctly detect my quad core -- I'd just like to be able to limit it to at least 3 ( I like have 1 core free for other stuff) but I'd also like to simultaneously run 1 core comparisons. I seem to be getting around 5khash/sec  on my i5 2400 (@ 3.8ghz), which I usually get about 12 with minerd (the optimized sse4 one).


Title: Re: [ANN] Online Litecoin Miner - beta testers wanted!
Post by: pooler on November 21, 2011, 11:49:44 PM
I seem to be getting around 5khash/sec  on my i5 2400 (@ 3.8ghz), which I usually get about 12 with minerd (the optimized sse4 one).

I thought it could do much better on such a machine. Consider I'm getting 2.2 kH/s on a dual-core laptop at 1.6 GHz!
I wonder if this could depend on your Java setup... in particular, are you using the latest and, perhaps most importantly, 64-bit version of the Java VM?


Title: Re: [ANN] Online Litecoin Miner - beta testers wanted!
Post by: Rejinx on November 22, 2011, 12:15:52 AM
I am kinda confused.  I run the Minerd.  I don't even remember where I downloaded it from.  I run a AMD Phenom 8400 Triple-Core 2.10 GHz and I run 3 threads.  I get about 3.5 Khashes.  Is there a software way to increase my hashes?


Title: Re: [ANN] Online Litecoin Miner - beta testers wanted!
Post by: Vanderbleek on November 22, 2011, 03:38:12 AM
Well, TBH Intel seems to be behind AMD on this one. I'll have to check when I get back about my JVM -- I think it's the 64 bit (the OS is for sure) but it may be the 32, which would explain some of the slowdown. It's about 3Khash/Thread with Minerd (the sse4 one).


Title: Re: [ANN] Online Litecoin Miner - beta testers wanted!
Post by: pooler on November 22, 2011, 09:14:38 AM
I am kinda confused.  I run the Minerd.  I don't even remember where I downloaded it from.  I run a AMD Phenom 8400 Triple-Core 2.10 GHz and I run 3 threads.  I get about 3.5 Khashes.  Is there a software way to increase my hashes?

If that 3.5 is on each core then you are doing good my X3s get about 3.05 per core 3.10 GHz speed, if total for the box then that sucks you will want to compile your own minerd with ./configure CFLAGS="-march=amdfam10 -Wall -O3" as your configure option to get the most out of your processor.

Or try this binary if you are running Windows (replace minerd.exe if you use the ScryptMiner GUI):
http://content.wuala.com/contents/jbw9/pub/Bitcoin/Tenebrix/miner/win/minerd-amdfam10-sse4a.exe/?dl=1


Title: Re: [ANN] Online Litecoin Miner - beta testers wanted!
Post by: rTech on November 22, 2011, 12:11:51 PM
Another benchmark:

Windows 7 64 bit, java latest.

Pool's Webminer (regular java, firefox 32bit):
i5 560 4 Threads: 2.3khash

Pool's Webminer (64bit java, firefox 64bit):
i5 560 4 Threads: 4.6khash

AMD SS34 64 Miner
i5 560 4 Threads: 6.48khash


Title: Re: [ANN] Online Litecoin Miner - beta testers wanted!
Post by: pooler on November 22, 2011, 01:38:24 PM
I've just checked the online miner on a Phenom II X6 @ 3.5 GHz. Using all six cores, I can get 13.8 kH/s (vs 21.3 kH/s of the optimized minerd).
This was tested under Linux, this time with IcedTea 6.
I'm still not sure why other people are not getting similar figures. The only thing I can think of is that you are probably using a 32-bit version of the Java virtual machine. Correct me if I'm wrong, but I think that to get the most out of Java you should be running a 64-bit version of the JVM in a 64-bit browser... all, of course, under a 64-bit OS.

EDIT: according to rTech's edit above, it looks like that was really the problem. Everybody, please update your browser and JRE/JDK to a 64-bit version if you want to double your hash rates. :)


Title: Re: [ANN] Online Litecoin Miner - beta testers wanted!
Post by: rTech on November 22, 2011, 05:39:44 PM
Intel E7300 (info provided by my Urban Terror Clanmate (http://perkele666.org/forum/index.php?action=profile;u=82))

Browser : Firefox 8.0
Java: Version 6 Update 26
OS: Ubuntu 10.04.3 LTS

Pool's webminer: 3.3khash


Title: Re: [ANN] Online Litecoin Miner - beta testers wanted!
Post by: btc_artist on November 22, 2011, 06:38:48 PM
Watching.


Title: Re: [ANN] Online Litecoin Miner - beta testers wanted!
Post by: kano on November 22, 2011, 07:58:34 PM
You do not have to give explicit permission for A Java applet to run unless the applet codes that into it ...
That depends on your browser, but I must say, you're either blatantly stupid, or just use a really crappy browser, if it allows proprietary code to be ran on your machine without permission.

At least learn a little about Java before showing your ignorance and stupidity.
Insults: use when you run out of arguments. One per customer.
... and the first customer was ... the scammer.

All browsers with Java installed for the browser, allow Java code to be run on them - that's the point of installing it.
The term "proprietary code" is some meaningless term that is nonsense in reference to Java in a web browser.

The Java security system obviously does not restrict CPU access since it requires CPU access to run ...
It restricts access to your computer's other resources.

... again learn about how something works to avoid making statements that show your ignorance and stupidity.

... and yes that also means people can put this miner on their web site and hide it in the page and have it run on site visitor's computers without asking them for permission.
The whole point of my original comment.

Of course if you install an extra Add-on (e.g. in FireFox: NoScript) you can stop it.


Title: Re: [ANN] Online Litecoin Miner - beta testers wanted!
Post by: pooler on November 22, 2011, 08:16:56 PM
All browsers with Java installed for the browser, allow Java code to be run on them - that's the point of installing it.

I feel obliged to mention that you can enable/disable Java, Flash etc. on a per-site basis. I do. Browser plugins like Noscript and Flashblock have become very popular lately. Personally, I find them very valuable, especially when I have to work on older computers.

Quote
that also means people can put this miner on their web site and hide it in the page and have it run on site visitor's computers without asking them for permission.

Come on, people can do much worse things than that, if they are malicious enough. Without the aid of this miner.
It's the same old story: the same technology can be both "good" and "bad", depending on what use you make of it.
Unfortunately we can't stop the march of technology. If it can be done, someone will eventually do it.

I did not start this project with the intention of stealing the CPU time of unaware surfers.
I started it because I think it can help the diffusion of Litecoin. (And because I love programming :))

Of course this miner will always be somewhat slower and less profitable than compiled miners, but it has other advantages.
First and foremost, it will run on almost any platform, and with little to no configuration. I am sure that, as kjlimo said, "simple minded" people will enjoy that.

Also think about this: the average user (who might not be familiar with Bitcoin and its software) will be (rightly) reluctant to download and run an executable file from the Internet. And for sure he/she won't have the time or knowledge to check out the source code.
With a Java applet, you don't have to trust the author of the code that much, because the guys at Sun Microsystems have worked hard to make Java as secure as possible. That's why, by default, browsers just run Java applets without asking too many questions.


Title: Re: [ANN] Online Litecoin Miner - beta testers wanted!
Post by: pooler on November 22, 2011, 10:58:18 PM
It does correctly detect my quad core -- I'd just like to be able to limit it to at least 3 ( I like have 1 core free for other stuff) but I'd also like to simultaneously run 1 core comparisons.

Done! :) You should now be able to select the number of threads you want to start.

The "Threads" field should be auto-populated with the number of cores your CPU has when the page is loaded. Please let me know if that doesn't work in your browser.


Title: Re: [ANN] Online Litecoin Miner - beta testers wanted!
Post by: Vanderbleek on November 23, 2011, 01:28:53 AM
Doesn't auto-populate on the latest version of Chrome.

i3, running 1 thread, 64 bit W7 and 64 bit Java JRE 7, latest Chrome:
Minerd -- 1.44Khash
Online Miner -- .60Khash

So like I said, little less than half. Still pretty good though. I don't have a 64 bit browser -- I'll DL one of the firefox ones if I can find a stable-ish one.


Title: Re: [ANN] Online Litecoin Miner - beta testers wanted!
Post by: rTech on November 23, 2011, 08:00:27 AM
Im running latest 64 bit nightly build of Firefox in my i5 560 Win 7 64. No issues at all. It automatically update to latest when there is new one :D

Get Nightly build (caution, only for people who like to test things.. not for average joe)
http://nightly.mozilla.org/


Title: Re: [ANN] Online Litecoin Miner - beta testers wanted!
Post by: pooler on November 23, 2011, 11:41:59 AM
Doesn't auto-populate on the latest version of Chrome.

Thank you, that should be fixed now.

Quote
i3, running 1 thread, 64 bit W7 and 64 bit Java JRE 7, latest Chrome:
Minerd -- 1.44Khash
Online Miner -- .60Khash

So like I said, little less than half. Still pretty good though. I don't have a 64 bit browser -- I'll DL one of the firefox ones if I can find a stable-ish one.

I have revived an old single-core laptop (32-bit Pentium-M @ 1.7 GHz) and I get 0.37 kH/s, versus 0.75 kH/s of minerd.
So far it looks like a 67% ratio can be achieved on 64-bit systems, while 32-bit systems cannot get past 50%.

Given these results, my theory is that having a fully 64-bit environment (OS+browser+JVM) is the only way to achieve full performance.
If you think about it, it's a long way from the Java browser plugin to basic CPU instructions. And, as someone said, a (software) chain is only as strong as its weakest link. :)


Title: Re: [ANN] Online Litecoin Miner - beta testers wanted!
Post by: Vanderbleek on November 23, 2011, 05:38:14 PM
my i5, running 64 bit firefox nightly, 64bit java:
Minerd: 3Khash
Online MIner: 2.2Khash

same but using 32 bit chrome:
1.2Khash

So yes, it looks like 64 bit OS/Java/Browser does matter quite a bit.


Title: Re: [ANN] Online Litecoin Miner - beta testers wanted!
Post by: pooler on November 27, 2011, 04:23:22 PM
I would like to know what everybody thinks about embeddable miners, such as the one by BitcoinPlus (http://www.bitcoinplus.com/miner/embeddable).

First off, I want to make it clear that if Litecoin is successful somebody will eventually come up with a (potentially evil) embedded miner, no matter what. (Especially since I am going to release the source code of the Java miner very soon - stay tuned. :))

As terrytibbs pointed out, for some sites such miners may represent a nice alternative to ads. On the other hand, they might be even more annoying to some visitors.
Personally I think they can be fine as long as the visitor is informed of what's going on (that would also bring some publicity to Litecoin), and can choose to opt-out at any moment. The problem is, of course, that this cannot be enforced by the pool to which the miner submits its work.

On the technical side, I think it would be wise for such miners to leave single-core systems alone, and only start n-1 threads for an n-core system.

I still haven't decided if I will release an embeddable miner, I would like to hear other people's opinions first.


Title: Re: [ANN] Online Litecoin Miner - beta testers wanted!
Post by: CAMOPEJB on November 27, 2011, 07:04:14 PM
I think its a great idea  ;)


Title: Re: [ANN] Online Litecoin Miner - beta testers wanted!
Post by: terrytibbs on November 27, 2011, 07:11:21 PM
I still haven't decided if I will release an embeddable miner, I would like to hear other people's opinions first.
Do it. It's going to happen anyways.

I want to expand the donation feature of the liteco.in forums to allow donating spare CPU cycles to that address (optional, of course), right now it's just a giant address - http://donate.liteco.in/1. This would allow that.


Title: Re: [ANN] Online Litecoin Miner - beta testers wanted!
Post by: michaelmclees on November 27, 2011, 07:59:19 PM
I vote for release.  It functions as security and advertising for Litecoin.


Title: Re: [ANN] Online Litecoin Miner - beta testers wanted!
Post by: jago25_98 on November 28, 2011, 12:14:49 PM
Works great on win7 and 64bit. Can't get the applet to run without freezing on linux 32bit, Firefox or Chromium with Icetea6 java

Code:
java command is:
user         4274 99.5  9.7 801864 200528 ?       Sl   09:06   5:36 /usr/lib/jvm/java-6-openjdk/jre/bin/java -Xbootclasspath/a:/usr/share/icedtea-web/netx.jar:/usr/share/icedtea-web/plugin.jar -classpath /usr/lib/jvm/java-6-openjdk/jre/lib/rt.jar sun.applet.PluginMain /tmp/icedteaplugin-user/4230-icedteanp-plugin-to-appletviewer /tmp/icedteaplugin-j/4230-icedteanp-appletviewer-to-plugin
Code:
j@laptop:~$ java -version
java version "1.6.0_23"
OpenJDK Runtime Environment (IcedTea6 1.11pre) (6b23~pre10-0ubuntu5)
OpenJDK Server VM (build 20.0-b11, mixed mode)
j@laptop:~$

Will now try different java jre.


Title: Re: [ANN] Online Litecoin Miner - beta testers wanted!
Post by: BitcoinPorn on November 28, 2011, 01:15:42 PM
Again I ask - why these projects?
The only real application for them is to steal CPU cycles from people browsing your web sites.

Just like the only real application for Bitcoin is to ensure illegal goods are able to be traded freely on TOR.    I guess it is possible to see it that way if you shut your eyes halfway so everything looks blurry.   


Title: Re: [ANN] Online Litecoin Miner - beta testers wanted!
Post by: BitcoinPorn on November 28, 2011, 01:17:59 PM
I would like to know what everybody thinks about embeddable miners, such as the one by BitcoinPlus (http://www.bitcoinplus.com/miner/embeddable).

Please do it.  I guarantee more Litecoin users because of this.   Many elements of BitcoinPlus were done right too, such as the page that explains why is my computer making noise when it's on this site and etc. 


Title: Re: [ANN] Online Litecoin Miner - beta testers wanted!
Post by: btc_artist on November 28, 2011, 02:13:52 PM
On the technical side, I think it would be wise for such miners to leave single-core systems alone, and only start n-1 threads for an n-core system.
On a side note, it would also be nice to be able to throttle back the miner so it doesn't use 100% of the cpu(s) it's running on.


Title: Re: [ANN] Online Litecoin Miner - beta testers wanted!
Post by: pooler on November 28, 2011, 09:15:38 PM
On a side note, it would also be nice to be able to throttle back the miner so it doesn't use 100% of the cpu(s) it's running on.

Nice idea, I will definitely look into that.


Title: Re: [ANN] Online Litecoin Miner - beta testers wanted!
Post by: kano on November 29, 2011, 12:56:30 AM
Again I ask - why these projects?
The only real application for them is to steal CPU cycles from people browsing your web sites.

Just like the only real application for Bitcoin is to ensure illegal goods are able to be traded freely on TOR.    I guess it is possible to see it that way if you shut your eyes halfway so everything looks blurry.  
Never said that - so clearly "the only real application for Bitcoin is to ensure illegal goods are able to be traded freely on TOR" is your opinion.

Well it doesn't really matter coz I am certain that these mining programs will be added to web sites that will use your CPU without permission.
Then, of course, the browsers will add things to stop them and that will be the end of it.

(Edit: and the bitcoinplus site doesn't bother to point out that it costs WAY more in electricity to use than you will gain - in fact it doesn't point out anything at all about the costs and return ... I wonder why? Simple coz those numbers are so bad.)


Title: Re: [ANN] Online Litecoin Miner - beta testers wanted!
Post by: BitcoinPorn on November 29, 2011, 01:54:06 AM
(Edit: and the bitcoinplus site doesn't bother to point out that it costs WAY more in electricity to use than you will gain - in fact it doesn't point out anything at all about the costs and return ... I wonder why? Simple coz those numbers are so bad.)

Actually, in the case of that site, it was profitable when it started, even on a personal level I believe.  But it was more for people who owned sites, which at this point I don't think it is good for at all, I imagine only some form of browser "bot net" type situation would only make that valuable.  The owner abandoned the site for the most part, updates on it stopped long ago.

Anyways, of course I don't think that about Bitcoin as far as trading and TOR.  I know it is one application of it, just as the people who would abuse an online miner are only a subset of the people who want this on web sites. 

I think of the online miner as an ad replacement.  Web sites of full content, being able to have costs paid by the users electricity, who would rather pay with just a little electricity than the eyesores that are ads. 


Title: Re: [ANN] Online Litecoin Miner - beta testers wanted!
Post by: kjlimo on November 29, 2011, 04:25:00 AM
What about this on an Android phone?  I just bought one, heh.

Is Java available on Android OS?  Do I need to/can I install that first?

Then would this be possible to run on a cell phone?  I'm pretty sure mine is single core though.  Is there a way to lower the "priority" for a process like I can when I "task manager" the process to a lower priority?


Title: Re: [ANN] Online Litecoin Miner - beta testers wanted!
Post by: kjlimo on November 29, 2011, 04:32:42 AM
What about this on an Android phone?  I just bought one, heh.

Is Java available on Android OS?  Do I need to/can I install that first?

Then would this be possible to run on a cell phone?  I'm pretty sure mine is single core though.  Is there a way to lower the "priority" for a process like I can when I "task manager" the process to a lower priority?

Doesn't look like Java allows downloads from their site.  It says the Mobile Java needs to be installed by the distributor/developer.


Title: Re: [ANN] Online Litecoin Miner - beta testers wanted!
Post by: pooler on November 29, 2011, 09:43:47 AM
Is Java available on Android OS?

I fear not... :(
http://android.stackexchange.com/questions/987/are-there-any-android-browsers-that-support-loading-a-java-applet-in-browser
http://www.tomshardware.co.uk/forum/51690-21-java-android-tablets-honeycomb


Title: Re: [ANN] Online Litecoin Miner - beta testers wanted!
Post by: pooler on November 29, 2011, 09:56:27 PM
The first version of the embeddable miner is ready. :)
I have written a short guide for webmasters interested in testing:
http://www.litecoinpool.org/embed


Title: Re: [ANN] Online Litecoin Miner - beta testers wanted!
Post by: terrytibbs on November 29, 2011, 10:05:13 PM
The first version of the embeddable miner is ready. :)
I have written a short guide for webmasters interested in testing:
http://www.litecoinpool.org/embed
Looks great! I'll tinker around with it a little in a bit.

Add the ability to mine directly to a specific address and I'm all set. I understand that this will require some changes to your backend due to the way workers are handled, though.


Title: Re: [ANN] Online Litecoin Miner - beta testers wanted!
Post by: rTech on November 29, 2011, 10:09:13 PM
Yes its awesome, it make Litecoinpool.org bit more better place when it has something that others doesnt have yet like this website embedded miner :D I had honor to betatest it :D and it works like a dream.


Title: Re: [ANN] Online Litecoin Miner - beta testers wanted!
Post by: btc_artist on November 29, 2011, 11:41:56 PM
The first version of the embeddable miner is ready. :)
I have written a short guide for webmasters interested in testing:
http://www.litecoinpool.org/embed
It would be nice to have some more granularity in throttling the miner. A way to accomplish the following:

1 cpu = use 25% of it (25% of all resources)
2 cpus = use 75% of one (37.5% of all resources)
3 cpus = use 1.5 (100% of one and 50% of the second) (50% of all resources)
4 cpus = use 2.5 (100% of two and 50% of the third) (62.5% of all resources)

The goal would be to not overtax old systems, but give a little more work to newer systems that can handle it.


Title: Re: [ANN] Online Litecoin Miner - beta testers wanted!
Post by: btc_artist on November 29, 2011, 11:44:01 PM
Also, if you set threads to -1, will it not run on systems with 1 cpu?


Title: Re: [ANN] Online Litecoin Miner - beta testers wanted!
Post by: pooler on November 30, 2011, 12:12:15 AM
Also, if you set threads to -1, will it not run on systems with 1 cpu?

Yes, that's what I proposed a couple days ago. The current default is:

1 cpu = leave it alone (0% of all resources)
2 cpus = use 80% of one (40% of all resources)
3 cpus = use 1.6 (80% of two) (53% of all resources)
4 cpus = use 2.4 (80% of three) (60% of all resources)

This looks very similar to what you proposed. The only noticeable difference is in the single-core case.
But again, I'm not sure we should put any stress on single-core machines. Correct me if I'm wrong, but these would mainly be relatively old 32-bit cpus, and at 25% you wouldn't get much out of them.
We should also consider that every connection to the work provider puts a little more load on the server, so I wonder if it would be worth it.


Title: Re: [ANN] Online Litecoin Miner - beta testers wanted!
Post by: btc_artist on November 30, 2011, 08:26:44 AM
It would also be very nice if you could detect a laptop/device running on battery power and not mine in that case.  http://www.google.com/search?q=get%20battery%20level%20java  You also wouldn't want to mine if someone visits on a smartphone or some other low-powered device, but I guess the 2-core threshold will take care of that.


Title: Re: [ANN] Online Litecoin Miner - beta testers wanted!
Post by: btc_artist on November 30, 2011, 08:27:26 AM
Another question-- is this, or will it be, open-sourced?


Title: Re: [ANN] Online Litecoin Miner - beta testers wanted!
Post by: pooler on November 30, 2011, 09:57:25 AM
Another question-- is this, or will it be, open-sourced?

Didn't read the thread, eh? :) Yes, the source will be released soon.

It would also be very nice if you could detect a laptop/device running on battery power and not mine in that case.  http://www.google.com/search?q=get%20battery%20level%20java

That would be nice, but sadly a standard way of getting battery level information in Java doesn't seem to exist. You may be able to get it on some phones, but I don't think an unsigned applet can get that kind of information when running on a laptop.

Quote
You also wouldn't want to mine if someone visits on a smartphone or some other low-powered device, but I guess the 2-core threshold will take care of that.

Not completely: dual-core mobile phones already exist. I will investigate, thank you for the suggestion!


Title: Re: [ANN] Online Litecoin Miner - beta testers wanted!
Post by: kano on November 30, 2011, 10:20:21 AM
Another question-- is this, or will it be, open-sourced?

Didn't read the thread, eh? :) Yes, the source will be released soon.

It would also be very nice if you could detect a laptop/device running on battery power and not mine in that case.  http://www.google.com/search?q=get%20battery%20level%20java

That would be nice, but sadly a standard way of getting battery level information in Java doesn't seem to exist. You may be able to get it on some phones, but I don't think an unsigned applet can get that kind of information when running on a laptop.

Quote
You also wouldn't want to mine if someone visits on a smartphone or some other low-powered device, but I guess the 2-core threshold will take care of that.

Not completely: dual-core mobile phones already exist. I will investigate, thank you for the suggestion!
Um - hang on a tick ... that should never be an issue.
You do ask them before taking their CPU cycles right?
You just simply say that "if they are on a mobile phone that they shouldn't" do it.

Edit: and the same issue regarding a laptop on a battery ... if you ask and explain the consequences there should be no issue .... unless you hid the consequences ... but you wouldn't do that coz that would be scamming them :)


Title: Re: [ANN] Online Litecoin Miner - beta testers wanted!
Post by: pooler on November 30, 2011, 10:41:42 AM
Um - hang on a tick ... that should never be an issue.
You do ask them before taking their CPU cycles right?
You just simply say that "if they are on a mobile phone that they shouldn't" do it.

Edit: and the same issue regarding a laptop on a battery ... if you ask and explain the consequences there should be no issue .... unless you hid the consequences ... but you wouldn't do that coz that would be scamming them :)

Unfortunately it's not that simple. I think opt-out is more practical than opt-in for most sites, otherwise I'm pretty sure that many visitors who don't mind simply wouldn't bother turning the miner on.
Even if you start the applet on an opt-in basis, you certainly don't want the user to manually start the miner every time he goes from one page to another. You would probably use a cookie to remember the user's decision. So it would still be nice if the miner could automatically detect when a laptop is running on battery power and when it is not, as this could change at any time.


Title: Re: [ANN] Online Litecoin Miner - beta testers wanted!
Post by: pooler on November 30, 2011, 01:14:31 PM
I have done some research, and it looks like at present no mobile phone can run ordinary Java SE applets.
That would mean one less problem to deal with.
Can anyone confirm or refute this?

Of course the problem of laptops running on battery power still remains. I think the only satisfactory solution implies using cookies to remember users that have opted-out. My Javascript is a bit rusty, but if I remember correctly it shouldn't be too difficult to set these cookies client-side.


Title: Re: [ANN] Online Litecoin Miner - beta testers wanted!
Post by: kano on November 30, 2011, 01:50:57 PM
I have done some research, and it looks like at present no mobile phone can run ordinary Java SE applets.
That would mean one less problem to deal with.
Can anyone confirm or refute this?

Of course the problem of laptops running on battery power still remains. I think the only satisfactory solution implies using cookies to remember users that have opted-out. My Javascript is a bit rusty, but if I remember correctly it shouldn't be too difficult to set these cookies client-side.
I am obviously talking about the first choice to start mining, not the page switch.
When you first ask you also point out what they are doing (not hide it like a scammer)
Your reply seems to directly imply that you don't ask - (since you didn't already have a cookie to remember their choice) - thus it sounds like you ARE stealing CPU cycles ...


Title: Re: [ANN] Online Litecoin Miner - beta testers wanted!
Post by: terrytibbs on November 30, 2011, 02:42:44 PM
I have done some research, and it looks like at present no mobile phone can run ordinary Java SE applets.
That would mean one less problem to deal with.
Can anyone confirm or refute this?

Of course the problem of laptops running on battery power still remains. I think the only satisfactory solution implies using cookies to remember users that have opted-out. My Javascript is a bit rusty, but if I remember correctly it shouldn't be too difficult to set these cookies client-side.
I am obviously talking about the first choice to start mining, not the page switch.
When you first ask you also point out what they are doing (not hide it like a scammer)
Your reply seems to directly imply that you don't ask - (since you didn't already have a cookie to remember their choice) - thus it sounds like you ARE stealing CPU cycles ...
Oh cut it out with the stealing already. Am I stealing your screen space if you visit my website?


Title: Re: [ANN] Online Litecoin Miner - beta testers wanted!
Post by: btc_artist on November 30, 2011, 02:46:51 PM
I have done some research, and it looks like at present no mobile phone can run ordinary Java SE applets.
That would mean one less problem to deal with.
Can anyone confirm or refute this?

Of course the problem of laptops running on battery power still remains. I think the only satisfactory solution implies using cookies to remember users that have opted-out. My Javascript is a bit rusty, but if I remember correctly it shouldn't be too difficult to set these cookies client-side.
I am obviously talking about the first choice to start mining, not the page switch.
When you first ask you also point out what they are doing (not hide it like a scammer)
Your reply seems to directly imply that you don't ask - (since you didn't already have a cookie to remember their choice) - thus it sounds like you ARE stealing CPU cycles ...
It should detect things like battery state and number of cpus, to offer reasonable defaults, or not even offer the option of running the miner.  It's not even about whether you as the user or not.


Title: Re: [ANN] Online Litecoin Miner - beta testers wanted!
Post by: btc_artist on November 30, 2011, 02:57:52 PM
Another question-- is this, or will it be, open-sourced?

Didn't read the thread, eh? :) Yes, the source will be released soon.
I skimmed it, but I must have missed that.  Thanks.

It would also be very nice if you could detect a laptop/device running on battery power and not mine in that case.  http://www.google.com/search?q=get%20battery%20level%20java

That would be nice, but sadly a standard way of getting battery level information in Java doesn't seem to exist. You may be able to get it on some phones, but I don't think an unsigned applet can get that kind of information when running on a laptop.
I'm not a Java expert, but it would appear to be possible by interfacing with native OS APIs.  For example, on Windows, use JNI or JNA to call native Windows API functions to monitor battery status. Native calls could also be investigated for Linux and OSX.

Calling OS API functions from Java:
JNA http://stackoverflow.com/questions/2389156/calling-win32-api-method-from-java
JNI http://www.atwistedweb.com/java/jni.html

Windows Battery API functions:
http://stackoverflow.com/questions/3154554/how-do-i-get-battery-information-in-windows
http://stackoverflow.com/questions/233446/monitor-battery-charge-with-win32-api

I'm not saying it's easy or even possible at this point, but I think it warrants a bit more investigation.

Quote
You also wouldn't want to mine if someone visits on a smartphone or some other low-powered device, but I guess the 2-core threshold will take care of that.
Not completely: dual-core mobile phones already exist. I will investigate, thank you for the suggestion!
You're welcome.


Title: Re: [ANN] Online Litecoin Miner - beta testers wanted!
Post by: rTech on November 30, 2011, 02:59:51 PM
Well "to not steal" my clans website has warning before you can acces forum. It says that user solely accepts that we can use their cpu for mining if they step in our forum. None forces them to join my forum and its their freedom to decide if they want. Luckily finnish law is great and its fair enought to infrom users before they access. So practically its not stealing... There are no free meals, everything cost something for someone.


Title: Re: [ANN] Online Litecoin Miner - beta testers wanted!
Post by: btc_artist on November 30, 2011, 03:01:02 PM
Another suggestion/question.

If this miner is running on a site and I open the site in 5 tabs or in tabs in 2 different browsers, how is this handled?  Will only one instance of the miner run?  Even if people opt in, I think by default it should still limit the rate on their box so as to not hurt performance.


Title: Re: [ANN] Online Litecoin Miner - beta testers wanted!
Post by: pooler on November 30, 2011, 04:02:47 PM
I'm not a Java expert, but it would appear to be possible by interfacing with native OS APIs.  For example, on Windows, use JNI or JNA to call native Windows API functions to monitor battery status. Native calls could also be investigated for Linux and OSX.

Calling OS API functions from Java:
JNA http://stackoverflow.com/questions/2389156/calling-win32-api-method-from-java
JNI http://www.atwistedweb.com/java/jni.html

Windows Battery API functions:
http://stackoverflow.com/questions/3154554/how-do-i-get-battery-information-in-windows
http://stackoverflow.com/questions/233446/monitor-battery-charge-with-win32-api

I'm not saying it's easy or even possible at this point, but I think it warrants a bit more investigation.

The problem is that, unless I'm mistaken, it is not possible to make native calls from an unsigned applet.

Another suggestion/question.

If this miner is running on a site and I open the site in 5 tabs or in tabs in 2 different browsers, how is this handled?  Will only one instance of the miner run?  Even if people opt in, I think by default it should still limit the rate on their box so as to not hurt performance.

That's another thing that is worth investigating. Of course at present every webpage loads its own miner, and that can be a problem if you have more than one page open. But... is it possible for an applet to detect the presence of other applets running?


Title: Re: [ANN] Online Litecoin Miner - beta testers wanted!
Post by: btc_artist on November 30, 2011, 04:42:44 PM
That's another thing that is worth investigating. Of course at present every webpage loads its own miner, and that can be a problem if you have more than one page open. But... is it possible for an applet to detect the presence of other applets running?
Could it be done based on CPU usage?  If CPU usage is above a certain level, don't start the miner.


Title: Re: [ANN] Online Litecoin Miner - beta testers wanted!
Post by: pooler on December 02, 2011, 12:36:17 AM
If this miner is running on a site and I open the site in 5 tabs or in tabs in 2 different browsers, how is this handled?  Will only one instance of the miner run?  Even if people opt in, I think by default it should still limit the rate on their box so as to not hurt performance.

That's another thing that is worth investigating. Of course at present every webpage loads its own miner, and that can be a problem if you have more than one page open. But... is it possible for an applet to detect the presence of other applets running?

Well, it turns out it is possible after all. :)
I have updated the jar file; now if you open a second tab the second applet should refuse to start mining.
I have not had the time to test it extensively; as always, if you encounter any issue please let me know.


Title: Re: [ANN] Online Litecoin Miner - beta testers wanted!
Post by: BitcoinPorn on December 02, 2011, 12:43:41 AM
I am still taken back that someone finally up and made this work again, I swear there was a time I had a stack of suggestions and things, but as I am not a coder I never knew how hard or easy it is to do.  I am thinking on a web site to design around this.  Things are working pretty smooth so far, the ability to tweak as many settings as you have made tweakable is already making this better than previous online miners imo.   


Title: Re: [ANN] Online Litecoin Miner - beta testers wanted!
Post by: kano on December 02, 2011, 02:37:51 AM
Well "to not steal" my clans website has warning before you can acces forum. It says that user solely accepts that we can use their cpu for mining if they step in our forum. None forces them to join my forum and its their freedom to decide if they want. Luckily finnish law is great and its fair enought to infrom users before they access. So practically its not stealing... There are no free meals, everything cost something for someone.
Well then yes that's not scammer material ...
The problem will be though that when other people use your version it should ask them once somewhere before it can mine.


Title: Re: [ANN] Online Litecoin Miner - beta testers wanted!
Post by: BitcoinPorn on December 02, 2011, 02:51:54 AM
The real scam here is advertisers that allow sound pop ups or even embedded flash ads, that have sound enabled by default, and don't give me a pop up warning, an email, an instant message, and a fax, before the sound is blasting through my speakers.  

Kano, your view of what a scam is skewed or you have some kind of personally history with technologies that have the ability to be good and bad, what is going on here man, where does this hard on for web mining come from?  You seem to be pestering the people who want to use it legitimately.  Is the fear someone uses a botnet and opens a thousand browser windows to mine or something?  That is the only worst case scenario I can think of, but honestly there may be more I am not, I am curious where your hate comes from.

Edit: In fairness, is it my view that is skewed where I believe that even knowing that it will be abused by somebody, there can be good to come from this?


Title: Re: [ANN] Online Litecoin Miner - beta testers wanted!
Post by: pooler on December 03, 2011, 06:44:28 PM
For all those who wanted to play with the Javascript API but didn't know where to start:
I have written a simple widget that allows visitors to start/stop the miner, and uses a cookie to make the decision persistent.

http://jsfiddle.net/pooler/XB5Fg/

This is an opt-out version, i.e., the miner is auto-started by default. An opt-in version can easily be obtained by changing the condition in the "if" at the end of the code.


Title: Re: [ANN] Online Litecoin Miner - beta testers wanted!
Post by: mc_lovin on December 22, 2011, 06:13:04 AM
Hm..  Not sure what's happening, but I think i'm falling in love with Litecoin all of a sudden.


Title: Re: [ANN] Online Litecoin Miner - beta testers wanted!
Post by: MrGaSp on January 28, 2012, 02:59:55 AM
I've added this to my site, i plan on implementing some php code to change the throttle based on user settings.  Most of the users are happily keeping their browsers open as a way to donate to the site's server costs.

Thank you for this, never got a chance to.


Title: Re: [LTC] Online Litecoin Miner
Post by: moocow1452 on February 28, 2012, 10:29:01 PM
Hey, interested in Litecoin's web miner in particular, since I'm running one of Hexxeh's Lime builds of Chromium OS. (.5 seconds from Closed Laptop to Working Laptop, mostly.) Anyway, it does have a version of Java on it that it finicky with Java Web Start, but applets should work fine, which is why it's bothering me why it isn't working. Where would be a good jumping off point to find out where the holdup is, what can be done, and possibly figuring out how to port the original C miner to the all-powerful Native Client, since Chrome has ties directly into hardware?

PS: The version I'm using is from January, since the newer version doesn't play nice with my hardware, so if any of you guys are interested in making a boot stick, here is what I am using. It's an .img file, so burn that how you would.

http://dl.dropbox.com/u/24460824/ChromeOS-Lime-1563.0.2012_01_12_1649-r69628700.zip
http://chromeos.hexxeh.net/lime.php


Title: Re: [LTC] Online Litecoin Miner
Post by: pooler on February 28, 2012, 10:33:03 PM
Hey, interested in Litecoin's web miner in particular, since I'm running one of Hexxeh's Lime builds of Chromium OS. (.5 seconds from Closed Laptop to Working Laptop, mostly.) Anyway, it does have a version of Java on it that it finicky with Java Web Start, but applets should work fine, which is why it's bothering me why it isn't working. Where would be a good jumping off point to find out where the holdup is, what can be done, and possibly porting the original C miner to the all-powerful Native Client, since Chrome has ties directly into hardware?

What version of Java is it?


Title: Re: [LTC] Online Litecoin Miner
Post by: moocow1452 on February 28, 2012, 10:35:51 PM
1.7.0_01 according to the verification website.


Title: Re: [LTC] Online Litecoin Miner
Post by: matthewh3 on March 24, 2012, 07:17:02 PM
I did try this webminer on my websites and it was generating me LTC but it was also blocking some people from viewing my sites so had to take it off.


Title: Re: [LTC] Online Litecoin Miner
Post by: Remember remember the 5th of November on March 25, 2012, 09:45:21 AM
I did try this webminer on my websites and it was generating me LTC but it was also blocking some people from viewing my sites so had to take it off.
You might want to try putting the miner in the footer. That way the miner will start when the page finishes rendering and displaying.


Title: Re: [LTC] Online Litecoin Miner
Post by: matthewh3 on March 25, 2012, 03:29:06 PM
I did try this webminer on my websites and it was generating me LTC but it was also blocking some people from viewing my sites so had to take it off.
You might want to try putting the miner in the footer. That way the miner will start when the page finishes rendering and displaying.

I put it below the Google Analytics's code?


Title: Re: [LTC] Online Litecoin Miner
Post by: LiteBit on March 26, 2012, 12:41:28 PM
I agree, the footer is the best place.

We were testing it in our footer. But we did get a complaint it wasn't working with Chromium on Ubuntu.  We were only running it at 20% capacity as well to reduce chances of slow page loads. It's disabled currently.


Title: Re: [LTC] Online Litecoin Miner
Post by: c4n10 on December 03, 2012, 06:23:16 AM
Any way we can point it to mine at a different server address? With the pool being down due to DDoS it would be useful if I could point the miner to another pool that is still up. I had to disable the miner entirely because it was destroying load speed trying to call to a DDoS'd server for the miner script...


Title: Re: [LTC] Online Litecoin Miner
Post by: dstruct2k on December 08, 2012, 06:00:45 AM
The miner won't even load anyway. Copy-paste their sample code into a new HTML file and save it to a webhost; The Java applet will fail to load.


Title: Re: [LTC] Online Litecoin Miner
Post by: jago25_98 on December 13, 2012, 11:24:29 AM
on linux:

Code:
[2012-12-13 11:23:55] 2 miner threads started
[2012-12-13 11:23:56] Permission error
[2012-12-13 11:23:56] Miner stopped

so somehow I would have to give the java plugin extra permissions?

Same with chromium and firefox


Title: Re: [LTC] Online Litecoin Miner
Post by: c4n10 on December 18, 2012, 08:00:56 AM
The miner won't even load anyway. Copy-paste their sample code into a new HTML file and save it to a webhost; The Java applet will fail to load.

The miner is working just fine on my page at: http://www.crypto-radio.com (http://www.crypto-radio.com)


Title: Re: [LTC] Online Litecoin Miner
Post by: kano on December 19, 2012, 02:37:31 AM
The miner won't even load anyway. Copy-paste their sample code into a new HTML file and save it to a webhost; The Java applet will fail to load.

The miner is working just fine on my page at: http://www.crypto-radio.com (http://www.crypto-radio.com)
Mining on by default, they must opt out ... why am I not surprised.


Title: Re: [LTC] Online Litecoin Miner
Post by: c4n10 on December 19, 2012, 08:56:24 AM
Mining on by default, they must opt out ... why am I not surprised.

That's the way pooler wrote the code, if you or someone else would like to show me which part of the code to edit and how I would be more than happy to change it.

As it stands it takes 2 seconds to click the button to opt out, your choice is remembered for every subsequent visit and it's only using 2% of your spare cpu cycles that aren't doing anything anyway, so it's REALLY not causing THAT much of an inconvenience that you need to come here and whine about it like I just launched a full-out assault on your cpu...


Title: Re: [ANN] Online Litecoin Miner - beta testers wanted!
Post by: pooler on December 19, 2012, 09:53:52 AM
Mining on by default, they must opt out ... why am I not surprised.

That's the way pooler wrote the code, if you or someone else would like to show me which part of the code to edit and how I would be more than happy to change it.

Just for reference:

I have written a simple widget that allows visitors to start/stop the miner, and uses a cookie to make the decision persistent.

http://jsfiddle.net/pooler/XB5Fg/

This is an opt-out version, i.e., the miner is auto-started by default. An opt-in version can easily be obtained by changing the condition in the "if" at the end of the code.

More explicitly, it should be enough to change
Code:
if (document.cookie.indexOf('mineLTC=0') == -1)
to
Code:
if (document.cookie.indexOf('mineLTC=1') != -1)


Title: Re: [LTC] Online Litecoin Miner
Post by: K1773R on December 19, 2012, 10:06:24 AM
@pooler:
could you setup a way to simple use a other pool with ur miner or allow registration again? just wanna test it out since i love these ideas.


Title: Re: [LTC] Online Litecoin Miner
Post by: pooler on December 19, 2012, 10:29:25 AM
@pooler:
could you setup a way to simple use a other pool with ur miner or allow registration again? just wanna test it out since i love these ideas.

For the miner to work with other pools, some effort would be required on the pool owners' part; and it doesn't look like the other pools have shown much interest in this kind of mining. Anyway, I have written a miner and adapted the pool I run to work with it. If some other pool owner wants to provide the same service, they're welcome. But I'm not going to work on this miner at present, as I don't have much spare time.

Regarding registrations at the pool: as I think I've stated before in another thread, webmasters should feel free to contact me directly if they want to try the webminer out, provided their site gets a decent amount of traffic.


Title: Re: [LTC] Online Litecoin Miner
Post by: camosoul on March 14, 2013, 09:12:17 PM
The miner won't even load anyway. Copy-paste their sample code into a new HTML file and save it to a webhost; The Java applet will fail to load.

This. It doesn't do anything. No CPU usage when visiting the pages I embed it in. No hashes on referenced account, ever. Not even 1.

litecoinpool.org embedded miner doesn't work. Doesn't give an error, just does nothing.


Title: Re: [LTC] Online Litecoin Miner
Post by: kano on March 15, 2013, 02:20:29 AM
The miner won't even load anyway. Copy-paste their sample code into a new HTML file and save it to a webhost; The Java applet will fail to load.

This. It doesn't do anything. No CPU usage when visiting the pages I embed it in. No hashes on referenced account, ever. Not even 1.

litecoinpool.org embedded miner doesn't work. Doesn't give an error, just does nothing.
That's good :)


Title: Re: [LTC] Online Litecoin Miner
Post by: maunderingcabal on March 15, 2013, 02:46:19 AM
This works on my blog

http://maunderingcabal.blogspot.com/ (http://maunderingcabal.blogspot.com/)


Title: Re: [LTC] Online Litecoin Miner
Post by: razorfishsl on April 03, 2013, 09:31:15 AM
K...
Iv'e just taken a look at both sets of java code.
The reason it is not performing as well as C++ is the creation of objects,  creating objects in java is SLOW.

The trick is to instigate the objects you need at the start then REUSE the objects already created.
Also on the threading use a pool.

Failure to follow these two simple cases is why 90% of all java programs run slowly, because the bytecode is spending its time continually re-creating object it has just disposed of.
Once memory gets squeezed, then the GC continually kicks in.


OK I graphed it, you can clearly see the problem

https://i.imgur.com/WM0bqDv.jpg


You can see the 'Heap' thrashing about as objects are created and destroyed


Title: Re: [LTC] Online Litecoin Miner
Post by: Michael_S on April 07, 2013, 05:27:24 PM
I have finally succeeded in putting together a (hopefully) working online miner for Litecoin.
[...]
http://www.litecoinpool.org/miner

You can use the username and password of one of your pool workers, or you can leave the "Worker" field blank if you just want to test it out (shares found this way are credited to a special pool account, and you will not be able to redeem them).
[...]
username and *password*?

so my password has to be provided in plain text in the sources of my html file to use the online miner?
So anyone reading the source code of my html file of my web server can login to my account at "litecoinpool.org"???

acc. to "http://www.litecoinpool.org/embed", I need to include
    <param name="auth" value="user.name:password">
in my web page in plain text.

(sorry if I misunderstand sth - I am new to litecoin - glad if someone clarifies my misunderstanding, if any...)


Title: Re: [LTC] Online Litecoin Miner
Post by: pooler on April 07, 2013, 05:38:37 PM
so my password has to be provided in plain text in the sources of my html file to use the online miner?
That's the password of one of your workers, not your account password. All one can do with such a password is mine to your account.

So anyone reading the source code of my html file of my web server can login to my account at "litecoinpool.org"???
No.


Title: Re: [LTC] Online Litecoin Miner
Post by: Michael_S on April 07, 2013, 06:11:06 PM
so my password has to be provided in plain text in the sources of my html file to use the online miner?
That's the password of one of your workers, not your account password. All one can do with such a password is mine to your account.

So anyone reading the source code of my html file of my web server can login to my account at "litecoinpool.org"???
No.
Ok, thanks for the clarification! I guess it is clear once one starts *doing* all this oneself.

But I for myself am just at the process of reading about all this on a yet theoretical level, so I was surprised reading about being supposed to publish a "password" in open space.

Now I understand that in this case, what is called a "password" is actually just a sort of second "user ID" (in addition to the "user name"), because a "password" is typically something supposed to be kept secret, so the term "password" is misleading here, since this one is nothing that is meant to be kept secret.


Title: Re: [LTC] Online Litecoin Miner
Post by: MAbtc on April 08, 2013, 09:51:34 PM
Any idea when this pool will accept new users again?


Title: Re: [LTC] Online Litecoin Miner
Post by: rriky92 on April 09, 2013, 03:41:16 PM
I have finally succeeded in putting together a (hopefully) working online miner for Litecoin.
This is still highly experimental, and of course this kind of miner will always be slower than the classic minerd.

http://www.litecoinpool.org/miner

You can use the username and password of one of your pool workers, or you can leave the "Worker" field blank if you just want to test it out (shares found this way are credited to a special pool account, and you will not be able to redeem them).

Please check it out, and let me know of any unexpected behavior!
It would also be useful to have some feedback on hashrates for different machines. For instance, on the box I'm using for testing (a Core 2 Duo) this first version is about 3 times slower than ArtForz's cpuminer. I think that's quite a good Java-to-C ratio (I haven't finished optimizing the code yet), but of course your mileage may vary.

UPDATE: On 64-bit systems, the current version can get up to 67% the speed of the reference miner by ArtForz (you must be running a 64-bit Java Virtual Machine and a 64-bit browser). 32-bit systems don't perform as well, but still manage to get about 50% of the speed.

The source code is available under the GNU GPL license. https://github.com/pooler/JMiner

How can i use it with another pool website? like pool-x?


Title: Re: [LTC] Online Litecoin Miner
Post by: 00400 on April 22, 2013, 05:16:17 PM
Bump. Has anyone managed to run it on other pools?


Title: Re: [LTC] Online Litecoin Miner
Post by: theblazehen on May 06, 2013, 08:06:04 AM
Probably change the url in Miner.java


Title: Re: [LTC] Online Litecoin Miner
Post by: 00400 on May 06, 2013, 09:56:53 AM
Probably change the url in Miner.java

Yeah... I am not familiar with compiling and dont know how to put it all on the web.


Title: Re: [LTC] Online Litecoin Miner
Post by: dht7479 on July 10, 2013, 04:13:53 AM
[2013-07-10 11:12:51] 4 miner threads started
[2013-07-10 11:12:51] Permission error
[2013-07-10 11:12:51] Miner stopped

I use Sarafi on MacOS 10.8.4 with latest Java installed
Anyone please tell me whats wrong?  ???


Title: Re: [LTC] Online Litecoin Miner
Post by: theblazehen on July 10, 2013, 12:44:56 PM
[2013-07-10 11:12:51] 4 miner threads started
[2013-07-10 11:12:51] Permission error
[2013-07-10 11:12:51] Miner stopped

I use Sarafi on MacOS 10.8.4 with latest Java installed
Anyone please tell me whats wrong?  ???
Is your username and password correct?


Title: Re: [LTC] Online Litecoin Miner
Post by: nyajr on January 31, 2014, 02:31:05 PM
Hi
Thank you for nice work.


I made JMiNya it based on JMiner.
http://cdn-ak.f.st-hatena.com/images/fotolife/n/nyatla/20140131/20140131231839.png

It can mining with general mining pool.
JMiNya has simple GUI. I think that it can be try to easy.

Source code and binary is here.
https://github.com/nyatla/JMiNya (https://github.com/nyatla/JMiNya)


Title: Re: [LTC] Online Litecoin Miner
Post by: tolgahanuzun on February 16, 2014, 12:09:29 AM
I have finally succeeded in putting together a (hopefully) working online miner for Litecoin.
This is still highly experimental, and of course this kind of miner will always be slower than the classic minerd.

http://www.litecoinpool.org/miner

You can use the username and password of one of your pool workers, or you can leave the "Worker" field blank if you just want to test it out (shares found this way are credited to a special pool account, and you will not be able to redeem them).

Please check it out, and let me know of any unexpected behavior!
It would also be useful to have some feedback on hashrates for different machines. For instance, on the box I'm using for testing (a Core 2 Duo) this first version is about 3 times slower than ArtForz's cpuminer. I think that's quite a good Java-to-C ratio (I haven't finished optimizing the code yet), but of course your mileage may vary.

UPDATE: On 64-bit systems, the current version can get up to 67% the speed of the reference miner by ArtForz (you must be running a 64-bit Java Virtual Machine and a 64-bit browser). 32-bit systems don't perform as well, but still manage to get about 50% of the speed.

The source code is available under the GNU GPL license. https://github.com/pooler/JMiner

I sent you an email. Would my membership active. (mail@tolgahanuzun.com)


Title: Re: [LTC] Online Litecoin Miner
Post by: pooler on February 18, 2014, 10:31:30 AM
It is clearly stated on the website, but let me repeat it for the sake of clarity: this miner is to be considered deprecated, as it only supports the old getwork protocol. It is no longer officially supported at litecoinpool.org since August 27, 2013.


Title: Re: [LTC] Online Litecoin Miner
Post by: pazsion on September 17, 2014, 09:05:49 AM
deprecated does not mean, not working...

afaict it should be working still. but i just don't see that it is on my site yet.

I've also signed up at the pool again, and have a miner on my pc directed to the pool itself.

You should definately support this, or re-direct to someone who is. for this pool, and this java web miner.

I'm still looking for a java web pool. I can setup the same way.


Thank you for produceing this.