import json import os from jinja2 import Template def convert_json_to_html(input_file, output_file): try: with open(input_file, 'r', encoding='utf-8') as file: json_data = json.load(file) bookmarks = [] for item in json_data: bookmark = { 'id': item['id'], 'title': item['title'], 'url': item['url'], 'lastVisitTimeLocal': item['lastVisitTimeLocal'], 'lastVisitTimeUTC': item['lastVisitTimeUTC'], 'typedCount': item['typedCount'], 'visitCount': item['visitCount'] } bookmarks.append(bookmark) template_content = """Bookmarks Bookmarks
{% for bookmark in bookmarks %}{% endfor %} """ template = Template(template_content) rendered_html = template.render(bookmarks=bookmarks) with open(output_file, 'w', encoding='utf-8') as file: file.write(rendered_html) except FileNotFoundError: print(f"File '{input_file}' not found.") except Exception as e: print(f"Failed to convert JSON to HTML: {e}") # Prompt the user to enter the path to the local JSON file json_file_path = input("Enter the path to the local JSON file: ").strip() try: output_file = f"{os.path.splitext(os.path.basename(json_file_path))[0]}.html" convert_json_to_html(json_file_path, output_file) except FileNotFoundError: print(f"File '{json_file_path}' not found.") except Exception as e: print(f"Error: {e}"){{ bookmark.title }}
Last Visit: {{ bookmark.lastVisitTimeLocal }} (UTC: {{ bookmark.lastVisitTimeUTC }})
Typed Count: {{ bookmark.typedCount }}, Visit Count: {{ bookmark.visitCount }}
Tyler the Tiger's Tech Tips and Tricks
Thursday, July 4, 2024
chrome json to html
https://www.mediafire.com/file/l9ofnpueyeo298s/chrome__convert.7z/file Here's
the source code
Monday, October 11, 2021
Spongebob Squarepants: Squid On Strike – A Marxist and Social Class Analysis
My blog post is going to be that of the episode of the popular children's TV show Spongebob Squarepants called Squid on Strike. I will explain how the concepts of social inequality and Marx and Social Class apply to this episode. I feel as though this episode best represents these ideas as there is a lot of parallels (or shall I say parodies) between this episode and real historical events, such as the Red October of 1917.
Spongebob Squarepants is a TV show about the underwater adventures of the titular character Spongebob and his friends. One of Spongebob's, along with his neighbor Squidward's, roles in this show is that they are employees at the Krusty Krab restaurant, founded by their boss Mr. Krabs.
One of the most prominent and recurring themes in this show is the extreme cheapness and money hunger that Mr. Krabs exhibits, this is exemplified when he sold Spongebob to the Flying Dutchman for 62 cents, or when Spongebob first started working there he made Spongebob PAY HIM. He has also threatened to chop off a man’s arm for attempting to take a PENNY found on the floor.
This greediness boils over in the episode squid on strike where Squidward comments on how Mr. Krabs barely pays him and Spongebob and then receives a bill thinking it would be his paycheck, only to find out it’s a bill that he has to pay to Mr. Krabs. For Squidward, this is the final straw and prompts Squidward to go on strike for better wages, with Spongebob following behind.
When it comes to Marxist theory, Mr. Krabs represents the bourgeoisie, the rich/ruling class who own land/businesses and the raw materials (ingredients for Krabby Patties) and holds the power, while Spongebob and Squidward represent the proletariat, the workers who help turn the raw materials into goods (Krabby Patties. The quality of life and working/living conditions is often ignored by the bourgeoisie.
During the episode Squidward holds a protest outside the Krusty Krab and attempts to rally people to his cause. This scene is somewhat reminiscent of Vladimir Lenin during the October Revolution of 1917. Squidward is very charismatic and passionate and the crowd of people (along with Spongebob) cheer and support him, despite not having any clue about what he’s talking about. This is also reminiscent of the October revolution in which its orchestrators preyed on the naiveté of the proletarian masses and convinced them of a better, more prosperous future.
Towards the end of the episode Squidward convinces Spongebob to “restore the working man to his rightful glory! Dismantle the establishment board by board! Saw the tables of tyranny in half! Gnaw at the ankles of big business”. Squidward means this in a figurative sense, however, Spongebob takes it literally and destroys the Krusty Krab in the process.
At the end of the episode we see that Spongebob and Squidward get to keep their job forever, albeit to pay for the destruction they did to the Krusty Krab. This puts them in a worse situation than what they started with, to begin with, now basically being slaves to Mr. Krabs. This parallels the various communist revolutions throughout the 20th century where citizens faced worse conditions and quality of life after the revolution than before it. I believe the message of this episode is that movements with good intentions can have disastrous results, especially when lead by people who don't know what they're doing. Squidward's goal was to get better wages for him and Spongebob, a fine goal that was sabotaged upon the destruction of the Krusty Krab, which led to even worse working conditions than at the beginning of the episode.
Tuesday, December 22, 2020
Sunday, September 8, 2019
Disable windows 10 updates permanently
Windows 10 is a pain in the ass when it comes to the update policy, here's how to prevent windows 10 from ever downloading and installing any future updates
- Go to C:\Windows\SoftwareDistribution
- Delete all files and folders inside but not the SoftwareDistribtion folder itself
- Right Click on the SoftwareDistribution folder and go to the security tab
- Set all folder permissions to deny for all Users except the Administrators
- Windows should now be prevented from downloading and installing any updates for Windows 10
Disable Windows 10 Program Compatibility assistant
Some programs won't install on windows 10 due to something called the Compatibility assistant, here's how to bypass it :
The blocking mechanism is a so-called hard block and is applied by the Program Compatibility Assistant.
The following workaround fixed it for me:
The blocking mechanism is a so-called hard block and is applied by the Program Compatibility Assistant.
The following workaround fixed it for me:
- Install the Windows 10 Assessment and Deployment Kit (aka Windows ADK for Windows 10) from https://msdn.microsoft.com/en-US/windows/hardware/dn913721.aspx#adkwin10
Subscribe to:
Posts (Atom)