Everything posted by Sensei
-
Idea "Wireless new dimension"
Science Forums servers are located in the UK.. From New York to London there is ~ 5600 km. ..you should pay for every single (silly) post on Science Forums.. ..every time you go to any random website, you have no idea where the servers are, and to which the website connects to, without your permission, are located.. they can collect data from all continents..
-
Idea for Canada
In the old days of telephony, more than 30 years ago, local (city/province) calls were cheaper than city-to-city, and cheaper than you-to-foreign-state calls.. The introduction of cell phones, modern information technology, has changed this seriously and reduced costs. If someone needs to hold a video conference call with someone on the other side of the globe, all they have to do is use VoIP, which goes over the normal Internet at no additional cost.
-
Idea "Wireless new dimension"
First, you clearly have no clue how the Internet works. Second, you clearly have no clue how a wireless connection works. Third, you clearly have no clue how a cellphone connection works. WiFi has a maximum range of about max 150 meters (in an area free of buildings), usually the receiver is less than 20 meters from the device connected to it. My the maximum WiFi range was 100 meters just because I used special directional antenna. In the city, the mobile network cellsite is only a few hundred meters from the user. https://en.wikipedia.org/wiki/Cell_site This is a built-in "feature".. You have a connection up to a few hundred meters maximum (if you use WiFi, 2G, 3G, 4G, 5G).. People turn on lower power on their WiFi router to reduce the risk of long-distance intrusion by hackers. https://en.wikipedia.org/wiki/Wireless_router Your idea can be summed up simply: bizarre nonsense..
-
Say something absurd
Don't you have Tsars?
-
Say something absurd
@TheVat Don't feed the troll, you idiot.. ps. Today, I watched "Star Wars: Ahsoka"..
-
Say something absurd
I wrote app for smartphone to send light signals if you want to spread it to the entire Universe, so any alien spiece will be warned already.. 😛
-
Say something absurd
..only one not lie sentence that I have read throughout this thread..
-
Say something absurd
..let's not extrapolate too far.. (somebody on the street here called me "Jesus, the alcoholic" ) ps. My point was that Donald II has already been assigned.. therefor you made mistake in assignment of his title..
-
Say something absurd
HRM = His Royal Majesty? https://en.wikipedia.org/wiki/Donald_II_of_Scotland
-
Best telescope
I would not like to advertise/recommend a device that I have not checked myself. Here in a relatively large city there is a lot of dust, light pollution etc. We are lucky to see 1% of what a person in the countryside a few dozen kilometers away sees. Ten+ years ago I bought a digital camera, and after the fact I noticed that it lacked a timelapse function (the device with the built-in function was twice as expensive as my device). This is an extremely useful thing for events that take a lot of time, such as astronomy. So I wrote a special app that sent 'take picture' commands to the device via a USB cable from my computer. I took nice timelapse transitions of the sun and moon in the sky during a trip across the sky over several hours. For real astronomy, you should have a device that tracks the rotation of the Earth during time-lapse sessions. Photons from a distant object are needed to get a good quality image, but the Earth is rotating, so if the camera/telescope is not rotating properly, the image will be blurred. There are special applications to 'de-blur' images taken by home astronomers.
-
Best telescope
I would be looking for something that would allow me to plug in a USB cable and be able to record image..
-
War Games: Russia Takes Ukraine, China Takes Taiwan. US Response?
- Overpopulation in 2023
..you know the name.. Anyway, any interference is not even necessary, on a truly overpopulated planet, people in capitalist countries will simply die because they will not be able to pay for water and food. Supply and demand and greed.- Overpopulation in 2023
This is the result of a choice made by the customer.. This is a result of too high salaries in Western countries.. In Africa and Asia, they repair "everything".. This is a result of too high salaries in Western countries.. ..and African or Asian workers dream to be you especially when they have 40-50 C.. ps. iPhone is not so affordable.. 😛- Israeli territory aspirations
"You can't step into the same river twice" is the layman's version of "the configuration of atoms/electrons changes all the time"..- Fighting with chatgpt
This is not a database. It is source code in Python..- Reverse stable diffusion
The line uses the backslash character, which is used in Windows as a directory tree separator. It is also used as an escape character in programming languages. You need to escape the escape character correctly, which you can do by using a double backslash: return render_template('C:\\Users\\grays\\OneDrive\\Documents\\PromptAI.html',name=PromptAI) Or, as you've already guessed, use r', but this will only work in Python. In all other "normal" languages, you escape the escape character with a double escape character. https://www.google.com/search?q=escape+escape+character- Reverse stable diffusion
This line should be: from bs4 import BeautifulSoup ...don't jump to hasty conclusions.. https://stackoverflow.com/questions/72637168/beautifulsoup-typeerror-module-object-is-not-callable- Reverse stable diffusion
1) you see an unknown error for the first time in your life 2) what is the line number? Disable line, print all variables, use debugger, draw conclusions 3) copy/type the error message into Google search engine or so 4) https://www.google.com/search?q=module+object+is+not+callable 5) read the tutorials above.. 6) draw conclusions..- Reverse stable diffusion
You should start by reading the documentation provided by the original author of the library. Then you should find a tutorial on how to use the library in question, with examples. Then you should write your own experimental code to test it in a well-defined and constrained environment. Once you have mastered it, use it in a real project.. Instead you use functions from libraries you just heard about in pretty advanced project. "go for broke"..- Reverse stable diffusion
You have syntax errors because you have no idea what you are doing. The interpreter/compiler gives you the line number with the error. Use this knowledge to fix the errors. You need to experiment with less demanding projects to learn how to use all these libraries and features before you move on to an advanced project like this one. For example, here you must have an error, because what on earth is an 'img'.... ?- Reverse stable diffusion
It should be: import requests- Reverse stable diffusion
I tried this code on my website, which I knew had relative URLs, and confirmed. item['src'] is relative. In fact, the conversion from relative to absolute URLs can be done using the requests module itself: for item in soup.find_all('img'): src=requests.compat.urljoin(url, item['src']) print(src) ... but there is a possible problem - a web page may have a <base> tag to replace the original URL.... A rarely used thing these days. https://www.w3schools.com/tags/tag_base.asp ( I found a serious mistake in Python requests module - it does not accept URL to local file either in local directory nor with file:// .. it will be harder to debug the code.. )- Reverse stable diffusion
In the above code you showed, the image_url is taken from the user input, but you must use the content returned by BeautifulSoup. https://www.google.com/search?q=scraping+images+python+beautifulsoup Tutorial from the first link: import requests from bs4 import BeautifulSoup def getdata(url): r = requests.get(url) return r.text htmldata = getdata("https://www.geeksforgeeks.org/") soup = BeautifulSoup(htmldata, 'html.parser') for item in soup.find_all('img'): print(item['src']) The src in the above is a relative or absolute URL. You need to convert it to an absolute URL and use it in requests.get() (or alternatives), then output from it in Image.open() to retrieve the image. Then use image object where you need to.- Reverse stable diffusion
Image.open() does not take URL (i.e. Internet location) but path to local file, or file object (stream). https://pillow.readthedocs.io/en/latest/reference/Image.html requests.get() downloads image from URL, and gives Image.open() local path, or stream. https://www.geeksforgeeks.org/how-to-open-an-image-from-the-url-in-pil/ - Overpopulation in 2023
Important Information
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.