[freenet-dev] [freenet-cvs] r25585 - in trunk/apps/simsalabim: . darknet rembre utils
tStreamWriter(System.out)); > > + else > > + out = new PrintWriter(new FileWriter(args[2])); > > args[1] surely? Or do you have to specify the filename twice? Or am I missing > something? Yeah, the program reads a configuration file ... optionally also a settings file. > > + EventLogger ev = new StringEventLogger(out); > > + > > + sim = sc.makeSim(re, ds, st, ev); > > + > > + long rtime = System.currentTimeMillis(); > > + > > + ScriptCommand scom; > > + while ((scom = sc.nextCommand()) != null) { > > + System.err.println("Executing command: " + > > scom); > > + scom.execute(sim); > > + } > > + > > + System.err.println("Simulation ran in: " > > + + (System.currentTimeMillis() - rtime) > > + " ms."); > > + > > + } catch (IOException e) { > > + System.err.println("IO Error reading script: " + e); > > + System.exit(1); > > + return; // for compiler > > + } catch (ScriptException e) { > > + System.err.println("Error in script: " + > > e.getMessage()); > > + System.exit(1); > > + return; // for compiler > > + } > > + > > + out.println(sim.info()); > > + out.println(ds.info()); > > + > > + out.flush(); > > + out.close(); > > + } > > + > > + private static DataSpace createDataSpace(Settings st) { > > + String name = st.get("dsType", "PopularityDataSpace"); > > + if (name.equals("LimitedDataSpace")) { > > + return new LimitedDataSpace(st.getInt("dsMaxDocs", > > 1), st.getInt( > > + "dsMinSize", 1000), > > st.getInt("dsMaxSize", 2000)); > > + /* /* */ > > + > > + } else if (name.equals("PopularityDataSpace")) { > > + return new PopularityDataSpace(st.getInt("dsMaxDocs", > > 1), st > > + .getDouble("dsPopDecay", 1.0), > > + st.getInt("dsMinSize", 1000), > > st.getInt("dsMaxSize", 2000)); > > + } else { > > + throw new SimulationException("DataSpace type " + name > > + + " unknown."); > > + } > > + } > > + > > +} > > > ... > > > Added: trunk/apps/simsalabim/darknet/DarknetNode.java > > === > > --- trunk/apps/simsalabim/darknet/DarknetNode.java > (rev 0) > > +++ trunk/apps/simsalabim/darknet/DarknetNode.java 2009-02-11 13:53:49 UTC > (rev 25585) > > @@ -0,0 +1,323 @@ > > +package simsalabim.darknet; > > +import simsalabim.*; > > +import java.util.*; > > +import simsalabim.utils.*; > > + > > +public class DarknetNode extends Node<Darknet, CircleKey> { > > + > > + protected LRUHash data; > > + > > + protected Person user; > > + > > + protected CircleKey pos; > > + protected LinkedList neighbors; > > + protected LinkedList openNeighbors; > > + final int nOpen; > > + > > + private boolean inNetwork = false; > > + > > + private int numQueries = 0; > > + > > + public DarknetNode(Darknet god, int num, Person user, CircleKey pos, > > + int nOpen) { > > + super(god, num); > > + this.user = user; > > + > > + this.pos = pos; > > + this.nOpen = nOpen; > > + > > + data = new LRUHash(god.STORE_SIZE); > > + neighbors = new LinkedList(); > > + openNeighbors = new LinkedList(); > > + } > > + > > + > > + > > + public DarknetRoute findRoute(CircleKey k, DarknetRoute dnr, > > + int maxNoImprove) { > > + > > + if (!inNetwork) > > + throw new Error("Node not in Network routed to: " + > > this); > > + if (!isActive()) > > + throw new Error("Node that is active routed to: " + > > this); > > + > > + /* > > +* This deviates in two ways from true Freenet routing. Firstly > > I don't > > +* backtrack, which I should, but which adds complication. > > Secondly > > +* Freenet doesn't have a fixed maxSteps, but stops after > > taking x steps > > +* without coming closer to the target value. > > That hasn't been true for a long time. The simulator in darknet/ is a > separate, older simulator? Yes, this is old stuff. -- next part -- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 195 bytes Desc: not available URL: <https://emu.freenetproject.org/pipermail/devl/attachments/20090424/e0af6b5a/attachment.pgp>
[freenet-dev] [freenet-cvs] r27277 - trunk/freenet/src/freenet/support
Florent Daigniere wrote: > j16sdiz at freenetproject.org wrote: >> Author: j16sdiz >> Date: 2009-04-24 03:40:37 + (Fri, 24 Apr 2009) >> New Revision: 27277 >> >> Modified: >>trunk/freenet/src/freenet/support/Buffer.java >>trunk/freenet/src/freenet/support/ShortBuffer.java >> Log: >> More errror checking >> > > That's good but introduce/update the unit test for it then. fixed in r27285
[freenet-dev] Git migration
On Friday 24 April 2009 11:09:17 Matthew Toseland wrote: > I am migrating the source to github. Apologies for not providing more notice. > SVN is now READ ONLY. What is the url to use to clone/pull this repository TIA Ed
[freenet-dev] Progress page implemented
I propose "node" for sure. The thing you are running is a dot in the network; a knot in the freenet; a small protected, hardened pearl, strung to other alikes; "node" just fits perfectly. Also, this "knot"-idea can be visualized very nicely if you want to visualize the connections to other peers with their locations, etc. Having a small circle with a comic-style sign "My Node Is My Castle" is just too appealing ;) By the way I slightly dislike the movement to "dumb speak" with terms like "strangers" etc. I mean, this is technical stuff with an actual meaning. People have adapted to P2P "peers", "hash", "(Kad) nodes" etc. so please don't mush these terms to "ah, like, let's call it 'thing' and, eh, 'youknowwhat'." This also makes communincation between devs and users very cumbersome as they might use different terms for the same thing. my 0,02 ? bo-le wrote: > Am Donnerstag, 23. April 2009 03:34:46 schrieb Ian Clarke: > >> I propose "software" as an alternative to "node". >> > > IMHO this is the wrong way. 'software' is to common... > > Freenet is a network, running on top of 'internet' (currently only > on 'internet', but a WLAN transport plugin allows 'internet free' smash > networks/clowds/nodes), so the 'freenet software' *is* a node. > > I suggest to use 'node' (helps to easily differ from other 'software'), > but explain it shortly on the firstpage the user see, all over occurrences > of 'node' have an shortexplaintooltip and/or a link to ExplainTerms.html#node > > MfG > saces > ___ > Devl mailing list > Devl at freenetproject.org > http://emu.freenetproject.org/cgi-bin/mailman/listinfo/devl > >
[freenet-dev] Our current web interface and its usability
Am Donnerstag 23 April 2009 22:05:18 schrieb Robert Hailey: > > "The Freenet software running on your computer" is probably what I > > would use to describe what "node" means to non-techy users. > > Couldn't it just use "Your computer is downloading this page from > > Freenet", that's what people want to know, It creates a problem in Germany, since we also have a hosting company named freenet. Best wishes, Arne --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- - singing a part of the history of free software - http://infinite-hands.draketo.de -- next part -- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 198 bytes Desc: This is a digitally signed message part. URL: <https://emu.freenetproject.org/pipermail/devl/attachments/20090424/55bb60a6/attachment.pgp>
[freenet-dev] Git migration
I am migrating the source to github. Apologies for not providing more notice. SVN is now READ ONLY. -- next part -- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 835 bytes Desc: This is a digitally signed message part. URL: <https://emu.freenetproject.org/pipermail/devl/attachments/20090424/69d2f6d1/attachment.pgp>
[freenet-dev] Our current web interface and its usability
> It creates a problem in Germany, since we also have a hosting company named > freenet. I've got Google Alerts running on 'freenet' and 90%+ of each day results are from the german ISP/Hosting company, I think we can't do anything about it. =/ I saw that Freenet's website has the verify code of Google Webmaster Tools, what the diagnostic says about repeated title pages, unreacheable urls and so on? That tool is usually used working with SEO related issues. Saludos, Caco_Patane
[freenet-dev] Our current web interface and its usability
Matthew Toseland wrote: > On Thursday 23 April 2009 00:05:40 Ian Clarke wrote: >> On Wed, Apr 22, 2009 at 1:17 PM, xor wrote: >> > ?"Node" should really be replaced with "Client" *everywhere* because >> > client is the common word. >> >> Is it? ?When I talk to non-techies about a "client" they think I'm referring >> to the person that employs a lawyer. ?I think the least confusing term to >> use in this context may be "software". >> > Very clumbersome. How would you translate "Your node is downloading this page > from Freenet" ? "The Freenet software running on your computer is downloading > this page from the Freenet network" ? How about, "Your computer is downloading this page from Freenet"? theo
[freenet-dev] [freenet-cvs] r27277 - trunk/freenet/src/freenet/support
j16sdiz at freenetproject.org wrote: > Author: j16sdiz > Date: 2009-04-24 03:40:37 + (Fri, 24 Apr 2009) > New Revision: 27277 > > Modified: >trunk/freenet/src/freenet/support/Buffer.java >trunk/freenet/src/freenet/support/ShortBuffer.java > Log: > More errror checking > That's good but introduce/update the unit test for it then.
[freenet-dev] CMKs don't work, but there are other options was Re: Easy top block duplication:Content Multiplication Keys
> -Original Message- > From: devl-bounces at freenetproject.org > [mailto:devl-bounces at freenetproject.org] On Behalf Of > bbackde at googlemail.com > Sent: Friday, April 24, 2009 7:40 AM > To: Discussion of development issues > Subject: Re: [freenet-dev] CMKs don't work,but there are > other options was Re: Easy top block duplication:Content > Multiplication Keys > > Long CHK keys are ok for me, most important is that they are > static and all inserts produces the same key. I second that. I want the ability to re-insert already inserted files without changing the URI. > On Fri, Apr 24, 2009 at 03:06, Matthew Toseland > wrote: > > On Thursday 23 April 2009 21:14:01 guido wrote: > >> Am Donnerstag 23 April 2009 14:48:43 schrieb Matthew Toseland: > >> > I would really appreciate input on option 2 i.e. how much of a > >> > problem are long CHKs? > >> > >> If CHK key lengths as they are now are not bad enough to > keep people > >> from using them, then making them 50% longer won't be, either. > > > > Twice as long. > >> > >> Besides, making the pathname of the file a mandatory part > of the key > >> is > > already > >> having larger impact on average key lengths then this would. > > ___ > > Devl mailing list > > Devl at freenetproject.org > > http://emu.freenetproject.org/cgi-bin/mailman/listinfo/devl > > > > > > -- > __ > GnuPG key: (0x48DBFA8A) > Keyserver: pgpkeys.pca.dfn.de > Fingerprint: > 477D F057 1BD4 1AE7 8A54 8679 6690 E2EC 48DB FA8A > __ > ___ > Devl mailing list > Devl at freenetproject.org > http://emu.freenetproject.org/cgi-bin/mailman/listinfo/devl
[freenet-dev] Easy top block duplication: ContentMultiplication Keys
> However, some alternative names to try on... > Reliable Fetch Key RFK > Reliable Hash Key RHK > Multiple Hash Key MHK > Multi-link Key MLK > Matthew's Multiplier Key MMK I vote for: FHK - File Hash Key ... because it is the easiest to explain to newbies :)
[freenet-dev] [freenet-cvs] r27271 - in trunk/freenet/src/freenet/clients/http: . staticfiles staticfiles/js
2009/4/24 : > Author: sashee > Date: 2009-04-23 20:06:00 + (Thu, 23 Apr 2009) > New Revision: 27271 > > Added: > ? trunk/freenet/src/freenet/clients/http/staticfiles/js/ > ? trunk/freenet/src/freenet/clients/http/staticfiles/js/progresspage.js > Modified: > ? trunk/freenet/src/freenet/clients/http/FProxyToadlet.java > ? trunk/freenet/src/freenet/clients/http/ToadletContainer.java > ? trunk/freenet/src/freenet/clients/http/ToadletContextImpl.java > Log: > The progress page is now refreshed with AJAX, if enabled in the configuration > and in the browser. > > Modified: trunk/freenet/src/freenet/clients/http/FProxyToadlet.java > === > --- trunk/freenet/src/freenet/clients/http/FProxyToadlet.java ? 2009-04-23 > 20:04:56 UTC (rev 27270) > +++ trunk/freenet/src/freenet/clients/http/FProxyToadlet.java ? 2009-04-23 > 20:06:00 UTC (rev 27271) > @@ -513,12 +513,26 @@ > ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?break; > ? ? ? ? ? ? ? ? ? ? ? ?} else { > ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?// Still in progress > + ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? boolean > isJsEnabled=ctx.getContainer().isFProxyJavascriptEnabled(); > ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?HTMLNode pageNode = > ctx.getPageMaker().getPageNode(l10n("fetchingPageTitle"), ctx); > + ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? String location = getLink(key, > requestedMimeType, maxSize, httprequest.getParam("force", null), > httprequest.isParameterSet("forcedownload")); > + ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? HTMLNode > headNode=ctx.getPageMaker().getHeadNode(pageNode); > + ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? if(isJsEnabled){ > + ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? //If the user has enabled javascript, > we add a http refresh(if he has disabled it in the browser) > + ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? //And the script file > + ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? > headNode.addChild("noscript").addChild("meta", "http-equiv", > "Refresh").addAttribute("content", "2;URL=" + location); > + ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? HTMLNode > scriptNode=headNode.addChild("script","//abc"); > + ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? scriptNode.addAttribute("type", > "text/javascript"); > + ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? scriptNode.addAttribute("src", > "/static/js/progresspage.js"); > + ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? }else{ > + ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? //If he disabled it, we just put the > http refresh meta, without the noscript > + ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? headNode.addChild("meta", > "http-equiv", "Refresh").addAttribute("content", "2;URL=" + location); > + ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? } > ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?HTMLNode contentNode = > ctx.getPageMaker().getContentNode(pageNode); > - > ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?HTMLNode infobox = contentNode.addChild("div", > "class", "infobox infobox-information"); > ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?infobox.addChild("div", "class", > "infobox-header", l10n("fetchingPageBox")); > ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?HTMLNode infoboxContent = > infobox.addChild("div", "class", "infobox-content"); > + ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? infoboxContent.addAttribute("id", > "infoContent"); > ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?infoboxContent.addChild("#", > l10n("filenameLabel")+ " "); > ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?infoboxContent.addChild("a", "href", > "/"+key.toString(false, false), key.getPreferredFilename()); > ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?if(fr.mimeType != null) > infoboxContent.addChild("br", l10n("contentTypeLabel")+" "+fr.mimeType); > @@ -586,9 +600,8 @@ > > ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?ul.addChild("li").addChild("p").addChild("a", > new String[] { "href", "title" }, new String[] { "/", > L10n.getString("Toadlet.homepage") }, l10n("abortToHomepage")); > > - ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? String location = getLink(key, > requestedMimeType, maxSize, httprequest.getParam("force", null), > httprequest.isParameterSet("forcedownload")); > ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?MultiValueTableretHeaders = > new MultiValueTable (); > - ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? retHeaders.put("Refresh", "2; url="+location); > + ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? //retHeaders.put("Refresh", "2; > url="+location); > ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?writeHTMLReply(ctx, 200, "OK", retHeaders, > pageNode.generate()); > ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?fr.close(); > ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?fetch.close(); > > Modified: trunk/freenet/src/freenet/clients/http/ToadletContainer.java > === > --- trunk/freenet/src/freenet/clients/http/ToadletContainer.java ? ? ? > ?2009-04-23 20:04:56 UTC (rev 27270) > +++ trunk/freenet/src/freenet/clients/http/ToadletContainer.java ? ? ? > ?2009-04-23 20:06:00 UTC (rev 27271) > @@ -64,4 +64,6 @@ > ? ? ? ?public boolean publicGatewayMode(); > > ? ? ? ?public boolean enableActivelinks(); > + > + ? ? ? public boolean isFProxyJavascriptEnabled(); > ?} > >
[freenet-dev] [freenet-cvs] r26829 - trunk/freenet/src/freenet/node/fcp
2009/4/23 Matthew Toseland : > On Wednesday 15 April 2009 07:43:14 j16sdiz at freenetproject.org wrote: >> Author: j16sdiz >> Date: 2009-04-15 06:43:12 + (Wed, 15 Apr 2009) >> New Revision: 26829 >> >> Modified: >> ? ?trunk/freenet/src/freenet/node/fcp/FCPClient.java >> Log: >> revert r26828: req.cacnel() in removeAll() not work as expected > > Hmmm, what is the problem here? Clearly we are adding to toKill in order to > mass-cancel? IIRC, it's getting NPEs, maybe related to activations. I am just not capable to debug this, so i reverted my changes.
[freenet-dev] CMKs don't work, but there are other options was Re: Easy top block duplication: Content Multiplication Keys
Long CHK keys are ok for me, most important is that they are static and all inserts produces the same key. Will the CHK keys have a fix length? On Fri, Apr 24, 2009 at 03:06, Matthew Toseland wrote: > On Thursday 23 April 2009 21:14:01 guido wrote: >> Am Donnerstag 23 April 2009 14:48:43 schrieb Matthew Toseland: >> > I would really appreciate input on option 2 i.e. how much of a problem are >> > long CHKs? >> >> If CHK key lengths as they are now are not bad enough to keep people from >> using them, then making them 50% longer won't be, either. > > Twice as long. >> >> Besides, making the pathname of the file a mandatory part of the key is > already >> having larger impact on average key lengths then this would. > ___ > Devl mailing list > Devl at freenetproject.org > http://emu.freenetproject.org/cgi-bin/mailman/listinfo/devl > -- __ GnuPG key: (0x48DBFA8A) Keyserver: pgpkeys.pca.dfn.de Fingerprint: 477D F057 1BD4 1AE7 8A54 8679 6690 E2EC 48DB FA8A __
[freenet-dev] Our current web interface and its usability
On Friday 24 April 2009 00:44:59 Ian Clarke wrote: > On Thu, Apr 23, 2009 at 10:28 AM, Matthew Toseland > wrote: > >> Is it? ?When I talk to non-techies about a "client" they think I'm referring > >> to the person that employs a lawyer. ?I think the least confusing term to > >> use in this context may be "software". > >> > > Very clumbersome. How would you translate "Your node is downloading this page > > from Freenet" ? "The Freenet software running on your computer is downloading > > this page from the Freenet network" ? > > "Freenet is downloading this page from the Freenet network" Ewww. > > Speaking plain English isn't brain surgery (or it shouldn't be)!
[freenet-dev] CMKs don't work, but there are other options was Re: Easy top block duplication: Content Multiplication Keys
On Thursday 23 April 2009 21:14:01 guido wrote: > Am Donnerstag 23 April 2009 14:48:43 schrieb Matthew Toseland: > > I would really appreciate input on option 2 i.e. how much of a problem are > > long CHKs? > > If CHK key lengths as they are now are not bad enough to keep people from > using them, then making them 50% longer won't be, either. Twice as long. > > Besides, making the pathname of the file a mandatory part of the key is already > having larger impact on average key lengths then this would.
[freenet-dev] CMKs don't work, but there are other options was Re: Easy top block duplication: Content Multiplication Keys
On Thursday 23 April 2009 20:06:13 VolodyA! V Anarhist wrote: > Matthew Toseland wrote: > > I would really appreciate input on option 2 i.e. how much of a problem are > > long CHKs? > > If Long CHKs will become too much of a problem, and people won't mind their > content being spoofed, then people will start using KSK... And not only will they be spoofed, they will be unreliable too.
Re: [freenet-dev] Easy top block duplication: ContentMultiplication Keys
However, some alternative names to try on... Reliable Fetch Key RFK Reliable Hash Key RHK Multiple Hash Key MHK Multi-link Key MLK Matthew's Multiplier Key MMK I vote for: FHK - File Hash Key ... because it is the easiest to explain to newbies :) ___ Devl mailing list Devl@freenetproject.org http://emu.freenetproject.org/cgi-bin/mailman/listinfo/devl
Re: [freenet-dev] CMKs don't work, but there are other options was Re: Easy top block duplication:Content Multiplication Keys
-Original Message- From: devl-boun...@freenetproject.org [mailto:devl-boun...@freenetproject.org] On Behalf Of bbac...@googlemail.com Sent: Friday, April 24, 2009 7:40 AM To: Discussion of development issues Subject: Re: [freenet-dev] CMKs don't work,but there are other options was Re: Easy top block duplication:Content Multiplication Keys Long CHK keys are ok for me, most important is that they are static and all inserts produces the same key. I second that. I want the ability to re-insert already inserted files without changing the URI. On Fri, Apr 24, 2009 at 03:06, Matthew Toseland t...@amphibian.dyndns.org wrote: On Thursday 23 April 2009 21:14:01 guido wrote: Am Donnerstag 23 April 2009 14:48:43 schrieb Matthew Toseland: I would really appreciate input on option 2 i.e. how much of a problem are long CHKs? If CHK key lengths as they are now are not bad enough to keep people from using them, then making them 50% longer won't be, either. Twice as long. Besides, making the pathname of the file a mandatory part of the key is already having larger impact on average key lengths then this would. ___ Devl mailing list Devl@freenetproject.org http://emu.freenetproject.org/cgi-bin/mailman/listinfo/devl -- __ GnuPG key: (0x48DBFA8A) Keyserver: pgpkeys.pca.dfn.de Fingerprint: 477D F057 1BD4 1AE7 8A54 8679 6690 E2EC 48DB FA8A __ ___ Devl mailing list Devl@freenetproject.org http://emu.freenetproject.org/cgi-bin/mailman/listinfo/devl ___ Devl mailing list Devl@freenetproject.org http://emu.freenetproject.org/cgi-bin/mailman/listinfo/devl
Re: [freenet-dev] [freenet-cvs] r27277 - trunk/freenet/src/freenet/support
j16s...@freenetproject.org wrote: Author: j16sdiz Date: 2009-04-24 03:40:37 + (Fri, 24 Apr 2009) New Revision: 27277 Modified: trunk/freenet/src/freenet/support/Buffer.java trunk/freenet/src/freenet/support/ShortBuffer.java Log: More errror checking That's good but introduce/update the unit test for it then. ___ Devl mailing list Devl@freenetproject.org http://emu.freenetproject.org/cgi-bin/mailman/listinfo/devl
Re: [freenet-dev] Our current web interface and its usability
Matthew Toseland t...@amphibian.dyndns.org wrote: On Thursday 23 April 2009 00:05:40 Ian Clarke wrote: On Wed, Apr 22, 2009 at 1:17 PM, xor x...@gmx.li wrote: Node should really be replaced with Client *everywhere* because client is the common word. Is it? When I talk to non-techies about a client they think I'm referring to the person that employs a lawyer. I think the least confusing term to use in this context may be software. Very clumbersome. How would you translate Your node is downloading this page from Freenet ? The Freenet software running on your computer is downloading this page from the Freenet network ? How about, Your computer is downloading this page from Freenet? theo ___ Devl mailing list Devl@freenetproject.org http://emu.freenetproject.org/cgi-bin/mailman/listinfo/devl
Re: [freenet-dev] [freenet-cvs] r27277 - trunk/freenet/src/freenet/support
Florent Daigniere wrote: j16s...@freenetproject.org wrote: Author: j16sdiz Date: 2009-04-24 03:40:37 + (Fri, 24 Apr 2009) New Revision: 27277 Modified: trunk/freenet/src/freenet/support/Buffer.java trunk/freenet/src/freenet/support/ShortBuffer.java Log: More errror checking That's good but introduce/update the unit test for it then. fixed in r27285 ___ Devl mailing list Devl@freenetproject.org http://emu.freenetproject.org/cgi-bin/mailman/listinfo/devl
[freenet-dev] Git migration
I am migrating the source to github. Apologies for not providing more notice. SVN is now READ ONLY. signature.asc Description: This is a digitally signed message part. ___ Devl mailing list Devl@freenetproject.org http://emu.freenetproject.org/cgi-bin/mailman/listinfo/devl
Re: [freenet-dev] Our current web interface and its usability
Am Donnerstag 23 April 2009 22:05:18 schrieb Robert Hailey: The Freenet software running on your computer is probably what I would use to describe what node means to non-techy users. Couldn't it just use Your computer is downloading this page from Freenet, that's what people want to know, It creates a problem in Germany, since we also have a hosting company named freenet. Best wishes, Arne --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- - singing a part of the history of free software - http://infinite-hands.draketo.de signature.asc Description: This is a digitally signed message part. ___ Devl mailing list Devl@freenetproject.org http://emu.freenetproject.org/cgi-bin/mailman/listinfo/devl
Re: [freenet-dev] Progress page implemented
I propose node for sure. The thing you are running is a dot in the network; a knot in the freenet; a small protected, hardened pearl, strung to other alikes; node just fits perfectly. Also, this knot-idea can be visualized very nicely if you want to visualize the connections to other peers with their locations, etc. Having a small circle with a comic-style sign My Node Is My Castle is just too appealing ;) By the way I slightly dislike the movement to dumb speak with terms like strangers etc. I mean, this is technical stuff with an actual meaning. People have adapted to P2P peers, hash, (Kad) nodes etc. so please don't mush these terms to ah, like, let's call it 'thing' and, eh, 'youknowwhat'. This also makes communincation between devs and users very cumbersome as they might use different terms for the same thing. my 0,02 € bo-le wrote: Am Donnerstag, 23. April 2009 03:34:46 schrieb Ian Clarke: I propose software as an alternative to node. IMHO this is the wrong way. 'software' is to common... Freenet is a network, running on top of 'internet' (currently only on 'internet', but a WLAN transport plugin allows 'internet free' smash networks/clowds/nodes), so the 'freenet software' *is* a node. I suggest to use 'node' (helps to easily differ from other 'software'), but explain it shortly on the firstpage the user see, all over occurrences of 'node' have an shortexplaintooltip and/or a link to ExplainTerms.html#node MfG saces ___ Devl mailing list Devl@freenetproject.org http://emu.freenetproject.org/cgi-bin/mailman/listinfo/devl ___ Devl mailing list Devl@freenetproject.org http://emu.freenetproject.org/cgi-bin/mailman/listinfo/devl
Re: [freenet-dev] Our current web interface and its usability
It creates a problem in Germany, since we also have a hosting company named freenet. I've got Google Alerts running on 'freenet' and 90%+ of each day results are from the german ISP/Hosting company, I think we can't do anything about it. =/ I saw that Freenet's website has the verify code of Google Webmaster Tools, what the diagnostic says about repeated title pages, unreacheable urls and so on? That tool is usually used working with SEO related issues. Saludos, Caco_Patane ! ___ Devl mailing list Devl@freenetproject.org http://emu.freenetproject.org/cgi-bin/mailman/listinfo/devl
Re: [freenet-dev] [freenet-cvs] r25585 - in trunk/apps/simsalabim: . darknet rembre utils
On Fri, Apr 10, 2009 at 09:03:12PM +0100, Matthew Toseland wrote: On Wednesday 11 February 2009 13:53:50 v...@freenetproject.org wrote: Author: vive Date: 2009-02-11 13:53:49 + (Wed, 11 Feb 2009) New Revision: 25585 Added: Log: simsalabim: Freenet 0.7 simulator ... + + /* +* Generate a Kleinberg small-world of size, with a fixed number of links added to +* each node (resulting in a random number of links for nodes) +*/ + public Person[] swgraph(int size, int offset, int outdeg) { + + Person [] people = new Person[size]; + for (int i=0; isize; i++) { + people[i] = new Person(i+offset); + } + + for (int i=0; isize; i++) { + Person source = people[i]; + + for (int j=0; joutdeg; j++) { + boolean found = false; + while (!found) { +double u = re.nextDouble(); +int dist = (int) Math.floor(Math.exp(u*Math.log(size/2))); +int dest = i + ((re.nextDouble() 0.5) ? -dist : dist); +if (dest 0) dest = dest + size; +if (dest size-1) dest = dest - size; +Person target = people[dest]; + +if (!source.linksTo(target) !target.linksTo(source)) { + source.addOut(target); + target.addOut(source); + found = true; +} I think it is possible for a node to link to itself here??? Good you spotted this! However, this is a rare event so it should not have had any impact on previous simulations. + } + } + } + System.err.println(Created ideal Kleinberg graph (w.o. local connections) of size + size); + return people; + } + +protected void setParameters() { + // Settings + INITIAL_SWITCHES = st.getInt(dnInitialSwitches,100); + MAINT_SWITCHES = st.getInt(dnMaintSwitches,100); + RAND_STEPS = st.getInt(dnRandSteps,10); + HTL = st.getInt(dnHTL,20); + STORE_SIZE = st.getInt(dnStoreSize,50); + CACHE_SIZE = st.getInt(dnCacheSize,STORE_SIZE); // Default: same size as store + VARDIST_RESOLUTION = st.getInt(varDistResolution, 100); + N_BEST = st.getInt(dnNBest,3); + MAXPEERS = st.getInt(dnMaxPeers,50); + RECACHE_PROB = (float) st.getDouble(dnRecacheProb,0.0); // Whether to recache data after each successful request What's RECACHE_PROB? The chance of storing to the store as well as the cache on a request? You are using LRU storage ... previous simulations suggest no significant difference between this and random replacement... No. It has been used to re-insert data/keys into the network. +* Chooses the next person to join the network. +*/ +protected Person growNetwork() { +// System.err.println(TS SIZE: + ts.size()); +if (ts.isEmpty()) // no more people left +return null; +Person cand = ts.last(); +// System.err.println(Score: + cand.score); +ts.remove(cand); + +for (IteratorPerson it = cand.neighbors() ; it.hasNext() ; ) { +Person p = it.next(); + +if (ts.contains(p)) { +ts.remove(p); +p.score++; +ts.add(p); +} else { +p.score++; +if (!p.isInNetwork()) { +ts.add(p); +} +} +} + +return cand; +} Preferential attachment? If you mean preferential attachment to the nodes that are online: to ensure the nodes that are online form a connected component. Normally this code is *not* used, but nodes join randomly (from the set of offline nodes) and vice-versa. Added: trunk/apps/simsalabim/DarknetNode.java === --- trunk/apps/simsalabim/DarknetNode.java (rev 0) +++ trunk/apps/simsalabim/DarknetNode.java 2009-02-11 13:53:49 UTC (rev 25585) @@ -0,0 +1,504 @@ +package simsalabim; +import java.util.*; +import simsalabim.utils.*; + +public class DarknetNode extends NodeDarknet, CircleKey { + + protected LRUHash data; + protected LRUHash cache; We use LRU here. Other simulations have shown it to be very similar to random replacement. I guess there's no reason to complicate
Re: [freenet-dev] CMKs don't work, but there are other options was Re: Easy top block duplication:Content Multiplication Keys
Am Freitag 24 April 2009 09:50:15 schrieb xor: Multiplication Keys Long CHK keys are ok for me, most important is that they are static and all inserts produces the same key. I second that. I want the ability to re-insert already inserted files without changing the URI. As I already said, I think the solution for that would be a dedicated FCP heal command. This would even allow reinsertion of other people's SSKs Guido ___ Devl mailing list Devl@freenetproject.org http://emu.freenetproject.org/cgi-bin/mailman/listinfo/devl
Re: [freenet-dev] [freenet-cvs] r26659 - in trunk/apps/wininstaller: . src_freenethelpers src_freenetinstaller src_translationhelper
Matthew Toseland skrev: On Friday 10 April 2009 17:17:45 Matthew Toseland wrote: I suppose now is not the right time to be complaining about translations in code? I guess we can change the build process later on so that they start as something like a SimpleFieldSet and get converted during the build process? (No idea how to do that in Windows, but it probably isn't a reason not to deploy the wininstaller...) I agree that translations in code are bad because they are hard to review. However, we can do automatic conversion with a script later on i.e. whenever somebody gets around to it. Did you just reply to your own message? ;) - Zero3 ___ Devl mailing list Devl@freenetproject.org http://emu.freenetproject.org/cgi-bin/mailman/listinfo/devl
Re: [freenet-dev] Our current web interface and its usability
Ian Clarke skrev: On Wed, Apr 22, 2009 at 4:05 AM, xor x...@gmx.li mailto:x...@gmx.li wrote: We DO NOT need a new web interface. Our current web interface is easy to use, works well, is sufficient, and it is also easy to write plugins which use it - I've worked with it for WoT and Freetalk and it was fun. I hope this is true, but I'm skeptical. I'd recomend getting some non-techies to try Freenet, without guidance from you, and to point out anything in the web interface that doesn't make sense. I'd like to think that they won't find anything to point to, but I doubt it :-) We're all steeped in a pretty good understanding of Freenet, and the terminology used, but newbies aren't. A term that makes perfect sense to us, such as Matthew's use of the term node in the progress page, is likely to confuse newbies. I think to create a good UI, we need to mistrust our personal perceptions of what makes sense, because, frankly, we aren't our target audience. I'd encourage everyone to find newbies whenever possible, and watch them install and try to use Freenet, reporting any issues they run into to this list, or as bugs. Get them to give you a narrative of what they see (not sure what that button does or hmm, not sure what I'm supposed to do now), and report it. Anything you need to explain to them is a *bug*, because most of our future users won't have you sitting there to explain it. I'd prefer to avoid a ground-up redesign of the UI too, but for anyone that wants to work on the UI, please grab a friend or relative unfamiliar with Freenet, and watch them trying to install or use it. Ian. Random comment from me: As far as I know (I might be wrong - if so, please correct me) it is nearly impossible to mod fproxy without digging into java code. I still think it would be a good idea to have a theming engine, or at the very least an easily available CSS file so people actually *can* work on fproxy design without having to recompile the whole thing. - Zero3 ___ Devl mailing list Devl@freenetproject.org http://emu.freenetproject.org/cgi-bin/mailman/listinfo/devl
Re: [freenet-dev] Git migration
On Friday 24 April 2009 11:09:17 Matthew Toseland wrote: I am migrating the source to github. Apologies for not providing more notice. SVN is now READ ONLY. What is the url to use to clone/pull this repository TIA Ed ___ Devl mailing list Devl@freenetproject.org http://emu.freenetproject.org/cgi-bin/mailman/listinfo/devl
Re: [freenet-dev] CMKs don't work, but there are other options was Re: Easy top block duplication: Content Multiplication Keys
On Friday 24 April 2009 06:40:16 bbac...@googlemail.com wrote: Long CHK keys are ok for me, most important is that they are static and all inserts produces the same key. Well, we will still have content types. Although using ?type=mime type is a plausible option. Will the CHK keys have a fix length? Yes, for a given number of redundant top-blocks. At least to the same degree that we do now - do we pad the base64 data for each part of the key? If not it could occasionally be a bit less... On Fri, Apr 24, 2009 at 03:06, Matthew Toseland t...@amphibian.dyndns.org wrote: On Thursday 23 April 2009 21:14:01 guido wrote: Am Donnerstag 23 April 2009 14:48:43 schrieb Matthew Toseland: I would really appreciate input on option 2 i.e. how much of a problem are long CHKs? If CHK key lengths as they are now are not bad enough to keep people from using them, then making them 50% longer won't be, either. Twice as long. Besides, making the pathname of the file a mandatory part of the key is already having larger impact on average key lengths then this would. signature.asc Description: This is a digitally signed message part. ___ Devl mailing list Devl@freenetproject.org http://emu.freenetproject.org/cgi-bin/mailman/listinfo/devl
[freenet-dev] Switching to Git
The SVN repository is read-only, and I have taken a dump. It will be posted to Freenet soon and I will announce the location of the file, the gpg signature etc. We might also put it on the mirrors network, but it is 281MB, so I dunno if this is a good idea. In the meantime, the SHA256 checksum is: 5417c7f26fc5baeb9fa2186194f70f00d2470d924a98c03f21561c4020f32538 We are using github, and on nextgens suggestion (and partly due to security issues with github) we will have for each sub-project two trees: - The official tree. This is code which has been reviewed by a trusted developer. - The staging tree. All developers - just about anyone who asks for an account - will have push access to this tree. Of course I will also take pull requests from devs who have their own trees. Please post on devl if you think your tree is ready to be pulled; and if you don't, it would be great to know about work in progress. IMHO the cost of the above arrangement is marginal: code has to be reviewed anyway before we release it, and pushing it to the official tree does not cost significant time. Testing builds can either be created as part of this process or can be auto-built from the known safe official tree. Stable builds of freenet itself will be released from the official tree after creating a tag. I will build them locally, sign the tag and the source code tarball, and upload them both to the web and to the Freenet auto-updater. IMHO this is the right arrangement for code run on newbie nodes, including for plugins, but especially for anything inserted into the auto-update-over-Freenet system. If you want access to the staging tree, please create an account on github and email me the username. Sign your mail if possible. The github page, with a list of all sub-projects: http://github.com/freenet/ Notable sub-projects: fred (the Freenet daemon itself) git://github.com/freenet/fred-official.git git://github.com/freenet/fred-staging.git contrib (freenet-ext.jar, currently doesn't include wrapper source) git://github.com/freenet/contrib-official.git git://github.com/freenet/contrib-staging.git new_installer (the installer) git://github.com/freenet/java_installer-staging.git git://github.com/freenet/java_installer-official.git wininstaller (Zero3's new windows-only installer) git://github.com/freenet/wininstaller-staging.git git://github.com/freenet/wininstaller-official.git Freetalk git://github.com/freenet/plugin-Freetalk-staging.git git://github.com/freenet/plugin-Freetalk-official.git And so on. I will sort out the rest soon, I have imported the most important stuff, the rest should not take long. I will also sort out new scripts for building stable builds etc. signature.asc Description: This is a digitally signed message part. ___ Devl mailing list Devl@freenetproject.org http://emu.freenetproject.org/cgi-bin/mailman/listinfo/devl