How can I serve OpenGVLab/InternVL3-1B with vLLM? I tried running: conda create -y -n vllm312 python=3.12 conda activate vllm312 pip install vllm vllm serve OpenGVLab/InternVL3-1B --trust_remote_code but I get the "ValueError: Failed to apply InternVLProcessor" error upon initialization: (EngineCore_DP0 pid=6370) ERROR 10-16 19:45:28 [core.py:708] File "/home/colligo/anaconda3/envs/vllm312/lib/python3.12/site-packages/vllm/multimodal/processing.py", line 1080, in call_hf_processor (EngineCore_DP0 pid=6370) ERROR 10-16 19:45:28 [core.py:708] raise ValueError(msg) from exc (EngineCore_DP0 pid=63
I’m building a scraper to monitor the Meta (Facebook) Ads Library for new ads as soon as they start running. From inspecting network requests, I see that the Ads Library web app uses a GraphQL endpoint: POST https://www.facebook.com/api/graphql/ x-fb-friendly-name: AdLibrarySearchPaginationQuery The request body looks like this (sanitized example): text doc_id=7268381195839281 variables={ "search_input": { "q": "ganancias", "country": "PA", "ad_type": "ALL", "active_status": "ACTIVE", "media_type": "ALL", "search_type": "KEYWORD_UNORDERED" }, "count": 30 } The response includes search_results_
Consumer research costs companies billions annually yet suffers from panel biases and limited scale. Large language models (LLMs) offer an alternative by simulating synthetic consumers, but produce unrealistic response distributions when asked directly for numerical ratings. We present semantic s...
Does anyone know if I can nest the schedule inside an object like so: { "$schema": "https://docs.renovatebot.com/renovate-schema.json", { "description": "Schedule to run daily at night", "schedule": ["* 20-23,0-6 * * *"] } "timezone": "Europe/London", ... } Because I saw in the documentation they use: { "description": "Schedule daily before 4 AM", "schedule": ["* 0-3 * * *"] } but it's probably referring to the top level config braces... I tried to configure scheduling for Renovate but I think that nesting is not allowed.
I am trying to add a simple input field to the order backend and use it to update my order item information. It's a simple meta called "Number of People". It seems like everything is working ok, except that saving the order does NOT update the meta field the way it's built right now. What could I be doing wrong? /* Add custom field to cart item data */ add_filter('woocommerce_add_cart_item_data', function ($cart_item_data, $product_id, $variation_id) { if (isset($_POST['number_of_people'])) { $cart_item_data['number_of_people'] = (int) sanitize_text_field($_POST['number_of_people']); } return
I’m developing an MQL5 Expert Advisor that should connect to a local TCP server (127.0.0.1:5001). The server is running and responds correctly to Telnet. In MetaTrader, I added 127.0.0.1:5001 in Options → Expert Advisors → Allow WebRequest for listed URLs. Firewall is disabled, and the port is free. My MQL5 code is: int socket; int OnInit() { socket = SocketCreate(); if(socket == INVALID_HANDLE) { Print("SocketCreate failed"); return(INIT_FAILED); } if(!SocketConnect(socket, "127.0.0.1", 5001)) { Print("SocketConnect failed with error: ", GetLastError()); return(INIT_FAILED); } Print("Connecte
We use the mspace feature of Doug Lea's Malloc (dlmalloc). We have an mspace with 250 MB of objects and free all the objects. After calling mspace_trim() the size is 150 MB. We were hoping for much smaller. When I look at mspace_trim() I do not see it freeing large and small bins. Is there a way to force freeing bins so we can get back more memory?
I have added the following code to my WordPress site using the Code Snippets plugin. The code is intended to display a "View Product" link in addition to the "Add to Cart" button for WooCommerce. The code works on the main Shop page and on product category/tag archive pages. The Issue The "View Product" link does not appear for Related Products, Cross Sells, or Handpicked Products. I need the link to appear for all items wherever product cards are displayed on the website. This is the code currently implemented: /** * @snippet Add ‘View Product’ button before ‘Add to Cart’ in WooCommerce * @co
I am trying to set up a reverse proxy using a Cloudflare Worker to serve content from two different hosting providers under a single domain. main domain is pointed to WebFlow and sub domain is being used for wordpress. Suppose Main domain is abc.com and I want that when someone try to access URL like abc.com/service-page it should open wordpress. I tried cloudflare's worker to achieve that but its not working at all. addEventListener("fetch", event => { event.respondWith(handleRequest(event.request)); }); async function handleRequest(request) { const url = new URL(request.url); const pathname
I'm reading the paper Selective Applicative Functors. So far I've read from page 16 out 29, and I think I've understood the gist of this abstraction, but I'm having some trouble with some basic statements I read. At page 2, with reference to Applicative's <*> operator, it is said that both arguments and associated effects are known statically, […] from the following pages of the paper, I've reached the conclusion that statically means what usually means in any programming language, i.e. at compile time. However, if that's the case, then I don't understand how can the statement above hold. I do
In order to solve a weigthed linear regression (with x and y weights), I converted the explicit to implicit expression. We are given (xmean,xstd) , (ymean,ystd) each 1d of length n. The error is given in factor of std (x_z , y_z). The explicit expression is: ymean + y_z * ystd = a * (xmean + x_z * xstd) + b. Implicit expression: x_a * (xmean+x_z*xstd) + (ymean+y_z*ystd) + c == 0. (with a, b = -x_a, -c) In order to enforce this implicit expression, I use a constrain impl_lin_constraint_zero (it could be implemented with LinearConstraint also). Then I use scipy.optimize.minimize on impl_lin_loss
I am building a custom WordPress theme and using Advanced Custom Fields (ACF) to manage dynamic content. I want to fetch and display ACF fields via the REST API, but I’m not getting the expected data in my API response. add_action('rest_api_init', function() { register_rest_field('post', 'my_custom_field', array( 'get_callback' => function($post_arr) { return get_field('my_custom_field', $post_arr['id']); }, 'schema' => null, )); }); I expected the API to return the value of my_custom_field for each post, but the field is either missing or empty in the API response. WordPress version: 6.x ACF
I used to use Receigen to generate receipt-validation code, but since Apple has deprecated exit code 173, everything is being adapted to StoreKit2. Following a similar approach to https://developer.apple.com/documentation/storekit/apptransaction/shared (and an example provided by Apple Developer Technical Support at https://developer.apple.com/forums/thread/764537?page=2), I am basically replacing the old receipt-check with: Swift: @objc class ValidateReceipt: NSObject { @objc func validate() async -> Bool { do { let verificationResult = try await AppTransaction.shared switch verificationResul
I am implementing my own SW for getting data from DS18B20, but I've been stuck on decoding address for a while - "receiving" only zeros as a result. Here is my code: #include <avr/io.h> #include "DS18B20_driver.h" #include <util/delay.h> #include "debug_uart.h" //delete #include <stdio.h> //delete //High_level_funcitons void dallas_get_address(uint8_t* address){ reset_pulse(); _delay_ms(2); write_byte(0x33); //READ ROM command; read_rom(address); uart_send_string("Dallas address is: \n"); for(int j = 0; j < 8; j++){ char buffer[3]; sprintf(buffer, "%02X", address[j]); uart_send_string(buffer);
I’m trying to update Sales Order Items in ERPNext using a Server Script of type API. I want to hit the endpoint from Postman and update custom fields (custom_buying_price, custom_qty) in the Sales Order Item child table. Here’s my script: def custom_update_so_items(sales_order, items=None): """ Update Sales Order items (qty, rate, custom fields) with validations. Works for draft and submitted Sales Orders. """ try: # Parse JSON items if string if isinstance(items, str): items = frappe.parse_json(items) if not items: return {"status": "error", "message": "Parameter 'items' is required."} # Load
This is my onMounted call and the loadTripAdvanceDetail function here is responsible for populating the form for edit operations however it makes my form dirty and gives me the unsaved changes dialog despite of not making any changes. I added globalEvents.emit to solve this problem which conducts a check pre and post rendering but nothing still seems to work. This problem has been persisting across the board for me and I feel lost at this point. Any advice/help would be much appreciated. // Initialize onMounted(async () => { globalEvents.emit(EVENTS.COMPONENT_LOADING, null); try { // 1. Load A
I am stuck with Innovus APR flow. My top module has 16 tiles which has only definitions and have attached their LEF files. However, during CTS I am facing the following issue. ERROR: (IMPCCOPT-1146): Clock tree clk cannot use the following cells. CTS will not be able to run on this clock tree.TileRTL__f48e61f7d4a43cdb is cant_use for the following reasons: missing time lib data. This affects the following instances: tile__0/clk[0] tile__1/clk[0] tile__4/clk[0] tile__5/clk[0] tile__8/clk[0] tile__9/clk[0]TileRTL__c38c781819ceaf14 is cant_use for the following reasons: missing time lib data. Thi
Me he tenido que registrar en un foro porque estoy desesperada y Gemini no me ayuda ya. Estoy intentado hacer un proyecto con laravel (llevo solo unas horas usándolo, no me matéis por cometer errores de noob) y cmd no me deja migrar la bbdd con php artisan migrate porque no le sale de los cojones. Esto es todo lo que he probado (todo ideas de Gemini) pero que no ha funcionado: volver a instalar wamp64, descomentar las líneas esas de php.ini que hacen que pueda usar wamp con pgsql (no recuerdo cómo se llaman), comprobar que le he dado al tick a pdo_mysql y pdo_sqllite en wamp64, usar php artisa
I am implementing a UDS flashing tool in Python using udsoncan and python-can-isotp. The setup is: Python client → sends UDS requests via Kvaser CAN interface. CANoe CAPL script → acts as ECU, responds to diagnostic services. The issue Some services (e.g., ECUReset 0x11) work fine: Python log: Tx: <7E4> 0211010000000000 Rx: <7EC> 0251010000000000 Received positive response for ECUReset (0x11) But other services like DiagnosticSessionControl (0x10) or SecurityAccess (0x27) timeout: Python log: Tx: <7E4> 0210020000000000 RAW CAN: ID=0x7EC, Data=065002003201f400 TimeoutException – Did not receive
I’m currently using the Docling library in Python to extract text from PDF files. While it works well for retrieving visible text, I’ve noticed an issue with hyperlinks. Specifically, the library only extracts the short display text of the links, but it doesn’t capture the full URLs embedded in the PDF. This is problematic because I need to extract both the visible text and the actual URLs. For example, if a link in the PDF displays as "Click here" but points to "https://example.com", I can only retrieve "Click here" using Docling. I was wondering if there is a way to make Docling extract this
What might the sky and star would look like to a person standing on the planet surface in the termination zone of my imaginary habitable, tidally-locked planet orbiting an M class star. If I've done the math correctly, these are my planet and star details: Planet Radius circa .92 Earth radii Mass circa .75 Earth Orbit circa 0.1 AU Atmosphere near Earth like mix of N2-O2 at circa same pressure Star Class M4V Red Dwarf Mass range 0.08 - 0.50 solar masses Luminosity .1% to 8% of our sun 1: What color would the sky overhead be versus at the horizon in the direction of the star? Due to the star alw
Description: I'm building a CRM system that integrates Facebook Messenger for businesses to manage customer conversations. The system works perfectly with n8n Test webhook URLs but fails verification when using Production URLs. Architecture Overview: Backend: FastAPI (Python) CRM hosted on Replit Database: PostgreSQL with facebook_messages table storing conversations in JSONB format Middleware: n8n for webhook routing and Facebook API calls Frontend: React-based CRM interface for viewing/replying to Facebook messages Message Flow (Working with Test URLs): Incoming: Customer messages Facebook p
I can't get anything inside of a function to ever work? This is regarding flow control statements IF, FOR, etc, NOT with expression syntax as the object literal operator, that works fine but it won't let me use nested if statements even? Here is what I mean: I will mark in BOLD the brackets that it flags as syntax errors when I try to run my script: FunctionName(p1, p2, p3) { If (in-expression) { If (in-expression) out-expression If (in-expression) out-expression } Else { out-statement-1 out-statement-2 } Return "!!! Stupid AHK !!!" }
I have a GitHub Actions workflow that builds and deploys from the dev environment to the prod environment. Currently, the build job takes around 19–20 minutes, but I want to reduce this to about 5–6 minutes maximum. Here is my Dockerfile: FROM node:22-alpine AS base RUN apk add --no-cache \ build-base \ cairo-dev \ pango-dev \ jpeg-dev \ giflib-dev \ librsvg-dev \ python3 \ make \ g++ # Upgrade npm to latest RUN npm install -g npm@latest WORKDIR /app # Install dependencies first (cache if unchanged) COPY package*.json ./ RUN npm install # Copy rest of source COPY . . COPY .env.production .env
In my ASP.NET Core 8 web app, I am trying to log the messages to Splunk. Splunk shows all the messages in a single message (nested JSON, very difficult to read messages). I want to store only the messages that I write in the application using _logger variable. How can I achieve it? Here are my files: "Serilog": { "Using": [ "Serilog.Sinks.Console", "Serilog.Sinks.File", "Serilog.Sinks.Splunk" ], "MinimumLevel": { "Default": "Information", "Override": { "Microsoft": "Warning", "System": "Warning" } }, //"Enrich": [ "FromLogContext" ], // "WithMachineName", "WithProcessId", "WithThreadId" ], "Wr
According to Microsoft's documentation on Develop IPlugin implementations as stateless: "Because the platform caches plug-in class instances, the constructor isn't called for every invocation of plug-in execution." However, when testing this behavior, I'm seeing different results. Code to reproduce: public class TestPlugin : IPlugin { private Guid ExecutionContextId { get; } = Guid.NewGuid(); public void Execute(IServiceProvider serviceProvider) { var tracingService = (ITracingService)serviceProvider.GetService(typeof(ITracingService)); tracingService.Trace($"ExecutionContextId: {ExecutionCont
On windows 11 I use pyenv to be able to select a specific python version. I want to select python 3.11.9, and the output of pyenv versions is: 3.10.11 3.11.8 * 3.11.9 (set by C:\Users\WORK\.pyenv\pyenv-win\version) However, the installed python version is 3.10.11: > python --version Python 3.10.11 How to fix this issue?
I'm trying to set up a nice Python client for a GraphQL API managed by a separate team (in a different language): We want to provide useful type hints + autocomplete without introducing overly onerous maintenance requirements for our Python layer. I saw that gql looks popular and offers a Python DSL for building queries against schemas... So was thinking to take that and: Use introspection (e.g. here in graphql-core) on the endpoint to fetch a GraphQL Schema Definition Language description Build that schema (or some transformation of it) into our Python library in an automated pipeline, so we
According to the standard, overflow in Java is handled using a special value called infinity, but here the sum is 3.4028235E38. Why is this the case? public class FloatingPointTest { public static void main(String[] args) { float a = Float.MAX_VALUE; float b = 1_000_000_000f; // Note the 'f' to ensure it's a float literal float sum = a + b; System.out.println("Float.MAX_VALUE: " + a); System.out.println("Large number: " + b); System.out.println("Sum: " + sum); System.out.println("Is sum equal to Float.POSITIVE_INFINITY? " + (sum == Float.POSITIVE_INFINITY)); } }