peterg75

joined 2 years ago
[–] peterg75@discuss.online 18 points 1 month ago (2 children)
[–] peterg75@discuss.online 1 points 1 month ago

Fair point. Support for this may be tricky.

Although I think something like replacing a drive is doable by an average consumer given enough instructions/tutorial videos, there's bound to be issues that come up. One way to minimize them may be by matching the OS installs on drives to commonly available hardware out there. Something akin to Amazon automotive "it will fit your car" matching.

[–] peterg75@discuss.online 1 points 1 month ago (2 children)

As I said, most of the people who would be in the target audience for this age highly unlikely to have separate storage drives. These are the people who go to Costco or Staples and just get the laptop in their price range.

[–] peterg75@discuss.online 2 points 1 month ago

Make a habit to use timeshift or similar backup utility if you continue "exercising your skills". Those allow you to roll back to last known good config.

[–] peterg75@discuss.online 8 points 1 month ago (5 children)

What about this as on alternative:

Instead of trying to make people install an OS or have to buy a new machine with Linux pre installed, just sell NVME drives with a Linux distro. Something like Mint, or Ubuntu. In my experience Linux is really good nowadays in recognizing hardware plus the people who would be the target audience are unlikely to have some exotic PC setup, probably just a standard off-the-shelf laptop with very common components.

[–] peterg75@discuss.online 2 points 2 months ago (1 children)

It all depends on what you are trying to accomplish with this mode. If your goal is to do basic documents, web browsing, media consumption, or email/chat/etc, then the Motorola latest phones are more than capable. I'm pairing my phone with a portable display and a foldable keyboard/track pad combo (Bluetooth). It is perfectly capable of day to day light computing. I've even done some very light python programming using PyDroid.

[–] peterg75@discuss.online 6 points 2 months ago (26 children)

My Motorola Edge+ 2023 has desktop mode when connected to an external display.

[–] peterg75@discuss.online 12 points 2 months ago (1 children)

Thanks for the work that you are doing.

Signed up on Patreon.

[–] peterg75@discuss.online 2 points 2 months ago* (last edited 2 months ago)

I've had solar installed on my roof for 3+ years. Best home upgrade I have made by far, IMHO. I agree that buying them or financing them is much better than leasing. Firstly, you take advantage of the tax rebate, also it's much better when the time comes to sell the house.

I wouldn't wait for the tech to advance though. You may lose out on the tax rebate if the current US admin deems that "woke".

As for my experience with them, it's been phenomenal. I basically pay $12/month between April and October. My annual electricity bill is down by about 95%.

[–] peterg75@discuss.online 3 points 2 months ago (2 children)

Own.

Was super lucky that my wife was able to sell property in her home country after we got married and got her mom and her here to US. Also was one of the fortunate ones to have cash during the sub-prime recession so was able to get a super cheap mortgage.

I generally love owning the house although sometimes I miss renting, when something needs fixing. I'm pretty handy, so I do a lot of the jobs myself, but it could be a big chore.

Still, I'd rather have my own property and the freedom to do what I want with it, like installing solar panels, TV antenna, paint any color I like, etc.

My long term plan involves some sort of downsizing, possibly a live-aboard sail boat, although my wife is sceptical on that one. We're probably going to end up getting a condo in one of the cheaper states.

[–] peterg75@discuss.online 6 points 2 months ago

I would first enquire if this idea can be patented. This could ensure your intellectual property remains with you. This should be your first step, I think. Also, are you able to prototype this yourself?

 

I first started using Manjaro after being on Debian/Ubuntu derivatives for years. Mint used to be my daily driver, then LMDE for a while. After struggling with Endeavour OS, through 2 or 3 breaking updates requiring a reinstall I made Manjaro with KDE Plasma my home for several years.

Manjaro was stable and, I thought blazing fast, compared to Mint. Everything just worked and was cutting edge. I thought my distro hopping days were over and I found the one that works for me.

Recently I've been reading about Cachy OS and decided to give it a whirl on my test Dell Latitude. Turns out that, I had no idea how fast and lean Linux could be on that off-lease business laptop! I know have it installed on my main Laptop and it's leaps and bounds faster than Manjaro, has none of the bloat and just works! I know it's early, but I think I have found a new home! I have timeshift set up just in case, so I'll see how stable it is over the next few months, but so far I am impressed.

Highly recommend everyone who's into Arch and rolling release to try it.

 

Hello, Python Community!

Has someone been able to successfully connect to an IBM Informix DB with a Python app? I have the following environment: DEV: Windows 11 Python 3.13.3 64-bit VS Code

DB: IBM Informix 12.10 hosted in Azure I'm able to connect to it usind DBeaver (JDBC)

I have tried the following libraries to try to establish the connection: ibm_db: Traceback (most recent call last): File "c:\Users\peterg\source\python\dbApp\ibm_db_test.py", line 1, in <module> import ibm_db as db ImportError: DLL load failed while importing ibm_db: The specified module could not be found._

pyodbc: I have an ODBC DSN connection established Traceback (most recent call last): File "c:\Users\peterg\source\python\dbApp\pyodbc_test.py", line 3, in <module> conn = db.connect("Dsn='DSN_NAME'") pyodbc.InterfaceError: ('IM002', '[IM002] [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified (0) (SQLDriverConnect)')

JayDeBeAPI: I have downloaded the same JAR files as DBeaver uses and copied them to a dir local to the project and added the CLASSPATH variable: set "CLASSPATH=%PROJECT_ROOT%\Java\jbc-4.50.10.1.jar:%PROJECT_ROOT%\Java\bson-3.8.0.jar"

File "c:\Users\peterg\source\python\dbApp\JayDeBeApi_test.py", line 3, in <module> dbConn = db.connect("com.informix.jdbc.IfxDriver", "jdbc:informix-sqli://hostname:port/db_name:INFORMIXSERVER=server_name", ['user', 'pass']) File "C:\Users\peterg\AppData\Local\Programs\Python\Python313\Lib\site-packages\jaydebeapi\__init__.py", line 412, in connect jconn = _jdbc_connect(jclassname, url, driver_args, jars, libs) File "C:\Users\peterg\AppData\Local\Programs\Python\Python313\Lib\site-packages\jaydebeapi\__init__.py", line 221, in _jdbc_connect_jpype jpype.JClass(jclassname) ~~~~~~~~~~~~^^^^^^^^^^^^ File "C:\Users\peterg\AppData\Local\Programs\Python\Python313\Lib\site-packages\jpype\_jclass.py", line 99, in __new__ return _jpype._getClass(jc) ~~~~~~~~~~~~~~~~^^^^ TypeError: Class com.informix.jdbc.IfxDriver is not found

PyInformix: SADeprecationWarning: The dbapi() classmethod on dialect classes has been renamed to import_dbapi(). Implement an import_dbapi() classmethod directly on class <class 'pyinformix.ifx_jdbc.InformixJDBCDialect'> to remove this warning; the old .dbapi() classmethod may be maintained for backwards compatibility. engine = create_engine('informix+ifx_jdbc://hostname:port/db_name;INFORMIXSERVER=server_name;delimident=y;user=user;password=pass') Traceback (most recent call last): File "c:\Users\peterg\source\python\dbApp\PyInformix_test.py", line 5, in <module> conn = engine.connect() File "C:\Users\peterg\AppData\Local\Programs\Python\Python313\Lib\site-packages\sqlalchemy\engine\base.py", line 3274, in connect return self._connection_cls(self) ~~~~~~~~~~~~~~~~~~~~^^^^^^ File "C:\Users\peterg\AppData\Local\Programs\Python\Python313\Lib\site-packages\sqlalchemy\engine\base.py", line 146, in __init__ self._dbapi_connection = engine.raw_connection() ~~~~~~~~~~~~~~~~~~~~~^^ File "C:\Users\peterg\AppData\Local\Programs\Python\Python313\Lib\site-packages\sqlalchemy\engine\base.py", line 3298, in raw_connection return self.pool.connect() ~~~~~~~~~~~~~~~~~^^ File "C:\Users\peterg\AppData\Local\Programs\Python\Python313\Lib\site-packages\sqlalchemy\pool\base.py", line 449, in connect return _ConnectionFairy._checkout(self) ~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^ File "C:\Users\peterg\AppData\Local\Programs\Python\Python313\Lib\site-packages\sqlalchemy\pool\base.py", line 1264, in _checkout fairy = _ConnectionRecord.checkout(pool) File "C:\Users\peterg\AppData\Local\Programs\Python\Python313\Lib\site-packages\sqlalchemy\pool\base.py", line 713, in checkout rec = pool._do_get() File "C:\Users\peterg\AppData\Local\Programs\Python\Python313\Lib\site-packages\sqlalchemy\pool\impl.py", line 179, in _do_get with util.safe_reraise(): ~~~~~~~~~~~~~~~~~^^ File "C:\Users\peterg\AppData\Local\Programs\Python\Python313\Lib\site-packages\sqlalchemy\util\langhelpers.py", line 146, in __exit__ raise exc_value.with_traceback(exc_tb) File "C:\Users\peterg\AppData\Local\Programs\Python\Python313\Lib\site-packages\sqlalchemy\pool\impl.py", line 177, in _do_get return self._create_connection() ~~~~~~~~~~~~~~~~~~~~~~~^^ File "C:\Users\peterg\AppData\Local\Programs\Python\Python313\Lib\site-packages\sqlalchemy\pool\base.py", line 390, in _create_connection return _ConnectionRecord(self) File "C:\Users\peterg\AppData\Local\Programs\Python\Python313\Lib\site-packages\sqlalchemy\pool\base.py", line 675, in __init__ self.__connect() ~~~~~~~~~~~~~~^^ File "C:\Users\peterg\AppData\Local\Programs\Python\Python313\Lib\site-packages\sqlalchemy\pool\base.py", line 901, in __connect with util.safe_reraise(): ~~~~~~~~~~~~~~~~~^^ File "C:\Users\peterg\AppData\Local\Programs\Python\Python313\Lib\site-packages\sqlalchemy\util\langhelpers.py", line 146, in __exit__ raise exc_value.with_traceback(exc_tb) File "C:\Users\peterg\AppData\Local\Programs\Python\Python313\Lib\site-packages\sqlalchemy\pool\base.py", line 897, in __connect self.dbapi_connection = connection = pool._invoke_creator(self) ~~~~~~~~~~~~~~~~~~~~^^^^^^ File "C:\Users\peterg\AppData\Local\Programs\Python\Python313\Lib\site-packages\sqlalchemy\engine\create.py", line 646, in connect return dialect.connect(*cargs, **cparams) ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^ File "C:\Users\peterg\AppData\Local\Programs\Python\Python313\Lib\site-packages\sqlalchemy\engine\default.py", line 625, in connect return self.loaded_dbapi.connect(*cargs, **cparams) # type: ignore[no-any-return] # NOQA: E501 ~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^ File "C:\Users\peterg\AppData\Local\Programs\Python\Python313\Lib\site-packages\jaydebeapi\__init__.py", line 412, in connect jconn = _jdbc_connect(jclassname, url, driver_args, jars, libs) File "C:\Users\peterg\AppData\Local\Programs\Python\Python313\Lib\site-packages\jaydebeapi\__init__.py", line 221, in _jdbc_connect_jpype jpype.JClass(jclassname) ~~~~~~~~~~~~^^^^^^^^^^^^ File "C:\Users\peterg\AppData\Local\Programs\Python\Python313\Lib\site-packages\jpype\_jclass.py", line 99, in __new__ return _jpype._getClass(jc) ~~~~~~~~~~~~~~~~^^^^ TypeError: Class com.informix.jdbc.IfxDriver is not found

IfxPy:

Uanble to install, seems that it does not support the latest Python 3 version.

Any help would be appreciated. I can attach the sample code of every method I tried if that would help.

 

It may be just me, but all images appear to be broken when browsing to Discuss.Online in the web browser.

 

Let's resurrect SCM on Lemmy!

 

Not sure if I'm missing something, but I have changed my password on one of my accounts and couldn't find an option in Sync to update it. Is there an option? I had to remove the account and re-add it back to update the password which, IMHO, is a less than ideal way of handling this scenario.

 

I have been using Lemmy for a while now and decided to "branch out" from Lemmy.world to another instance. I used lasim to migrate all of my subscriptions over to the new account on Discuss.online. What I was expecting is to have the default view which is Everything, sorted by Hot, be somewhat similar between instances, but it is completely different. Can someone explain this? Does every instance build its own statistics that are used for the "Hot" and "Active" sort?

 

Is there an easy way to migrate from one instance to another? I’d love to be able to move my subscriptions and profile settings at the very least.

view more: next ›