You won't get any answers if people can't even read the question. SO is an English site. Post a new question in English, or use https://es.stackoverflow.com .
Please read How do I ask a good question? or ¿Cómo elaboro una buena pregunta? before posting the new question too.
You may try https://marketplace.visualstudio.com/items?itemName=elong0527.vs-rtf-preview that convert RTF to PDF then preview.
I raised this question after working on the code, and I’m unsure why it was deemed not a good practice. Could you please help me understand the concerns?
Here is a long answer.
Organizing related business entity classes that represent the same business concept and share common attributes is good practice because it reduces duplication, improves consistency, and makes the model easier to evolve over time.
Encapsulation of domain rules
When similar entities share a common base (abstract class, interface, or composition), shared invariants and validation rules live in one place instead of being copy‑pasted across classes.
This makes it easier to reason about the business domain, because the behavior for that concept is localized and changes to rules propagate uniformly.
Maintainability and evolution
A cohesive set of related entities is simpler to maintain than many ad‑hoc classes with overlapping fields and logic.
When the business concept changes (for example, adding a new common attribute or changing an identifier strategy), you change it once in the shared abstraction instead of touching many scattered classes.
Reuse and reduced duplication
Organizing entities around business concepts encourages reuse across use cases, services, and even applications within the same domain.
Common aspects like identifiers, auditing fields, or value object types (e.g., Email, Money) can be implemented once and reused by all entities that represent that data type, reducing boilerplate and risk of subtle inconsistencies.
Clearer domain language and structure
Grouping entities by domain meaning (rather than by technical concern) leads to packages and types that match the ubiquitous language used by the business and other developers.
This improves discoverability—when reading the codebase, it is obvious where to find and place logic related to a given business concept, which in turn makes onboarding and code reviews easier.
Better type safety and testability
Shared abstractions for a business data type make method contracts more precise and avoid treating everything as a generic “bag of fields.”
Tests can target the common behavior in one place and then focus on the differences in specialized entities, resulting in leaner test suites and less chance of inconsistent behavior between similar entity types.
Can you provide the location in the article where it talks about this? The closest that I can find is "Converting to SSA", where it only mentions the use of phi in non-looping scenarios.
@Afolabi Adedayo Thanks for your comment. Yes, I understand that. But my question is the following. Suppose that I have only added one file, foo, to the cache, by doing git add foo. I fully understand why it needs to run diff old_foo foo. But why does it need to do any comparison at all on all of the other files in the repo? Aren't all the other files in the repo irrelevant when I am only committing foo?
@user207421 I'm a professional software developer and am very familiar with the XY problem. This is not an XY problem. I am interested in all of the following: how it works, why it works that way, and how I can make it faster. But the question is primarily about the "how it works" part.
@ADyson That sounds like the best solution in the long run. But I was hoping for a quicker solution, even if it's a bit of a hack. I should have specified that this isn't a high priority issue: I was just looking for something that might work with minimal rework. As far as the link to that article on relative vs absolute paths, much appreciated. I used relative paths for a while, but absolute paths were the most reliable. Thanks again!
You whack my whole family and then post about it like it's a fucking experiment while you guy us dry. Real fucking amusing.
I just had to remove 'mongodb://127.0.0.1/basic-setup'.
So I followed this tutorial https://brentonmallen.com/posts/circular_qr_code/circular_qr/
and manage to obtain this
Remember second-level caching in NHibernate? Pepperidge Farm remembers...
Were you able to figure out any solution for this? I too have a web app and want to download an Excel file and read it contents to assert. This works fine locally but not on gitlab pipeline running on Linux server
Please help I still get this error after trying that out
You don't have permissions to access this datastore "workspaceblobstore" either due to issues with network setup or issues with access. We are unable to get more details at this time. You can try again later.Find steps to troubleshoot here.
enter image description herereplace last line of the text to Vishnu-24ET102372
Maybe this repo can help you :)
https://github.com/edinsalimovic/SRDoubleStickyHeaderList
@marv51 That worked great, thank you! I must have run the publish flow when I first made the project, because it's been in there since the beginning.
Can you clarify your constraints? Why you can't simply await the first promise using something like React use or React Router loader , then render the component that takes user input and do the final step on submit?
Where do you put y vel = y vel-1 and y=y+y vel
@Reinderien What does monotonic mean in this case? If you mean non negative and increases as the index increases then yes. (In this case my x axis is a range of wavelengths)
I feel he just wanted to check about my understanding skills of Data set @Bart
Is the interviewer intentionally creating a bad design to see if you will notice?
# Source - https://stackoverflow.com/a/69623670
# Posted by Hardik Sanghavi
# Retrieved 2025-12-04, License - CC BY-SA 4.0
$ flask run
* Running on http://127.0.0.1:5000/
Getting the same issue, will check back to see if you found the solution. Already did a clean installation of nodejs but still get the same error.
You need to user the package Microsoft graph SDK.
I have the same kind of situation, I create 3 containers with linux distro inside. And when using Docker Desktop everything is running just fine.
But I wanted to launch them without any user session in order to have the webservice delivered as soon as the Windows server is running.
Until now i can't find any good solution and things aren't easy to debug. I try using the Docker Engine but as my containers are linux it's not working. So is there a way to launch the desktop docker version out of a user session and have the containers launched automatically as soon as Windows is loaded ?
This works like a charm! Thanks a lot!
download setup openssl from this link
http://downloads.sourceforge.net/gnuwin32/openssl-0.9.8h-1-setup.exe
So it stores Lists of different types, and other things? Can you show how you use it?
Hey can u pls tell how do I use the command line ? I'll give a try. Thanks!
How can I check if GPS is available on laptop. And what if accuracy parameter is around 250 meters?
What if the tensor has no elements in it?
How do i solve this?
import torch
x = torch.tensor([])
x = torch.cat((x,3),0)
#outputs an error
Exception has occurred: TypeError
expected Tensor as element 1 in argument 0, but got int
x = torch.cat((x,3),0)
^^^^^^^^^^^^^^^^^^
TypeError: expected Tensor as element 1 in argument 0, but got int
Apple also isn't allowing us to ask user for their name stating some design policy. Our codebase is same for Android and iPhone so how do I counter this?
There's no such thing as "language-independent" words. Every word belongs to a certain language (though occasionally some words may have identical spelling in some languages). And Vombatus ursinus is definitely in Latin. By the way, it's called the common wombat in English, where's the language independence?
hi Johan Morales , I’m trying to run Dynamo scripts through my custom Revit plugin and came across your question while searching for a solution. Did you manage to resolve it? If yes, could you please share how you did it? It would be really helpful.
https://stackoverflow.com/users/20882864/marce-puente The input would probably be hardcoded for now but I have plans to change that to be an algorithm to tune parameters but I want to make this as easy as possible for others to use the function in their own code. But as for your solution, eventually I will scale this to have a lot of models therefore lots of parameters which is why I want to avoid ifs at all costs.
https://stackoverflow.com/users/12085772/jason-chia I am sorry but I don't understand what you are saying, could you explain a bit more?
Thanks! THis works but does it scale? E.g. what if my_func uses a ton of other helper functions? Do I have to declare all of them explicitly?
You should try the Sync Windows utility from sysinternals: https://learn.microsoft.com/en-us/sysinternals/downloads/sync ?
i found that stackblitz works fine, would like to know other better editor.
https://stackblitz.com/edit/angular-live-compiler-stca4pd1?file=src%2Fapp%2Fapp.component.ts
I am facing the same error.
When admin try to open the custom report, it works correctly but when user try to do same then got this error "For more information about this error navigate to the report server on the local server machine , or enable remote error".
I am using Visual Studio AX2022.
Thanks @amalloy! That's very helpful. I've been away from SO for a while. What is a "Reply"? It's not a comment (?), but not an answer (since I can't upvote or accept (which I would)).
Concurrent Task Queue is a newer one for >= C++20.
On https://www.mongodb.com/docs/manual/release-notes/, it says the current stable version is 8.2.
https://www.mongodb.com/docs/manual/release-notes/8.2/#std-label-release-notes-8.2
I think someone has hacked Google or Samsung account and this now pops up never did before ?Where is it being shared to?
The proxy.ts was the culprit...
@Dai: Thanks for your input. Of course, there is no problem with lighter colors (see yellow, lime, cyan in my screenshot), hence why I am asking here specifically about darker colors such as red (#F00) which I need to use. You say I should include example HTML code, but your example code is CSS not HTML. So what code should I post ?
The rows in these columns are of Struct type. I want them in a different type
It's unclear what you're actually asking here.
I've tried playing around with the following but keep failing
The code examples shown don't seem to have anything to do with "different types" and "keep failing" lacks any details about specific error messages.
Can you show an actual runnable code example with inputs / expected outputs?
not really a manual, but this page does discuss addressing you wanted to know about: https://en.wikibooks.org/wiki/X86_Assembly/GNU_assembly_syntax
But how you find this hidden function?
muchachos no creo que vean esto pero tengo un problema el cual no se si estoy haciendo bien el componente
import React from 'react';
import { StyleSheet, View, TouchableOpacity, Image, Alert, Platform, PermissionsAndroid } from 'react-native';
import MapView, { Marker, Region, PROVIDER_GOOGLE } from 'react-native-maps';
import MapViewDirections from 'react-native-maps-directions';
import Config from 'react-native-config';
// import { fetchLatestPosition } from '../../api/traccar';
import Geolocation from '@react-native-community/geolocation';
// import AppLayout from './layout/AppLayout';
// import { useSafeAreaInsets } from 'react-native-safe-area-context';
import MarkerOrigin from '../../assets/markers/marker-origin.svg';
import MarkerDestination from '../../assets/markers/makerr-destination-own.svg';
import type { Coordinate } from '../FooterRoutes/routesData';
import MarkerMe from '../../assets/markers/waypoint.svg';
const CarSport = require('../../assets/icons/carro-deportivo.png');
type MarkerItem = {
id: number;
title: string;
coordinate: Coordinate;
type: 'origin' | 'destination' | 'waypoint';
status?: 'red' | 'green' | 'conductor';
nameRol?: string;
};
type Props = {
markers?: MarkerItem[];
initialRegion?: Region;
renderTopBar?: React.ReactNode;
bottomContent?: (args: {
collapsed: boolean;
toggle: () => void;
onRouteSelect: (stops: Coordinate[]) => void;
onModeChange: (isDetails: boolean) => void;
}) => React.ReactNode;
driver?: Coordinate;
origin?: Coordinate;
destination?: Coordinate;
waypoints?: Coordinate[];
driverIconColor?: string;
driverDeviceId?: string | number;
};
const getMapsApiKey = (): string => {
return (Config as any)?.GOOGLE_MAPS_API_KEY || (Config as any)?.Maps_API_KEY || '';
};
// Esta función simulará la obtención de la dirección real a partir de las coordenadas
const getAddressFromCoordinates = async (latitude: number, longitude: number): Promise<string> => {
const apiKey = getMapsApiKey();
if (!apiKey) {
console.warn("GOOGLE_MAPS_API_KEY is missing. Cannot perform geocoding.");
return `Lat: ${latitude.toFixed(5)}, Lon: ${longitude.toFixed(5)}`;
}
try {
const response = await fetch(`https://maps.googleapis.com/maps/api/geocode/json?latlng=${latitude},${longitude}&key=${apiKey}`);
const data = await response.json();
if (data.status === 'OK' && data.results.length > 0) {
return data.results[0].formatted_address;
} else {
return 'Dirección no encontrada';
}
} catch (error) {
console.error("Geocoding failed:", error);
return 'Error de servicio de geocodificación';
}
};
// -----------------------------------------------------------------------------
export default function MapComponent({
markers = [],
initialRegion,
renderTopBar,
bottomContent,
origin,
destination,
driver: _driver,
waypoints,
driverIconColor,
driverDeviceId,
}: Props) {
const uberLightMapStyle = [
{ elementType: 'geometry', stylers: [{ color: '#FAFAFA' }] },
{ featureType: 'water', elementType: 'geometry', stylers: [{ color: '#F7F8FA' }] },
{ featureType: 'landscape', elementType: 'geometry', stylers: [{ color: '#FAFAFA' }] },
{ featureType: 'landscape.man_made', elementType: 'geometry', stylers: [{ color: '#F9FAFB' }] },
{ featureType: 'landscape.natural', elementType: 'geometry', stylers: [{ color: '#FAFAFA' }] },
{ featureType: 'poi', stylers: [{ visibility: 'off' }] },
{ featureType: 'poi.park', stylers: [{ visibility: 'off' }] },
{ featureType: 'transit', stylers: [{ visibility: 'off' }] },
{ featureType: 'road', elementType: 'geometry', stylers: [{ color: '#FFFFFF' }] },
{ featureType: 'road.highway', elementType: 'geometry', stylers: [{ color: '#F7F7F7' }] },
{ featureType: 'road.arterial', elementType: 'geometry', stylers: [{ color: '#FFFFFF' }] },
{ featureType: 'road.local', elementType: 'geometry', stylers: [{ color: '#FFFFFF' }] },
{ featureType: 'road', elementType: 'geometry.stroke', stylers: [{ color: '#EEEEEE' }] },
{ featureType: 'road', elementType: 'labels.icon', stylers: [{ visibility: 'off' }] },
{ featureType: 'road', elementType: 'labels.text.stroke', stylers: [{ visibility: 'off' }] },
{ featureType: 'road', elementType: 'labels.text.fill', stylers: [{ color: '#BDBDBD' }] },
{ featureType: 'administrative', elementType: 'labels.text.fill', stylers: [{ color: '#B8B8B8' }] },
{ featureType: 'administrative', elementType: 'geometry', stylers: [{ visibility: 'off' }] },
];
const mapRef = React.useRef<MapView>(null);
const [activeRoute, setActiveRoute] = React.useState<{ origin?: Coordinate; destination?: Coordinate; driver?: Coordinate; waypoints?: Coordinate[]; }>({});
const [routeStopMarkers, setRouteStopMarkers] = React.useState<MarkerItem[]>([]);
const [routeCoords, setRouteCoords] = React.useState<Coordinate[]>([]);
const [collapsed, setCollapsed] = React.useState(true);
const [isFollowing, setIsFollowing] = React.useState(false);
const waypointColors = [ '#10B981', '#EF4444'];
const googleApiKey = getMapsApiKey();
const fallback: Region = {
latitude: -34.6037,
longitude: -58.3816,
latitudeDelta: 0.01,
longitudeDelta: 0.01,
};
const [region] = React.useState<Region>(initialRegion ?? fallback);
const [userLocation, setUserLocation] = React.useState<Coordinate | null>(null);
const [showUserDot, setShowUserDot] = React.useState(true);
const userLocationRef = React.useRef<Coordinate | null>(null);
const [_driverLive, _setDriverLive] = React.useState<Coordinate | null>(null);
const hasInitialCenterRef = React.useRef(false);
const [directionsErrorNotified, setDirectionsErrorNotified] = React.useState(false);
React.useEffect(() => {
if (userLocation) {
console.log('UserLocation', { latitude: userLocation.latitude, longitude: userLocation.longitude });
}
}, [userLocation]);
const directionsData = React.useMemo(() => {
const googleKey = googleApiKey || (Config as any).GOOGLE_MAPS_API_KEY;
const o = activeRoute.origin ?? origin;
const d = activeRoute.destination ?? destination;
const w = activeRoute.waypoints ?? waypoints;
return { googleKey, o, d, w };
}, [googleApiKey, activeRoute, origin, destination, waypoints]);
// Centra el mapa en la ruta
const fitToRoute = React.useCallback(() => {
const allPoints = [
...(activeRoute.origin ? [activeRoute.origin] : origin ? [origin] : []),
...(activeRoute.waypoints || waypoints || []),
...(activeRoute.destination ? [activeRoute.destination] : destination ? [destination] : []),
].filter(Boolean) as Coordinate[];
if (allPoints.length < 1) return;
if (allPoints.length === 1) {
mapRef.current?.animateToRegion({
latitude: allPoints[0].latitude,
longitude: allPoints[0].longitude,
latitudeDelta: 0.01,
longitudeDelta: 0.01,
}, 600);
return;
}
mapRef.current?.fitToCoordinates(allPoints, {
edgePadding: { top: 200, right: 200, bottom: 100, left: 110 },
animated: true,
});
}, [activeRoute, origin, destination, waypoints]);
React.useEffect(() => {}, [routeCoords, fitToRoute, isFollowing]);
React.useEffect(() => {}, [_driver]);
React.useEffect(() => {
if (initialRegion && !userLocation) {
console.log('MapComponent initialRegion', initialRegion);
const { latitude, longitude, latitudeDelta, longitudeDelta } = initialRegion;
mapRef.current?.animateToRegion({
latitude,
longitude,
latitudeDelta,
longitudeDelta,
}, 600);
}
}, [initialRegion, userLocation]);
// Solicitamos permisos de ubicación
React.useEffect(() => {
const init = async () => {
if (Platform.OS === 'android') {
const res = await PermissionsAndroid.requestMultiple([
PermissionsAndroid.PERMISSIONS.ACCESS_FINE_LOCATION,
PermissionsAndroid.PERMISSIONS.ACCESS_COARSE_LOCATION,
]);
console.log('MapComponent android permissions', res);
const grantedFine = res[PermissionsAndroid.PERMISSIONS.ACCESS_FINE_LOCATION] === PermissionsAndroid.RESULTS.GRANTED;
const grantedCoarse = res[PermissionsAndroid.PERMISSIONS.ACCESS_COARSE_LOCATION] === PermissionsAndroid.RESULTS.GRANTED;
if (!grantedFine && !grantedCoarse) return;
} else {
Geolocation.setRNConfiguration({ skipPermissionRequests: false, authorizationLevel: 'whenInUse' } as any);
Geolocation.requestAuthorization();
}
Geolocation.getCurrentPosition(
pos => {
console.log('MapComponent getCurrentPosition', pos?.coords);
const { latitude, longitude } = pos.coords;
const coord = { latitude, longitude };
setUserLocation(coord);
userLocationRef.current = coord;
setShowUserDot(false);
if (!hasInitialCenterRef.current) {
hasInitialCenterRef.current = true;
mapRef.current?.animateToRegion({ latitude, longitude, latitudeDelta: 0.01, longitudeDelta: 0.01 }, 600);
}
},
_err => { console.log('MapComponent getCurrentPosition error', _err); },
{ enableHighAccuracy: true, timeout: 20000, maximumAge: 0 }
);
};
init();
}, []);
const isRouteActive = React.useMemo(() => {
const o = activeRoute.origin ?? origin;
const d = activeRoute.destination ?? destination;
return !!(o && d);
}, [activeRoute, origin, destination]);
React.useEffect(() => {
let watchId: any = null;
let intervalId: any = null;
// @ts-ignore
const updateFromPosition = (pos: Geolocation.GeoPosition) => {
const { latitude, longitude } = pos.coords as any;
const coord = { latitude, longitude };
setUserLocation(coord);
userLocationRef.current = coord;
setShowUserDot(false);
if (!hasInitialCenterRef.current) {
hasInitialCenterRef.current = true;
mapRef.current?.animateToRegion({ latitude, longitude, latitudeDelta: 0.01, longitudeDelta: 0.01 }, 600);
}
};
const startLowFrequency = () => {
Geolocation.getCurrentPosition(
p => updateFromPosition(p as any),
e => console.log('MapComponent low-frequency error', e),
{ enableHighAccuracy: true, timeout: 20000, maximumAge: 0 }
);
intervalId = setInterval(() => {
Geolocation.getCurrentPosition(
p => updateFromPosition(p as any),
e => console.log('MapComponent low-frequency interval error', e),
{ enableHighAccuracy: true, timeout: 20000, maximumAge: 0 }
);
}, 600000);
};
const startHighFrequency = () => {
watchId = Geolocation.watchPosition(
p => updateFromPosition(p as any),
e => console.log('MapComponent high-frequency watch error', e),
{ enableHighAccuracy: true, distanceFilter: 0, interval: 3000 }
);
};
if (isRouteActive) {
startHighFrequency();
} else {
startLowFrequency();
}
return () => {
if (watchId !== null) Geolocation.clearWatch(watchId);
if (intervalId !== null) clearInterval(intervalId as any);
};
}, [isRouteActive]);
React.useEffect(() => {}, [driverDeviceId]);
React.useEffect(() => {
if (directionsData.o && directionsData.d && !directionsData.googleKey && !directionsErrorNotified) {
setDirectionsErrorNotified(true);
Alert.alert('Ruta', 'falla en la implementacion para trazar direcciones');
}
}, [directionsData, directionsErrorNotified]);
React.useEffect(() => {
if (isFollowing) {
const c = userLocation;
if (c) {
mapRef.current?.animateToRegion({
latitude: c.latitude,
longitude: c.longitude,
latitudeDelta: 0.01,
longitudeDelta: 0.01,
}, 400);
}
}
}, [isFollowing, userLocation]);
// APLICACIÓN DE STOPS CON GEOCODING
const applyRouteStops = React.useCallback(
async (stops: Coordinate[]) => {
const allStops = (stops || []).filter(Boolean);
const routeStopsUniq = allStops.filter((s, idx, arr) => arr.findIndex(t => t.latitude === s.latitude && t.longitude === s.longitude) === idx);
if (routeStopsUniq.length < 2) {
setActiveRoute({});
setRouteStopMarkers([]);
setRouteCoords([]);
return;
}
const geocodingPromises = routeStopsUniq.map(async (c) => {
const address = await getAddressFromCoordinates(c.latitude, c.longitude);
return { ...c, address };
});
const enrichedStops = await Promise.all(geocodingPromises);
const primaryRouteStops = enrichedStops.filter(s => !s.status);
const extraStops = enrichedStops.filter(s => !!s.status);
if (primaryRouteStops.length < 2) {
setActiveRoute({});
setRouteStopMarkers([]);
setRouteCoords([]);
return;
}
const originStop = primaryRouteStops[0];
const destinationStop = primaryRouteStops[primaryRouteStops.length - 1];
const wp = primaryRouteStops.slice(1, primaryRouteStops.length - 1);
setActiveRoute({ origin: originStop, destination: destinationStop, waypoints: wp });
const nextMarkers: MarkerItem[] = [
...wp.map((c, i) => ({ id: 100 + i, title: c.name || c.address || `Punto ${i + 1}`, coordinate: c, type: 'waypoint' as const })),
{ id: 2, title: destinationStop.name || destinationStop.address || 'Destino', coordinate: destinationStop, type: 'destination' },
...extraStops.map((c, i) => ({ id: 200 + i, title: c.name || c.address || (c.status === 'red' ? 'Conductor' : 'Punto'), coordinate: c, type: 'waypoint' as const })),
];
setRouteStopMarkers(nextMarkers);
},
[],
);
React.useEffect(() => {
const o = activeRoute.origin ?? origin;
const d = activeRoute.destination ?? destination;
const w = activeRoute.waypoints ?? waypoints;
if (!o || !d) {
setRouteCoords([]);
return;
}
setRouteCoords([o, ...(w ?? []), d]);
}, [activeRoute, origin, destination, waypoints]);
return (
<View style={styles.container}>
{renderTopBar ? <View style={styles.topOverlay}>{renderTopBar}</View> : null}
<MapView
ref={mapRef}
style={styles.map}
initialRegion={region}
provider={PROVIDER_GOOGLE}
mapType="standard"
customMapStyle={uberLightMapStyle}
showsUserLocation={showUserDot}
showsMyLocationButton={false}
onUserLocationChange={e => {
const coord = (e && e.nativeEvent && e.nativeEvent.coordinate) || ({} as any);
const { latitude, longitude } = coord;
console.log('MapComponent onUserLocationChange', coord);
if (typeof latitude === 'number' && typeof longitude === 'number') {
const c = { latitude, longitude };
setUserLocation(c);
if (!hasInitialCenterRef.current) {
hasInitialCenterRef.current = true;
mapRef.current?.animateToRegion({
latitude,
longitude,
latitudeDelta: 0.01,
longitudeDelta: 0.01,
}, 400);
} else if (isFollowing) {
mapRef.current?.animateToRegion({
latitude,
longitude,
latitudeDelta: 0.01,
longitudeDelta: 0.01,
}, 400);
}
}
}}
>
{markers.map(m => (
<Marker key={m.id} coordinate={m.coordinate} title={m.title} />
))}
{(_driver ?? userLocation) && (
<Marker coordinate={(_driver ?? userLocation) as Coordinate} anchor={{ x: 0.5, y: 0.5 }} tracksViewChanges={false}>
<Image source={CarSport} style={[styles.carMarker, driverIconColor ? { tintColor: driverIconColor } : null]} />
</Marker>
)}
{routeStopMarkers.map((marker, idx) => (
<Marker
key={marker.id}
coordinate={marker.coordinate}
title={marker.title}
anchor={{ x: 0.5, y: 0.5 }}
tracksViewChanges={false}
>
{marker.type === 'origin' ? (
<MarkerOrigin width={24} height={24} color="#2563EB" />
) : marker.type === 'destination' ? (
<MarkerDestination width={30} height={50} fill="#2563EB" color="#2563EB" />
) : marker.nameRol === 'conductor' ? (
<MarkerMe width={22} height={22} fill="#000" />
) : (
<MarkerOrigin
width={22}
height={22}
color={waypointColors[Math.max(0, (idx - 1) % waypointColors.length)]}
/>
)}
</Marker>
))}
{(userLocation || directionsData.o) && directionsData.d && directionsData.googleKey ? (
<MapViewDirections
origin={userLocation ?? directionsData.o}
destination={directionsData.d}
waypoints={directionsData.w}
apikey={directionsData.googleKey as string}
strokeWidth={5}
strokeColor="#707070"
mode="DRIVING"
onReady={() => {}}
onError={_errorMessage => {
Alert.alert('Ruta', 'No se pudo trazar la ruta con Google Directions');
}}
/>
) : null}
</MapView>
<View style={styles.followButtonContainer}>
<TouchableOpacity
style={styles.followButton}
onPress={async () => {
const c = userLocation;
if (c) {
setIsFollowing(true);
mapRef.current?.animateToRegion({
latitude: c.latitude,
longitude: c.longitude,
latitudeDelta: 0.01,
longitudeDelta: 0.01,
}, 400);
return;
}
Geolocation.getCurrentPosition(
pos => {
const { latitude, longitude } = pos.coords;
const coord = { latitude, longitude };
setUserLocation(coord);
setIsFollowing(true);
mapRef.current?.animateToRegion({ latitude, longitude, latitudeDelta: 0.01, longitudeDelta: 0.01 }, 400);
},
_err => {
const id = Geolocation.watchPosition(
p => {
const { latitude, longitude } = p.coords;
const coord2 = { latitude, longitude };
setUserLocation(coord2);
setIsFollowing(true);
mapRef.current?.animateToRegion({ latitude, longitude, latitudeDelta: 0.01, longitudeDelta: 0.01 }, 400);
Geolocation.clearWatch(id);
},
() => {},
{ enableHighAccuracy: true, distanceFilter: 0, interval: 2000 }
);
},
{ enableHighAccuracy: true, timeout: 20000, maximumAge: 0 }
);
}}
>
<Image
source={{
uri: 'https://img.icons8.com/?size=100&id=zydjAKYE3RWr&format=png&color=000000',
}}
style={styles.aimstyles}
/>
</TouchableOpacity>
{bottomContent?.({
collapsed,
toggle: () => setCollapsed(v => !v),
onRouteSelect: applyRouteStops,
onModeChange: (_v: boolean) => {},
})}
</View>
</View>
);
}
const styles = StyleSheet.create({
container: { flex: 1 },
map: { flex: 1 },
topOverlay: {
position: 'absolute', top: 0, left: 0, right: 0, zIndex: 40
},
mapFallback: {
position: 'absolute', top: 0, left: 0, right: 0, bottom: 0,
alignItems: 'center', justifyContent: 'center'
},
mapFallbackText: {
color: '#333', backgroundColor: '#FFFFFFEE',
paddingHorizontal: 12, paddingVertical: 8, borderRadius: 8
},
followButtonContainer: {
width: '100%',
position: 'absolute',
bottom: 0,
paddingHorizontal: 7,
flexDirection: 'column',
justifyContent: 'center',
zIndex: 50,
},
followButton: {
alignSelf: 'flex-end',
backgroundColor: '#fff',
borderRadius: 30,
padding: 8,
elevation: 6,
shadowColor: '#000',
shadowOffset: { width: 0, height: 2 },
shadowOpacity: 0.25,
shadowRadius: 4,
marginBottom: 8,
},
aimstyles: { width: 28, height: 28, tintColor: '#707070' },
reportsButtonContainer: { position: 'absolute', zIndex: 30 },
reportsButton: { backgroundColor: '#6D28D9', paddingVertical: 6, paddingHorizontal: 12, borderRadius: 8 },
reportsButtonText: { color: '#fff', fontSize: 12, fontWeight: '600' },
carMarker: { width: 64, height: 36, resizeMode: 'contain' },
});
@m-deinum Thank you very much! With the SpringSecurityAuthenticationSource configured in the DefaultSpringSecurityContextSource, it works now as I wished!
Hi i'm having the same problem but the point is the "VSS" key is still there but not the "VssAccessControl" inside of it and i can't create any keys inside "VSS". How can I fix this?
My personal design decission is that if I make a C++ library I will only ever expose standard library types (or built in types) on my API's which I can guarantee to be abi compatible. If I cannot do that I expose an abstraction (e.g. an abstract baseclass + factory). This is good separation anyway and allows you to refactor internally if needed (e.g. switch internal libraries). Can you explain why you even think you need to expose the format library from your package?
That is the alternative either I distribute fmt within MyLib or modify headers to not have third party libraries which I prefer not to do.
Is this a valid concern I have or am I overworrying ?
In addition, do you have a recommendation of best way to do this? I been trying to get this to work using copy in the conanfile.py package to copy over all files needed for lib/includes.
@dbugger was 100% correct on this -- it was an orphaned fixture. My mistake was assuming the errors had something to do with the controller and model code, not the seeding process Rails goes through when populating the test database.
Did you get an answer ? If yes pls share it
Can you post an image of your RVIZ setup with the map topic? In addition, ensure you have the correct USB connection for your lidar setup. It may be assigned to another port. You can check by using the command:
lsusb -v
How do I change the initial layout? I know I can use that to set a separate layout per workspace but I want to use the same layout and choose a different initial layout from the layout set.
@Siya Gupta So how do you suggest to change the print and insert routines to work without pointers?
Here's some more context: I only know HTML and CSS. I am currently learning JS, but I am in the very early stages of learning (watching tutorials).
Also, I do not have the budget for hosting.
As for using JSON files and JS, are there any guides or videos you would reccomend to help me learn?
It's hard to guide you, can you give me some more context?
You said you're a beginner in web development, what do you know? is it only html and css?
You should think ahead about hosting, if you use something like Jekyll you can host for free on github pages. Do you have a budget for hosting?
https://stackoverflow.com/users/4183191/tasos-papastylianou Thanks for comment, it was helpful but not quite what I want to achieve. I am working towards something else so this is just a simple stepping stone so scalability is my next challenge which I have ideas given I can find the correct input formatting and efficiency.
Did you manage to resolve the issue?
I have the exact same problem in slightly different conditions - I use Azure Functions instead of AWS.
I generate a PDF from SVG like that:
var pdfBytes = Document.Create(container =>
{
container.Page(page =>
{
page.Size(PageSizes.A4);
page.Content().Svg(svgContent);
});
}).GeneratePdf();
When I run this code locally on my Windows machine - everything displays as expected. When I do it inside a Linux container - again, all the text is there, but in a different font. And when I deploy my app to Azure - everything renders, apart from the text. Images and tables are there, but not a single letter is present.
Therefore, I suspect it may be matter of fonts. Probably none are available in the cloud container (not even a fall-back one) and that's why the text cannot render. But how can I resolve it?
I tried including fonts in my project and registering them in runtime, as suggested in QuestPDF documentation, like that:
private static void AddFonts()
{
try
{
var fontsDir = Path.Combine(AppContext.BaseDirectory, "Resources", "Fonts");
using (var juraStream = File.OpenRead(Path.Combine(fontsDir, "Jura.ttf")))
{
FontManager.RegisterFontWithCustomName("Jura", juraStream);
}
using (var interItalicStream = File.OpenRead(Path.Combine(fontsDir, "Inter-Italic.ttf")))
{
FontManager.RegisterFontWithCustomName("Inter", interItalicStream);
}
Console.WriteLine("Fonts registered successfully via streams: Jura, Inter-Italic");
}
catch (Exception ex)
{
Console.WriteLine($"Error registering fonts: {ex.Message}");
throw;
}
}
I tried to do it both on startup and just before PDF generation. I used all available font registration methods (RegisterFont, RegisterFontWithCustomName and RegisterFontFromEmbeddedResource). Registration seems to succeed, but nothing changes. Every time the result is the same - text renders when ran on local machine or in Docker container, but not in the Azure cloud resource.
@arwynfr thanks for the response! Hmmm I see... It was of my understanding that tenant could not access user's table. That's I relief!
My Orchestrator is located in:
internal(basically a src)/application/orchestrators
But based on your response I believe I'd need to move this orchestrator to:
internal/modules/core/orchestrator
Right?
Thanks againg for the help!
I currently have the same problem, did you find a work-around?
I have tried all this but still console is not fetching my website's sitemap
Uploading anything to their servers via the API won't be trained on, but it will be stored for 30 days for abuse monitoring.
I hope it is what you are looking for.
Here is also the link https://pydantic.dev/articles/pydantic-v2-11-release
I'm not answering the question 100%, but you could use spatie/laravel-permission and you could then introduce the roles/permissions when you run queries: https://spatie.be/docs/laravel-permission/v6/basic-usage/basic-usage#content-eloquent-calls
Check whether cache implemented in your browser,
disable cache in browser and check Disabling Chrome cache for website development
Thank you for you response.
How would you implement locally the FLUX models or the Qwen ? Olama integration with my app ?
@fabien-daniel is right, you need to go to Input on the side panel, then select + Add Input, and then select Utility scripts. However, in order to see just your utility scripts, select also Your Work.
here you are decent explain how to apply rules and workflows in google antigravity
https://atamel.dev/posts/2025/11-25_customize_antigravity_rules_workflows/
What about try to use error handler? (When the exception is occurred, then rerty)
That was it, thank you @pynexj.
I am fresh pass out of college. I can learn anything which will benefit me. I don't work there but i want to create one for them. I have heard there are some websites which provide server with database and also support for backend (free or less money for maintenance). I will check that too. Thanks for your reply.
@Dai: I don't like filter either, but have not found any other solution. It would be great if I could control the link color and/or text-decoration:underline. But, as mentioned, unfortunately I cannot style text and links separately.
Potentially add a plain controller and call it via javascript?
I've just publish a way to serialize and deserialize Telethon objects:
https://github.com/telegram-toys/telethon_objects_serialization/blob/main/README.md
yes, deleting the kubectl file mentioned in above answer indeed fixed the issue. Thanks !
It is a page on our server pointing to a form setup on https://form.jotform.com/
Found a solution to this check out this post https://www.hackingwithswift.com/forums/swiftui/afmessageui/30402
I just made a simple tool todo this job:
https://dansleboby.github.io/PDF-Form-Inspector/
Source: https://github.com/dansleboby/PDF-Form-Inspector
I hope it will help someone else.
Perhaps looking at the first derivative of the smooth (https://cran.r-project.org/web/packages/gratia/refman/gratia.html#derivatives) would help.
Actually i have already set both includePath and browse.path parameters, but still have the same problem.
Do you have any documentation or examples on this?
Thank you everyone for your responses! I didn't consider the possibility of malicious code coming from other sources at all, so thank you for explaining that to me.
My question has been answered, but no-one has actually posted an answer, so I can't mark this question as answered. What's the proper etiquette here?
Thank you very much it helped me as well,
I understand this is a longshot but any help would be appreciated as I am having the same issue! I am trying the NI-Visa approach, and have successfully bonded my new driver to the instrument so that it shows up in NI-Visa. My python script can connect with the device, and also send a request (*IDN?). However, I cannot get the meter to send anything back and I keep hitting my timeout limit. How did you fix it in the end? Thank you in advance
Oh, of course, excellent idea ! Thanks.
thx i needed this for my math class ;D
@Caleth, so then, there is no violation (even without the compiler optimizing away the != )?
@PepijnKramer, had a typo on the == oper was comparing lhs to itself. Fixed.
But what do you mean "!= is not the negation of =="? Why the operator< cannot contain != ? Does it SWO yes or no? Any of the Irreflexive, Transitive, Equivalence and Asymmetric properties?
I was looking for something like this, this helped alot, thanks for it!
You can check my open source project https://github.com/Donovan-Ye/remote-mcp-server-with-ui-template
This is a remote MCP server that supports OAuth2.
Which property of a strict weak ordering do you thing you implementation could violate?
I want know which is the best approach to implement this.
Animepahe is a popular official free anime streaming and download website that provides access to a large library of anime shows often in HD quality.