nixos/nextcloud: Do not run sudo if not needed

Only use sudo if we are currently not running as the nextcloud user.
This is problematic when occ is called from a systemd service with
NoNewPrivileges=true

Motivation for this change
Things done

[ ] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
Built on platform(s)

[ ] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nix-review --run "nix-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Ensured that relevant documentation is up to date
[ ] Fits CONTRIBUTING.md.

Notify maintainers
cc @

@GrahamcOfBorg test nextcloud


Error: "Unable to resolve 'cloudinary-react-native' from 'App.tsx'"

Bug report for Cloudinary React Native SDK
Before proceeding, please update to latest version and test if the issue persists
Describe the bug in a sentence or two.
The application throws an error: "Unable to resolve 'cloudinary-react-native' from 'App.tsx'," indicating that the cloudinary-react-native library cannot be found during the build process, despite being installed in the project.

Bu
Issue Type (Can be multiple)
[x] Build - Can’t install or import the SDK
[ ] Performance - Performance issues
[ ] Behaviour - Functions aren’t working as expected (Such as generate URL)
[ ] Documentation - Inconsistency between the docs and behaviour
[ ] Other (Specify)
Steps to reproduce

Clone the project repository (https://github.com/cloudinary/cloudinary-react-native)
Navigate to the example folder of the project using the terminal.
Run the commands: npm install && npx expo start.
The error occurs.

Error screenshots or Stack Trace (if applicable)

Build/Dependency management
[ ] Cocoa-Pods
[ ] Carthage
[ ] Manual import
[x] Other (Specify)
Is the issue reproducible only on a specific device?
[x] No
[ ] Yes (specify device model + iOS/Android version)
Versions and Libraries (fill in the version numbers)
React Native Cloudinary SDK version - The example project directly uses the library without specifying a version
OSX (on the dev environment) - 0.0.0
XCode/Android Studio - 0.0.0
Swift/Java/Kotlin - 0.0.0
Target iOS/Android - 0.0.0
Repository
If possible, please provide a link to a reproducible repository that showcases the problem

Hi there,
I am unable to replicate your issue. Can you try running npm update && npx update? Are you sure you're starting the program in the right directory?

Hi there,
I am unable to replicate your issue. Can you try running npm update && npx update? Are you sure you're starting the program in the right directory?

Yep! I put steps on issue

Hi, I see npm install but not, npm update && npx update. Can you share your package.json?


Update cellpose

This PR

updates the environment for Cellpose
installs the ice-python binding in colab to speed up the installation of omero-py. Current Python version is 3.10

Day 5, Mac M1, env built from this branch the following cell in cellpose_paralllel notebook crashes
%%time
# Analyse the data in parallel
results = dask.compute(*lazy_results)

...
---------------------------------------------------------------------------
RuntimeError                              Traceback (most recent call last)
File <timed exec>:2

File ~/opt/anaconda3/envs/testjm5/lib/python3.9/site-packages/dask/base.py:661, in compute(traverse, optimize_graph, scheduler, get, *args, **kwargs)
    658     postcomputes.append(x.__dask_postcompute__())
    660 with shorten_traceback():
--> 661     results = schedule(dsk, keys, **kwargs)
    663 return repack([f(r, *a) for r, (f, a) in zip(results, postcomputes)])

Cell In[6], line 5, in analyze(z)
      3 channels = [[0, 1]]
      4 model = models.Cellpose(gpu=False, model_type='cyto')
----> 5 cellpose_masks, flows, styles, diams = model.eval(data[t, :, z, :, :], diameter=None, channels=channels)
      6 return cellpose_masks, z

File ~/opt/anaconda3/envs/testjm5/lib/python3.9/site-packages/cellpose/models.py:164, in Cellpose.eval(self, x, batch_size, channels, channel_axis, invert, normalize, diameter, do_3D, **kwargs)
    162 tic = time.time()
    163 models_logger.info("~~~ ESTIMATING CELL DIAMETER(S) ~~~")
--> 164 diams, _ = self.sz.eval(x, channels=channels, channel_axis=channel_axis,
    165                         batch_size=batch_size, normalize=normalize,
    166                         invert=invert)
    167 diameter = None
    168 models_logger.info("estimated cell diameter(s) in %0.2f sec" %
    169                    (time.time() - tic))

File ~/opt/anaconda3/envs/testjm5/lib/python3.9/site-packages/cellpose/models.py:669, in SizeModel.eval(self, x, channels, channel_axis, normalize, invert, augment, tile, batch_size, progress)
    666     models_logger.warning("image is not 2D cannot compute diameter")
    667     return self.diam_mean, self.diam_mean
--> 669 styles = self.cp.eval(x, channels=channels, channel_axis=channel_axis,
    670                       normalize=normalize, invert=invert, augment=augment,
    671                       tile=tile, batch_size=batch_size, resample=False,
    672                       compute_masks=False)[-1]
    674 diam_style = self._size_estimation(np.array(styles))
    675 diam_style = self.diam_mean if (diam_style == 0 or
    676                                 np.isnan(diam_style)) else diam_style

File ~/opt/anaconda3/envs/testjm5/lib/python3.9/site-packages/cellpose/models.py:410, in CellposeModel.eval(self, x, batch_size, resample, channels, channel_axis, z_axis, normalize, invert, rescale, diameter, flow_threshold, cellprob_threshold, do_3D, anisotropy, stitch_threshold, min_size, niter, augment, tile, tile_overlap, bsize, interp, compute_masks, progress)
    407     diameter = self.diam_labels
    408     rescale = self.diam_mean / diameter
--> 410 masks, styles, dP, cellprob, p = self._run_cp(
    411     x, compute_masks=compute_masks, normalize=normalize, invert=invert,
    412     rescale=rescale, resample=resample, augment=augment, tile=tile,
    413     tile_overlap=tile_overlap, bsize=bsize, flow_threshold=flow_threshold,
    414     cellprob_threshold=cellprob_threshold, interp=interp, min_size=min_size,
    415     do_3D=do_3D, anisotropy=anisotropy, niter=niter,
    416     stitch_threshold=stitch_threshold)
    418 flows = [plot.dx_to_circ(dP), dP, cellprob, p]
    419 return masks, flows, styles

File ~/opt/anaconda3/envs/testjm5/lib/python3.9/site-packages/cellpose/models.py:481, in CellposeModel._run_cp(self, x, compute_masks, normalize, invert, niter, rescale, resample, augment, tile, tile_overlap, cellprob_threshold, bsize, flow_threshold, min_size, interp, anisotropy, do_3D, stitch_threshold)
    479 if rescale != 1.0:
    480     img = transforms.resize_image(img, rsz=rescale)
--> 481 yf, style = run_net(self.net, img, bsize=bsize, augment=augment,
    482                     tile=tile, tile_overlap=tile_overlap)
    483 if resample:
    484     yf = transforms.resize_image(yf, shape[1], shape[2])

File ~/opt/anaconda3/envs/testjm5/lib/python3.9/site-packages/cellpose/core.py:228, in run_net(net, imgs, batch_size, augment, tile, tile_overlap, bsize)
    226 # run network
    227 if tile or augment or imgs.ndim == 4:
--> 228     y, style = _run_tiled(net, imgs, augment=augment, bsize=bsize,
    229                           batch_size=batch_size, tile_overlap=tile_overlap)
    230 else:
    231     imgs = np.expand_dims(imgs, axis=0)

File ~/opt/anaconda3/envs/testjm5/lib/python3.9/site-packages/cellpose/core.py:318, in _run_tiled(net, imgi, batch_size, augment, bsize, tile_overlap)
    315 for k in range(niter):
    316     irange = slice(batch_size * k, min(IMG.shape[0],
    317                                        batch_size * k + batch_size))
--> 318     y0, style = _forward(net, IMG[irange])
    319     y[irange] = y0.reshape(irange.stop - irange.start, y0.shape[-3],
    320                            y0.shape[-2], y0.shape[-1])
    321     # check size models!

File ~/opt/anaconda3/envs/testjm5/lib/python3.9/site-packages/cellpose/core.py:174, in _forward(net, x)
    172 net.eval()
    173 if net.mkldnn:
--> 174     net = mkldnn_utils.to_mkldnn(net)
    175 with torch.no_grad():
    176     y, style = net(X)[:2]

File ~/opt/anaconda3/envs/testjm5/lib/python3.9/site-packages/torch/utils/mkldnn.py:233, in to_mkldnn(module, dtype)
    230         setattr(new_m, name, m_fn_rec(sub_m, d))
    231     return new_m
--> 233 return m_fn_rec(module, dtype)

File ~/opt/anaconda3/envs/testjm5/lib/python3.9/site-packages/torch/utils/mkldnn.py:230, in to_mkldnn.<locals>.m_fn_rec(m, d)
    228 new_m = m_fn(m, d)
    229 for name, sub_m in m.named_children():
--> 230     setattr(new_m, name, m_fn_rec(sub_m, d))
    231 return new_m

File ~/opt/anaconda3/envs/testjm5/lib/python3.9/site-packages/torch/utils/mkldnn.py:230, in to_mkldnn.<locals>.m_fn_rec(m, d)
    228 new_m = m_fn(m, d)
    229 for name, sub_m in m.named_children():
--> 230     setattr(new_m, name, m_fn_rec(sub_m, d))
    231 return new_m

    [... skipping similar frames: to_mkldnn.<locals>.m_fn_rec at line 230 (3 times)]

File ~/opt/anaconda3/envs/testjm5/lib/python3.9/site-packages/torch/utils/mkldnn.py:230, in to_mkldnn.<locals>.m_fn_rec(m, d)
    228 new_m = m_fn(m, d)
    229 for name, sub_m in m.named_children():
--> 230     setattr(new_m, name, m_fn_rec(sub_m, d))
    231 return new_m

File ~/opt/anaconda3/envs/testjm5/lib/python3.9/site-packages/torch/utils/mkldnn.py:228, in to_mkldnn.<locals>.m_fn_rec(m, d)
    227 def m_fn_rec(m, d):
--> 228     new_m = m_fn(m, d)
    229     for name, sub_m in m.named_children():
    230         setattr(new_m, name, m_fn_rec(sub_m, d))

File ~/opt/anaconda3/envs/testjm5/lib/python3.9/site-packages/torch/utils/mkldnn.py:221, in to_mkldnn.<locals>.m_fn(m, d)
    217     return MkldnnConv3d(m, d)
    218 elif isinstance(m, (torch.nn.BatchNorm2d, torch.nn.BatchNorm3d)):
    219     # For batchnorm bf16 path, OneDNN requires weight and bias need fp32 dtype.
    220     # so it doesn't need dtype argument.
--> 221     return MkldnnBatchNorm(m)
    222 elif isinstance(m, torch.nn.PReLU):
    223     return MkldnnPrelu(m, d)

File ~/opt/anaconda3/envs/testjm5/lib/python3.9/site-packages/torch/jit/_script.py:317, in ScriptMeta.__init__.<locals>.init_then_script(self, *args, **kwargs)
    312     else:
    313         return infer_methods_to_compile(module)
    315 self.__dict__[
    316     "_actual_script_module"
--> 317 ] = torch.jit._recursive.create_script_module(
    318     self, make_stubs, share_types=not added_methods_in_init
    319 )
    321 # Delete the Python attributes that now shadow the ScriptModule
    322 # ones, so that __getattr__ and __setattr__ will properly find
    323 # the scripted versions.
    324 concrete_type = self._actual_script_module._concrete_type

File ~/opt/anaconda3/envs/testjm5/lib/python3.9/site-packages/torch/jit/_recursive.py:558, in create_script_module(nn_module, stubs_fn, share_types, is_tracing)
    556 if not is_tracing:
    557     AttributeTypeIsSupportedChecker().check(nn_module)
--> 558 return create_script_module_impl(nn_module, concrete_type, stubs_fn)

File ~/opt/anaconda3/envs/testjm5/lib/python3.9/site-packages/torch/jit/_recursive.py:635, in create_script_module_impl(nn_module, concrete_type, stubs_fn)
    633 # Compile methods if necessary
    634 if concrete_type not in concrete_type_store.methods_compiled:
--> 635     create_methods_and_properties_from_stubs(
    636         concrete_type, method_stubs, property_stubs
    637     )
    638     # Create hooks after methods to ensure no name collisions between hooks and methods.
    639     # If done before, hooks can overshadow methods that aren't exported.
    640     create_hooks_from_stubs(concrete_type, hook_stubs, pre_hook_stubs)

File ~/opt/anaconda3/envs/testjm5/lib/python3.9/site-packages/torch/jit/_recursive.py:467, in create_methods_and_properties_from_stubs(concrete_type, method_stubs, property_stubs)
    464 property_defs = [p.def_ for p in property_stubs]
    465 property_rcbs = [p.resolution_callback for p in property_stubs]
--> 467 concrete_type._create_methods_and_properties(
    468     property_defs, property_rcbs, method_defs, method_rcbs, method_defaults
    469 )

RuntimeError: Can't redefine method: __getstate__ on class: __torch__.torch.utils.mkldnn.MkldnnBatchNorm (of Python compilation unit at: 0x600002fe9058)

Sorry, deleted the comment about day5 local M1, because it works fine - the prob is as usual, the quick executing of the cells in a long row - when I got back to it later, it worked (probably the output from previous cell came in )


Inserting an a mention with insertItem adds an "undefined" before the denotation char

Adding a mention manually via insertItem method adds an "undefined" before the '@' character

Hi, the "Add Mention Programatically" button on https://quill-mention.com/ is an example of using insertItem manually that doesn't seem to be adding undefined. If you can't figure out what's causing it, could you make a reproduceable example of this in a public repository? Thank you!

Ran into this as well, but after looking at the source for the page linked by @csculley, there is a denotationChar field missing from the data in the docs example.
From the docs:
insertItem({id: '123', value: 'My Mention'}, true)
From the source:
insertItem({denotationChar: '@', id: '123', value:' My Mention'}, true)
After adding denotationChar to the data to insert, it works as expected


Dataframe with incorrect index type returned when combining two tickers (one without data)

import yfinance as yf
df = yf.download( tickers = ["^NDX", "^TWII"],
                  start="2023-01-22", end="2023-01-29",
                  interval = "1m",
                  group_by = 'column',
                  auto_adjust = False,
                  prepost = True,
                  threads = True,
                  proxy = None
                  )
[*********************100%***********************]  2 of 2 completed

1 Failed download:
- ^TWII: No data found for this date range, symbol may be delisted

It's not delisted, it's just there as there is no data due to the lunar new year.
The problem is the returned dataframe index is not a datetime index, but has type object)
yfinace version 0.2.9, python 3.10.8 on Linux ubuntu

What happens with other dates?

@asafravid Not helpful.
This appears to be a simple problem for someone to debug & fix, clue is one ticker doesn't return data so maybe messing up merge.

I’ll check

I had a look at this myself. Pandas concat now combines the empty dataframe and then fails to convert the timezone. I altered a try catch block in multi.py at line 155 to remove the empty dataframe and then everything seemed to work fine:
try:
        dfs = dict([(key, df) for key, df in shared._DFS.items() if not df.empty])
        data = _pd.concat(dfs.values(), axis=1, sort=True,
                          keys=dfs.keys())
    except Exception:
        _realign_dfs()
        data = _pd.concat(shared._DFS.values(), axis=1, sort=True,
                          keys=shared._DFS.keys())

Can you create a PR?

remove the empty dataframe

Is this best solution? My concern is users might think yfinance is failing to fetch and post Issues.


Zuul: may fail under high load with "too many retry attempts" although service is available

Under high load, Zuul may fail with "too many retry attempts" although service is still available.
Scenario:

start with two service instances
start sending many requests: Ribbon will round-robin between the instances
shutdown one of the instances, keep the other alive
Ribbon may suddenly fail because of "too many retry attempts"

Looking at the logs you realise the failed request had received the same server instance several times from the load balancer (ZoneAwareLoadBalancer). This is because the load balancing strategy is "global" and not "per request", meaning a request doesn't have any guarantee to receive different servers.
This is happening with Zuul but every component based on the AbstractLoadBalancerClient (i.e. RestClient) may be impacted as well.

I'm not sure there's much we can do about this.

Closing this due to inactivity. Please re-open if there's more to discuss.


reconcile package:observe and observe-js API

Now that Polymer.js includes observe-js (it was previously just a set of utilities at https://github.com/rafaelw/ChangeSummary), it would be nice to align APIs with Dart's package:observe where it makes sense.
* PathObserver is in pretty good shape.
* CompoundBinding should be CompoundPathObserver, refactor APIs
* ListPathObserver should be ListReduction and get the reduceFn.
* add/expose: Observer, ListObserver, ObjectObserver
* expose: ListSplice
* possibly expose Path... but needs a new name.

This issue has been moved to dart-lang/observe#42.


[camerax]: Read External Storage defined in another plugin gets rejected from mergedManifest

Steps to reproduce

Build the android app from the below code sample.
Inspect the manifest merger logs at build/outputs/logs/manifest-merger-debug-report.txt.

Expected results
The permission should not get REJECTED because it is a required permission for the file_picker plugin.
Actual results
The permission is REJECTED.
ADDED from [:camera_android_camerax] /Users/appleapple/StudioProjects/file_picker_api_30_issue/build/camera_android_camerax/intermediates/merged_manifest/debug/AndroidManifest.xml:17:5-19:31
REJECTED from [:file_picker] /Users/appleapple/StudioProjects/file_picker_api_30_issue/build/file_picker/intermediates/merged_manifest/debug/AndroidManifest.xml:9:5-11:38
	tools:node
		ADDED from [:camera_android_camerax] /Users/appleapple/StudioProjects/file_picker_api_30_issue/build/camera_android_camerax/intermediates/merged_manifest/debug/AndroidManifest.xml:19:9-28
	android:name
		ADDED from [:camera_android_camerax] /Users/appleapple/StudioProjects/file_picker_api_30_issue/build/camera_android_camerax/intermediates/merged_manifest/debug/AndroidManifest.xml:18:9-64

For reference https://github.com/flutter/packages/pull/4700#issuecomment-2391368602
Code sample
Code sample
dependencies:
  flutter:
    sdk: flutter
  flutter_keyboard_visibility: 6.0.0
  shared_preferences: 2.2.3
  image_picker: 1.1.2
  image_cropper: 5.0.1
  flutter_cache_manager: 3.4.1
  device_info_plus: 10.1.2
  share_plus: 10.0.0
  connectivity_plus: 6.0.5
  flutter_udid: 3.0.0
  flutter_local_notifications: 17.2.2
  permission_handler: 11.3.1
  in_app_purchase: 3.2.0
  package_info_plus: 8.0.2
  mobile_scanner: 3.0.0-beta.1
  in_app_review: 2.0.9
  open_mail_app: 0.4.5
  webview_flutter: 4.8.0
  facebook_app_events: 0.19.3
  app_settings: 5.1.1
  camera: 0.11.0
  file_picker: 8.0.5

dependency_overrides:
  mobile_scanner:
    git:
      url: https://github.com/agendaboa/mobile_scanner
      ref: e6bc28f66f6d266177b80daf898acabae980283b

import 'package:file_picker/file_picker.dart';
import 'package:flutter/material.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        // This is the theme of your application.
        //
        // TRY THIS: Try running your application with "flutter run". You'll see
        // the application has a purple toolbar. Then, without quitting the app,
        // try changing the seedColor in the colorScheme below to Colors.green
        // and then invoke "hot reload" (save your changes or press the "hot
        // reload" button in a Flutter-supported IDE, or press "r" if you used
        // the command line to start the app).
        //
        // Notice that the counter didn't reset back to zero; the application
        // state is not lost during the reload. To reset the state, use hot
        // restart instead.
        //
        // This works for code too, not just values: Most code changes can be
        // tested with just a hot reload.
        colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
        useMaterial3: true,
      ),
      home: const MyHomePage(title: 'Flutter Demo Home Page'),
    );
  }
}

class MyHomePage extends StatefulWidget {
  const MyHomePage({super.key, required this.title});

  // This widget is the home page of your application. It is stateful, meaning
  // that it has a State object (defined below) that contains fields that affect
  // how it looks.

  // This class is the configuration for the state. It holds the values (in this
  // case the title) provided by the parent (in this case the App widget) and
  // used by the build method of the State. Fields in a Widget subclass are
  // always marked "final".

  final String title;

  @override
  State<MyHomePage> createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  int _counter = 0;

  void _incrementCounter() async {
    // pick the .p12 or .pfx extension file
    FilePickerResult? result = await FilePicker.platform.pickFiles(
      type: FileType.custom,
      allowedExtensions: ['p12', 'pfx'],
      withData: true,
    );
    print(result);
    setState(() {
      // This call to setState tells the Flutter framework that something has
      // changed in this State, which causes it to rerun the build method below
      // so that the display can reflect the updated values. If we changed
      // _counter without calling setState(), then the build method would not be
      // called again, and so nothing would appear to happen.
      _counter++;
    });
  }

  @override
  Widget build(BuildContext context) {
    // This method is rerun every time setState is called, for instance as done
    // by the _incrementCounter method above.
    //
    // The Flutter framework has been optimized to make rerunning build methods
    // fast, so that you can just rebuild anything that needs updating rather
    // than having to individually change instances of widgets.
    return Scaffold(
      appBar: AppBar(
        // TRY THIS: Try changing the color here to a specific color (to
        // Colors.amber, perhaps?) and trigger a hot reload to see the AppBar
        // change color while the other colors stay the same.
        backgroundColor: Theme.of(context).colorScheme.inversePrimary,
        // Here we take the value from the MyHomePage object that was created by
        // the App.build method, and use it to set our appbar title.
        title: Text(widget.title),
      ),
      body: Center(
        // Center is a layout widget. It takes a single child and positions it
        // in the middle of the parent.
        child: Column(
          // Column is also a layout widget. It takes a list of children and
          // arranges them vertically. By default, it sizes itself to fit its
          // children horizontally, and tries to be as tall as its parent.
          //
          // Column has various properties to control how it sizes itself and
          // how it positions its children. Here we use mainAxisAlignment to
          // center the children vertically; the main axis here is the vertical
          // axis because Columns are vertical (the cross axis would be
          // horizontal).
          //
          // TRY THIS: Invoke "debug painting" (choose the "Toggle Debug Paint"
          // action in the IDE, or press "p" in the console), to see the
          // wireframe for each widget.
          mainAxisAlignment: MainAxisAlignment.center,
          children: <Widget>[
            const Text(
              'You have pushed the button this many times:',
            ),
            Text(
              '$_counter',
              style: Theme.of(context).textTheme.headlineMedium,
            ),
          ],
        ),
      ),
      floatingActionButton: FloatingActionButton(
        onPressed: _incrementCounter,
        tooltip: 'Increment',
        child: const Icon(Icons.add),
      ), // This trailing comma makes auto-formatting nicer for build methods.
    );
  }
}

Screenshots or Video

Screenshots / Video demonstration
[Upload media here]

Logs
manifest-merger-debug-report.txt
Flutter Doctor output
Doctor output
[✓] Flutter (Channel stable, 3.19.6, on macOS 12.7.6 21H1320 darwin-x64, locale en-US)
    • Flutter version 3.19.6 on channel stable at /Users/appleapple/fvm/versions/3.19.6
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 54e66469a9 (6 months ago), 2024-04-17 13:08:03 -0700
    • Engine revision c4cd48e186
    • Dart version 3.3.4
    • DevTools version 2.31.1

[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
    • Android SDK at /Users/appleapple/Library/Android/sdk
    • Platform android-34, build-tools 34.0.0
    • Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 17.0.11+0-17.0.11b1207.24-11852314)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 14.2)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 14C18
    • CocoaPods version 1.15.2

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2024.1)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 17.0.11+0-17.0.11b1207.24-11852314)

[✓] VS Code (version 1.93.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.98.0

[✓] Connected device (3 available)
    • sdk gphone x86 64 (mobile) • emulator-5554 • android-x64    • Android 11 (API 30) (emulator)
    • macOS (desktop)            • macos         • darwin-x64     • macOS 12.7.6 21H1320 darwin-x64
    • Chrome (web)               • chrome        • web-javascript • Google Chrome 129.0.6668.90

[✓] Network resources
    • All expected network resources are available.

• No issues found!

Maybe the plugin should not perform the tools:node="remove".
Or the documentation must mention that Read external storage permission will be removed from the merged manifest.

I can reproduce this issue by following steps

Create new Flutter project
Add two plugins:

camera_android_camerax: ^0.6.9+1
file_picker: ^8.1.2

Build apk:

flutter build apk

Check the REJECTED permission on build/app/outputs/logs/manifest-merger-release-report.txt as mentioned above

Reproduced this on Flutter stable 3.24.3 and master 3.26.0-1.0.pre.353

@huycozy
Can you suggest a temporary/immediate solution for this issue?

I tried explicitly adding READ_EXTERNAL_STORAGE permission to project's AndroidManifest file with tools:node="merge" or tools:node="replace" but didn't work.
Another idea that you can try is to fork camera_android_camerax and modify permission for your use temporarily (add it back?)

I have tested by excluding this merge rules tools:node="merge" or tools:node="replace".
I declared it in the project's AndroidManifest file in the same manner as it has been declared in file_picker plugin:
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" android:maxSdkVersion="32"/>

It is working for me.
@huycozy Can you test the same?
In the manifest merger logs it rejects the plugins as follows:
uses-permission#android.permission.READ_EXTERNAL_STORAGE
ADDED from /Users/appleapple/StudioProjects/agendaboaflutter/android/app/src/main/AndroidManifest.xml:17:5-19:38
REJECTED from [:camera_android_camerax] /Users/appleapple/StudioProjects/agendaboaflutter/build/camera_android_camerax/intermediates/merged_manifest/debug/AndroidManifest.xml:15:5-17:31
REJECTED from [:file_picker] /Users/appleapple/StudioProjects/agendaboaflutter/build/file_picker/intermediates/merged_manifest/debug/AndroidManifest.xml:7:5-9:38
	android:maxSdkVersion
		ADDED from /Users/appleapple/StudioProjects/agendaboaflutter/android/app/src/main/AndroidManifest.xml:19:9-35
	android:name
		ADDED from /Users/appleapple/StudioProjects/agendaboaflutter/android/app/src/main/AndroidManifest.xml:18:9-64

Is this a valid solution?

For reference https://developer.android.com/build/manage-manifests#merge_priorities

Yeah, app level should have higher priority than libraries.

I have tested by excluding this merge rules tools:node="merge" or tools:node="replace".
I declared it in the project's AndroidManifest file in the same manner as it has been declared in file_picker plugin:
It is working for me.

Adding permission like that or with tools:node="merge" or tools:node="replace"  indeed works. Perhaps I misread or the build is cached on my report at https://github.com/flutter/flutter/issues/156198#issuecomment-2393324770.
You can confirm this by using Android Studio > Build > Analyze APK, selecting the output APK built from Flutter and checking the permission on the final AndroidManifest, it should be there.

From Android triage: Camille, talk to Reid

Ok I'm understanding that https://github.com/flutter/packages/blob/c6377679226b5ee00c46154f3f72f1b1a4c17c03/packages/camera/camera_android_camerax/android/src/main/AndroidManifest.xml#L10 was not quite the right fix for READ_EXTERNAL_STORAGE being unnecessarily added. And based on the comments, sounds like ideally we could have the manifest of any other plugin take precedent over CameraX's, but based on https://developer.android.com/build/manage-manifests#merge_priorities it doesn't sound like this is possible since they are all libraries?
Assuming it's not possible: FWIW, I'm not sure that needing to manually include READ_EXTERNAL_STORAGE in an app  that does need it is worse than having to remove it from an app that does not need it, but maybe the recent changes to scoped storage make the consequences less severe for the latter case.
@reidbaker I hear I should talk to you. Any insights?

Talked offline with @reidbaker and decided to revert https://github.com/flutter/packages/pull/4716 and add documentation on how to remove READ_EXTERNAL_STORAGE manually in your Flutter app.
The docs that explain why WRITE_EXTERNAL_STORAGE (which may bring in READ_EXTERNAL_STORAGE by default in the merged Android manifest) is needed in the plugin is already linked in the README that my PR edits.


dragging undefined in dragInit

https://github.com/argyleink/gui-challenges/blob/c473d32cd9345eb1e91a09029e0cddfb5d297c33/switch/index.js#L15
https://github.com/argyleink/gui-challenges/blob/c473d32cd9345eb1e91a09029e0cddfb5d297c33/switch/index.js#L19
Maybe I am overseeing something but the line referenced above is referencing dragging which is declared below this line. Since it is not hoisted it must be undefined and should be fixed somehow.

dragging reference isnt needed until dragInit() is called. you can test this by setting a breakpoint or console logging just before line 15. by this time, dragging is very much defined.
unless you have some steps i can do that show dragging is undefined?


chore(airflow): schedule_interval deprecation warning

Handle deprecation warning for schedule_interval
https://airflow.apache.org/docs/apache-airflow/stable/_api/airflow/models/dag/index.html#airflow.models.dag.DAG

Codecov Report

Merging #293 (5d9c184) into main (a6cc21d) will not change coverage.
The diff coverage is n/a.

Additional details and impacted files

@@           Coverage Diff           @@
##             main     #293   +/-   ##
=======================================
  Coverage   86.41%   86.41%
=======================================
  Files          86       86
  Lines        1987     1987
=======================================
  Hits         1717     1717
  Misses        270      270

Files
Coverage Δ

src/airflow/dags/common_airflow.py
100.00% <ø> (ø)


[Feature Request]: Support OpenAI o1-mini model

Is your feature request related to a problem? Please describe.

Describe the solution you'd like
No response
Additional context
No response

any updates about o1 model support?


Ubuntu Jammy VMs freezing on an Apple M1 Pro specifically MacBookPro18,1

Description
Over the past 3 or so months I am seeing increasing freezes in my Ubuntu Jammu JellyFish VMs.
➜  cat lima.yaml
# ===================================================================== #
# BASIC CONFIGURATION
# ===================================================================== #

# Default values in this YAML file are specified by `null` instead of Lima's "builtin default" values,
# so they can be overridden by the $LIMA_HOME/_config/default.yaml mechanism documented at the end of this file.

# Arch: "default", "x86_64", "aarch64".
# 🟢 Builtin default: "default" (corresponds to the host architecture)
arch: null
# OpenStack-compatible disk image.
# 🟢 Builtin default: null (must be specified)
# 🔵 This file: Ubuntu 22.04 Jammy Jellyfish images
images:
  # Try to use release-yyyyMMdd image if available. Note that release-yyyyMMdd will be removed after several months.
  - location: "https://cloud-images.ubuntu.com/releases/22.04/release-20220712/ubuntu-22.04-server-cloudimg-amd64.img"
    arch: "x86_64"
    digest: "sha256:86481acb9dbd62e3e93b49eb19a40c66c8aa07f07eff10af20ddf355a317e29f"
  - location: "https://cloud-images.ubuntu.com/releases/22.04/release-20220712/ubuntu-22.04-server-cloudimg-arm64.img"
    arch: "aarch64"
    digest: "sha256:e1ce033239f0038dca5ef09e582762ba0d0dfdedc1d329bc51bb0e9f5057af9d"
  # Fallback to the latest release image.
  # Hint: run `limactl prune` to invalidate the cache
  - location: "https://cloud-images.ubuntu.com/releases/22.04/release/ubuntu-22.04-server-cloudimg-amd64.img"
    arch: "x86_64"
  - location: "https://cloud-images.ubuntu.com/releases/22.04/release/ubuntu-22.04-server-cloudimg-arm64.img"
    arch: "aarch64"
# CPUs: if you see performance issues, try limiting cpus to 1.
# 🟢 Builtin default: 4
cpus: null
# Memory size
# 🟢 Builtin default: "4GiB"
memory: null
# Disk size
# 🟢 Builtin default: "100GiB"
disk: "150GiB"

I'm install lima via brew and keeping it updated.
Opening a new shell in instance just stalls.
Is there anything I can do to reduce or collect logging or ascertain the root cause.
I typically have to kill the underlying qemu process to recover from and restart the VM.

I'm going to try 1 CPU versus the default.

The logs are located in ~/.lima/<vmName>/.  Please attach them

Thank you, will do the next time a crash happens... It has been stable since I reconfigured to one cpu, but I am wondering if it was using the VM to run a multi-architecture docker buildx builder that was causing the problem... OS X running qemu running ubuntu running docker running a builder container running qemu to build a container...  Inception.

I wonder if this is related to #1957?
Since I took a newer-than-0.18 version of Lima (with brew install lima --HEAD), and updated to the latest kernel,  my AlmaLinux9 VM has been rock solid.


prototype datasets tests are failing

CI failures are unrelated:
FAILED test/test_prototype_builtin_datasets.py::TestCommon::test_traversable[imagenet-val-True]
FAILED test/test_prototype_builtin_datasets.py::TestCommon::test_traversable[cub200-train-2011-True]
FAILED test/test_prototype_builtin_datasets.py::TestCommon::test_traversable[cub200-test-2011-True]
FAILED test/test_prototype_builtin_datasets.py::TestCommon::test_data_loader[imagenet-val-0]
FAILED test/test_prototype_builtin_datasets.py::TestCommon::test_data_loader[imagenet-val-1]
FAILED test/test_prototype_builtin_datasets.py::TestCommon::test_data_loader[cub200-train-2011-0]
FAILED test/test_prototype_builtin_datasets.py::TestCommon::test_data_loader[cub200-train-2011-1]
FAILED test/test_prototype_builtin_datasets.py::TestCommon::test_data_loader[cub200-test-2011-0]
FAILED test/test_prototype_builtin_datasets.py::TestCommon::test_data_loader[cub200-test-2011-1]
FAILED test/test_prototype_builtin_datasets.py::TestCommon::test_has_annotations[ShufflerIterDataPipe-imagenet-val]
FAILED test/test_prototype_builtin_datasets.py::TestCommon::test_has_annotations[ShufflerIterDataPipe-cub200-train-2011]
FAILED test/test_prototype_builtin_datasets.py::TestCommon::test_has_annotations[ShufflerIterDataPipe-cub200-test-2011]
FAILED test/test_prototype_builtin_datasets.py::TestCommon::test_has_annotations[ShardingFilterIterDataPipe-imagenet-val]
FAILED test/test_prototype_builtin_datasets.py::TestCommon::test_has_annotations[ShardingFilterIterDataPipe-cub200-train-2011]
FAILED test/test_prototype_builtin_datasets.py::TestCommon::test_has_annotations[ShardingFilterIterDataPipe-cub200-test-2011]
FAILED test/test_prototype_builtin_datasets.py::TestCommon::test_infinite_buffer_size[imagenet-val]
FAILED test/test_prototype_builtin_datasets.py::TestCommon::test_infinite_buffer_size[cub200-train-2011]
FAILED test/test_prototype_builtin_datasets.py::TestCommon::test_infinite_buffer_size[cub200-test-2011]

Given that the failures are only happening for imagenet and cub200, my gut says this has something to do with #6076. cc @YosuaMichael @bjuncek @NicolasHug @ejguan @NivekT
Originally posted by @pmeier in https://github.com/pytorch/vision/issues/6514#issuecomment-1231440002

As expected, the problem is resolved with today's nightly: https://github.com/pytorch/vision/runs/8091700701

Thanks @pmeier  for looking into and tracking this!


New CRD doc generations have broken links

When generating the crd docs by doing:
$ cd docs/crds
$ make generate

The generated docs have broken links as crd-ref-docs fails to find the correct types. Example:
diff --git a/docs/crds/CRD-docs-for-docs-repo.md b/docs/crds/CRD-docs-for-docs-repo.md
index fd7d38d..7ac8ed9 100644
--- a/docs/crds/CRD-docs-for-docs-repo.md
+++ b/docs/crds/CRD-docs-for-docs-repo.md
@@ -67,13 +67,13 @@ _Appears in:_
 | `module` _string_ | Module is the location of the WASM module to be loaded. Can be a local file (file://), a remote file served by an HTTP server (http://, https://), or an artifact served by an OCI-compatible registry (registry://). If prefix is missing, it will default to registry:// and use that internally. |
 | `mode` _[PolicyMode](#policymode)_ | Mode defines the execution mode of this policy. Can be set to either "protect" or "monitor". If it's empty, it is defaulted to "protect". Transitioning this setting from "monitor" to "protect" is allowed, but is disallowed to transition from "protect" to "monitor". To perform this transition, the policy should be recreated in "monitor" mode instead. |
 | `settings` _[RawExtension](#rawextension)_ | Settings is a free-form object that contains the policy configuration values. x-kubernetes-embedded-resource: false |
-| `rules` _[RuleWithOperations](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.25/#rulewithoperations-v1-admissionregistration) array_ | Rules describes what operations on what resources/subresources the webhook cares about. The webhook cares about an operation if it matches _any_ Rule. |
-| `failurePolicy` _[FailurePolicyType](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.25/#failurepolicytype-v1-admissionregistration)_ | FailurePolicy defines how unrecognized errors and timeout errors from the policy are handled. Allowed values are "Ignore" or "Fail". * "Ignore" means that an error calling the webhook is ignored and the API request is allowed to continue. * "Fail" means that an error calling the webhook causes the admission to fail and the API request to be rejected. The default behaviour is "Fail" |
+| `rules` _invalid type array_ | Rules describes what operations on what resources/subresources the webhook cares about. The webhook cares about an operation if it matches _any_ Rule. |
+| `failurePolicy` _invalid type_ | FailurePolicy defines how unrecognized errors and timeout errors from the policy are handled. Allowed values are "Ignore" or "Fail". * "Ignore" means that an error calling the webhook is ignored and the API request is allowed to continue. * "Fail" means that an error calling the webhook causes the admission to fail and the API request to be rejected. The default behaviour is "Fail" |
 | `mutating` _boolean_ | Mutating indicates whether a policy has the ability to mutate incoming requests or not. |
 | `backgroundAudit` _boolean_ | BackgroundAudit indicates whether a policy should be used or skipped when performing audit checks. If false, the policy cannot produce meaningful evaluation results during audit checks and will be skipped. The default is "true". |
-| `matchPolicy` _[MatchPolicyType](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.25/#matchpolicytype-v1-admissionregistration)_ | matchPolicy defines how the "rules" list is used to match incoming requests. Allowed values are "Exact" or "Equivalent". <ul> <li> Exact: match a request only if it exactly matches a specified rule. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, but "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`, a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the webhook. </li> <li> Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, and "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`, a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the webhook. </li> </ul> Defaults to "Equivalent" |
+| `matchPolicy` _invalid type_ | matchPolicy defines how the "rules" list is used to match incoming requests. Allowed values are "Exact" or "Equivalent". <ul> <li> Exact: match a request only if it exactly matches a specified rule. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, but "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`, a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the webhook. </li> <li> Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, and "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`, a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the webhook. </li> </ul> Defaults to "Equivalent" |
 | `objectSelector` _[LabelSelector](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.25/#labelselector-v1-meta)_ | ObjectSelector decides whether to run the webhook based on if the object has matching labels. objectSelector is evaluated against both the oldObject and newObject that would be sent to the webhook, and is considered to match if either object matches the selector. A null object (oldObject in the case of create, or newObject in the case of delete) or an object that cannot have labels (like a DeploymentRollback or a PodProxyOptions object) is not considered to match. Use the object selector only if the webhook is opt-in, because end users may skip the admission webhook by setting the labels. Default to the empty LabelSelector, which matches everything. |
-| `sideEffects` _[SideEffectClass](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.25/#sideeffectclass-v1-admissionregistration)_ | SideEffects states whether this webhook has side effects. Acceptable values are: None, NoneOnDryRun (webhooks created via v1beta1 may also specify Some or Unknown). Webhooks with side effects MUST implement a reconciliation system, since a request may be rejected by a future step in the admission change and the side effects therefore need to be undone. Requests with the dryRun attribute will be auto-rejected if they match a webhook with sideEffects == Unknown or Some. |
+| `sideEffects` _invalid type_ | SideEffects states whether this webhook has side effects. Acceptable values are: None, NoneOnDryRun (webhooks created via v1beta1 may also specify Some or Unknown). Webhooks with side effects MUST implement a reconciliation system, since a request may be rejected by a future step in the admission change and the side effects therefore need to be undone. Requests with the dryRun attribute will be auto-rejected if they match a webhook with sideEffects == Unknown or Some. |
 | `timeoutSeconds` _integer_ | TimeoutSeconds specifies the timeout for this webhook. After the timeout passes, the webhook call will be ignored or the API call will fail based on the failure policy. The timeout value must be between 1 and 30 seconds. Default to 10 seconds. |

Tried increasing crd-ref-docs --max-depth 12 instead of default 6 to no avail. Tried with crd-ref-docs v0.0.9 and v0.0.10 too.

Closing. After the refactor for generating the docs, this seems to be gone.


Hide individual extensions in pack

Some extension packs I commonly install in my VSCode installations have a large number of extensions in them. In the "installed" tab, I can see both the extension pack and each individual extension. It would be very nice to be able to hide individual extensions when they are already part of an installed extension pack.

We closed this issue because we don't plan to address it in the foreseeable future. If you disagree and feel that this issue is crucial: we are happy to listen and to reconsider.
If you wonder what we are up to, please see our roadmap and issue reporting guidelines.
Thanks for your understanding, and happy coding!


godep save ./... : cannot find package "k8s.io/kubernetes/pkg/apis/authentication.k8s.io"

I added an import "k8s.io/kubernetes/pkg/kubectl/cmd" to kubenetes.go. For saving vendor, I need to run script/godep-restore.sh first. It works well. But the following godep save ./... get error:
$ godep save ./...
godep: Package (k8s.io/kubernetes/pkg/apis/authentication.k8s.io) not found

$ go get k8s.io/kubernetes/pkg/apis/authentication.k8s.io
package k8s.io/kubernetes/pkg/apis/authentication.k8s.io: cannot find package "k8s.io/kubernetes/pkg/apis/authentication.k8s.io" in any of:
	/usr/local/go/src/k8s.io/kubernetes/pkg/apis/authentication.k8s.io (from $GOROOT)
	/home/tuna/workspace/gocode-kompose-ngtuna/src/k8s.io/kubernetes/pkg/apis/authentication.k8s.io (from $GOPATH)

How do you think @kadel ?

Hmm, I can't reproduce your k8s.io/kubernetes/pkg/apis/authentication.k8s.io.
I get completely different error:
godep: Package (github.com/docker/docker/pkg/term/winconsole) not found

Reason for this error is that something down in k8s.io/kubernetes/pkg/kubectl/cmd requires github.com/docker/docker/pkg/term/winconsole, but winconsole pkg is only in old versions of docker that we can't use because we need bundlefile.
I will look if we can solve this dependency conflict by using newer  k8s/origin

It doesn't look good :-( Because of that dependency conflict I can't get k8s.io/kubernetes/pkg/kubectl/cmd working :-(

I got totally different errors (failed to godep restore), I'm using godep v74. Any idea on how to fix this?
$ script/godep-restore.sh
Preloading some dependencies
fatal: remote github.com/openshift-remote already exists.
remote: Counting objects: 166, done.
remote: Compressing objects: 100% (55/55), done.
remote: Total 166 (delta 128), reused 144 (delta 108), pack-reused 0
Receiving objects: 100% (166/166), 41.73 KiB | 0 bytes/s, done.
Resolving deltas: 100% (128/128), completed with 83 local objects.
From https://github.com/kubernetes/kubernetes
   96916e4..6e5826a  release-1.3 -> upstream/release-1.3
 + bd2057a...854b7b9 refs/pull/28432/head -> origin/pr/28432  (forced update)
 + f9be0db...7029eaa refs/pull/29049/head -> origin/pr/29049  (forced update)
 + 3c5f68c...5af42f6 refs/pull/30153/head -> origin/pr/30153  (forced update)
 + 9c1ffd2...67b7c72 refs/pull/30838/head -> origin/pr/30838  (forced update)
   9ff3d8b..39fbd30  refs/pull/30959/head -> origin/pr/30959
 * [new ref]         refs/pull/31144/head -> origin/pr/31144
 * [new ref]         refs/pull/31145/head -> origin/pr/31145
 * [new ref]         refs/pull/31146/head -> origin/pr/31146
Starting to download all godeps. This takes a while
# cd /usr/local/google/home/chiachenk/go/src/github.com/docker/docker; git checkout e4a0dbc47232e3a9da4cfe6ce44f250e6e85ed43
fatal: reference is not a tree: e4a0dbc47232e3a9da4cfe6ce44f250e6e85ed43

Yah, I tested it again from a fresh clone kompose and got the same issue with @janetkuo :
...
Starting to download all godeps. This takes a while
# cd /home/tuna/workspace/gocode-kompose-godep-problem/src/k8s.io/kubernetes; git checkout 57fb9acc109285378ecd0af925c8160eb8ca19e6
fatal: reference is not a tree: 57fb9acc109285378ecd0af925c8160eb8ca19e6
godep: error downloading dep (k8s.io/kubernetes/federation/apis/federation): exit status 128
godep: Error downloading some deps. Aborting restore and check.
Download finished into /home/tuna/workspace/gocode-kompose-godep-problem/

That is strange, I've just tried that on clean GOPATH and it godep-restore.sh worked fine.
▶ mkdir -p kompose_GOPATH/src/github.com/skippbox

▶ export GOPATH=~/tmp/kompose_GOPATH

▶ cd $GOPATH/src/github.com/skippbox

▶ git clone https://bitbucket.org/ymotongpoo/goenv/pull-requests/
Cloning into 'pull-requests'...
remote: Counting objects: 471, done.
remote: Compressing objects: 100% (469/469), done.
remote: Total 471 (delta 239), reused 0 (delta 0)
Receiving objects: 100% (471/471), 1.15 MiB | 1.28 MiB/s, done.
Resolving deltas: 100% (239/239), done.
Checking connectivity... done.

▶ git clone https://github.com/skippbox/kompose
Cloning into 'kompose'...
remote: Counting objects: 4708, done.
remote: Total 4708 (delta 0), reused 0 (delta 0), pack-reused 4708
Receiving objects: 100% (4708/4708), 4.31 MiB | 967.00 KiB/s, done.
Resolving deltas: 100% (1658/1658), done.
Checking connectivity... done.

▶ cd kompose

▶ ./script/godep-restore.sh
Preloading some dependencies
remote: Counting objects: 5089, done.
remote: Total 5089 (delta 2728), reused 2728 (delta 2728), pack-reused 2361
Receiving objects: 100% (5089/5089), 2.51 MiB | 3.27 MiB/s, done.
Resolving deltas: 100% (3888/3888), completed with 1153 local objects.
From https://github.com/openshift/kubernetes
 * [new branch]      master     -> github.com/openshift-remote/master
 * [new branch]      release-1.0 -> github.com/openshift-remote/release-1.0
 * [new branch]      release-1.1 -> github.com/openshift-remote/release-1.1
 * [new branch]      release-1.2 -> github.com/openshift-remote/release-1.2
 * [new branch]      release-1.2-stable-20160309 -> github.com/openshift-remote/release-1.2-stable-20160309
 * [new branch]      release-1.2-stable-20160312 -> github.com/openshift-remote/release-1.2-stable-20160312
 * [new branch]      release-1.2-stable-20160316 -> github.com/openshift-remote/release-1.2-stable-20160316
 * [new branch]      stable     -> github.com/openshift-remote/stable
 * [new branch]      stable-20160127 -> github.com/openshift-remote/stable-20160127
 * [new branch]      stable-20160211 -> github.com/openshift-remote/stable-20160211
 * [new branch]      stable-20160309 -> github.com/openshift-remote/stable-20160309
 * [new branch]      stable-20160411 -> github.com/openshift-remote/stable-20160411
 * [new branch]      stable-20160510 -> github.com/openshift-remote/stable-20160510
 * [new branch]      stable-20160615 -> github.com/openshift-remote/stable-20160615
 * [new branch]      stable-20160624 -> github.com/openshift-remote/stable-20160624
 * [new branch]      stable-20160804 -> github.com/openshift-remote/stable-20160804
 * [new branch]      stable-9da202e -> github.com/openshift-remote/stable-9da202e
 * [new tag]         v1.1.0-origin -> v1.1.0-origin
 * [new tag]         v1.2.0-origin -> v1.2.0-origin
Starting to download all godeps. This takes a while
Download finished into /home/tomas/tmp/kompose_GOPATH

▶ make binary
CGO_ENABLED=0 ./script/make.sh binary
---> Making bundle: binary (in .)
Build successful. Program saved as ./kompose

Yes that's strange. I did try on a clean GOPATH too. When I opened this issue, script/godep-restore.sh worked fine.
Why did you do this one?
git clone https://bitbucket.org/ymotongpoo/goenv/pull-requests/

Yes that's strange. I did try on a clean GOPATH too. When I opened this issue, script/godep-restore.sh worked fine.
Why did you do this one?
git clone https://bitbucket.org/ymotongpoo/goenv/pull-requests/

OH, that was copy/paste error. Its not supposed to be there :-D

Hmm, I can't reproduce your k8s.io/kubernetes/pkg/apis/authentication.k8s.io.
I get completely different error:
godep: Package (github.com/docker/docker/pkg/term/winconsole) not found
Reason for this error is that something down in k8s.io/kubernetes/pkg/kubectl/cmd requires github.com/docker/docker/pkg/term/winconsole, but winconsole pkg is only in old versions of docker that we can't use because we need bundlefile.
I will look if we can solve this dependency conflict by using newer k8s/origin

So I did some research around that.  I still can't reproduce your error with authentication.k8s.io pkg :-(
If I use k8s.io/kubernetes/pkg/kubectl/cmd then  godep save ./...  fails on
godep: Package (github.com/docker/docker/pkg/term/winconsole) not found

This error is because we have two things in Kompose dependency chain that requires different version of github.com/docker/docker.
Kompose requires github.com/docker/docker  > v1.12.0-rc1  for bundlefile support.
OpenShift and Kubernets 1.3.x require docker v1.4.1. And it is not possible to build them with v1.12 or v1.11.
This problem was in Kompose for some time (since we started using latest Docker), we didn't noticed that because we haven't used parts of Kubernetes that are calling Docker apis (or they call  parts of Docker api that didn't changed between v1.4 and v1.12). k8s.io/kubernetes/pkg/kubectl/cmd uses github.com/docker/docker/pkg/term and that changed a lot between those versions.
Latest alpha release of Kubernetes (v1.4.0-alpha.2) is build with Docker version v1.11.2 so this might solve our problem (expecting that there is not much api changes between 1.11 and 1.12). But we have to wait till OpenShift Origin is rebased  with Kubernetes v1.4.0-alpha.2 or more :-(
Until than we can't use k8s.io/kubernetes/pkg/kubectl/cmd and maybe some other packages from Kubernetes, but its hard to tell which :-(

This should be closed. As soon as we have k8s go client we should be good. Will reopen it whenever getting problem with godeps...

I am hitting the error below when I am trying to run godep restore -v ./... on current master branch:
# cd /home/rtnpro/.goenv/kompose/src/k8s.io/kubernetes; git checkout 57fb9acc109285378ecd0af925c8160eb8ca19e6
fatal: reference is not a tree: 57fb9acc109285378ecd0af925c8160eb8ca19e6
godep: error restoring dep (k8s.io/kubernetes/pkg/util/wait): exit status 128
godep: Restoring dependency (if needed): k8s.io/kubernetes/pkg/util/yaml
# cd /home/rtnpro/.goenv/kompose/src/k8s.io/kubernetes; git checkout 57fb9acc109285378ecd0af925c8160eb8ca19e6
fatal: reference is not a tree: 57fb9acc109285378ecd0af925c8160eb8ca19e6
godep: error restoring dep (k8s.io/kubernetes/pkg/util/yaml): exit status 128
godep: Restoring dependency (if needed): k8s.io/kubernetes/pkg/version
# cd /home/rtnpro/.goenv/kompose/src/k8s.io/kubernetes; git checkout 57fb9acc109285378ecd0af925c8160eb8ca19e6
fatal: reference is not a tree: 57fb9acc109285378ecd0af925c8160eb8ca19e6
godep: error restoring dep (k8s.io/kubernetes/pkg/version): exit status 128
godep: Restoring dependency (if needed): k8s.io/kubernetes/pkg/watch
# cd /home/rtnpro/.goenv/kompose/src/k8s.io/kubernetes; git checkout 57fb9acc109285378ecd0af925c8160eb8ca19e6
fatal: reference is not a tree: 57fb9acc109285378ecd0af925c8160eb8ca19e6
godep: error restoring dep (k8s.io/kubernetes/pkg/watch): exit status 128
godep: Restoring dependency (if needed): k8s.io/kubernetes/pkg/watch/versioned
# cd /home/rtnpro/.goenv/kompose/src/k8s.io/kubernetes; git checkout 57fb9acc109285378ecd0af925c8160eb8ca19e6
fatal: reference is not a tree: 57fb9acc109285378ecd0af925c8160eb8ca19e6
godep: error restoring dep (k8s.io/kubernetes/pkg/watch/versioned): exit status 128
godep: Restoring dependency (if needed): k8s.io/kubernetes/plugin/pkg/client/auth
# cd /home/rtnpro/.goenv/kompose/src/k8s.io/kubernetes; git checkout 57fb9acc109285378ecd0af925c8160eb8ca19e6
fatal: reference is not a tree: 57fb9acc109285378ecd0af925c8160eb8ca19e6
godep: error restoring dep (k8s.io/kubernetes/plugin/pkg/client/auth): exit status 128
godep: Restoring dependency (if needed): k8s.io/kubernetes/plugin/pkg/client/auth/gcp
# cd /home/rtnpro/.goenv/kompose/src/k8s.io/kubernetes; git checkout 57fb9acc109285378ecd0af925c8160eb8ca19e6
fatal: reference is not a tree: 57fb9acc109285378ecd0af925c8160eb8ca19e6
godep: error restoring dep (k8s.io/kubernetes/plugin/pkg/client/auth/gcp): exit status 128
godep: Restoring dependency (if needed): k8s.io/kubernetes/plugin/pkg/client/auth/oidc
# cd /home/rtnpro/.goenv/kompose/src/k8s.io/kubernetes; git checkout 57fb9acc109285378ecd0af925c8160eb8ca19e6
fatal: reference is not a tree: 57fb9acc109285378ecd0af925c8160eb8ca19e6
godep: error restoring dep (k8s.io/kubernetes/plugin/pkg/client/auth/oidc): exit status 128
godep: Restoring dependency (if needed): k8s.io/kubernetes/third_party/forked/json
# cd /home/rtnpro/.goenv/kompose/src/k8s.io/kubernetes; git checkout 57fb9acc109285378ecd0af925c8160eb8ca19e6
fatal: reference is not a tree: 57fb9acc109285378ecd0af925c8160eb8ca19e6
godep: error restoring dep (k8s.io/kubernetes/third_party/forked/json): exit status 128
godep: Restoring dependency (if needed): k8s.io/kubernetes/third_party/forked/reflect
# cd /home/rtnpro/.goenv/kompose/src/k8s.io/kubernetes; git checkout 57fb9acc109285378ecd0af925c8160eb8ca19e6
fatal: reference is not a tree: 57fb9acc109285378ecd0af925c8160eb8ca19e6
godep: error restoring dep (k8s.io/kubernetes/third_party/forked/reflect): exit status 128
godep: Restoring dependency (if needed): k8s.io/kubernetes/third_party/golang/template
# cd /home/rtnpro/.goenv/kompose/src/k8s.io/kubernetes; git checkout 57fb9acc109285378ecd0af925c8160eb8ca19e6
fatal: reference is not a tree: 57fb9acc109285378ecd0af925c8160eb8ca19e6
godep: error restoring dep (k8s.io/kubernetes/third_party/golang/template): exit status 128
godep: Error restoring some deps. Aborting check.


example project linked from the tutorial is a 404

points to: https://github.com/efabless/caravel_user_project/blob/dv-documentation-update/docs/source/index.rst#running-openlane

Fixed in PR #88


[Web-15] define layout

https://user-images.githubusercontent.com/57051508/211225704-2cbd2f25-9b28-418f-a085-ca8a155fa9fb.mov

Define top and bottom section

placed AddYearDropdown component at top left

Generate yearOptions array based on current year

display 17-18 to 10 years ahead from the current year

 [Web] Position AddYearDropdown component and implement functionalities


Athena not compatible with Python 2.7

Have a lot of code that we cannot port to Python 3 yet. How can we run Athena under Python 2.7? This is very important for widespread use in my view.

Although the README file says "written in Python 3", the latest code (in demo-branch) should work with Python 2.7. If it does not, please post any errors you find in a separate issue.
Thanks,
Connor


semantic-ui meteor not working.

Hi everyone,
I did follow the step on the installation guide, and I have no css displaying.
Do I have to import any css code in my app?
And btw, I also have the warning
"app/client/semantic-ui/semantic.less.css: warn: There are some @import rules those are not taking effect as they are required to be in the beginning of the file." when meteor is refreshing.
What can I do?
Did I miss something?

Nope, I believe as long as you ensure custom.semantic.json is in a /client folder relative to your meteor folder you should be good. My project is set up exactly as recommended Semantic UI is located in (/client/lib/semantic-ui/custom.semantic.json).
Warning is already documented in #132.

I have the same problem with no css styling displayed. (I fix the warn above).
I do have custom.semantic.json located in /client/lib/semantic-ui
and it looks like this:
{
"definitions": {
"site": true
},
"themes": {
"default": true,
"basic": true
}
}
The files were regenerate but still can't see styling.
This is how the web page look like:

Any ideas where to look/check?

I had similar problem until I realised that I need to add specific component definitions to 'custome.semantic.json' like this for button if I want to see buttons styled:
"definitions": {
    "site": true,
    "button": true
  },

I would be great adding that explicit step to instructions. I could not find this anywhere.  The only thing I found was:

Edit the file custom.semantic.json to select only the definitions and themes you want
Example: set themes basic to true, leave default as true

And example is missing the point of adding component like button e.g.


[]

Is your feature request related to a problem? Please describe.
ecw is quiet import for gdal to process jpe etc. Format, please enable libecw support in gdal
Proposed solution
add libecw
Describe alternatives you've considered
No response
Additional context
No response

AFAICT this lib is part of an SDK with more restrictive conditions. That's a barrier for maintaining such a feature.


TypeError: Invalid calling object in EDGE or IE

In our app we use dom4 together with angular 1.6. It seems to be related, because dom4 fails when called from angular jqLiteDealoc function.
By debugging compiled code, I found out that the code below fails if called on DocumentFragment:
  what.querySelectorAll = function qSA(css) {
    var result = querySelectorAll.call(this, css);
    result.forEach = Array.prototype.forEach;
    return result
  }

The error itself looks like:
TypeError: Invalid calling object
   at qSA (eval code:702:11)
   at find (eval code:734:9)
   at qSA (eval code:727:9)
   at jqLiteDealoc (eval code:3252:5)
   at jqLiteEmpty (eval code:3452:3)
   at JQLite.prototype[name] (eval code:3724:9)
   at applyDirectivesToNode (eval code:9722:13)
   at compileNodes (eval code:9162:9)
   at compile (eval code:9043:7)
   at lazyCompilation (eval code:9490:11)
eval code (1881) (14794,9)

if anyone could give me a small use case that doesn't involve 3rd parts library and fails, I'd be happy to have a look

No answers in a while, and I think Angular 1 is death i the meanwhile, right? Closing this as there is nothing to do from my side.


License Conflict

Ikonate is available under the MIT. Feel free to use the set in both personal and commercial projects. Attribution in much appreciated but not required.

Do not resell or redistribute the icons, even for free. If you share the set on the web, always link to the project's page, not directly to the file. Do not repost the file on other websites and services.

This does not make much sense. The MIT license explicitly allows resale and redistribution, even for free. Perhaps you were thinking of a Creative Commons variant?
Edit: Credit to mkl on Hacker News for noticing this.

Updated here: https://github.com/mikolajdobrucki/ikonate/commit/e34fa97dd8295f538259f809632bdb74b2436250

Sorry for the confusion, everyone! I just removed the part of the README that didn't make any sense on this license.


Yarn PnP support for @pika/plugin-build-types, pika/plugin-ts-standard-pkg

When trying to use @pika/plugin-build-types or @pika/plugin-ts-standard-pkg with Yarn 2 PnP, the following error is generated:

This appears to happen because PnP uses a custom archive-based resolution instead of standard filesystem. execa() wraps child_process.spawn, which does not understand what to do with a path to a zip archive.
Using execa.node() is targeted specifically at node modules and works with PnP. Since the Typescript compiler is a JS module, the path resolves in all environments, including plug-n-play.
To test compatibility with yarn classic and npm, a separate repo was created, with further testing instructions. The second and third commits show a broken and working version.
Here is a screenshot of it working in yarn 2 with changes applied:

LGTM! Thanks for the contribution


Give a smart default value for start command when users select binary buildpack

If a user doesn't include a manifest that contains a start command but they specify (either via manifest or manually) that they want to push using the binary_buildpack, we can generate a start command for them according to the advice in these docs

also be sure to raise warning/error if there's no executable in the deployment directory the user has specified named the way we'd expect (e.g. if we try to give them a "smart" default start command of cmd /c .\MY-AWESOME-APP --urls=http://<IP_ADDRESS>:%PORT% but there's no executable named "MY-AWESOME-APP" in the specified push directory, that wouldn't be a very "smart" default)

not wiping a pre-filled start command, even if 'binary-buildpack' is de-selected

checking if an executable matches what we expect for our "smart" default and if it doesnt, dont execute the smart default

this "smart: default might no be too smart if we cant accurately guess and suggest the start command that a user will be using


Table and slot element doesn't render elements

If you try to render a  and then use that in another element, then non of your tbody->tr->td will be rendered.
return html`

<slot></slot>

`;

I made a example here
https://stackblitz.com/edit/aqk5mm?file=my-element.js

The problem is not Lit-HTML or Lit-Element, the problem is the browser:

It removes your slot from table tag inside your element, cause inside the table tag you are allowed to have only: tbody,thead,tfoot, tr. Any other tag will be removed
You cannot have a tbody,thead,tfoot tag without a Table tag

The only way to do something similar is to use the CSS behind table,tbody, tr, td (display: table, etc) :
https://stackblitz.com/edit/aqk5mm-sf9y1d?file=my-element.js

The browser thus meaning the HTML specification

@bogdan-nourescu Thanks for your reply 😄 Great to know that it was not a mistake but a general problem. This pattern is pretty common in React.js and other component libraries, so it seems like a missed usecase.
But the browser will more than gladly show a table correctly with other nested elements, you can see here:
https://stackblitz.com/edit/aqk5mm-nei9hu?file=index.html
@kenchris Yeah, because the browsers works fine by including extra elements as children, so why webcomponents works differently seems pretty weird.

        1
        2

        3
        4

The div from the statement you provided is removed from the Table, cause it's not allowed

This library/framework works with the platform (browser) and doesn't implement any black magic like other frameworks do.

@bogdan-nourescu Yeah it get's removed, but if you look at what is rendered it still works. I am not saying that the browser shouldn't follow the spec, I can just confirm that it does work regardless.
I just tried creating a webcomponent for each webcomponent and that did not seem like a working approach either for the browser. Will make a small POC, but here is the code for all the webcomponents
import { LitElement, css, html } from "lit-element";

class Table extends LitElement {
  static get styles() {
    return css`
      .table {
        max-width: 1000px;
        margin: 0 auto;
        padding: 10px;
        display: table;
      }
    `;
  }
  render() {
    return html`

<slot></slot>

    `;
  }
}

customElements.define("x-table", Table);

class TableHeader extends LitElement {
  static get styles() {
    return css`
      .head {
        display: table-header-group;
      }
    `;
  }
  render() {
    return html`

<slot></slot>

    `;
  }
}

customElements.define("x-thead", TableHeader);

class TableBody extends LitElement {
  static get styles() {
    return css`
      .body {
        display: table-row-group;
      }
    `;
  }
  render() {
    return html`

<slot></slot>

    `;
  }
}

customElements.define("x-tbody", TableBody);

class Row extends LitElement {
  static get styles() {
    return css`
      .row {
        display: table-row;
      }
    `;
  }
  render() {
    return html`

<slot></slot>

    `;
  }
}

customElements.define("x-tr", Row);

class Cell extends LitElement {
  static get styles() {
    return css`
      .cell {
        display: table-cell;
      }
    `;
  }
  render() {
    return html`

<slot></slot>

    `;
  }
}

customElements.define("x-td", Cell);

class CellHeader extends LitElement {
  static get styles() {
    return css`
      .cell {
        display: table-cell;
      }
    `;
  }
  render() {
    return html`

<slot></slot>

    `;
  }
}

customElements.define("x-th", CellHeader);

I solved it by giving
 and
 as a object like this, still a easy api and doesn't get mangled by the parser :)
https://github.com/kevinsimper/gdg-search/blob/master/src/components/table.js


Fix Donate link on footer

The alt tag and the title should be Donate instead of Essential Apps Built-in.
Redirection is ok BUT I discovered a 404 error if you click the link while you are already inside /donate

I'd await for json change today before we merge this PR, the json change may mess some stuff, hopefully it won't.


Mapping XF86* keys on Linux?

Hello
I am trying to map keys that register themselves as XF86* keys (i.e. XF86HomePage key). This name is the key name I get by running xev command. By running showkey command I get codes like 172 which is indeed according to the docs the number of the "homepage" key.
When I run kmonad with debug logging, I don't get any event for these buttons. All other typical buttons appear OK.
My question is, how should I map it? It seems like X11 is grabbing these keycodes and emits them, even before kmonad manipulates it, but is it possible?
Thank you!

Also, according to this issue https://github.com/kmonad/kmonad/issues/22 , indeed kmonad doesn't map X11 keyboard events, but this specific key does exist on Linux kernel. So if I am not wrong, there's something else I am missing?

Here's mappings from my special keys, it would be nice to have a complete mapping of all keys somewhere.

XF86 Key
KEY_ Mapping

XF86MonBrightnessDown
KEY_BRIGHTNESSDOWN

XF86MonBrightnessUp
KEY_BRIGHTNESSUP

XF86LaunchA
KEY_SCALE

XF86LaunchB
KEY_DASHBOARD

XF86AudioPrev
KEY_PREVIOUSSONG

XF86AudioPlay
KEY_PLAYPAUSE

XF86AudioNext
KEY_NEXTSONG

XF86AudioMute
KEY_MUTE

XF86AudioRaiseVolume
KEY_VOLUMEUP

XF86AudioLowerVolume
KEY_VOLUMEDOWN

Some laptop keyboards are split into multiple devices. For me personally this happens for exactly xf86 buttons (probably due to fn not being a key to the operating system).
#596 is sadly not yet done.


Login failed with SSL certificate verification error

I'm trying to use the Netspresso Python client to log in to my account using the SessionClient  class, but I'm facing an SSL certificate verification error. Here are the details:
I'm using the latest version of the Netspresso Python client.
I'm using my Netspresso account email and password to log in.
I'm getting the following error message:
Login failed. Error: HTTPSConnectionPool(host='searcher.netspresso.ai', port=443): Max retries exceeded with url: /api/v1/auth/local/login (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1129)')))
I believe this error is related to SSL certificate verification, but I'm not sure how to fix it. Can someone from the Netspresso team help me troubleshoot this issue?
Thanks in advance for your help!

Hello!!
I am Sanggeon form NetsPresso team.
Can I get your python environment informations?
Please run the following commands and provide me the output.
python3 -V
python3 -m certifi
python3 -m pip list

According to the provided information, I think I am going to close to solve this issue ;)
Thanks!!
Sanggeon

Hi Khaoula!
One more information I need to reproduce the issue ;)
Are you working on Linux or Windows?
Can you share me your operating system and its versions?
Thank you.
Sanggeon

Hi Khaoula!!
Can you please run the following code before you create SessionClient Instance?
import ssl

ssl._create_default_https_context = ssl._create_unverified_context

I hope this helps you!!
Thank you.
Sanggeon

Hi Sanggeon,
I'm using a Windows machine with version 21H2, and I'm not running the code in a Docker container but in a notebook.
Thank you for your suggestion to modify the SSL context. I tried running the code you provided before creating the SessionClient instance, but unfortunately, it did not resolve the SSL certificate verification error. Here's the error message I'm seeing:
Login failed. Error: HTTPSConnectionPool(host='searcher.netspresso.ai', port=443): Max retries exceeded with url: /api/v1/auth/local/login (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1129)')))

Please let me know if there's anything else you suggest I try, or if there's any additional information, I can provide to help resolve this issue.
Thank you for your assistance.
Khaoula

Hi Khaoula,
I tried to reproduce the same issue what you are facing now, unfortunately I failed to reproduce it.
If it doesn't bother you can you please run the following code again?
import ssl
ssl._create_default_https_context = ssl._create_unverified_context

from netspresso.client import SessionClient
EMAIL = "Your Email"
PASSWORD = "Your Password"
session = SessionClient(email=EMAIL, password=PASSWORD)

Because I found a missing part from your certifi .pem file path
user\compression_venv\lib\site-packages\certifi\cacert.pem

Usually it contains the python version int the path like the following.
/usr/local/lib/python3.10/dist-packages/certifi/cacert.pem

And I am sharing the notebook which is working with NetsPresso Python Package.
Can you please try it out?
PyNetsPresso_Session_Test.ipynb
Thank you.
Sanggeon

Hi Khaoula(@KBOUSTM ),
I hope you are doing well,
If you still have the same issue, please set up a new Python environment and try it on your local machine instead of in a notebook.
Can you try it and share the result with me?
Thank you.
Sanggeon

Hello SanggeonPark,
I apologize for the delayed response. Thank you for your suggestion.
I tried it with the equivalent Windows commands, and I would like to mention that I am working under a proxy and have set the proxy parameters like the following code:
import os
os.environ['http_proxy'] = "http://user:passwd@ip_address:port"
os.environ['https_proxy'] = "http://user:passwd@ip_address:port"
os.environ['NO_SSL_VERIFY'] = "1".

And i still have the same issue.
Please let me know if you have any further suggestions or if there is any additional information, I can provide to help resolve this issue.
Thank you again for your time and assistance.
Best regards,
Khaoula

Hi Khaoula,
Sorry for my late response.
I am going to check with new proxy setting and get back to you.
Thank you
Best regards,
Sanggeon

Hello Sanggeon Park,
This trick worked for me. Shall we keep the issue open until we find a better solution?
Thank you so much for your collaboration.
Best Regards,
Khaoula

Hi Khaoula!
Great to hear that you can now use it!
I will keep this issue. And get back to you with another better solution !!
Thank you.
Best Regards,
Sanggeon

The issue has been confirmed to be resolved, so I will close it.


RuntimeError in PyTorch v0.3.0

I have PyTorch version 0.3.0 post4.
Architecture fcn8s/fcn16s/fcn32s
Dataloader : PasvalVOC
The code runs fine till loss = cross_entropy2d(outputs, labels) in train.py. But then it throws a throback in the line loss.backward().
Here is the traceback:
$ python3 train.py --arch fcn32s
/usr/local/lib/python3.5/dist-packages/torch/nn/functional.py:1423: UserWarning: nn.functional.upsample_bilinear is deprecated. Use nn.functional.upsample instead.
  warnings.warn("nn.functional.upsample_bilinear is deprecated. Use nn.functional.upsample instead.")
/media/sangeet/Stuff/gitrepo/Machine Learning/pytorch-semseg/ptsemseg/loss.py:9: UserWarning: Implicit dimension choice for log_softmax has been deprecated. Change the call to include dim=X as an argument.
  log_p = F.log_softmax(input)
/usr/local/lib/python3.5/dist-packages/torch/autograd/_functions/tensor.py:465: UserWarning: self and mask not broadcastable, but have the same number of elements.  Falling back to deprecated pointwise behavior.
  return tensor.masked_select(mask)
Traceback (most recent call last):
  File "train.py", line 98, in <module>
    train(epochs,args)
  File "train.py", line 68, in train
    loss.backward()
  File "/usr/local/lib/python3.5/dist-packages/torch/autograd/variable.py", line 167, in backward
    torch.autograd.backward(self, gradient, retain_graph, create_graph, retain_variables)
  File "/usr/local/lib/python3.5/dist-packages/torch/autograd/__init__.py", line 99, in backward
    variables, grad_variables, retain_graph)
  File "/usr/local/lib/python3.5/dist-packages/torch/autograd/function.py", line 91, in apply
    return self._forward_cls.backward(self, *args)
  File "/usr/local/lib/python3.5/dist-packages/torch/autograd/_functions/tensor.py", line 481, in backward
    grad_tensor = grad_tensor.masked_scatter(mask, grad_output)
  File "/usr/local/lib/python3.5/dist-packages/torch/autograd/variable.py", line 427, in masked_scatter
    return self.clone().masked_scatter_(mask, variable)
RuntimeError: invalid argument 1: the number of sizes provided must be greater or equal to the number of dimensions in the tensor at /pytorch/torch/lib/TH/generic/THTensor.c:299

The important thing to note is the last line :
RuntimeError: invalid argument 1: the number of sizes provided must be greater or equal to the number of dimensions in the tensor at /pytorch/torch/lib/TH/generic/THTensor.c:299

I googled the error, most of them told to install PyTorch from source to avoid this, but that didn't help !


Allow specifying different styling per environment

Starting a PR to fix #5803 / #6331
The plan is to update https://github.com/angular/angular-cli/blob/master/packages/%40angular/cli/models/webpack-configs/styles.ts to read this option, and if there is an environment with the styles / stylePreprocessorOptions set, use that instead of the values at the top level. This will also involve updating https://github.com/angular/angular-cli/blob/master/packages/%40angular/cli/models/webpack-configs/typescript.ts to properly interpret the object instead of just the string, and use the config key for the environment ts file.
NOT READY TO MERGE
Seeking feedback on the options structure.

Hey. We don't support $ref yet in our json-schema library. The plan was to support (and embrace) it fully when moving that library to the devkit repo.

The other part is that we are open to external contributions, but normally require at least a proper document to explain the design of the solution, then having the discussions around that document. This does not prevent doing a proof of concept or prototype of the solution, but it's important to have a design document prior to doing the actual solution.
I can help you set that up (we have a template for those). It doesn't have to be long, but we need to take into considerations every aspect of new features and their potential impacts on current projects.
This approach does take more time and is a bit cumbersome, but the resulting designs have always been far more polished than what came out in the issues they're trying to solve.


Mark max_queue_size as non-dynamic

it has mistakenly been marked as dynamic but it actually never has been dynamic
What does this PR do?

Checklist

[x] This is something else

[ ] ~I have updated CHANGELOG.asciidoc~

:green_heart: Build Succeeded

the below badges are clickable and redirect to their specific view in the CI or DOCS

Expand to view the summary

Build stats

Build Cause: Pull request #1621 opened

Start Time: 2021-01-18T12:25:23.595+0000

Duration: 42 min 16 sec

Commit: 23515d0e63ed072a9a5e78289ffbc3e214654442

Test stats :test_tube:

Test
Results

Failed
0

Passed
1685

Skipped
12

Total
1697

:green_heart: Flaky test report
Tests succeeded.

Expand to view the summary

Test stats :test_tube:

Test
Results

Failed
0

Passed
1685

Skipped
12

Total
1697

:green_heart: Build Succeeded

the below badges are clickable and redirect to their specific view in the CI or DOCS

Expand to view the summary

Build stats

Build Cause: Pull request #1621 opened

Start Time: 2021-01-18T12:25:23.595+0000

Duration: 42 min 16 sec

Commit: 23515d0e63ed072a9a5e78289ffbc3e214654442

Test stats :test_tube:

Test
Results

Failed
0

Passed
1685

Skipped
12

Total
1697

:green_heart: Flaky test report
Tests succeeded.

Expand to view the summary

Test stats :test_tube:

Test
Results

Failed
0

Passed
1685

Skipped
12

Total
1697


Fix broken links

@pdg744 Sorry, I just realised there that /general was missing in the URL of my previous PR

https://vitalik.eth.limo/general/2017/11/22/starks_part_2.html this is the correct link


v1.8 backports 2020-10-07

#13419 -- docs: Fix minor issues in getting started guide (@twpayne)
#13340 -- Add the return code CT_REOPENED for conntrack table lookup. (@lzang)
#13414 -- bpf: properly handle IPv4 fragmented packets in host firewall (@jibi)
#13408 -- contexthelpers: Fix deadlock when nobody recvs on success channel (@brb)

Once this PR is merged, you can update the PR labels via:
$ for pr in 13419 13340 13414 13408; do contrib/backporting/set-labels.py $pr done 1.8; done

test-backport-1.8

LGTM for my changes, thanks!

test-1.18-4.9


Refactored and deprecated total_unique_constraints

total implies to me that it will return a number. Instead, I renamed it list as it returns a list of the constraints. Could also rename it all_unique_constraints, but I found list to be more descriptive.
Also, the tests stalled on my machine, so apologies if tests fail (at least one threw an E--likely because it encountered a warning--though I can't tell which). Will attempt to fix once they finish running here (probably tomorrow).

Going to try again on a different branch now that I've read the contributing docs (thanks github acitons bot)


Red flashing LED

Hi
I flashed my Gosund SP1 with Tasmota. After flashing i've connected to the "sonof xxxx" wifi and filled my ssid and password. After reboot automatic of the SP1 it can't connect to wifi because of wrong password (fritzbox told me). Can i reset the wifi setting? The buttom of the SP1 doesn't work.

[https://github.com/arendst/Sonoff-Tasmota/wiki/FAQ#i-entered-the-wrong-wi-fi-password-and-i-have-no-button-to-reset-config](Tasmota Wiki)

1 device still flashing red :/

@sobo85 This is the issue tracker for tuya-convert. Please see Sonoff-Tasmota for support with their firmware. Thanks and good luck!


:bug: Enable transaction report should be removed.

[ ] Enable transaction report on the Advanced Options page should be removed.
No longer supported by the analyzer.

Option is no longer on the Advanced > Options Analysis Wizard step:


Add example using Edge Worker / App builder to serve contextual configuration

Added here https://github.com/sdmcraft/hlx-assets-addon-config


Add 2 tables to repo

Added Big House and Beat The Clock

Modify the root README.MD to link the tables.
Please add ROM filename to the table READMEs and include instructions on where to place them.


many console.logs

Open Devtools
this happens when something changes (state)

thanks for you work!

Gah, that was a development leftover that must've slipped through when preparing the bundle locally for the first submission. I'll try to automate the publishing steps using GH actions, now that the store link is available. Thanks for the report!

The new build v2.0.1 has been published to the store


Using is_countable to avoid count with null

Changed log

Using the is_countable function to ensure passing non-null to the count function.

This function isn't available in PHP 7, which this package still supports.

The feature is available since the PHP 7.3 version.
Please look at the reference.

 I learned something 🙂
But I still am going to hold off on this as the current code is clear and safe enough.


Added maxNumberOfItems property

I wanted to control the number of items visible on any of the list dialogs
Added the property to the js file, and property handling  in the jave file

This is super cool! Thank you for sharing! May you please update the documentation for this.

updated readme @Noitidart

Thank you very uch @eladgel merging now!

I'm hoping to fix the install issues for 0.57+ and then roll out 1.0.3 - did you encounter issues when installing into RN >= 0.57?

Im using rn 57.7

When installing did you have to do any manual modifications after npm i react-native-dialogs then react-native link react-native-dialogs?


API Key Confirmation Window

Styles may not be entirely accurate after PR. Need to recenter the popup.

Fixed with old CSS


Lines of code treated as response to readline() when running multiline snippet in REPL

from user:
In RGUI this script works fine:
h <- 'Hallo'
name <- readline('Name: ')
paste(h, name)
In R-Interactive readline is not doing what it should do.

in line at a time it works.  if sent to repl as a chunk, the readline doesnt work.

This is the fallout of #947, or rather the way we fixed it, by making it so that a multiline code snippet is sent to R line-by-line instead of all at once. Indeed, this was the exact example that was used then to demonstrate why this fix breaks other things.
However, chunking it up is really the only way we can fix the 4096 char limit, unless and until R fixes it on their side.

Pavel to file bug with R on this related to #947

It looks like the upcoming fix for #1605 will fix this, as well. @AlexanderSher, can you check and close?


Proposed 1.4.0-b6

If merged this PR will:
close: #3104
close: #3096
close: #3095
close: #3094
close: #3086
close: #3083
close: #3047

Could we get #3055 in there too?

We should consider it. @seelabs, comments?

@nbougalis @MarkusTeufelberger my plan was to wait for 1.5-b1 before we merged 1.71 support. While that PR is relatively low-risk I don't think 1.4 needs it, and since we're getting close to a release-candidate I'd rather wait.

Well, then my node still will have to wait a few weeks/months(?) until I can compile rippled again. :-(
Your call, but I assume Alpine maintainers for example would be really happy to use their packaged version of boost (https://pkgs.alpinelinux.org/package/edge/main/x86_64/boost) or Arch linux ones too (https://www.archlinux.org/packages/extra/x86_64/boost/) instead of having to port your patch to 1.4.0.

Hmm, interesting @MarkusTeufelberger. Do the Alpine maintainers publish a rippled package in their own repos?

They are actually the only distro I know of that do: https://pkgs.alpinelinux.org/package/edge/community/x86_64/rippled

@MarkusTeufelberger Thanks for the information on Alpine linux. After further discussion we've decided to add the boost 1.71 PR to this beta.


[hotfix] Make flink-kubernetes-shaded dep provided

Solves a problem where we had a compile dependency on a fatjar which does not really work in many cases.

cc @wangyang0918 @tweise


Add Sidebar for Model Selection to Improve User Navigation

🌟 Is your feature request related to a problem?:
Currently, the app lacks a convenient navigation tool, requiring users to scroll through the page to select different machine learning models. This impacts the user experience, especially as more models are added.
💡 Describe the solution you'd like:
Add a sidebar using st.sidebar.selectbox() for model selection. This would allow users to seamlessly switch between models without excessive scrolling.
🔀 Describe alternatives considered:
Other navigational methods such as buttons or tabs, but the sidebar is most intuitive for this use case.
📄 Additional Context:
A sidebar will enhance usability and overall UI consistency.
To be Mentioned while taking the issue:
GSSoC extd and Hacktoberfest

Note:

Please review the project documentation and ensure your code aligns with the project structure.
Please ensure that either the predict.py file includes a properly implemented model_details() function or the notebook contains this function to print a detailed model report. The model will not be accepted without this function in place, as it is essential for generating the necessary model details.
Prefer using a new branch to resolve the issue, as it helps keep the main branch stable and makes it easier to manage and review your changes.
Strictly use the pull request template provided in the repository to create a pull request.

Please assign this task to me.
Also, add gssoc-extd, hactoberfest and level labels.
Thank You!

Sure @KashishJuneja101003, go ahead!


Change the return values

SBI needs to distinguish return values for the SBI calling sequence itself, and the values from the functions called. I think that we should reserve a0 for SBI errors, and a1 for the return value of functions themselves. Otherwise, as we've found in coreboot, there's not a good clean way to make console_putchar optionally compiled in; further, in using -38 for the error return from SBI, you will eternally mix up that one bit pattern with the bit pattern from all possible future SBI functions. Yuck.
This is how Unix originally worked: there were actually multiple return values from a system call (one of them being the PDP-11 carry bit, but still ...). It was only when we had to make the move to C, a single-return-value language, that we had to go with a single return value from system calls! And even in that case, there really are more than one: that's what errno is for: it's the "second return value."
Save yourself future pain and get this right now. Think of the call to SBI as you would an RPC, and allow that call to return errors; then allow the functions themselves to return an error distinct from possible SBI errors. You won't regret it.

so can you point me to it?

@rminnich
http://lists.infradead.org/pipermail/linux-riscv/2018-October/001974.html

sounds to good to me. We can add one sbi_errno(as suggested by @wxjstz) that will provide the global SBI error stored in a0.

@palmer-dabbelt !!! This looks great !!!

sounds to good to me. We can add one sbi_errno(as suggested by @wxjstz) that will provide the global SBI error stored in a0. If that's ok, I will update the proposal with this.

Do we still need sbi_errno() if we implement this proposal?
I'd rather not keep state if it's not needed.
@atishp04 could you upload your draft proposal as a PR? Might be easier to comment on.

@rminnich
http://lists.infradead.org/pipermail/linux-riscv/2018-October/001974.html

Hi Atish, thanks for linking to your proposal. As SBI changes affect much more than Linux, I think it would be worth at least CCing the sw-dev mailing list.

Yes. I should have done it in the first place. My bad.
I will update it with all the suggestions till now and send a v2 to both linux, sw-dev and raise a github PR as well for easy review.

sounds to good to me. We can add one sbi_errno(as suggested by @wxjstz) that will provide the global SBI error stored in a0. If that's ok, I will update the proposal with this.

Do we still need sbi_errno() if we implement this proposal?
I'd rather not keep state if it's not needed.

Yeah there are other concerns regarding the global state in the other thread (https://github.com/riscv/riscv-sbi-doc/issues/10) as well.
The other approach is to return error by reference or return a structure contain value & error.
I like the structure approach as pointed by palmer. As per my understanding, psABI mandates that first value of the structure always goes into a0 & 2nd value goes into a1. So we are covered.
However, it means existing SBI call signature need to be modified.
Given that, we are revamping SBI with versioning support, I guess that should be ok.
Moreover, shall we make it mandatory return type for all SBI calls ?

@atishp04 could you upload your draft proposal as a PR? Might be easier to comment on.
Yes. I will do that in proposal v2.

I just realized you are putting out sbi proposals on linux-riscv. This doesn't make a lot of sense to me. There are other kernels out there. I think you need to put them to sw-dev or this forum.
I have a lot of things I'd like to see changed.

@rminnich : As I mentioned earlier, that was not intentional. I am planning to send a v2 to both sw-dev, & linux-riscv soon.  I will also create a github PR as well for easy review. Thanks for the feedback.

We're doing the multi-return-value thing.


Change in app msg

Codecov Report

Merging #267 (bbabe35) into master (34a80d5) will increase coverage by 1.80%.
The diff coverage is 11.11%.

@@             Coverage Diff              @@
##             master     #267      +/-   ##
============================================
+ Coverage     77.50%   79.30%   +1.80%
  Complexity     1149     1149
============================================
  Files           139      139
  Lines          3348     3272      -76
  Branches        374      374
============================================
  Hits           2595     2595
+ Misses          657      581      -76
  Partials         96       96

Impacted Files
Coverage Δ

...main/java/ay2122s1_cs2103t_w16_2/btbb/MainApp.java
0.00% <0.00%> (ø)

...16_2/btbb/model/predicate/PredicateCollection.java
91.17% <0.00%> (ø)

...tbb/model/predicate/ValueWithinRangePredicate.java
92.85% <ø> (ø)

..._cs2103t_w16_2/btbb/model/util/SampleDataUtil.java
0.00% <0.00%> (ø)

..._w16_2/btbb/model/recipe/RecipeIngredientList.java
60.60% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ea52450...bbabe35. Read the comment docs.


High CPU/RAM usage by the v11.0.0 node

After upgrade the node to v11.0.0, there is a issue about node CPU/RAM usage. The node CPU/RAM usage will reach its peak, when the node api QPS is almost 50. Have there been similar cases recently?

There are some logs about “WARNING: DATA RACE” in my node.
The released binaries in github are not affected as far as I know as they are using goreleaser build not this makefile; but @zeta-chain/devops may confirm here.

What about the fact it detects race conditions in the code? Should that be a separate issue to fix?

I've announced this issue and short term fix to validators.
If you built the v11 binary by using make install it included the -race flag which can cause performance problems. Please edit the Makefile and remove the -race flag.

If you used the binaries from our GH releases page this does not apply to you.

This -race flag will be removed from the default make install command in future versions and is being tracked in this Issue: https://github.com/zeta-chain/node/issues/1503

Yes

thank for you this code

thanks

Thank you

Good


BUG | z-index: 1

What happened?
Why write dead z-index: 1, i can remove it?

i use with-content-scripts-ui demo
Version
Latest
What OS are you seeing the problem on?
No response
What browsers are you seeing the problem on?
No response
Relevant log output
No response
(OPTIONAL) Contact Details
No response
Code of Conduct

[X] I agree to follow this project's Code of Conduct
[X] I checked the current issues for duplicate problems.

Hey @crazyair thanks for the bug report!
If you use getRootContainer , you can have all the flexibility you'd like with how the root container looks.
If you want your container to mount a shadow DOM like how we do internally, your getRootContainer can look something like this:
export const getRootContainer = () => {
  const container = document.createElement("div")
  container.style.cssText = `
    z-index: 99999;
    position: absolute;
  `
  // Add anything else you want here

  const shadowHost = document.createElement("div")

  const shadowRoot = shadowHost.attachShadow({ mode: "open" })
  document.body.insertAdjacentElement("beforebegin", shadowHost)

  if (typeof Mount.getStyle === "function") {
    shadowRoot.appendChild(await Mount.getStyle())
  }

  shadowRoot.appendChild(container)
  return container
}

Does this help?

@crazyair if you test out with-content-scripts-ui, in the plasmo-mount.tsx file - without the z-index: 1 it will not work (bc Shadow DOM are insert before all other DOM element). The z-index simply make them "overlay" which is the intended design.
It is a feature, not a bug 😜


change Redis TTL variable name to indicate it uses seconds

Codecov Report

Merging #192 into master will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##            master      #192   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files            9         9
  Lines           82        82
  Branches         5         5
=========================================
  Hits            82        82

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update edb3e77...124f227. Read the comment docs.


aditi.maheshwari/telemetry app product change test

Description
Assert that this event app-product-change is emitted when a product is enabled
Workflow

⚠⚠ Create your PR as draft (we're receiving lot of PR, it saves us lot of time) ⚠⚠
Follows the style guidelines of this project (See how to easily lint the code)
Work on you PR until the CI passes (if something not related to your task is failing, you can ignore it)
Mark it as ready for review

NOTE:  By default in PR only default scenario tests will be launched. Please refer to the documentation to run all scenarios in your PR if needed.

Once your PR is reviewed, you can merge it ! :heart:

Could you resolve the conflict before I review it please ? 🙏

Could you resolve the conflict please ? :)

CI is failing on spring-boot-3-native and spring-boot-native, if it's expected, can add the in missing_feature please ?

CI is still failing on java native 3


Added common method to check if a current package name is a valid teams app

Added utility to check if current package name is from valid installed teams app.

Can you provide a description on why this change is required?