text:
[question???] How to sqlx.Select  2 values without Struct

Hi there,
First of all, really awesome work done here.
I have a quick question, can't find anywhere in the documentation how to catch a result of a sqlx.Select coming from a query
that selects 2 columns without using a struct:
//________________[ ORGS ]
func (db *DBORM) GetOrgs(Type string) (orgs []string, err error) {
	return orgs, db.Select(&orgs, `SELECT email,phone FROM "Orgs" WHERE type=$1`, Type)

I always get this ERROR:
type string with >1 columns (2)
Any help is much appreciated.
Thanks in advance,
Julio

Why dont you create a struct? And then do what you need to do with it?
func (db *DBORM) GetOrgs(Type string) ([]string, error) {
        var orgs []struct {
          Email string  `db:"email"`
          Phone string  `db:"phone"`
}
	err := db.Select(&orgs, `SELECT email,phone FROM "Orgs" WHERE type=$1`, Type)
	return TRANSFORM ORGS TO []string, err

Avoid named returns and these space saving one liners

authors: MushiTheMoshi Nikola-Milovic

repo: jmoiron/sqlx


text:
Too many tokens error not provided to users

When running a model and passing a context larger than the context window, the ollama server prints an error: llama_tokenize: too many tokens but not the client.

Duplicate of #60?

Indeed! Will close for #60

source: gharchive/issue

authors: jmorganca mxyng

repo: jmorganca/ollama

license: MIT

license_type: permissive

license_source: github-api


text:
Rnning c# application in a machine that don't have R installed in

Hi,
I have an R script that i want to use from C#, so i must have R installed in my developpement machine, but the question is, will it work if i use this application in an other machine that haven't R installed in it.

No, it won't work. RDotNet just allows you to connect to R if it is installed on the machine running the application. If the machine does not have R installed, then RDotNet cannot run an R script.

Okay, thanks for your answer


text:
Includes a fix for issue #51, updates the bundled libs to 9.1.9, includes additional notes for Django 3.1 changes

This PR includes a fix for issue #51 along with updating the bundles css and js files to the latest version 9.1.9.
I'm also including notes in the requirements.txt and setup.py files for entries that are not needed from Django 3.1 onwards the models.JSONField can be used directly

Thank you for the PR @StevenMapes. You're in the AUTHORS.rst file now :)

source: gharchive/pull-request

license: mit

license_source: bigquery


text:
Camera permission is asked every time I open the access camera

Thanks for great plugin, I having issue while accessing camera from webview. I have this code in my application to access camera
 return Webview(
                controller,
                permissionRequested: (url, permissionKind, isUserInitiated) =>
                    _onPermissionRequested(
                  url: url,
                  kind: permissionKind,
                  isUserInitiated: isUserInitiated,
                  context: context,
                  isPermissionGranted: isPermissionGranted,
                ),
              );

This code work fine but every time I run this code it is asking for camera permission even if grant the permission.

So it keeps asking per request? I haven’t found any documentation on how long a permission, once granted, is considered valid. Can’t you just cache the user’s decision?

@jnschulze  I tried to cache but It didn't work, when I allow the permission request  for first time and try to open camera it is not opening unless I ask the permission again.

@CodingWithTashi Have you found a solution?

This issue can be fixed within the application it self. In my case, I have fixed it within my packages. If you are interested only with permission, do check this out this PR

authors: CodingWithTashi alnaum jnschulze

repo: jnschulze/flutter-webview-windows


text:
feature difficulty check

#12
isValid() now checks also for difficulty and prints if and where the difficulty doesn't match.

Ja, so kann man das machen! Ist dann die "Quick Fix" Variante :)


text:
🛑 eWins is down

In 64bec19, eWins (https://www.ewins.com.ar/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: eWins is back up in 6d2b237.

repo: joacoserra/statusPage


text:
🛑 Security & Telecom Systems is down

In 1629ca2, Security & Telecom Systems (https://security-telecom.ro) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Security & Telecom Systems is back up in 32e29d5 after 6 minutes.


text:
initAllocDMAMem: mbox open failed(No such device or address)

The PIGPIO library can't be initialised, the error is the one in the title.
System info :
cat /etc/os-release : NAME="openSUSE MicroOS"
# VERSION="20210507"
uname -r : 5.12.0-2-default
cat /proc/cpuinfo :
processor	: 0
BogoMIPS	: 38.40
Features	: fp asimd evtstrm crc32 cpuid
CPU implementer	: 0x41
CPU architecture: 8
CPU variant	: 0x0
CPU part	: 0xd03
CPU revision	: 4
processor	: 1
BogoMIPS	: 38.40
Features	: fp asimd evtstrm crc32 cpuid
CPU implementer	: 0x41
CPU architecture: 8
CPU variant	: 0x0
CPU part	: 0xd03
CPU revision	: 4
processor	: 2
BogoMIPS	: 38.40
Features	: fp asimd evtstrm crc32 cpuid
CPU implementer	: 0x41
CPU architecture: 8
CPU variant	: 0x0
CPU part	: 0xd03
CPU revision	: 4
processor	: 3
BogoMIPS	: 38.40
Features	: fp asimd evtstrm crc32 cpuid
CPU implementer	: 0x41
CPU architecture: 8
CPU variant	: 0x0
CPU part	: 0xd03
CPU revision	: 4
What should I do?

Is this the same as https://github.com/joan2937/pigpio/issues/461

Closing due to inactivity.

authors: guymcswain jcerato joan2937

license: unlicense


text:
Overly opinionated git config?

I don't disagree with the show animal git config, but it might be best to make it optional and at minimum document what is happening.
The manipulation of strap though seems fine, BTW. Are they tightly (strap-hack and git config) coupled?

Strap uses HTTPS auth by default, which annoys me because every token is one-source-use only, requiring a new token per laptop. I much prefer just bringing my ssh keys along with me.

repo: jodylent/project-show-animal


text:
Change the the entity_type kwarg to tablename

Our API has 2 public methods, one of which is register_entity. This currently requires a kwarg of entity_type to donate the table name, which is confusing to the user.
Change register_entity method's kwarg of entity_type to table_name. This may result in updating other parts of the codebase, docs, README, blog and tests.

Or should we change it to entity_name since it's more relevant to the context. We are also using register_entity  as function name.

Yea that’s a valid observation but for the work involved I’m not sure it’s worth the effort at the moment to change just a prefix of an existing kwarg. I have had some complaints from devs looking at this library and not understanding what “entity” represents... maybe we should change the method name and therefore also change the Kwangju to table_name then to make more sense?
Sent with GitHawk

yes at first I also couldn't understood what entity represents here. But since we are using Flask models then isn't it better if we change the names to model_name and register_model?

Ok, thats much better. Let's go with model_name as the kwarg and register_model as the method name.
I also need to update the other public method name to  update_token - ( i don't think we should call it update_model because it's not updating the model).

@kousikmitra  Let's go with table_name as the kwarg and register_model as the method name.

@joegasewicz can we derive the table name from the model name? Then the user can just pass the model_name to the function and we can get the table_name from there. Since when people use Models they don't give much attention to table_name(own perspective)

The problem is, is that we have to handle multiple models , so we have to know which model the user wants to append to Flask's global context.
app.config["ENTITY_MODELS"] = [ UserModel, TeacherModel, ...etc ]

The problem is, is that we have to handle multiple models , so we have to know which model the user wants to append to Flask's global context.
app.config["ENTITY_MODELS"] = [ UserModel, TeacherModel, ...etc ]

Okay I will look into the code and will revert back to you. or we will go with the table_name approach for now.

No problem @kousikmitra
The win is that you don't need to import your models for your - User for example , into every module that  calls the register_entity method.
The Loose is that it could confuse devs using this library..
For me personally, I'm always aware of the table name as i normally create the tables by hand to understand the data. But, i know some developers might only ever use the ORM & not be too familiar with whats inside the database, even if that's not a good habit lol
We could pass in the Model then directly to the register_entity but then every time we need to return a new token then we also need to pass in that Model class.

In fact we only need 1 method as we are only every updating from the model..

@kousikmitra Im going to close this issue and open a few new ones tomorrow to carry out this work, I have to go out now to play some music but will be back in the morning UK time, feel free to open an issue and start working on it, if we can split this work up as much as possible as it's non trivial.
thanks
Joe

@kousikmitra I've reopened & updated this issue if you still want to work on it.

authors: joegasewicz kousikmitra

repo: joegasewicz/Flask-JWT-Router


text:
Remove unused packages

There a few unused packages , such as toolz etc that need removing from the project

Resolved

repo: joegasewicz/pytask-io


text:
Awesome Plug 👍

Hey @joekrill,
I love your tree view plug. Just wanted to let you know that I just added this to my https://github.com/gorootde/silverbullet-collection.
Cheers!

Awesome, glad to hear it, thanks! I discovered your collection the other day, actually - it's super helpful!

authors: gorootde joekrill

repo: joekrill/silverbullet-treeview


text:
Check: Add generic check which warns about weird unicode characters

fffd was all over some queries from an imported spreadsheet.
We should be able to see this before running the query

https://github.com/joereynolds/gauxilium/commit/fe4ebd885a8bad95889ba19acac203699f5fddcf
See https://github.com/joereynolds/gauxilium/blob/typescript/src/checker/Generic_OddCodePoint.ts

repo: joereynolds/gauxilium


text:
[ruby] Enable ImplicitRequirePass if zeitwerk is Detected

Uses Gemsfile.lock which is parsed (if present) in the DependencyPass to determine if implicit imports are to be enabled.

Seems there are additional semantics I can follow to help hone this down: https://github.com/fxn/zeitwerk?tab=readme-ov-file#file-structure

repo: joernio/joern


text:
Demon Hunter Metamorphosis

Missing buff info from both Unit Frames and Aura area near the mini-map.

Duplicate of #39 - I'll work this one out soon. Need to add in lots of bits from DH as SVUI is really pre-Legion :)

Brilliant :)

authors: Mazgrael joev

repo: joev/SVUI-Temp


text:
How to map the volume and brightness keys in jwm?

How can I map the volume and brightness keys to jwm?
Edit this works:
    <Key key="XF86MonBrightnessUp">exec:{command}</Key>
    <Key key="XF86MonBrightnessDown">exec:{command}</Key>
    <Key key="XF86AudioRaiseVolume">exec:amixer -q sset Master,0 5+</Key>
    <Key key="XF86AudioLowerVolume">exec:amixer -q sset Master,0 5-</Key>
    <key key="XF86AudioMute">exec:amixer -q sset Master,0 toggle</Key>

Mute works! I guess this is the way to do, just that my machine is not working correctly?

https://wiki.archlinux.org/index.php/Backlight

Hmmm for some reason xbacklight is not working. So might need to directly. Thanks.

Here are my scripts:
Volume Down
Volume Up
Mute/Toggle
Microphone Mute
Brightness Up/Down/Reset (or gamma)
This is run as
torios-gamma up
torios-gamma down
torios-gamma
This uses xbacklight if it exists, and works, OR xgamma if xbacklight isn't installed or doesn't support your monitor
Feel free to modify these to your own use in anyway you choose.

Thank You. I will check your scripts.

authors: Israel- roandbox varmanishant

repo: joewing/jwm


text:
Docker DNS access

Because the docker container does not have access to the host DNS I think you have to add the --dns=8.88.8.8 option, otherwise your email server address won't resolve.
So, instead of
docker run -ti -v ./my-config:/config -v ./my-data:/data -ti ghcr.io/joeyates/imap-backup:latest
imap-backup setup -c /config/imap-backup.json
You need to run
docker run --dns=8.8.8.8 -ti -v ./my-config:/config -v ./my-data:/data -ti ghcr.io/joeyates/imap-backup:latest
imap-backup setup -c /config/imap-backup.json
Of course you can replace 8.8.8.8 with any DNS server that can resolve domain names.

Hello @airdogvan
Thanks for opening this issue.
I've just tried to run the backup of a GMail account without the additional DNS setting, and it worked.
I then ran the following:
$ docker run --pull always --rm -it ghcr.io/joeyates/imap-backup:latest ping imap.gmail.com

This is the output:
latest: Pulling from joeyates/imap-backup
Digest: sha256:ac02c158182fceb22d03437e8d013d6201b024a2c66c1dc842f9ecf6616f6a02
Status: Image is up to date for ghcr.io/joeyates/imap-backup:latest
PING imap.gmail.com (108.177.96.109): 56 data bytes
64 bytes from 108.177.96.109: seq=0 ttl=50 time=75.996 ms
64 bytes from 108.177.96.109: seq=1 ttl=50 time=74.505 ms

Could you do the same with your setup and your IMAP server(s)?

tried it with gmail and it works (is the IP hard coded in the image?)
but doesn't if I try my server.
If you want to see how it works try:
docker run --pull always --rm -it ghcr.io/joeyates/imap-backup:latest ping imap.mail.yahoo.com
that should return:
ping: bad address 'imap.mail.yahoo.com'
Your container needs some way to resolve addresses and without access to a DNS server that's always going to be a problem...

I read a very informative post about Docker DNS, and learned that Docker containers' DNS resolution depends very much on the host configuration: nameservers are copied from the host into /etc/resolv.conf.
Mine:
$ docker run --pull always --rm -ti ghcr.io/joeyates/imap-backup:latest cat /etc/resolv.conf
...
nameserver 192.168.0.2
nameserver 8.8.8.8

If the host does not supply nameservers, Docker uses Google's 8.8.8.8 and 8.8.4.4.
So, DNS resolution for imap.mail.yahoo.com will fail if the host supplies 2 nameservers that are not reachable from the container.
I've added Google's main nameserver to the examples in the README, as suggested. Thanks!

authors: airdogvan joeyates

repo: joeyates/imap-backup


text:
No output

hi i tested your code but no error comming out and no output

This could happen if there are no users connected to the VPN.
Set $debug = 1 to get more details of what is happening

authors: jofrep nizammufid

repo: jofrep/scripts


text:
cross native and wasm, ice trickle and data channel creation

This is an attempt to get cross data communication between native and WASM WebRTC, to address https://github.com/johanhelsing/matchbox/issues/47
The screenshot shows our own app using matchbox, 2 chrome tabs, 1 firefox tab, 2 desktop (native), all communicating with each other. We also tested order of launching and making sure no matter who offers or accepts it still connects. But this is all pretty tricky and might still have some bugs.

I did some further testing, and unfortunately chrome-to-chrome connections on the same machine works on the main branch, but not with this one :/

Can you provide more info on your setup and what you tried? I was able, and have been, testing mostly with chrome, and works as expected. Maybe there is a corner case I haven't seen.
Box game:

Our app with 3 chrome clients:

Really excited to get this one in and start using it :)
Great work!

authors: johanhelsing rozgo

repo: johanhelsing/matchbox


text:
the library still can't support bower

Hi all,
I have been using this library for a long time, and it works great for me, thanks all of you for the contribution.
I now moving my project to use the bower to manage dependencies.
However, this library seems still can't support bower, I defined the dependencies as follows in my project:
"dependencies": {
"node-uuid": "1.4.2",
"blueimp-file-upload": "9.9.3",
"jquery.filedownload" : "1.4.1"
},
The error below was shown when I ran 'bower install'
bower jquery.filedownload#1.4.1 ENOTFOUND Package jquery.filedownload not found
I changed the name to 'jquery-file-download', the bower was able to find the package, but found no tag for the version. Below is the output.
bower jquery-file-download#1.4.1 not-cached git://github.com/johnculviner/jquery.fileDownload.git#1.4.1
bower jquery-file-download#1.4.1 resolve git://github.com/johnculviner/jquery.fileDownload.git#1.4.1
bower jquery-file-download#1.4.1 ENORESTARGET No tag found that was able to satisfy 1.4.1
So, please create a tag for that version and change the name to jquery-file-download.
Thanks,
--Jinshui Tang

Hey, thanks! I added a version for it. Ill update the readme to say to use jquery-file-download when downloading. Thanks

authors: Jinshui johnculviner


text:
SourceChooser work incorrect

I've test the SourceChooser on HTML5 and Flash too. For example, I add two source with 480p and 720p of quality, when play, I watch video of 480p until 5 minutes, then change source to 720p --> player was load at the begining, not from 5 minutes. Anyone face to this problem?
Anyway, I've a question about HTML5 and Flash, when I press pause button, I saw that HTML5 stop the streaming progress but Flash keep streaming video even pause. How to make the HTML5 keep streaming when pause like Flash?
Thank you!

I have this problem also, using sourcechooser plugin.
this line has a problem, line 59 :
"player.addSourceButton(src.src, src.title, src.type, media.src == src.src);"
the media "src" can't be accessed on chrome and firefox (at least) !: is null...:(

@hxdev Closing old issues. If you'd like to reopen this, let us know. Thanks!

authors: funkolector hxdev ron666

repo: johndyer/mediaelement


text:
Research similar extensions in the Chrome Web Store

I am considering publishing this on the Chrome Web Store, but before going through all the work I want to make sure there is nothing too similar already available.

There is already a similar and more developed extension. In fact it's also available for Firefox.

repo: johnjago/stripped-yt


text:
Where can I learn what this tool does?

I read the following on the website

Run simple in your shell to launch an interactive prompt to train you to write your own scripts.

I installed simplescripts, and ran simple and was prompted with "What do you want to do?".
I see a menu of options, including a "new" option, but there's no "training" or any other information that explains what I might do with simplescripts.

Closing this because I just saw the "Discussions" tab where a question like this actually belongs. Sorry!

repo: johnlindquist/simplescripts


text:
arib-ts2ass handling of streams with incorrect(?) timestamp info

Have a .ts of an episode of Aibo that has weird timestamp info. Subs don't display correctly though they are generated correctly. Some fix needed?

This was basically a flaw in the .ts file that brought out a timestamp reading bug in mpv and other players.
The "fix" was to ad a (greater than 24 hour!) time offset parameter for subtitle generation.
After that, works like a charm.

repo: johnoneil/arib


text:
SQL Query Request

My first pull.

This is a really great start. You used really good practices and you handled edge cases very well.

Looks good to me, Id like us to revisit it once we have promises implemented, but for now, solid route ^_^.

authors: NamespaceValentine hinyunlee

repo: johnschroeder/team-c-api


text:
Workaround: 'as:Public' not recognized by many implementations

Many implementations, e.g. Pleroma and many relays, do not recognize as:Public, but only know https://www.w3.org/ns/activitystreams#Public in to/cc for public posts. This causes public posts from Takahe being rejected or ignored.
This patches outbound json to use full uri instead of as:Public. This is more of hack than a proper implementation. Suggestions and improvements are welcomed.

The correct way to do this is to instead change the context that the JSON-LD canonicaliser uses, to remove the "as:Public" short identifer - that way the JSON-LD library will leave it expanded.

authors: alphatownsman andrewgodwin

repo: jointakahe/takahe


text:
Added a new reference

Hello, I have added a newly updated reference for the Disjoint Set. I came upon this article while looking for resources to learn DSA. This citation, in my opinion, will enhance the content of this article. Hope that my contribution will benefit other learners.

This is a similar PR to this one https://github.com/jojozhuang/jojozhuang.github.io/pull/21
This, like all other PRs that you opened are just advertisment. Same happened here: https://github.com/arsors/arsorscookie/pull/8

authors: MarcoPNS sandeepmishratech


text:
feat:add kbd support for search

added keyboard support for triggering algolia search

Lgtm! Thanks for this!


text:
undefined is not an object (evaluating ThreadManager.startThread)

i'm trying to install lib with Mostly automatic installation just running react-native link react-native-threads. I've cleaned up my app and rebuild, and:

So i can confirm that the lib has attached on Libraries folder:

But libRNThread.a is missing on Link Binary With Libraries.
So.. the command react-native link react-native-threads is missing to attach libRNThread.a on Link Binary With Libraries?

Interesting, which version of React Native are you running into this issue on?

0.52.0

I'm not sure why this would have happened, if automatic linking isn't working in your environment I recommend following the manual linking instructions

Even I also facing the same issue tried with both manual as well as an automatic linking same screen is displayed

Hey i am facing the same issue, i did automatic linking with react-native link and ThreadManager from NativeModules is not defined which is causing the ThreadManager.startThread of undefined error.
Any suggestion other than manual linking?

authors: Dhirajbhujbal Traviskn joaom182 kalwaniyash

repo: joltup/react-native-threads


text:
the sign get weird when x or y is really big

the sign just flashes abnormally when the coordinate is vert big (>=100k)

they just flash everywhere or even disappeared

the sign just flashes abnormally when the coordinate is vert big (>=100k)   they just flash everywhere or even disappeared

I remembered that @Zbx1425 have introduced about this bug. MTR is using 32-bit float on many rendering calucations. Like farlands, it may caused by the float loss.
To solve the problem, we should replace all of 32-bit float to 64-bit float. It is a huge work, so we should wait before 3.2.0.

This should be fixed in 4.0.0. Please reopen this bug if you still encounter this issue with 4.0.0, thanks!

authors: SkeletoNCY XHG78999 jonafanho

repo: jonafanho/Minecraft-Transit-Railway


text:
How can I download previous version of this lovely app.

Hi dear developers! I prefer older version. because I'm using this app with my phone's camera together. I set both to 5s intervalometer. The Phone is shooting wider photos and my nex-6 is shooting tele ones. they synced together well in 5 seconds timing mode. But in this new version there is no 5 seconds. It starts with 3,5 seconds after burst mode. Please help about this situation. Many thanks!!

Would you mind sending apk file to my e-mail address? You'll make me very happy if you can..
ahmetkonukseven1989@gmail.com

Hello Ahmet,
all older Versions can be downloaded here: https://github.com/jonasjuffinger/TimeLapse/releases
But does turning the dial also not allow to set 5s? This should work.

I didn't try turning the dial on las version but TimeLapse 1.2.0 works like a charm for me. :) many many thanks for this app and answering my question..

I didn't try turning the dial on last version but TimeLapse 1.2.0 works
like a charm for me. :) many many thanks for this app and answering my
question.. 🙏
Jonas Juffinger notifications@github.com, 3 Oca 2020 Cum, 11:53 tarihinde
şunu yazdı:

Hello Ahmet,
all older Versions can be downloaded here:
https://github.com/jonasjuffinger/TimeLapse/releases
But does turning the dial also not allow to set 5s? This should work.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/jonasjuffinger/TimeLapse/issues/28?email_source=notifications&email_token=AOFSDCXC63GQEUKT2V2D7Y3Q334H3A5CNFSM4KCEXXQKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEIAT6UY#issuecomment-570507091,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AOFSDCSRJVTXGGSSVUAVKRTQ334H3ANCNFSM4KCEXXQA
.

--

repo: jonasjuffinger/TimeLapse


text:
Get.updateLocale not working as expected.

I am using your fantastic GetX package to update a flutter starter project I am rebuilding.  I plan to do a write up about your package once it is complete.
I am having one small trouble.  I can't seem to get  Get.updateLocale to update the language.  I must refresh the app for the change to show.  When I use the Get.changeThemeMode to change the theme this works immediately as expected.
Here is the code I am currently working on.  I have tried using Get.forceAppUpdate() but that doesn't work either.  I noticed in your root_controller.dart you seem to handle updating the theme in a different way from how you do the locale update.  Would adding a locale that updates like the theme work?
Thanks for any pointers.  You have a really fantastic package and I think it is the missing link for making flutter development much easier.  You solve almost all of the pain points I have noticed in my own development with flutter.
//language dropdown.
  languageListTile(BuildContext context) {
    final labels = AppLocalizations.of(context);
    return GetBuilder<LanguageController>(
      builder: (controller) => ListTile(
        title: Text(labels.settings.language),
        trailing: DropdownPicker(
          menuOptions: Globals.languageOptions,
          selectedOption: controller.currentLanguage,
          onChanged: (value) async {
            await controller.updateLanguage(value);
            Get.forceAppUpdate();
          },
        ),
      ),
    );
  }

// updates the language stored
  Future<void> updateLanguage(String value) async {
    language.value = value;
    Get.updateLocale(getLocale);
    update();
    await store.write('language', value);
  }

// gets the language locale app is set to
  Locale get getLocale {
    if ((currentLanguageStore.value == '') ||
        (currentLanguageStore.value == null)) {
      language.value = Globals.defaultLanguage;
      updateLanguage(Globals.defaultLanguage);
    }
    // gets the default language key (from the translation language system)
    Locale _updatedLocal = AppLocalizations.languages.keys.first;
    // looks for matching language key stored and sets to it
    AppLocalizations.languages.keys.forEach((locale) {
      if (locale.languageCode == currentLanguage) {
        _updatedLocal = locale;
      }
    });
    print(_updatedLocal);
    return _updatedLocal;
  }

//main.dart
import 'package:flutter/material.dart';
import 'package:firebase_analytics/firebase_analytics.dart';
import 'package:firebase_analytics/observer.dart';
import 'package:flutter_localizations/flutter_localizations.dart';
import 'localizations.dart';
import 'package:flutter_starter/services/services.dart';
import 'package:flutter_starter/constants/constants.dart';
import 'package:get/get.dart';
import 'package:get_storage/get_storage.dart';

void main() async {
  WidgetsFlutterBinding.ensureInitialized();
  Get.put<AuthController>(AuthController());
  Get.put<ThemeController>(ThemeController());
  Get.put<LanguageController>(LanguageController());
  await GetStorage.init();
  runApp(App());
}

class App extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    ThemeController.to.getThemeModeFromStore();
    return GetMaterialApp(
      //begin language translation stuff //https://github.com/aloisdeniel/flutter_sheet_localization
      locale: LanguageController.to.getLocale, // <- Current locale
      localizationsDelegates: [
        const AppLocalizationsDelegate(), // <- Your custom delegate
        GlobalMaterialLocalizations.delegate,
        GlobalWidgetsLocalizations.delegate,
      ],
      supportedLocales:
          AppLocalizations.languages.keys.toList(), // <- Supported locales
      //end language translation stuff
      navigatorObservers: [
        FirebaseAnalyticsObserver(analytics: FirebaseAnalytics()),
      ],
      debugShowCheckedModeBanner: false,
      defaultTransition: Transition.rightToLeft,
      theme: AppThemes.lightTheme,
      darkTheme: AppThemes.darkTheme,
      themeMode: ThemeMode.system,
      initialRoute: "/",
      getPages: AppRoutes.routes,
    );
  }
}

Figured it out... I forgot to wrap my locale in main.dart with a GetBuilder and I had something out of order in my updateLanguage method.

please share updated code,i'm also facing same issue. @delay

https://github.com/delay/flutter_starter/blob/master/lib/main.dart See this code...

Using Same but it only Reflect on App After restart App. @delay

repo: jonataslaw/getx


text:
boolean operators

Add boolean AND and OR:
let x = true && false; //false
let y = true || false; //true

Has already been implemented

repo: jonathandturner/rhai


text:
ConEmu configuration

I am trying to get ptIPython to work with ConEmu 150813g stable, but I get a lot of junk characters. I am on Windows 10 Pro.
ptpython works fine in plain cmd.exe (without ConEmu), but from within ConEmu I see garbage characters when there should be a separator. If I detach the console there are still garbage characters.
I have chcp set to 65001 and I have done the tests for utf-8 and special characters (in ConEmu).

I got the same problem when I installed ptPython and took me quite a while to figure out how to make it work. I played with the ConEmu configuration a lot until it worked. I can't recall exactly what worked, but attached the two relevant sections for your reference. Hope this fixes it for you!

Hi, thanks - great to hear that it is possible. I am on ConEmu 160710 and I am also using clink (not sure if that is relevant). But I am not able to get it to work using the information that you have given. Would you mind showing your "main" tab - or even better - export your xml configuration?

I posted a question on the ConEmu mailing list about this: https://groups.google.com/forum/#!topic/conemu_ml/XbglGFWKg24 and the response from the creator of ConEmu was:

That's definitely a problem with ptpyton and it's not repeated to ConEmu. Looks like ptpython does not support utf-8 encoding. https://conemu.github.io/en/ThirdPartyProblems.html

authors: fraxen sebasmonia

repo: jonathanslenders/ptpython


text:
🛑 HU - Hungary is down

In e157816, HU - Hungary (https://www.skyshowtime.com/hu/help/) was down:

HTTP code: 404
Response time: 1053 ms

Resolved: HU - Hungary is back up in 5dc2a82 after 18 minutes.

repo: jonesyriffic/gsp-sst


text:
🛑 MK - Macedonia is down

In 9995df2, MK - Macedonia (https://www.skyshowtime.com/mk/help/) was down:

HTTP code: 404
Response time: 878 ms

Resolved: MK - Macedonia is back up in 90d9fdb after 8 minutes.


text:
Configure Error

I got this error when executing "npm install":
> node-expat@2.0.0 install /home/renodesper/wp2ghost-master/node_modules/xml-stream/node_modules/node-expat
> node-gyp rebuild

gyp: /home/renodesper/.node-gyp/0.10.26/common.gypi not found (cwd: /home/renodesper/wp2ghost-master/node_modules/xml-stream/node_modules/node-expat) while reading includes of binding.gyp
gyp ERR! configure error
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onCpExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:337:16)
gyp ERR! stack     at ChildProcess.EventEmitter.emit (events.js:98:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:797:12)
gyp ERR! System Linux 3.13.6-1-ARCH
gyp ERR! command "node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/renodesper/wp2ghost-master/node_modules/xml-stream/node_modules/node-expat
gyp ERR! node -v v0.10.26
gyp ERR! node-gyp -v v0.12.2
gyp ERR! not ok
npm ERR! Error: ENOENT, lstat '/home/renodesper/wp2ghost-master/node_modules/xml-stream/node_modules/iconv/deps/libiconv/libcharset/tools/glibc-2.2-XF86-3.3.6'
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR!     <http://github.com/npm/npm/issues>

npm ERR! System Linux 3.13.6-1-ARCH
npm ERR! command "/usr/bin/node" "/usr/bin/npm" "install"
npm ERR! cwd /home/renodesper/wp2ghost-master
npm ERR! node -v v0.10.26
npm ERR! npm -v 1.4.3
npm ERR! path /home/renodesper/wp2ghost-master/node_modules/xml-stream/node_modules/iconv/deps/libiconv/libcharset/tools/glibc-2.2-XF86-3.3.6
npm ERR! fstream_path /home/renodesper/wp2ghost-master/node_modules/xml-stream/node_modules/iconv/deps/libiconv/libcharset/tools/glibc-2.2-XF86-3.3.6
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack /usr/lib/node_modules/npm/node_modules/fstream/lib/writer.js:284:26
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm ERR! node-expat@2.0.0 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the node-expat@2.0.0 install script.
npm ERR! This is most likely a problem with the node-expat package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-gyp rebuild
npm ERR! You can get their info via:
npm ERR!     npm owner ls node-expat
npm ERR! There is likely additional logging output above.

npm ERR! System Linux 3.13.6-1-ARCH
npm ERR! command "/usr/bin/node" "/usr/bin/npm" "install"
npm ERR! cwd /home/renodesper/wp2ghost-master
npm ERR! node -v v0.10.26
npm ERR! npm -v 1.4.3
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     /home/renodesper/wp2ghost-master/npm-debug.log
npm ERR! not ok code 0

I had to set the default python for node to python2 for npm install to work (on Arch x64 box).
npm config set python /usr/bin/python2

authors: codito renodesper


text:
Add a 'seconds' value to show playlist

I'd like to use a single keybind to go back or forth in the playlist and show the playlist, but have the playlist hide itself after a few seconds.

https://github.com/jonniek/mpv-playlistmanager/blob/f171a9efbad163889c306a5fe2029231b7374095/playlistmanager.conf#L41-L42
Set this as no
https://github.com/jonniek/mpv-playlistmanager/blob/f171a9efbad163889c306a5fe2029231b7374095/playlistmanager.conf#L52-L53
Set this as your preferred timeout in seconds
Optionally you can edit the settings in the lua file inside the settings variable.
If the above didn't answer your question do you perhaps need to show the playlist independent of it's default behavior? At the moment that is not possible but if you need it I can add that feature as a script-message.

Thanks, that worked. What's odd is that no matter what number I put as the timeout, it always takes about 10 seconds to disappear. This isn't a huge issue, but it's weird.

I just fixed some bugs with the playlist visibility when selecting a file and some timer tweaks. Set the default timeout to 5 seconds as well.
I'm not sure why it takes 10 seconds to disappear for you. If you edited the lua directly are you sure you don't have a playlistmanager.conf file overriding the value? Other than that I'm not sure what could cause this behavior.

I modified the .conf file following your instructions.If I want to update the script, would updating the .lua be enough, so that I can keep the .conf file as I configured it?

Yes just replacing the lua is enough.
If the conf settings are not overriding the lua then make sure it's in the correct directory. The directory shoud be named lua-settings and be placed in the same directory as the script directory like this:
lua-settings
scripts
watch-later
mpv.conf
input.conf

Ah, it was the directories, I didn't realize I needed the lua-settings folder and had both files in /scripts
Seems to work fine now, thank you.

authors: indeedwatson jonniek

repo: jonniek/mpv-playlistmanager

license: Unlicense


text:
Search/filter

I don't know if it's possible, but it would be good to be able to search/filter terms in playlist.

Currently not possible since there is no list of playlists.
Good usecase to consider for a playlist file extension.

authors: jonniek pintassilgo


text:
Use Array.isArray instead of isarray package

The well known isarray package is now deprecated due that the support for Array.isArray is now in all supported browsers.
This PR removes isarray and uses Array.isArray instead.

@jonschlinkert Can you verify and publish?

It's ponyfill in anyway. I don't know why this is needed.
https://github.com/juliangruber/isarray/blob/master/index.js#L3

@tunnckoCore Its a refactor. Its needed to fullfill the philosophy of "no unecessary code". Every project will still have to drag in isarray package which adds a small addition of complexity and code.
It will be cleaner, more readable and maintainable to not be linked to a package which is yielding no value what so ever at this point (due to the polyfill you mention).

I'm fine with this change. (I think @tunnckoCore was agreeing too, bit it's not clear)
I'm fighting off a bad cold, I'll try to get to this ASAP

Partially. I'm fine that too. I also don't support and don't like Microsoft and IE, but I'm just against this aggressive pushing forward like Sindre and company doing.
I just don't see value. And don't think it adds complexity. It is just few bytes and worth nothing.

due to the polyfill you mention

It's a ponyfill, not polyfill, there's a diff.

I'm fighting off a bad cold

Noticed that you don't have activity recently. Wish you to be up and running soon :D

I agree that being overly aggressive is unnecessary, but when even Microsoft sets a limit on versioning I think we can rely on that.
About the complexity, I know that this package wont alone add more complexity, but if everyone had this mindset it would be a real problem in these hyper modular times.
Sorry, misunderstood your ponyfill comment.
Anyway, great with a healthy discussion 😄

@jonschlinkert rdy for merge and publish?

thanks for the reminder, @doowb or I will try to do this today

thanks @magnudae
published as 3.0.0

authors: doowb jonschlinkert magnudae tunnckoCore

repo: jonschlinkert/isobject


text:
GraphQL support

Well, thanks for an amazing package! I think this can be really useful for quickly documenting parts of APIs, like Github's API v4. Let me know if there is anything still left to do!
Cheers,
Cedric

thanks!

authors: byCedric jonschlinkert

repo: jonschlinkert/sublime-markdown-extended


text:
Error after installation - RuntimeException in NativeFileSessionHandler

Hi,
I just installed CRUD Admin Generator.
I installed it on a subdomain so no need for vhost changes I guess.
I have an .htaccess file that redirects to web/index.php.
But at that point I am stuck with this error message:
RuntimeException in NativeFileSessionHandler.php line 52:
Session Storage was not able to create directory "/var/lib/php5"

I already checked the php.ini if session.gc_probability is set to 0. All good there.
(from: http://stackoverflow.com/questions/2904862/issues-with-php-5-3-and-sessions-folder)
My system:
Ubuntu server 12.04, 5.3.10-1ubuntu3.21
Thanks for your help!

Greetings! I hope its not to late!
I had the exact same issue with you and it puzzled me for a good 6 hours . I have a Debian 6 OS running apache2 . In var/www/test_site/admin/ i ve installed cruid admin generator based on the instructions i found in the official page . Then the error came. I ve fiddled around in php.ini for a few hours , read numerous posts about garbage collectors , session handlers and nothing solved my problem. Then i read a tiny post somewhere that it might not be a php specific problem but a webserver one . I immediately did the following :
inside the
/my_site/admin/vendor/symfony/http-foundation/Session/Storage/Handler/NativeFileSessionHandler.php
i added the line : $baseDir = /var/www/my_site/sessions and i added a directory named sessions in /var/www/my_site. Everything worked perfectly after that. I guess the problem was created because the session_handler couldnt locate an absolute path because it was being called from a webserver and it can only read paths relevant and inside to your webserver root dir (thus putting /var/www/my_site) worked...

The problem likely occurs because open_basedir restriction is in effect, as by default /var/lib/php5 is not within the allowed paths. Using php_admin_value open_basedir none on the Apache VirtualHosts config (or its equivalent in .htaccess), as per the installation instructions example, might workaround problem as it did for me.
Also, note that on Ubuntu 12.04, and possibly other releases and distros, /var/lib/php5 is writable but not readable, which might help finding a proper fix to this issue.

authors: MestreLion blattmann savarel

repo: jonseg/crud-admin-generator


text:
Support login on iOS

As a first step to implement the iOS bookmarks, we need to allow the user to log in to the App using Google and Apple (mandatory)

Hello! Are there any updates on this?

authors: brunohensel egeakman

repo: joreilly/Confetti


text:
space_travelers_hub kanban board creation

Project link: https://github.com/jorgeabrahan/space_travelers_hub/projects/1
Team members:
1- Jorge Abrahan
2- Nelson Araujo

Pull Request Approved ✅ 🎊 🎉
Hello TEAM! 👋
Things to Appreciate

[ ] Correct Flow ✅
[ ] Clean Code 👍
[ ] No Linter Errors 🔥
[ ] Descriptive Pull Request and Summary 👌

Your project is complete!  There is nothing else to say other than it's time to merge it.
Congratulations!!! 🎉 🥳 👏 🙌 🎊 ☑

Cheers and Happy coding!👏👏👏
Feel free to leave any questions or comments in the PR thread if something is not 100% clear.
Please, remember to tag me in your question so I can receive the notification.

As described in the Code reviews limits policy  you have a limited number of reviews per project (check the exact number in your Dashboard). If you think that the code review was not fair, you can request a second opinion using this form.

authors: jorgeabrahan zainsadaqat


text:
Se necesita una forma sencilla de manejar las llaves ssh de ansible

Tenemos un script para generar las llaves, pero hace falta una forma más sencilla para desplegar y probar las llaves en todos los servidoers administradores por ansible.

Se crea el PR con la solución: https://github.com/jorgearma1982/infra-home/pull/138


text:
Claude Response Error

Describe the bug
问题描述
A clear and concise description of what the bug is.
When claude api is requested, it shows "CORS requests must set 'anthropic-dangerous-direct-browser-access' header"
To Reproduce
如何复现
Steps to reproduce the behavior:

Use claude
Ask a question
Error response returns

Expected behavior
期望行为
Normal response should return
Screenshots
截图说明
If applicable, add screenshots to help explain your problem.

Please complete the following information):
请补全以下内容

OS: [e.g. Windows]
Browser: [e.g. chrome, safari]
Extension Version: [e.g. v2.0.2]

Additional context
其他
Add any other context about the problem here.

Same here.

OS: Window 11 22H2
Browser: Firefox 131.0.2
Extension Version: 2.5.8

Same here: It happens when I try to get summaries from YouTube videos.
OS: Window 11 24H2
Browser: Chrome 131.0.6768.4 (Official Build) dev (64-bit)
Extension Version: 2.5.8

Seems like this should be an easy fix. Here's some context that will help anyone who has time to dedicate to this.

authors: MontDawgg Taewan-P cdreeves mlazzarotto

repo: josStorer/chatGPTBox


text:
Add types file

Add a types file so we can use this library with typescript. Perhaps port the current code over to typescript and then have tsc generate the types file for us.

Hey, I created a PR for the move to TypeScript :)

@joshghent hey is this still a valid issue?

authors: joshghent kristapsstrals parga

repo: joshghent/deepClone


text:
Add repeats to tasks

Currently the plugin doesn't support adding repeats; this will be added soon.

Hi @joshuatazrein
You really don’t wanna be writing your own code for this. There are so many edge cases and problem cases.
if you wanna work with me to expose the Tasks recurrence code in a way that can be reused by other plugins, please send me an email (see profile here) to set up a session.
I have been looking for a plugin author to work with on this for some time.

Here is an example issue that needs to be dealt with.
https://github.com/obsidian-tasks-group/obsidian-tasks/issues/1087

@claremacrae This is definitely an important issue—thanks for mentioning it! Does Tasks currently expose any code that can be used by other plugins, similar to how Dataview adds a window.dv object? This would be a very useful feature for the Obsidian ecosystem, and I would be interested in helping with this.
What library is used for repeats? Would a simple DateTime.plus({months: x}) with Luxon do the trick? Not sure which library is used by this. Task repeats have always been something difficult—repeating on check vs. from scheduled date etc. I would be interested in pitching in if it's not too much of a time commitment, as I have some free time in August.

Hi @joshuatazrein, thanks for replying!

Would a simple DateTime.plus({months: x}) with Luxon do the trick

No. In case you haven't seen it, here are the docs for the variety of supported recurrence patterns in Tasks:
Recurring Tasks.
And here is the code:
https://github.com/obsidian-tasks-group/obsidian-tasks/blob/main/src/Recurrence.ts
You really, really don't want to be replicating it, I promise!
I do have some time in August. July and September are pretty much full.
Best to book a time slot sooner rather than later!

Oh, and as per the docs, the library used is rrule:
https://github.com/jakubroztocil/rrule

tasks also have an api so that you can use the tasks modal for opening/editing a task.  You might look at using that as for tasks plugin users it would be a welcome option.

encourage you to email Clare and see if she can get you an API for recurrence.  As she says, lots of weird edge cases.  And she support things like "when done" or strict (from original dates) recurrence.

encourage you to email Clare and see if she can get you an API for recurrence. As she says, lots of weird edge cases. And she support things like "when done" or strict (from original dates) recurrence.

Unfortunately the time slots I mentioned earlier have passed.... And I'm pretty much at full capacity now with pairing with other people who are making contributions to the Tasks code.
So I'm very happy to set up a slot, but it will be starting from November now...

shame.  perhaps the approach is for the developer to use the code and make it an API that he can submit back as a pull request.  he can use it in time-ruler and when the pull request is accepted can remove the code from time-ruler.  a win-win for both tasks and time-ruler.

shame. perhaps the approach is for the developer to use the code and make it an API that he can submit back as a pull request. he can use it in time-ruler and when the pull request is accepted can remove the code from time-ruler. a win-win for both tasks and time-ruler.

No, that wouldn't work. It would be too inefficient.

closed this as completed 16 hours ago

Hi @joshuatazrein, May I ask, is this really "completed" or is this "won't do"??

Added to changelog (that's where I keep processed issues)

authors: claremacrae joshuatazrein pcause

repo: joshuatazrein/obsidian-time-ruler


text:
Pull variable from Material repo and update readme info

fix #25 to add some info on how to install python and how to run the script (updated to python3)
fix #24 to add a way to access font icon variable when using SCSS. This pull the latest codepoints list (listing aliases) from material-design-icons repo and make it available to using SCSS mixin.

thanks!

repo: jossef/material-design-icons-iconfont


text:
Add devise

[ ]  Remove current_user method in ApplicationController.
[ ]   install and set up devise
[ ]  Can register a new user.
[ ]  User logs in with a combination of email and password.
[ ]  Hashed password should be stored in the database.
[ ]  Ask for confirmation of email.
[ ]  Can reset password.

@descholar-ceo Thank You


text:
Use s3 for backups

Migrated from PR #432.  See that one for a walk through of what the PR changes and why.

@magikid Issue with make db-restore but maybe I'm missing something?
./scripts/db-restore.sh: line 38: s3cmd: command not found
make: *** [db-restore] Error 1

Notes from chat:

[ ] add inputs to restore script so we can more easily restore a db from one bot/bucket to another
[ ] Rather than putting a link to the resource, add a link to the DO UI: https://cloud.digitalocean.com/spaces/lal-brain-backups?path=2024-06-12/

authors: magikid zmattingly


text:
Broken Link Anchors and Navigation for Headline Links

What happened?
Specifically, if the headline is a link, it breaks the generation of the link anchor and right side navigation.
Here is a page that reproduces it, just place it in /content/test.md so that Hugo doesn't complain about the first link:
---
date: 2022-02-11
title: Test
---

## [Test Page]({{< ref "/test" >}})

Headlines that link to another page on the blog have a messed up anchor with a "HAHA HUGO SHORTCODE" thing in them. The navigation on the right doesn't work for these.

## [Github](https://github.com/)

Links to other websites do generate an anchor, but also append the url to these anchors (might be intentional?). However the navigation on the right doesn't work, and instead links directly to the other website.

### [Smaller Github](https://github.com/)

From what I can tell, it's just the anchor name is being generated with the link included. The "HAHA HUGO SHORTCODE" turns into the appropriate link once you try typing it out in the content. Might be why the right navigation lists out URLs as their links, and then the inter blog one shows the shortcode. I assume we don't want this?

#### [Smallest Github](https://github.com/)

Or if we do want it, the navigation links on the right need to link to these anchors, not be broken or navigate to the URLs themselves.

Theme version
v2.0.4
Hugo version
v0.92.1
What browsers are you seeing the problem on?
Firefox
Relevant Hugo log output
No response

Unfortunately this is due to limitations in the TOC generation in Hugo.
With regards to the links in headings taking precedence over the anchor links, the theme only calls the default Hugo {{ .TableOfContents }} method and so there's no way to easily adjust this behaviour. Ideally these links should be stripped out of the TOC output.
See https://github.com/gohugoio/hugo/issues/7158 and https://github.com/gohugoio/hugo/issues/7557.
As for the shortcode "HAHA HUGO SHORTCODE" issue, this can be avoided by using the {{% shortcode %}} syntax which will process the shortcode before rendering the output. In your example, substitute the heading for ## [Test Page]({{% ref "/test" %}}) and this will avoid this issue, although will then still exhibit the linking behaviour described above.
See https://github.com/gohugoio/hugo/issues/6081.
In the meantime the workaround is to either not include links in headings or disable the TOC for the page where you need these links. In the future I might have to look at other ways to generate the TOC but decided that using the built in Hugo method is the cleanest for now.

Thank you for those references! I am new to Hugo so I haven't figured out some of the intricacies on how the pages are rendered yet. I'll switch my page to use the {{% shortcode %}} syntax in the headers, then at least all of my table of contents will just be links to the pages I was linking to. It's just a jump page to my other projects.
I don't think you need to reimplement a whole TOC if this built in one is working 99% correctly. I think it should be fixed upstream. But, if you do want to, feel free to re-open this issue. Regardless I am already watching the aforementioned Hugo issues too.
Thanks again!

authors: PhasecoreX jpanther

repo: jpanther/congo


text:
Add blog.ny4.dev to users

Thanks for using Congo, @Guanran928! I'll merge this change in and your site will appear on the public list when the next theme release is published.

Thanks!


text:
[Feature Request] 1.20

need 1.20 support

The latest release supports 1.20.1; #64 is being left open to track that specific 1.20.1 issue

authors: MinecraftPEayer jpenilla

repo: jpenilla/TabTPS


text:
Fedora image not working

Hello,
I am trying to get the fedora image working, but have not had any luck. I am getting the message:
ln: failed to create symbolic link '/sys/fs/cgroup/systemd/name=systemd': Operation not permitted
/usr/local/bin/wrapdocker: line 100: dockerd: command not found
Timed out trying to connect to internal docker host.

Any help would be great!
Thank you,
Trevor Flynn

Hi Trevor,
I'm sorry, I never used the fedora image, so I have no idea why it would output that :-(

repo: jpetazzo/dind


text:
Compositional Modeling Frameworks

This paper by Baez https://arxiv.org/abs/1704.02051 shows how to represent reaction networks as a category and use composition to build up more complex models as compositions of simpler models. It seems to heavily cite Fong's thesis: https://arxiv.org/pdf/1609.05382.pdf
@mehalter and I had a good conversation about building post-hoc modeling frameworks based on this kind of representation. If we can express the model in two categories. One capturing the structure of the model (the reaction network) and the other capturing the implementation details (a system of ODEs) then the functor from the structure category to the implementation category provides a method for generating code that implements a model.
"Inverting" this functor would allow us to extract from implementations the underlying model in the structure category. If we had multiple categories of implementations (ODEs, ABMs, DBNs) then we should be able to translate a model from one implementation to another by composing functors like ODE(ABM^-1(abm_code)) or DBN(ODE^-1(ode_code)).

We have working examples of compositional modeling on #223, where you can use SMC operations to build models of dynamical systems.


text:
ページ操作機能の実装

pagination.ts のようなファイル作って goNext , goPrevious ( backPrevious かも？）関数を作る
ページ操作は Nut.js で上下キーイベントを発火させてやる

Nut.js はググってでてきたやつ
あかんかった場合や、調べてもしほかによさげなのあればそっちでも


text:
🛑 Civentichem is down

In f710a98, Civentichem (civentichem.com) was down:

HTTP code: 503
Response time: 396 ms

Resolved: Civentichem is back up in 8493934 after 7 minutes.


text:
🛑 Dynpro is down

In b74a329, Dynpro (https://dynpro.in) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Dynpro is back up in e1471d1 after 7 minutes.


text:
🛑 Launch Morrisville is down

In 2600b26, Launch Morrisville (https://LaunchMorrisville.org) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Launch Morrisville is back up in dd24587 after 10 minutes.


text:
'coroutine' object has no attribute 'pop' if copy/paste files in JupyterLab file browser

Describe the bug
If jupyterfs is installed copying a file in JLab's file browser, then pasting it results in a message "Paste Error, unknown error". Logs show 'coroutine' object has no attribute 'pop' (details below). Seems to be closely related to #179. Pasted file does not appear. This behavior is observed in JLab's standard file browser as well as in jupyterfs' file browsers.
To Reproduce
Steps to reproduce the behavior:

Install JupyterLab and jupyterfs and add some jupyterfs resource (osfs://~for instance).
Right-click a file in one of the file browsers (standard or jupyterfs), then 'Copy'.
Paste the file in the same file browser (right-click, then 'Paste').
Error message appears, but not the pasted file.

Expected behavior
Copy/Paste works as intended.
Desktop (please complete the following information):

OS: Debian 12 (Bookworm)
Browser: Firefox 102.14.0esr
JupyterLab 4.0.7
jupyterfs 0.4.0

Log output
[I 2023-11-05 05:26:37.285 ServerApp] Copying c6ae85f5:test.txt to /c6ae85f5:test
[E 2023-11-05 05:26:37.285 ServerApp] Uncaught exception POST /user/u3/api/contents/c6ae85f5%3Atest?1699158397267 (::ffff:10.0.2.100)
    HTTPServerRequest(protocol='http', host='192.168.178.28:8000', method='POST', uri='/user/u3/api/contents/c6ae85f5%3Atest?1699158397267', version='HTTP/1.1', remote_ip='::ffff:10.0.2.100')
    Traceback (most recent call last):
      File "/opt/conda/envs/jhub/lib/python3.11/site-packages/tornado/web.py", line 1786, in _execute
        result = await result
                 ^^^^^^^^^^^^
      File "/opt/conda/envs/jhub/lib/python3.11/site-packages/jupyter_server/services/contents/handlers.py", line 225, in post
        await self._copy(copy_from, path)
      File "/opt/conda/envs/jhub/lib/python3.11/site-packages/jupyter_server/services/contents/handlers.py", line 163, in _copy
        model = await ensure_async(self.contents_manager.copy(copy_from, copy_to))
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/opt/conda/envs/jhub/lib/python3.11/site-packages/jupyter_core/utils/__init__.py", line 189, in ensure_async
        result = await obj
                 ^^^^^^^^^
      File "/opt/conda/envs/jhub/lib/python3.11/site-packages/jupyterfs/metamanager.py", line 174, in copy
        model.pop("path", None)
        ^^^^^^^^^
    AttributeError: 'coroutine' object has no attribute 'pop'
[W 2023-11-05 05:26:37.290 ServerApp] wrote error: 'Unhandled error'
    Traceback (most recent call last):
      File "/opt/conda/envs/jhub/lib/python3.11/site-packages/tornado/web.py", line 1786, in _execute
        result = await result
                 ^^^^^^^^^^^^
      File "/opt/conda/envs/jhub/lib/python3.11/site-packages/jupyter_server/services/contents/handlers.py", line 225, in post
        await self._copy(copy_from, path)
      File "/opt/conda/envs/jhub/lib/python3.11/site-packages/jupyter_server/services/contents/handlers.py", line 163, in _copy
        model = await ensure_async(self.contents_manager.copy(copy_from, copy_to))
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/opt/conda/envs/jhub/lib/python3.11/site-packages/jupyter_core/utils/__init__.py", line 189, in ensure_async
        result = await obj
                 ^^^^^^^^^
      File "/opt/conda/envs/jhub/lib/python3.11/site-packages/jupyterfs/metamanager.py", line 174, in copy
        model.pop("path", None)
        ^^^^^^^^^
    AttributeError: 'coroutine' object has no attribute 'pop'
[E 2023-11-05 05:26:37.292 ServerApp] {
      "X-Forwarded-Host": "192.168.178.28:8000",
      "X-Forwarded-Proto": "http",
      "X-Forwarded-Port": "8000",
      "X-Forwarded-For": "::ffff:10.0.2.100",
      "Cache-Control": "no-cache",
      "Pragma": "no-cache",
      "Cookie": "_xsrf=[secret]; jupyterhub-user-u3=[secret]; MoodleSession=[secret]; jupyterhub-session-id=[secret]; MOODLEID1_=[secret]",
      "Connection": "keep-alive",
      "Dnt": "1",
      "Content-Length": "33",
      "Origin": "http://192.168.178.28:8000",
      "X-Xsrftoken": "2|c88916b8|350eac33f9745caf75955a1495ec032f|1698553303",
      "Authorization": "token [secret]",
      "Content-Type": "text/plain;charset=UTF-8",
      "Referer": "http://192.168.178.28:8000/user/u3/lab",
      "Accept-Encoding": "gzip, deflate",
      "Accept-Language": "en-US,en;q=0.5",
      "Accept": "*/*",
      "User-Agent": "Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0",
      "Host": "192.168.178.28:8000"
    }
[E 2023-11-05 05:26:37.293 ServerApp] 500 POST /user/u3/api/contents/c6ae85f5%3Atest?1699158397267 (u3@::ffff:10.0.2.100) 11.01ms

Duplicate

authors: jeflem timkpaine

repo: jpmorganchase/jupyter-fs


text:
List Builder Pattern

Description
Describe the pattern
Context
Describe scenarios where the pattern is most applicable
Extra information
UITK List Builder docs can be found here.
Salt List Builder pattern should consider the requirements of the markets business.
Should consider use of Tree in the Pick list.
(Add extra info)
### Tasks

Published to the site https://www.saltdesignsystem.com/salt/patterns/list-builder

repo: jpmorganchase/salt-ds


text:
Calendar component with basic features

### Features
- [ ] Basic calendar displaying days of the month.
- [ ] Supports single selection of a day.
- [ ] Indicates today's date.

### Checklist
- [ ] Density (HD, MD, LD, TD)
- [ ] Mode (Light, Dark)
- [ ] Fill (Primary, Secondary, Tertiary)
- [ ] State (Default, Hover, Selected/Active, Disabled, Read-only, Other)
- [ ] Controlled API
- [ ] UITK accessibility parity (screen reader + keyboard interactions)

### Deliverables
- [ ] Characteristics spec
- [ ] Interactions spec, where necessary
- [ ] In Code & Figma (Component + Guide)
- [ ] Supporting site documentation

Calendar remaining work:
There's some i18n issue to be solved with fixed strings

Calendar now in Labs and we are looking  for feedback before we move to Core
https://github.com/jpmorganchase/salt-ds/issues/4096


text:
Resolve pattern page inconsistencies

For the pattern pages

[x] Draft a pattern page structure in Word/Figma
[ ] Change the sidebar to separate related components/patterns
[ ] Capture token recommendations somewhere

Edited pattern pages-ensure all follow new structure

[ ] App header
[ ] Button bar
[ ] Contact details
[ ] Content status
[ ] Forms
[ ] International address input #2975
[ ] International phone number
[ ] Metric
[ ] Navigation
[ ] Preferences dialog
[ ] Analytical dashboard

Replaced by #3112

authors: joshwooding mikearildbrown


text:
Seeing "Waiting until all Tessera nodes are running..."

OS: MacOS
I am trying to run the Quorum 7nodes example.
I ran ./raft-init.sh --numNodes 1 first to only spin up one node.
I then ran ./raft-start.sh tessera --tesseraOptions "--tesseraJar /Users/fcprxbci/Documents/projects/tessera/tessera-dist/tessera-app/target/tessera-app-0.11-SNAPSHOT-app.jar"
I am continuously seeing this in the console and the tessera node never starts:
Tessera is taking a long time to start.  Look at the Tessera logs in qdata/logs/ for help diagnosing the problem.
Waiting until all Tessera nodes are running...
Node 1 is not yet listening on tm.ipc
Node 1 is not yet listening on http

In qdata/logs/tessera1.log there is only a single line:
javax/xml/bind/annotation/XmlElement

Please ensure you have the correct java version.
The required JDK for Tessera versions are documented here: https://github.com/jpmorganchase/tessera#prerequisites

Can I not have a JDK version that is newer than 11 e.g. 13?

Unfortunately, we don't support 13 at the moment. We are working on it but we don't have a release date at the moment.

Closing this ticket, as we've raised an associated ticket for the java 13 upgrade.

repo: jpmorganchase/tessera


text:
No function new_with_name for struct MediaControls

When installing from the aur (https://aur.archlinux.org/packages/psst-git/) I got the following error:
   Compiling psst-gui v0.1.0 (/home/oliver/.cache/yay/psst-git/src/psst/psst-gui)
error[E0599]: no function or associated item named `new_with_name` found for struct `MediaControls` in the current scope
  --> psst-gui/src/controller/playback.rs:87:49
   |
87 |         let mut media_controls = MediaControls::new_with_name("psst", "Psst");
   |                                                 ^^^^^^^^^^^^^ function or associated item not found in `MediaControls`

error: aborting due to previous error

For more information about this error, try `rustc --explain E0599`.
error: could not compile `psst-gui`

To learn more, run the command again with --verbose.
==> ERROR: A failure occurred in build().
    Aborting...
error making: psst-git

+1

I'm sorry for the broken build, it should be fixed in master now.

When I build from master on Linux I still get this:
error[E0599]: no function or associated item named `new_with_name` found for struct `MediaControls` in the current scope
  --> psst-gui/src/controller/playback.rs:87:49
   |
87 |         let mut media_controls = MediaControls::new_with_name("psst", "Psst");
   |                                                 ^^^^^^^^^^^^^ function or associated item not found in `MediaControls`

error: aborting due to previous error

For more information about this error, try `rustc --explain E0599`.
error: could not compile `psst-gui`

Seems like MediaControls now has only new() constructorm which accepts PlatformConfig
I hacked this together and it compiled:
#[cfg(not(target_os = "windows"))]
let hwnd = None;
#[cfg(target_os = "windows")]
let hwnd = {
    use raw_window_handle::windows::WindowsHandle;

    let handle: WindowsHandle = unimplemented!();
    Some(handle.hwnd)
};
let config = PlatformConfig {
    dbus_name: "psst",
    display_name: "Psst",
    hwnd,
};
let mut media_controls = MediaControls::new(config).unwrap();

Media Controls via gnome extensions / media keys seem to work as well

I had this same problem but it was because I had run cargo update in the repo. From a clean repo it built fine.

I had this same problem but it was because I had run cargo update in the repo. From a clean repo it built fine.

I looked at the bash history and I indeed I did, sorry for the bother

Fixed in latest master.

authors: Anuj2976 etcet graynk jpochyla olligobber

repo: jpochyla/psst


text:
Missing Max Range Graph

Performed a 100% fresh install from the Git image at approx 1800 CST. Expanded file system and changed password only prior to running the install script.
/graphs/dump1090-localhost-range_imperial_nautical-24h.png?time=1456190097.919 is reporting 404 - Not Found

I take it from your report you ran install.sh after booting up the image and supplied the latitude and longitude of your receiver. This data is required by dump1090-mutability in order to calculate range. The range graph will not show data until an aircraft with positional data is seen by the receiver. If this is a new installation watch your dump1090 map once you see an aircraft icon on the map give the system 5 minutes in order to insure the cron job generating the hourly graphs has run. After 5 minutes has passed please check your hourly graphs to see if the range performance graph appears. Daily graphs are updated 2, 12, 22, 32, 42, and 52 minutes past the hour so you may not see these right away. If you still do not see range data let me know.

You got it on one. Since I was familiar with the process I just ran through and skipped lat long as all of the services I report on have a backup manual entry mode. Re-entering lat-long did the trick. Would it be possible to add an alt tag to the graph saying "Lat/Long required for this chart"?

Will do.

Added more pronounced warning to scripts.

authors: fatherdoctor jprochazka

repo: jprochazka/adsb-receiver


text:
Prepare image error from egs/iam

Hi,
I am using ImageMagick6 and at the step of preparing image by running ./steps/prepare_images.sh, I got the following error. Do you have any idea? Thanks.

Failed image processing:
imgtxtenh: enhancing by Sauvola: width=80pixels, mfct=0.2, sfct=0.5
imgtxtenh: removed 1 small components from a total of 18 (min. area: 6 pixels^2)
convert: magick/cache.c:306: AddOpenCLEvent: Assertion `cache_info->opencl != (OpenCLCacheInfo *) ((void *)0)' failed.
./steps/prepare_images.sh: line 40:  1669 Done                    imgtxtenh -d 118.110 "$1" png:-
1670 Aborted                 (core dumped) | convert png:- -deskew 40% -bordercolor white -border 5 -trim -bordercolor white -border 20x0 +repage -strip "data/imgs/$partition/$bn.jpg"
ERROR: Processing image data/original/lines/a01-000u-00.png

Can you give more details about your environment? Like what OS, how image magick was installed, etc.

I have never tested installing ImageMagick from source. Anyway from what you say it is not possible for me to reproduce the error. Could you isolate the problem (exact command and image that fails) and maybe create a docker file that performs the exact installation that you did and that reproduces the error?

After reinstalling ImageMagick using apt-get install, the error went away. Thanks.

authors: mauvilsa yanyufish

repo: jpuigcerver/Laia


text:
Month Workdays View

Hi there!
Is there a possibility to create a view that has only workdays included in a simple way? I've tried it, but haven't found a solution yet. The easiest way was to change visibleDays function to add only days that are not getUTCDay() = 6 or 5 as I remember. And to chunk(month,5) in Month Component. Could you add props to overwrite those values? Based on
month = dates.visibleDays(date, localizer),
weeks = chunk(month, 7)

Those values you can easily create calendar with only workdays.

HI, I would like to use that functionality as well. Any hints on how to solve that?

There's a related PR open that's been kicking about for some time.

authors: Marcinthedev elsenhuc roberttaylor426

repo: jquense/react-big-calendar


text:
Addition Methods - Canadian Postal Code - REGEX Changes

The regex for Canadian postal codes is in upper case and requires a space, for usage it should accept upper and lower and the centre space is optional.
the following postal codes are correct and are accepted by almost every system I have ever used
M1L 2S9
M1L2S9
m1l 2s9
m1l2s9
speaking as a  Canadian, almost no one uses the upper case format and the space is sometimes omitted.

@james-gerard-rodgers are you willing to provide unit tests for your postals and a fix?

I have never done that for github; is there a standard method for providing these? if you can link me a sample of how the unit tests should be provided I can do it.
I have a regex that i use on for other instances but the current implementation i am working on was better with jquery validation.

The Canadian postal code tests is here: https://github.com/jzaefferer/jquery-validation/blob/master/test/methods.js#L1229-L1241
And the regex that you can change is here: https://github.com/jzaefferer/jquery-validation/blob/master/src/additional/postalCodeCA.js#L15

This can be closed.  All the examples given by @james-gerard-rodgers  pass now.
Looks like it was done in https://github.com/jquery-validation/jquery-validation/pull/1536.
Updated link to tests:  https://github.com/jquery-validation/jquery-validation/blob/master/test/methods.js#L1626
P.S.  I'm sure he meant to say, "almost no one uses the lower case format".

@RobJohnston Thanks for the reminder
Will close this for now. Please ask if you have followup questions.
Thanks!

authors: Arkni RobJohnston james-gerard-rodgers staabm

repo: jquery-validation/jquery-validation


text:
HTCondor python bindings

Since pip install htcondor is now possible (in addition to conda install htcondor-python and python 3 support is coming soon, it probably would make sense to use the bindings provided by the HTCondor team.
Using them should be easier, safer and faster than using & parsing the command line:
https://indico.cern.ch/event/611296/contributions/2604395/attachments/1472564/2279252/Bockelman-European-HTCondorWeek-Python-2017_.pdf
What do you think?

Hey @kreczko, thanks for the comment! In theory I totally agree that the official Python bindings from the HTCondor team are probably a better way to go.
I looked through the documentation for the bindings and really liked the syntax for instantiating a htcondor.Submit object with a dictionary. That could easily be utilized in PyCondor.
One concern I have is that there was only a single reference to dagman in the documentation. Do the bindings have support for creating some kind of dagman submit object?

Hi @jrbourbeau If you look at this weeks slides for "What's New in HTCondor?", slide 18 you can see that they are investigating integration with Dask. I've also attempted to add an HTCondor Luigi Task before but was held back by the lack of easy install for the python bindings (fixed this week :)).
Both solutions make more sense than direct dagman since it is lacking in places. It's likely the reason for your project. We had a similar project in our group: htcondenser.
I do not know the scope or timeframe of your project, but at least I wanted to let you know that things are improving and the developers are listening. It is probably worth expressing interest in the creation of HTCondor DAGs in python. I would not be surprised if they see it as a sign to put more work into this.
That said, it seems they already have a (working?) version:
https://github.com/matyasselmeci/dask_condor/blob/master/dask_condor/__init__.py

Thanks for all of the information! I'm glad to hear about integration with Dask and python 3 support. Do you know how I might go about voicing my interest for a dag object in the python bindings?

I think the best way would be the htcondor-users list: htcondor-users@cs.wisc.edu (see https://research.cs.wisc.edu/htcondor/mail-lists/) as the issues are disabled on https://github.com/htcondor/htcondor.
If your profile is still correct, you could also just visit the HTCondor developers in the computer science department ;).

Hi,
(Apologies, I was at a conference all last week)
Currently, the official python bindings have focused on exposing objects/concepts in the HTCondor libraries to python.  So, there's a really thorough treating of things like ClassAds or the (new-ish) Submit object.
However, HTCondor doesn't really have a library version of DAGMan file parsing -- but they could create one!
My hope was that we could have a merge of the two libraries a bit: take the existing DAGMan object in pycondor and move it into the official ones.  This way, we could perhaps have more efficient submit / job tracking but also better coverage of workflows.
In the meantime, I'll chat with the condor team and see if they would want to refactor DAGMan to have a library interface we could plug into.  I'm not entirely sure there is good code in condor to write DAGs (after all, I don't think anything in condor does this internally!) but there at least ought to be official code for generating them.
HTH,
Brian

On Jun 14, 2017, at 2:56 PM, Luke Kreczko notifications@github.com wrote:
I think the best way would be the htcondor-users list: htcondor-users@cs.wisc.edu mailto:htcondor-users@cs.wisc.edu (see https://research.cs.wisc.edu/htcondor/mail-lists/ https://research.cs.wisc.edu/htcondor/mail-lists/) as the issues are disabled on https://github.com/htcondor/htcondor https://github.com/htcondor/htcondor.
If your profile is still correct, you could also just visit the HTCondor developers in the computer science department ;).
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub https://github.com/jrbourbeau/pycondor/issues/35#issuecomment-308422572, or mute the thread https://github.com/notifications/unsubscribe-auth/ABCvR2jc5w-yp_FQoLDW8ZSMKnF6sa7Wks5sD9h1gaJpZM4N2XlT.

Hey @bbockelm,
Having some DAGMan functionality in official Python bindings would be great! As you mentioned, adding a dagman object would be a natural extension to include better coverage of workflows.

My hope was that we could have a merge of the two libraries a bit: take the existing DAGMan object in pycondor and move it into the official ones.

If there's anything I can do to help facilitate this, just let me know!

Would it be possible to try to do a lift of the DAGMan object itself as a PR to htcondor?  Or is that not the right way to break down the work?
(I unfortunately am not sure I have much time to work on it, but I like the idea...)

@bbockelm sorry for such a delayed response!
I'm not sure that the pycondor.Dagman object in this project could be lifted into the htcondor pybindings in its current state. Unfortunately, I'm not familiar with the Python bindings internals and don't have a lot of spare time at the moment. But perhaps in the future, I can work on re-factoring PyCondor to be implemented in terms of the htcondor Python bindings.
Again, apologies for taking forever to get back to you.

I'm going to close this issue, but we can feel free to keep this conversation going here.

authors: bbockelm jrbourbeau kreczko

repo: jrbourbeau/pycondor


text:
[core] Artifacts, FileSets, and Globs should have an active property

It may be useful to filter artifacts, filesets, and globs with an active property as seen in other model elements.
One may include or exclude a given artifact in an assembler if the project is snapshot for example.

🎉 This issue has been resolved in v1.6.0 (Release Notes)

repo: jreleaser/jreleaser


text:
[translation] Add Spanish translation

Fixes #424
Spanish translation
Context

Messages translated to Spanish (es)

Checklist

[ ] Review Contribution Guidelines.
[ ] Make sure all contributed code can be distributed under the terms of the
Apache License 2.0, e.g. the code was written by
you or the original code is licensed under a license compatible to Apache License 2.0.
[ ] Update documentation when applicable.

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.

@torrespro Thank you! Would you mind reading and signing the CLA?

Thank you! 😄

authors: CLAassistant aalmiray torrespro


text:
Formatting of usage instructions in README.md

Wrap the usage instructions in a code block to make them easier to read

thanks for those PRs!


text:
Fixed issue #692 (for 4.2 create table with reference failed, created index twice)

Hi
Please review fix for #692. I know - this is probably bigger problem with AR 4.2 compatibility, hope it may help somehow however. I'm working on few more 4.2 issues and may pull some additional fixes. Added necessary test case.

looking good, thanks ... maybe this would be needed for a couple of other adapters as well.

Doh. Test case fails for AR<4.2 as add_foreign_key is new in 4.2 migrations (https://github.com/rails/rails/blob/7ba24831d7f809d54e88607db8f7d21780efbdfb/guides/source/4_2_release_notes.md#foreign-key-support). Fixed.

on 1-3-stable now ... thanks!

authors: akarazniewicz kares

repo: jruby/activerecord-jdbc-adapter


text:
Where does the rules package comes from?

Thanks for the great work, we can see that a dependency package called rules is referenced in file engine.py. I want to know where this package comes from and study it in depth, thank you.

Hi, thanks for asking the question. The rules package is generated when compiling the c extension. The code is under /src/rules and /src/rulespy (for python). If you are going to spend time looking at the code, I recommend you look at the V2 branch. The master branch will be archived soon.

Ok, I understand, thanks for your reply.

authors: jruizgit lemonhu

repo: jruizgit/rules


text:
Duplicate id! Old RelationalModel=ServerModel, new RelationalModel=ServerModel

I cant use your master right now... do you know what might be the problem? i know you were working on removing the relational models maybe there is somethign still hanging around

Oops. That was an oversight. Does #ddf09bc1ef6b446158395cd926df2e0bbe5b8160 fix it?

authors: cesine jrwdunham

repo: jrwdunham/dative


text:
Unable to get window to connect to mutscratch

I could be doing this wrong but I followed the readme, onlything is  i cant tell if i am just overthinking this or what but I cant figure out if im suppose to type in the terminal like in the video or what. I tried the keybinds nothing. I added the code to my config.py and just nothing.  Also when i do qtile check it says
qtile check
Checking Qtile config at: /home/llama/.config/qtile/config.py
error: config failed to import, NameError: name 'MutableScratch' is not defined
Stub: in file /tmp/tmpuop8vmzc/config.pyi:1
MypyFile:1(
  /tmp/tmpuop8vmzc/config.pyi)
Runtime:
MISSING

So you need to install the package. I see that I didn't actually include that in the README. I guess I was hoping to get it onto PyPI and have it be installed that way... But time and business.
Looks like Python can't find  the src/MutableScratch.py file. Where did you put it in relationship to your config.py?

The simplest way to get it to work is to place the MutableScratch.py file in the same directory as your config.py file. Then python should be able to import the module fine.

yea so i just winged it and put that in the main qtile folder. was thinking about putting jt in the scripts folder but . so what would be the best way of goong about installing it?

On Apr 2, 2023 at 2:34 PM, James Wright  @.***>  wrote:
So you need to install the package. I see that I didn't actually include that in the README. I guess I was hoping to get it onto PyPI and have it be installed that way... But time and business.
Looks like Python can't find the  src/MutableScratch.py  file. Where did you put it in relationship to your  config.py?
—
Reply to this email directly,   view it on GitHub, or   unsubscribe.
You are receiving this because you authored the thread.Message ID:  @.***>

I'm assuming by "main qtile folder" you mean ~/.config/qtile, and you probably have your config in ~/.config/qtile/config.py. If that's the case, it looks like you probably already have it where it should work....

ya sorry i should have said that better but you understood. ill jabe to double check that i did that when i get home and try.. so
if thays good how do i go about
triggering a window swallow. just the keybind ? or do i type in the terminal like in the video? if you want I'm sure you are busy. once I wrap my head around all this I can write up a simple layman's guide on how it works.    I think you have something great here.

On Apr 2, 2023, at 2:43 PM, James Wright  @.***>  wrote:
I'm assuming by "main tile folder" you mean  ~/.config/tile, and you probably have your config in  ~/.config/qtile/config.py. If that's the case, it looks like you probably already have it where it should work...
—
Reply to this email directly,   view it on GitHub, or   unsubscribe.
You are receiving this because you authored the thread.Message ID:  @.***>

if thays good how do i go about triggering a window swallow. just the keybind ? or do i type in the terminal like in the video?

Yep, everything is just controlled through keybindings (though I'm sure you could call the functions through qtile shell or something similar). The terminal typing was only to uniquely mark the windows, such that it was possible to see that I was cycling through multiple windows. And also to communicate what exactly I was hoping to show in the video.

once I wrap my head around all this I can write up a simple layman's guide on how it works.    I think you have something great here.

Sure, that'd be great. Always good to have another opinion on how to explain it. The video is hard to do since the scratch windows disappear from screen.

I knew your name looked familiar. I keep seeing it in my email we are in many of the same groups. While,    bronite, helix and think one more

On Apr 2, 2023 at 2:56 PM, James Wright  @.***>  wrote:

if thays good how do i go about triggering a window swallow. just the keybind ? or do i type in the terminal like in the video?

Yep, everything is just controlled through keybindings (though I'm sure you could call the functions through  qtile shell  or something similar). The terminal typing was only to uniquely mark the windows, such that it was possible to see that I was cycling through multiple windows. And also to communicate what exactly I was hoping to show in the video.

once I wrap my head around all this I can write up a simple layman's guide on how it works. I think you have something great here.

Sure, that'd be great. Always good to have another opinion on how to explain it. The video is hard to do since the scratch windows disappear from screen.
—
Reply to this email directly,   view it on GitHub, or   unsubscribe.
You are receiving this because you authored the thread.Message ID:  @.***>

I don't think so. I don't use helix and haven't heard of bronite before.

Well that is odd. I suppose there can be two James Wright's into Linux.

On Apr 2, 2023 at 3:08 PM, James Wright  @.***>  wrote:
I don't think so. I don't use helix and haven't heard of bronite before.
—
Reply to this email directly,   view it on GitHub, or   unsubscribe.
You are receiving this because you authored the thread.Message ID:  @.***>

alright, just got home and put the SC/Mutablescratch file in the root of ,config/qtile. Doing so had zero effect. My next step was to put the file out of the "SC" folder.  Still nothing changed . I then tried putting both in the Qtile/scripts folder, and..... nothing,
I figured maybe its the permissions. I checked, and that file is RWRR I think that is good. and when I run Qtile check I still get the exact same error.
llama  ~  ♥ 16:57  qtile check
Checking Qtile config at: /home/llama/.config/qtile/config.py
error: config failed to import, NameError: name 'MutableScratch' is not defined
Stub: in file /tmp/tmppfxt9_uq/config.pyi:1
MypyFile:1(

I looked around the googles and saw that this error means python didn't see mutablescratch being used in any meaningful way. Im not sure what to make of that in this case.

Can you post your config.py file?

for sure here it is https://pastebin.com/cCQE12C2. its not pretty so be kind lol

Gotcha. You need to import the module first. So something like:
# Setup MutableScratch
from MutableScratch import MutableScratch
mutscr = MutableScratch()
groups.append(Group(''))

keys.extend( [
   EzKey('M-S-<minus>', mutscr.add_current_window()),
   EzKey('M-<minus>',   mutscr.toggle()),
   EzKey('M-C-<minus>', mutscr.remove()),
] )

hook.subscribe.startup_complete(mutscr.qtile_startup)

Also note the last line. I had a typo in the README (so trade out minscr -> mutscr)

I'm about to have the package uploaded to PyPI real quick, so you can actually test out installing it "normally" and see how that works.

ya know I had something like that but after deleting reading changing so much I must have forgot that code. Isnt that the code on the github page?

yea I have that on line 92 i think in my config

You're missing the first line:
from MutableScratch import MutableScratch

ahhhhhhh yes yes, I see

well the error about your stuff is gone , now its back to the old error ive been fighting
llama  ~  ♥ 19:21  qtile check
Checking Qtile config at: /home/llama/.config/qtile/config.py
error: config failed to import, NameError: name 'groups' is not defined
How are they goig to say groups is not defined that word is used so much, and I have zero clue how to fix that

Because groups isn't defined yet. It only gets defined on line 126, so the MutableScratch setup needs to happen at least after that.

ok ill give that a shot, I really appreciate your assistance, after staring at this code so long you start to miss things

Also, the package is up on PyPI now: https://pypi.org/project/qtile-mutable-scratch/0.0.1/
So you could try installing it through that. That'll actually be the preferred method from here on out. I've pushed up updates to the README now to reflect the change in installation (as well as some change in function names. Mainly for consistency).

Ill do that I moved your code to the bottom and now its telling me error: config failed to import, NameError: name 'EzKey' is not defined

I am really not helping you out with my incomplete documentation. :cold_sweat:
You need to add:
from libqtile.config import EzKey

Also, make sure you have libqtile.hook imported as well. Looks like you do.

README has been updated to include those now as well.

Na your good I think im just not patient . you are doing an awesome job,

ok gotta love software dev lol
/tmp/tmp7rhiwlns/config.py:4: error: Skipping analyzing "qtile_mutable_scratch": module is
installed, but missing library stubs or py.typed marker  [import]
this is my import section
import os
import re
import socket
import subprocess, qtile_mutable_scratch
from typing import List  # noqa: F401
from libqtile import layout, bar, widget, hook, qtile
from libqtile.config import Click, Drag, Group, Key, Match, Screen, Rule, DropDown, ScratchPad,KeyChord, EzKey
from libqtile.command import lazy
from libqtile.widget import Spacer

it also printed this link https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports

Is that an actual error or a message from mypy? ie. does the qtile log actually say that it's not going to proceed.
Also, what version of qtile are you using? I didn't know that qtile was calling mypy to check it's config before loading.

From that mypy documentation link:

If you get any of these errors on an import, mypy will assume the type of that module is Any, the dynamic type.

That reads to me like it's just complaining, but qtile has (or should) read the config just fine.

Looks like you can do:
import qtile_mutable_scratch # type: ignore

to get it to not report an error.

ya it should run I just wanted to repot that incase it was useful in anyway to ya, again appreciate the help. SO now to get it to swallow a window  I press Super + M? or do like in the video?

So for EzKey, the M is the super key. So
EzKey('M-S-<minus>', mutscr.add_current_window()), is Super + Shift + -, which will add (swallow) the window.

ah gotcha  so this should work also if I want to change the keys?
EzKey([mod3], "space", mutscr.add_current_window()),

If you want to use [mod3] similar to the rest of your config, you have to use Key.
So EzKey('M-S-<space>', mutscr.add_current_window()) is equivalent to Key(['super', 'shift'], 'space', mutscr.add_current_window()).

gotcha, well man again I really want to say thank you for your assistance. This has been a long back and forth. Like I said ill collect all this info and give you a white up if you want to add it to the page  you can if not thats fine also.  Just my way of saying thanks

Welcome! Let me know if you have any questions.
Also, as far as documenting, just submit a PR of what changes you think should be made to the README.

Ya for sure. Honestly they are fine now with the added data but I just wanted to help us out. It's not that they are lacking still

On Apr 2, 2023 at 8:10 PM, James Wright  @.***>  wrote:
Welcome! Let me know if you have any questions.
Also, as far as documenting, just submit a PR of what changes you think should be made to the README.
—
Reply to this email directly,   view it on GitHub, or   unsubscribe.
You are receiving this because you authored the thread.Message ID:  @.***>

repo: jrwrigh/qtile-mutable-scratch


text:
Added support to get AccountsServer via a provider function

This allows the express middleware to dynamically get it's AccountsServer (Different configuration for each instance. Providing the instance based on domain or route)

Great!! now only need to change @accounts/server to support multiple instances of AccountsServer at the same time

authors: davidyaha dotansimha

repo: js-accounts/rest


text:
Django migrations and 1.8 imports, PEP8 cleanup, and small fixups

There's a lot of unrelated changes, but they're all backwards compatible and fairly straightforward to review.
Comments welcome. :smile:

it works fine with django 1.8. merge it, plz.

I badly need this too! @jschrewe any plan to merge?

@blag I've merged a separate Django 1.8 fix for GenericAdmin, can you make a pull request with that removed and also remove all the extra stuff from the .gitignore.  I'll merge it then then create a new release for Django 1.9

@arthanson: I split up my commits into #32 and #33 - let me know if you would like me to split out anything else. If not, this PR can be closed. Thanks!

Closing this as separate pr requests have been created

authors: areski arthanson blag laiyonghao

repo: jschrewe/django-genericadmin


text:
🛑 Grafana is down

In 3af06dd, Grafana ($SERVER_BASE/grafana/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Grafana is back up in a68578b.

repo: jscmidt/upptime


text:
🛑 Grafana is down

In 54c584b, Grafana ($SERVER_BASE/grafana/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Grafana is back up in 7f56187 after 47 minutes.


text:
🛑 Grafana is down

In 7ea25a7, Grafana ($SERVER_BASE/grafana/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Grafana is back up in ac34596 after 1 hour, 26 minutes.


text:
🛑 Linus-Wordpress is down

In 7463f9f, Linus-Wordpress ($SERVER_BASE/wordpress/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Linus-Wordpress is back up in a02d7e6 after 30 minutes.


text:
Existing rule for only allowing one key definition in object declaration per line?

I just added   "requirePaddingNewLinesInObjects": true to our projects configuration and formatted:
var a = {b: 1, c: 2}

Which turned into
var a = {
    b: 1, c: 2
};

I was looking for an additional rule to add that would require it to be like this:
var a = {
    b: 1,
    c: 2
};

but didn't see anything in the docs that would do that. Is there a rule for this yet? It looks like the closest I can find is requireLineBreakAfterVariableAssignment but that seems to only care about var statements, and not object declarations.

---
Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/10739405-existing-rule-for-only-allowing-one-key-definition-in-object-declaration-per-line?utm_campaign=plugin&utm_content=tracker%2F281640&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F281640&utm_medium=issues&utm_source=github).

It seems like auto-fixing bug, which relates to https://github.com/jscs-dev/node-jscs/commit/5f20bf884ff9a6b77d0cbbffd4ef1054b866deb7

I don't think this is an autofix bug.
var a = {
    b: 1, c: 2
};

still passes JSCS, which means I am just missing an additional rule to put each key on its own line.

Yeah ok basically #317, validateNewlineAfterArrayElements for objects. I'm also suggesting it for destructuring/module imports.
Looking at the rule, requirePaddingNewLinesInObjects actually only checks for the first/last newline in an object - not for each object key.

It makes more sense to put them in separate lines, but i agree - additional rule would be better

So the label for this should be new rule instead of bug?

authors: TheSavior hzoo markelog

repo: jscs-dev/node-jscs


text:
🛑 PlayYourPride is down

In 6f423a7, PlayYourPride (https://playyourpride.com/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: PlayYourPride is back up in 92978d6 after 43 minutes.

repo: jshwlkr/upptime


text:
🛑 PlayYourPride is down

In 1a7e114, PlayYourPride (https://playyourpride.com/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: PlayYourPride is back up in 6ab1f11 after 25 minutes.


text:
Code: need to rename all page from XPageIndex to page

Describe the bug
Currently, in our code we have all pages with function name aboutPageIndex this is not required. We can simply have page or if required then aboutPage
To Reproduce
Steps to reproduce the behavior:

Go to code
Click on app folder
Scroll down to any folder
Open page.tsx and see the name of the function

Expected behavior
Currently, in our code we have all pages with function name aboutPageIndex this is not required. We can simply have page or if required then aboutPage
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):

OS: [e.g. iOS]
Browser [e.g. chrome, safari]
Version [e.g. 22]

Smartphone (please complete the following information):

Device: [e.g. iPhone6]
OS: [e.g. iOS8.1]
Browser [e.g. stock browser, safari]
Version [e.g. 22]

Additional context
Add any other context about the problem here.

Hi Neha,
Can I work on this?

authors: Neha vignesh-murugan-dev

repo: jslovers/jslovers-official-website


text:
Parsing seems broken

Not sure whether or not this is an issue with moment core, but the following use case is broken:
moment.duration('5:30', 'm:ss', true);

should result in 5 minutes 30 seconds, but instead it results in 5 hours 30 minutes.

Not sure if that ever worked, but it certainly doesn't now...
From moment itself, the duration constructor only takes two arguments:
function createDuration (input, key)

https://momentjs.com/docs/#/durations/
And from what I can tell the second argument is a unit of measurement as defined in moment, e.g. minutes or seconds or a shorthand unit, e.g. m or s. It doesn't look like a format string is supported there.
My plugin doesn't affect parsing of duration strings in moment.duration!

Makes sense. Thanks!

repo: jsmreese/moment-duration-format


text:
Add error examples

The errors section needs some examples for clarification. I did not really understand path and links until reading https://github.com/json-api/json-api/pull/234#issuecomment-45563232
This PR adds a basic example for an error response. I am omitting id and code and detail, because the main purpose was to make clear how path can be used.
I would appreciate if someone else could add another example where a links attribute makes sense like trying to update multiple resources at once where one fails or so.

@ahx
Sorry about the delay here! We are certainly interested in adding examples, but this does not merge any more. Are you interested in keeping up this PR? If so, let's go over them in detail, but I'm not going to review until I hear from you :smile:

@steveklabnik i have updated the example. Using a Rails' i18n-ish looking "code" in the example ("errors.attributes.title.blank"), because there were some questions regarding i18n in the past and I think this is how I would use the field, even without using Rails.
Is 422 the proper status code?

I have rebased this PR. :+1: :-1: :hand: ?

@ahx I don't think there is a need for a long error code like that if the path is already giving the location of the error.  It could probably be something shorter like invalid_required.

@ColtonProvias I've used the long code ("errors.attributes.title.blank") to resemble a code that you can throw against some i18n library. But this probably is just distracting. So i changed it to "field_empty".

Sorry for the slow/no response @ahx. If you'd be willing to rebase this one more time and ensure it lines up with 1.0 of the spec, we can get it landed.

Please rebase/resubmit this PR if you'd like for it to be merged.

Also, any examples should target the new examples page.

authors: ColtonProvias ahx dgeb steveklabnik tkellen

repo: json-api/json-api