October 23, 2024
Chicago 12, Melborne City, USA
java

How do you show the interstitial on a Sabre Desktop only app?

In a web based sabre app its possible to call the Interstitial service which will show a loading circle during a long running task. The method to do this is found here: https://developer.sabre.com/sdks/travel-agency/sabre-red-360/help?page=interstitialservice This same screen appears when the desktop version is loading. However I would like to use it in my Desktop Red App

Read More
python

Fixing badly formatted floats with numpy

I am reading a text file only containing floating point numbers using numpy.loadtxt. However, some of the data is corrupted and reads something like X.XXXXXXX+YYY instead of X.XXXXXXXE+YY (Missing E char). I’d like to interpret them as the intended floating point number (or NaN if impossible) and wondered if there was any easy way to

Read More
javascript

Sending Nil value to Rails API in Query String from JS

I’m querying a Searchkick endpoint where I want to find all results where a field is nil. The query in the console Product.search('*', where: { category_id: nil }) correctly returns results. When passed from the client nil, null and all others are interpreted as strings so my query becomes Product.search('*', where: { category_id: 'nil' })

Read More
Android

Some feature modules of your app bundle exceed the maximum compressed download size (200 MB). Reduce the sizes of these modules: base

I must upload game to Google Play Console but it shows this error "Some feature modules of your app bundle exceed the maximum compressed download size (200 MB). Reduce the sizes of these modules: base." and when Building this alert saying: "The download sizes of APKs generated from your App Bundle will be 252-252 MB

Read More
PHP

“could not find driver” Error with SQL Server on WSL 2 with Ubuntu 24.04

I’m encountering an issue while trying to connect my Laravel application to a SQL Server database. I’m running this setup on WSL 2 with Ubuntu 24.04 and PHP 8.3.11. Here’s a detailed overview of the problem and what I’ve done so far: Installed Microsoft ODBC Driver for Ubuntu: I followed the official instructions to install

Read More
C#

Why printf show false value of an hex number

Code char a; a = 0xf1; printf("%x\n", a); Output fffffff1 printf() show 4 bytes, that exactly we have one byte in a. What is the reason of this misbehavior? How can I correct it? You need to sign in to view this answers

Read More
java

Which approach is more efficient with hibernate

Let's consider a class Transaction @Entity public class Transaction { @ManyToOne(fetch = FetchType.EAGER) private Business business; @Column(name = "business_code") private String businessCode; } which method is more efficient to fetch transactions by business using byBusinessCode which is a column in the table Transaction or using byBusiness so the whole object Business which is a dependency

Read More
python

How to create conda env with special proprietary Python from specific location?

I have some proprietary software from SomeCompany (TM) that allows python scripting, but for that one has to use their own special version of python, which is attached to the rest of proprietary files. Let’s call it "proppython.exe" in the path C:\programs\SomeCompany\software\scripting\proppython.exe. I want to create a conda environment that would use that proppython instead

Read More
javascript

Add Langgraph python backend to Remix app

Trying to develop a full stack app with a python backend that runs langgraph. I’m using Remix as the JavaScript framework, and I’m not sure how to structure the app to connect to the python backend. My plan is to use FastAPI as a service, but I’m confused on how to add it to the

Read More
SQL

Get back the NULL date records between another set of dates

In MySQL 5.7, I have a table that looks like this: | email | a_last_sent | a_last_open | b_last_sent | b_last_open | ...more columns ---------------------------------------------------------------------------------- | email1 | 2024-06-12 | 2024-06-25 | 2024-03-06 | 2024-06-06 | ---------------------------------------------------------------------------------- | email2 | 2024-06-01 | 2024-06-16 | 2024-06-05 | NULL | ---------------------------------------------------------------------------------- | email3 | 2024-06-01 | NULL

Read More