Categories
Mastering Development

How to use leaflet “openstreetmap” with flutter?

i need help to include leaflet map in flutter . the project i’m working on it requires showing custom markers , animation , routes , drawing on the map. but i can’t find any documentation or tutorial for explaining this with flutter .

Categories
Mastering Development

Flutter Future

I am new in Flutter, I am trying to get it from StatelessWidget Class, but it’s not allow me to get return value from Future Method, How do i get return value? class HomePage extends StatelessWidget{ @override Widget build(BuildContext context) { Widget _defaultPage = userLogin(); var loginStatus = isLoggedIn(); print(loginStatus); if(loginStatus == true){ _defaultPage = […]

Categories
Linux Mastering Development

Linux iptables allow forwarding from a specific IP

I’am not new in iptables and Linux but I prefer your support before take a decision. I have a quite hard scenario in which the Linux “router” got many interfaces, routes, a VPN. GOAL: Allow a single source IP in the same Linux “router” VLAN and subnet to access to any networks the Linux Router […]

Categories
Linux Mastering Development

Linux iptables allow forwarding from a specific IP

I’am not new in iptables and Linux but I prefer your support before take a decision. I have a quite hard scenario in which the Linux “router” got many interfaces, routes, a VPN. GOAL: Allow a single source IP in the same Linux “router” VLAN and subnet to access to any networks the Linux Router […]

Categories
Development

API project is not authorized to use this API

What is the problem in this code ? D/mylog: Downloaded URL: { “error_message” : “This API project is not authorized to use this API.”, “routes” : [], “status” : “REQUEST_DENIED”} Background task data { “error_message” : “This API project is not authorized to use this API.”, “routes” : [], “status” : “REQUEST_DENIED”} D/mylog: { “error_message” […]

Categories
Development

How to avoid shapes from changing size and position when deleting previous shape component with same component name? Konva

I have been having this issue using react-konva were when I remove a shape within the array all shapes move to initial position and if the shape is placed in one position above the deleted one and has the same component name for e.g: deleted === RegularPolygon and one just above===RegularPolygon, than it takes the […]

Categories
Development GitHub System & Network

Tools to help migration from RHEL4 to CentOS8

I have a bunch of legacy servers (about 30) running undocumented code that still run on RHEL4. Some newer servers run on CentOS5 or 6, but most of them are RHEL4. Following a security audit, management has finally agreed that something needs to be done and the servers need to be migrated to something from […]

Categories
Development Plugins Vue

Vue Router fails to navigate from inside unit tests using jest

I have a router, Home, Login components and unit tests for the Login component. The logic is: when user is unauthenticated, send him to Login page, once he’s authenticated, send him to home page. The logic works fine in the browser, however, when I run unit tests, I get an exception: thrown: undefined once the […]

Categories
Development Vue

What is process.env.BASE_URL in vue js?

When I manually selected presets when installing vue using vue cli. I stumbled upon process.env.BASE_URL. I was tryng to find it in the internet but to no avail, I can’t find any decent explanation. Here’s the code. const router = new VueRouter({ mode: ‘history’, base: process.env.BASE_URL, routes })

Categories
Development

Status bar doesn’t show up in Flutter

Flutter app is not showing the status bar(PFA). I don’t want a full-screen view of my app. Is there any way to resolve this issue. main.dart class MyApp extends StatelessWidget { // This widget is the root of your application. @override Widget build(BuildContext context) { return MaterialApp( title: ”, theme: ThemeData( primarySwatch: Colors.purple, fontFamily: ‘FIRSNEUE’ […]