Still not sure but here are some approximations using math/python.
🚢 Exploring Battleship configurations revealed surprising results! Initially, ChatGPT guessed 49 trillion configurations for the no-touch rule. However, our exploration showed a stark contrast.
First, we attempted a recursive simulation to calculate configurations, but it timed out due to the complexity of enforcing the no-touch rule, which requires checking every possible placement and adjusting the grid dynamically. This approach was inefficient and impractical.
Next, we shifted to a combinatorial approach, calculating maximum placements for each ship and applying a buffer to account for the no-touch rule. This method was more efficient, avoiding the recursive complexity by estimating blocked space without checking every configuration.
The results were eye-opening: 77.4 billion configurations when ships can touch, but only 5.3 million when they cannot. The no-touch rule drastically reduces possibilities by blocking more grid space, highlighting how small rule changes can have huge impacts.
Our findings show that the initial guess was off by orders of magnitude for the no-touch rule, emphasizing the importance of methodical analysis in complex systems.
Sorry for the very late reply. I still run a dehimidifier during summer too or at least I think it kicks on. The unit does blow cold air when it's running, like a mini AC. The basement now stays a consistent cool temp all year round. It doesn't feel that much colder during the freeze of winter, it's still warm enough for a basement. Hope you found an answer sooner and found some cost savings!
Benchmark: Ad Hoc vs Precomputed Boards for Battleship Solvers
Ad Hoc Computation:
The place_ships function generates boards randomly. Its time complexity is O(n), where n is the grid size (100 in this case). However, due to the random nature of ship placement, there might be multiple attempts required to place all ships successfully, potentially increasing the effective time complexity.
Given the O(n) complexity of Battleship puzzles, we conducted a benchmark to compare ad hoc board generation with loading precomputed data. Here's the code and results:
importtimeimportrandomimportitertools#import jsonimportorjsonasjsonfrombattleship_boardsimportplace_shipsdefload_random_subset(file_path,num_records):withopen(file_path,"r")asf:total_lines=sum(1for_inf)f.seek(0)start_line=random.randint(0,total_lines-num_records)skipped_lines=itertools.islice(f,start_line)selected_lines=[]forlineinskipped_lines:try:parsed_board=json.loads(line.strip())selected_lines.append(parsed_board)iflen(selected_lines)==num_records:breakexceptjson.JSONDecodeError:continuereturnselected_linesdefgenerate_boards_ad_hoc(num_boards):return[place_ships()for_inrange(num_boards)]defbenchmark(scale):print(f"\nBenchmarking for {scale} boards:")start_time=time.time()ad_hoc_boards=generate_boards_ad_hoc(scale)ad_hoc_time=time.time()-start_timestart_time=time.time()random_subset_boards=load_random_subset("battleship_boards_merge.json",scale)random_subset_time=time.time()-start_timeprint(f"\nAd hoc generation time: {ad_hoc_time:.2f} seconds")print(f"Random subset loading time: {random_subset_time:.2f} seconds")print(f"Efficiency gain: {ad_hoc_time/random_subset_time:.2f}x\n")# Run the benchmarkforscalein[100,1000,10000,100000,1000000]:benchmark(scale)
I know you have moved on with a different comment solution but I wanted to say that this primary issue was addressed, the profile page now has a link to go back to the thread. thanks for the attention!
Can you re-run your tests with node --jitless flag please? It should be a fair comparison.
to keep the CPU in healthy thresholds I lowered the concurrency to 100.
real 0m22.188s
user 0m14.702s
sys 0m0.449s
It's still a lot faster but less so, 5x instead of 10x
could you explain why I would want to run --jitless in production?
stefanos82
I did not ask the comparison with production in mind, but to make things fair between one runtime that executes with JIT by default versus the CPython that does not yet, but we are getting there!
Postfix is a MTA which runs SMTP services, the default settings should be a closed relay only allowing outbound (from the python script). The SPF record should include an option to allow this server to send email on behalf of the domain.
This log line tells you what gmail claims happened:
Nov 30 11:11:09 Ubuntu postfix/smtp[12035]: AD0EA4205D: to=<I-Do-Exist-victim@gmail.com>, relay=gmail-smtp-in.l.google.com[74.125.24.27]:25, delay=3.3, delays=0.01/0.01/2.2/1.1, dsn=5.7.26, status=bounced (host gmail-smtp-in.l.google.com[74.125.24.27] said: 550-5.7.26 This message does not have authentication information or fails to 550-5.7.26 pass authentication checks. To best protect our users from spam, the 550-5.7.26 message has been blocked. Please visit 550-5.7.26 https://support.google.com/mail/answer/81126#authentication for more 550 5.7.26 information. s5si23402633plp.197 - gsmtp (in reply to end of DATA command))
Are you sending through an SMTP server that is covered by the SPF record?
I look forward to your ideas and emails. I agree about fediverse and the barriers to getting started.
I have a feeling HTML/CSS knowledge will help a lot in the future, since it has been the lingua franca of the web and will likely carry on marking up our digital worlds in what comes next! <3
You may choose any selector, I happen to like to use YearMonthDay. Additionally you will substitute your public key in place of mine. Put each the line of the public key on a single line in the TXT record.
I quit too, congrats and thank you for this essaay which resonates with me down to my core. If you want to help rebuild a better Internet, I'm trying to rally a team here at unturf dot com.
You will definitely want to use the custom domain when registering with Remarkbox, but in fact you may register both, each will have it's own owner id so they will be treated as separate websites (for example, you could do your comment testing on the github.io domain before transitioning to the production domain)
I've never used Github pages before but it seems like it may host static web sites so any page you put the snippet will have the comment page appear. Depending on how you are building your web site's static pages will depend on if you may automatically add comments to a blog post article for example.
If you have a repository which I may look at I might be able to offer specific guidance on your HTML or static site generator.
Remarkbox is pay-what-you-can and does not require a credit card.
Often when people experience this issue it is because Remarkbox is not able to verify that you own the domain. This can happen when there is a mismatch between the domain used to register the Namespace and the domain that your site is hosted on.
Another common issue is that Remarkbox could not reach your site or if it can, it was not able to parse the Namespace owner key (UUID).
If you have a test domain please register that domain as it's own Namespace separately.
Hey owenshen, I'm the founder and creator of Remarkbox. Remarkbox is now "pay what you can" and Namespace owners have access to all Namespace settings in the dashboard now, including CSS. Furthermore if you have ideas on how to make the UI feel less cramped for a better overall reader experience, please contact me if you want to help! Thanks for using the service and the support.
As for the particular issue, I thought most browsers allow for extending textarea tags by grabbing the right-bottom corner and dragging down. My assumption was that people planning to write a longer comment would use that. Perhaps that assumption is flawed.
By default the avatar is built in using the first letter of the user's display name. A user may toggle to gravatar from their user settings page to use that instead.
Thanks for the feedback, I've recently upgraded the Remarkbox code base to Python 3 and I've updated the blog post with my new solution which should work for both Python 2 and Python 3.
You seem to have a good understanding of the types of tools Namespace owners may need to help comply with these new legislation and efforts. Could I setup some time to discuss what we have and what we need? If yes please email me to setup a meeting.
I think we should be all set, you should be able to do the moderation from here. Either approve or disable nodes. There's not much more to do besides that I think.
Great work on the CSS over here, looks really good!
I'm gathering people interested in seeing or modifying the source over on IRC server Freenode in channel Remarkbox.
If you have a bitbucket.org account please let me know. (otherwise I'm considering moving the code base to gitlab or github)
Wondering if you want to see the codebase or help tweak things on the internals. BTW that moderate button was a mistake. I'm not sure why it was there, but it was added back in May 2018. I think I was distracted building out two features at once. I'm shipping a change to remove the moderation link.
Oh you know what, I don't think I've tested the moderation code in a while, I don't have it enabled in my Namespaces so a defect might have found its way into the code base.
Mostly I'm giving it away because I can and nobody is going to stop me.
I'm looking for Python engineers who want to hack on features or change behaviour for their own sites and want to contribute to the cause. Planning to grow Remarkbox as big as possible and eventually allow it to become a "utility".
I will have to deplatform any site which does not follow the terms of service. That said, If I believe in their cause, I might try to help them find an alternative place to run Remarkbox and we would export them out of Remarkbox proper. (I'm sure you have ideas). If you want to discuss this further we might want to take this "offline".
Because I learned early on that there isn't any money in that and I have better ideas in the works for targeting that market, for example: makepostsell.com
And I can give away Remarkbox for free because I have money and I know how to scale stuff for cheap.
Ah, yes, that's one of my favourite episodes. Great series, I wish I could write some episodes, the stuff my unconscious provides me is much darker.
Anyways, yeah, my idea tries to figure out how I would build the tech in the safest way possible. Nobody wants to actually watch uncut work, so there would need to be a workflow for shooting, editing, publishing, and searching, and hopefully ways for near instant recall.
This is part of the reason why I would want the raw video to be kept "at location" and protected that way. It's only a problem when you send the raw stream to somebody else's computers where it becomes a privacy issue.
I'm a YouTuber who uses the tech in this blog post to manage my raw data.
A number of people have asked for various features or behaviours and I'm planning to build the ones that are important to me.
That said, if you know how to code, and there is an over lap with something you wish existed or some behaviour you think Remarkbox should do or do differently, and you have the skills to work with Python, I'd be willing to get you a copy of the code base and help you get it up and running on your workstation. That way you can build out your branch and get it reviewed and merged upstream.
I have a number of projects in mind from the feedback on this latest HN post (we hit #3 for a short while!)
Anyways if this sounds like you lets get in touch and scale Remarkbox to the moon. : )
If you click the link, it will verify your account and you will be able to receive email notifications as well as configure a username and edit your comments. It's not a phish, it's working as expected.
Yeah those junipers grow tall, I've no idea where to grow them yet. Maybe some guerilla gardening in my future, lol!
I agree that it's moderated more than it needs to be and also bias'd toward AWS (erm Amazon) over Google, for example the popularity of the Beso exit letter to employees.
I'm sure eventually we will have a "Hacker News" for Googlers where only Amazon is smeared in public. The Internet is fracturing more into silos.
I'm just going to join both when it happens, diversity of thought and all that.
I'm not going to inflame the situation because I really love HackerNews but my post was sent to the 2nd page while their mods tried to figure out what to do about me.
They renamed my title and then the post had to fight its way back to the top.
That said I'm grateful for the chance to have found you! Cheers mate!
Hey there, we don't have Akismet integration yet. I'm going to place that into the backlog. Please consider creating a thread over on the Meta forum with other ideas.
So Remarkbox works even when Javascript is disabled. This is a feature, not a bug that the page reloads but yes, we might be able to enhance the experience when we detect Javascript as a capability of the browser.
Disqus started properly and then sold themselves to an advertisement agency. I would not consider them big tech but I would consider what they have done wrong to the site owners and the public at large.
I think when the first person complains about spam, that's when we introduce the option of using custom Akismet API keys and then build out some UI for separating spam from ham.