text:
Better implementation of route parameters for RequestResponseStrategy

The Request object from Symfony has a built-in property (attributes) for parameters from the route:
http://api.symfony.com/2.6/Symfony/Component/HttpFoundation/Request.html#createFromGlobals()
The RequestResponseStrategy would have to be modified like this:
    $request = $this->getContainer()->get('Symfony\Component\HttpFoundation\Request');
    $request->attributes->add($vars);
    $response = $this->invokeController($controller, [
            $request,
            $this->getContainer()->get('Symfony\Component\HttpFoundation\Response')
      ]);

What are your thoughts on this? I can do a pull request later for this if you want.

Symfony HttpFoundation is actually being dropped for v2 in favour of PSR-7, however, there will be a similar type of support for this via the message interfaces.

Glad to hear it, when is v2 expected to be released? I'll use my fork for the time being.

Aiming for 2-3 weeks from now, it's dependent on some other work going on with league/container

@nebulousGirl would you be interested in doing a PR for this for the current v1 branches? I think it certainly has merit but is not really prudent to v2 as HttpFoundation will not be a hard dependency.

@philipobenito I will look into that over the weekend. I can also implement the Request::createFromGlobals if the request was not already registered to the container, I saw it in another issue.
Have you looked into PSR7 implementations yet? Are there any interesting ones?

authors: nebulousGirl philipobenito

repo: thephpleague/route


text:
Removed --dev flag

According to Travis-CI, "You are using the deprecated option "dev". Dev packages are installed by default now."

:+1:

source: gharchive/pull-request

authors: Jeroen-G TomasVotruba

repo: thephpleague/skeleton

license: mit

license_type: permissive

license_source: bigquery


text:
Enhancement: Speed up builds on Travis

This PR

[x] directs builds on Travis to container-based infrastructure
[x] enables caching of dependencies installed with composer between builds
[x] preferably installs dependencies from dist, rather than from source

Before
https://travis-ci.org/thephpleague/url/builds/70920428:

After
See https://travis-ci.org/thephpleague/url/builds/70978916:

@nyamsprod
Not sure what's going on here, seems that Scrutinizer is waiting forever for code coverage to be reported:

https://scrutinizer-ci.com/g/thephpleague/url/inspections/7b992805-b300-43f4-aee7-8a7d107516eb

repo: thephpleague/url


text:
Claim daily reward

collecting daily rewards does not work 2-4 days after its daily collection, because a captcha appears on hoyloab

Well the library certainly can't magically solve the captcha for you.
You can buy a captcha solver and solve it by passing in the solved captcha as headers using claim_daily_reward()

collecting daily rewards does not work 2-4 days after its daily collection, because a captcha appears on hoyloab

What do you expect here?

is it this error? "Geetest triggered during daily reward claim."
@ar1ls

yep

source: gharchive/issue

license: MIT

license_source: github-api


text:
Disable "Play Space Falling" in VRTK v 3.2.0

Hi!
I'd like to deactivate the function that the headset automatically teleports to the floor if i lean over a ledge. I'm trying for so long now but I don't get where my mistake is. I think in a previously version it was called playspace falling. But now i can't find something like that just disables the snap to the floor.
greets
patrick

@patcamerlengo have you tried simply removing the body physics script?
The body physics script is what pulls you down to the ground.

Yes I did. But then, how do i use the height adjust teleport script?

You don't need the body physics script to use the height adjust teleport script.

so i put the height adjust script on the camera rig?
and another problem is that i dont see the boundaries of steamvr anymore. the light blue ones.
the playarea script of steamvr gets disabled wenn i press play.

You shouldn't put any scripts on the camera rig., have you watched the tutorial videos at videos.vrtk.io?

if i delete the body physics script. height adjust teleport wont work anymore. i made a simple lift. a cube with collider. i teleport on that but without body physics it wont lift me up.

the teleporter teleports you around, the body physics script deals with your body and physics.
the teleporter will still work, but things won't lift you up

yes and thats the problem ;-) how do i achieve it to take an elevator without falling down on ledges.

have you tried settings the body physics script to ignore collisions enable body collisions = false and then set the teleport height to really high (or low)

ok i disabled it. now im falling down. not teleporting. but what do you mean by teleport height?

I think what you're trying to achieve isn't going to work for you anyway.
On one hand you want to use Unity physics to push your camera rig up with other physics objects, but on the other hand you don't want Unity physics to pull you down to the ground (unless of course you're on an elevator)
There is a Fall Restriction option on the Body Physics script where if you have either controller over the existing ground then you don't fall. It could potentially have another option that was Never Fall maybe, I'll look into it.

ok thx. i understand.

Ok an Always Restrict option seems like a good idea. i'll have a PR up in a few moments (it will be going into the version 3.3.0-alpha branch but you can swipe the code if you need to)

Actually even an Always Restrict option would not allow you to move down with elevators.
Your other alternative is to child your play area to the elevator game object when you're in the elevator. Or use the TransformFollow script (which is probably a better idea).

Here's the commit https://github.com/thestonefox/VRTK/pull/1429/commits/35952630bc206909cc3ebe6ea912f1728b3d9f6e
in this PR that adds the Always Restrict option
https://github.com/thestonefox/VRTK/pull/1429

authors: patcamerlengo thestonefox

repo: thestonefox/VRTK


text:
🛑 PDF archive is down

In be2d7a7, PDF archive (https://theswissbay.ch/pdf/changelog.html) was down:

HTTP code: 0
Response time: 0 ms

Resolved: PDF archive is back up in d251ca9 after 14 minutes.

repo: theswissbay/status


text:
Pressing ESC should pause the game

Pressing the escape key should pause the game. Pressing it again should unpause it. This would require using states: https://bevy-cheatbook.github.io/programming/states.html

#22

repo: thetawavegame/thetawave


text:
No need to tolerate repositories written with pre-SemVer spec_version

Description of issue or feature request:
Undo #949 and #950
Current behavior:
Expected behavior:

We tried this but at least the sigstore (go-tuf) metadata I tested still isn't using semver.
legacy spec_version seems harmless -- and accepting it allows us to interop test other aspects of metadata -- so we're currently accepting "X.Y" in deserialization.

authors: jku trishankatdatadog

repo: theupdateframework/python-tuf


text:
Hotspot editor not working in develop

When I create a new hotspot I can't save the changes I make to its size & position or change to the polygon hotspot tool. It opens the editor, allows me to resize etc. but neither the tick or cross buttons do anything. No errors in console. I have to refresh the page to get out of the hotspot editor & then of course the changes aren't saved. Works fine in 3.8 but not in current develop.

Hi @fay, think this is fixed now. Can you check?

Thanks - looks fine now

authors: FayCross JohnSmith-LT

repo: thexerteproject/xerteonlinetoolkits


text:
deb-systemd-helper is called without checking if it exists on Yocto devices with apt installed

Describe the bug

The thin-edge.io debian packages assume that the deb-systemd-helper is available which is not always the case on custom Linux distributions which use apt-get but don't have the systemd installed (or the debian helper scripts), e.g. a Yocto build.
Below shows the errors shown whilst installing thin-edge.io via the install.sh script:
$ wget -O -o thin-edge.io/install.sh | sh -s

# ... (removed logs prior to this point as they are not relevant to the ticket)

Restarting mosquitto service.

Setting up tedge-mapper (1.1.2~231+ge310033) ...
/var/lib/dpkg/info/tedge-mapper.postinst: line 6: deb-systemd-helper: command not found
/var/lib/dpkg/info/tedge-mapper.postinst: line 18: deb-systemd-helper: command not found
/var/lib/dpkg/info/tedge-mapper.postinst: line 23: deb-systemd-helper: command not found
/var/lib/dpkg/info/tedge-mapper.postinst: line 35: deb-systemd-helper: command not found
/var/lib/dpkg/info/tedge-mapper.postinst: line 40: deb-systemd-helper: command not found
/var/lib/dpkg/info/tedge-mapper.postinst: line 52: deb-systemd-helper: command not found
/var/lib/dpkg/info/tedge-mapper.postinst: line 57: deb-systemd-helper: command not found
/var/lib/dpkg/info/tedge-mapper.postinst: line 69: deb-systemd-helper: command not found
Setting up tedge-agent (1.1.2~231+ge310033) ...
/var/lib/dpkg/info/tedge-agent.postinst: line 13: deb-systemd-helper: command not found
/var/lib/dpkg/info/tedge-agent.postinst: line 25: deb-systemd-helper: command not found
Setting up tedge-watchdog (1.1.2~231+ge310033) ...
/var/lib/dpkg/info/tedge-watchdog.postinst: line 6: deb-systemd-helper: command not found
/var/lib/dpkg/info/tedge-watchdog.postinst: line 9: deb-systemd-helper: command not found
/var/lib/dpkg/info/tedge-watchdog.postinst: line 16: deb-systemd-helper: command not found
Setting up tedge-apt-plugin (1.1.2~231+ge310033) ...
Setting up c8y-remote-access-plugin (1.1.2~231+ge310033) ...
Setting up c8y-firmware-plugin (1.1.2~231+ge310033) ...
/var/lib/dpkg/info/c8y-firmware-plugin.postinst: line 6: deb-systemd-helper: command not found
/var/lib/dpkg/info/c8y-firmware-plugin.postinst: line 9: deb-systemd-helper: command not found
/var/lib/dpkg/info/c8y-firmware-plugin.postinst: line 16: deb-systemd-helper: command not found
Setting up tedge-full (1.1.2~231+ge310033) ...
openssl does not support the rehash command, so performing ca-certificate rehashing manually as it is required by mosquitto

thin-edge.io is now installed on your system!

You can go to our documentation to find next steps: https://thin-edge.github.io/thin-edge.io/start/getting-started

To Reproduce

This is hard to reproduce manually, because you need to build your own custom linux distribution, however the bug is clear enough to be able to fix without being able to reproduce it (or at least until an easier way is found).
Expected behavior

Commands which don't exist should not be called. When the thin-edge.io packages are installed on systems without the deb-systemd-helper, it might be worthwhile checking if the "tedgectl" command exists, and use it to interact with the services, otherwise the operations should just be a "no-operation".
Screenshots

Environment (please complete the following information):

Property
Value

OS [incl. version]
yocto

Hardware [incl. revision]
Opto 22

System-Architecture
Linux EPIC-PR2-ESAB 4.1.15-rt18-nxtio-2.1.0+ge91f4e8 #2 SMP PREEMPT RT Sat Aug 26 06:11:55 PDT 2023 armv7l GNU/Linux

thin-edge.io version
tedge 1.1.2~231+ge310033

init system
sysvinit

file: /etc/build
-----------------------
Build Configuration:  |
-----------------------
DISTRO = grv-pr1-x11-release
DISTRO_VERSION = 3.5.1-b.85
MACHINE = imx6qnxtio
DEVICE_MODEL = GRV-EPIC-PR2
DEVICE_TYPE = imx6qnxtio-GRV-EPIC-PR2
DATE = 20230826
TIME = 133658
-----------------------
Layer Revisions:      |
-----------------------
meta              = HEAD:65a5cf7f32f24157e042b4bea37730841a4dca16
meta-yocto        = HEAD:65a5cf7f32f24157e042b4bea37730841a4dca16
meta-oe           = HEAD:e6321cbd561780e75ec32f933343f73bb6236168
meta-multimedia   = HEAD:e6321cbd561780e75ec32f933343f73bb6236168
meta-webserver    = HEAD:e6321cbd561780e75ec32f933343f73bb6236168
meta-networking   = HEAD:e6321cbd561780e75ec32f933343f73bb6236168
meta-perl         = HEAD:e6321cbd561780e75ec32f933343f73bb6236168
meta-fsl-arm      = HEAD:8a21b28ecff8d70e199050d45c541592d9425521 -- modified
meta-fsl-arm-extra = HEAD:e200df91b70da254461c59082ddd5db0a3c415a2
meta-fsl-demos    = HEAD:2231e946e7a94d096394f2b2477e8184c9bbde7b
meta-opto-bsp-nxtio = HEAD:ca2647f240d697db5573e799ce384343c21b491b
meta-swupdate     = HEAD:de08e6f72c6c90bec6ee5138f87959ad88461e84
meta-java         = HEAD:67e48693501bddb80745b9735b7b3d4d28dce9a1
meta-nodejs       = HEAD:4790b1bf2567bbc18c35adc5515d0dfc37c6e9cc
meta-nodejs-contrib = HEAD:ce37cddd4b3dcff2d60a33a357f3433287f4298d
meta-virtualization = HEAD:debdcdf2f89f27f891ce1e811175fafd5e904a6f
meta-bsp          = HEAD:c47bbab624b6dc42f2c2e3a613719338254c4db3
meta-sdk          = HEAD:c47bbab624b6dc42f2c2e3a613719338254c4db3
meta-browser      = HEAD:9161c638991977ccb3b8c661c6ed20000977dfc8
meta-gnome        = HEAD:e6321cbd561780e75ec32f933343f73bb6236168
meta-networking   = HEAD:e6321cbd561780e75ec32f933343f73bb6236168
meta-python       = HEAD:e6321cbd561780e75ec32f933343f73bb6236168
meta-ruby         = HEAD:e6321cbd561780e75ec32f933343f73bb6236168
meta-filesystems  = HEAD:e6321cbd561780e75ec32f933343f73bb6236168
meta-xfce         = HEAD:e6321cbd561780e75ec32f933343f73bb6236168
meta-qt5          = HEAD:d5536e34ec985c82b621448ab4325e5cbba38560

Additional context

Note, the error does not prevent the software being installed, however it adds unwanted noise, and it assumes that systemd is being used which is not always the case (as the device in the ticket is using SysVInit)


text:
Add cargo-make support

Proposed changes

Types of changes

[ ] Bugfix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Improvement (general improvements like code refactoring that doesn't explicitly fix a bug or add any new functionality)
[ ] Documentation Update (if none of the other choices apply)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)

Paste Link to the issue
#1659

Checklist

[x] I have read the CONTRIBUTING doc
[x] I have signed the CLA (in all commits with git commit -s)
[x] I ran cargo fmt as mentioned in CODING_GUIDELINES
[x] I used cargo clippy as mentioned in CODING_GUIDELINES
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] I have added necessary documentation (if appropriate)

Further comments

After developer feedback, we will be changing the direction from using cargo-make to just.
Goals

Use the make-like task runner as a common entry point to call existing scripts (e.g. build.sh)
tasks should be "lightweight" and have minimal logic within the task definition


text:
[Question] Cannot install edge for problem of starting tomcat

Component

Installation

Description
$ sudo /usr/share/tb-edge/bin/install/install.sh
[sudo] shft 的密码：
  ______    __      _                              ____                               __
 /_  __/   / /_    (_)   ____    ____ _   _____   / __ )  ____   ____ _   _____  ____/ /
  / /     / __ \  / /   / __ \  / __ `/  / ___/  / __  | / __ \ / __ `/  / ___/ / __  /
 / /     / / / / / /   / / / / / /_/ /  (__  )  / /_/ / / /_/ // /_/ /  / /    / /_/ /
/_/     /_/ /_/ /_/   /_/ /_/  \__, /  /____/  /_____/  \____/ \__,_/  /_/     \__,_/
                              /____/

 ===================================================
 :: ThingsBoard Edge CE ::       (v3.4.1EDGE)
 ===================================================

Failed to start bean 'webServerStartStop'; nested exception is org.springframework.boot.web.server.WebServerException: Unable to start embedded Tomcat server
ThingsBoard Edge installation failed!
(base) shft@shft-server:~$ ^C
(base) shft@shft-server:~$

Environment

OS:  Ubuntu 22.04.1 LTS
ThingsBoard: demo.thingsboard.com
Browser: Microsoft Edge

I try to install the edge by following the install.
Is there anyone here who can help me?

@Xwoder
Please attach install.log and tb-edge.log files (you can find them in /var/log/tb-edge folder).

closing due to inactivity.

authors: Xwoder volodymyr-babak

repo: thingsboard/thingsboard-edge


text:
Implement flashrank for reranking, and use it for default

.env file:
+FLASHRANK_MODEL_NAME=ms-marco-MultiBERT-L-12

需要更新一下requirements.txt，包含 flashrank这个包

authors: gaolian idoubi

repo: thinkany-ai/rag-search


text:
jerichotabiframe 使用 无法添加 相关文章

新版主题框架中 使用了jerichotab
原来的 在文章中编辑 添加 相关文章

的确存在这样的问题，我也遇到了。主要是因为 frame name不对造成的

           top.mainFrame = top.frames[top.$('.curholder iframe').attr('name')];

自己修复了

repo: thinkgem/jeesite


text:
Add Storybook in Dashboard

Problem solved
Short description of the bug fixed or feature added

PR-Codex overview
This PR adds Storybook configuration and components, updates dependencies, and includes Storybook-related ESLint plugins.
Detailed summary

Added Storybook configuration and components for UI testing
Updated Storybook-related dependencies
Included Storybook-related ESLint plugins
Modified global styles in globals.css to support light and dark themes

The following files were skipped due to too many changes: pnpm-lock.yaml

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

#4265  👈
main

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @MananTank and the rest of your teammates on  Graphite

repo: thirdweb-dev/js


text:
[serverless-apollo-contentful] Add Unit tests: src\handlers\sqs-generate-job.ts

Type of change
Closes #1018

[ ] Documentation change
[ ] Bug fix

Summary of change

Checklist

[ ] These changes follow the contributing guidelines
[ ] This starter kit has been approved by the maintainers
[ ] Changes for this new starter kit are being pushed to an integration branch instead of main
[ ] All dependencies are version locked
[ ] This fix resolves #1018
[ ] I have verified the fix works and introduces no further errors

coverage:


text:
Update to RevenueCat 3.5.0

Currently, Xamarin.RevenueCat.Android is binding to RevenueCat 3.4.1.
RevenueCat 3.5.0 is already available as stable release.

Blocked by https://github.com/xamarin/java.interop/issues/728

As Version 4 is going to have full API coverage is both Swift and objective C, I am planning to do the update once the first stable release of version 4 is available.

@thisisthekap Likewise willing to pay for work to get Android v5 release integrated. Desperately need the new Amazon support.

Closed in favor of #32

authors: shimfish thisisthekap


text:
SteamCMD needs a subfolder called steamapps

Description of Issue
Steam released a new update and install directory now needs a subfolder called steamapps.
If you dont have a subfolder called steamapps, you will get an error:
ERROR! Failed to install app '376030' (Disk write failure)
Additional Information
Reported this issue at https://github.com/arkmanager/ark-server-tools/issues/1184 too
Temporary fix is to create a folder under staging with the name steamapps

fixed in ARK Server Tools v1.6.59, we should update

repo: thmhoag/arkserver


text:
chore: jx-demo-1 to 0.0.1

chore: Promote jx-demo-1 to version 0.0.1

[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by:
To fully approve this pull request, please assign additional approvers.
We suggest the following additional approvers:
If they are not already assigned, you can assign the PR to them by writing /assign  in a comment when ready.
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

OWNERS

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment


text:
night capture quit working

night capture quit working was working on time-lapse problem and this happened.
I have a Pi 3 B+, 1gig, w/128g SD, I increase swap ti 2gig and gpu to 512,
had camera set to w=4056 & h=3040 moved to w=1920 & h=1080 in both camera settings and config.sh
libcamera works with still or to test.jpg
Puzzled, Thanks for the Help!
allsky.log.txt
config.sh.txt
config.txt

@TexasTNT   Has the camera worked before?  If so, did you change anything (hardware, software, or firmware)?
Try running from the command line:
libcamera-still --output /tmp/test.jpg --timeout 10000 --nopreview --width 4056 --height 3040 --shutter 0 --gain 4 --awbgains 2.8,2.2 --vflip --saturation 2 --brightness 0.1 --quality 95

If that fails, attach the output.
Then remove "--quality 95" and try again, then remove "--brightness 0.1", then "--saturation 2", then "--vflip", then "--awbgains 2.8,2.2", then "--gain 4".  Still not working? Set use "--shutter 1".
If it works the first time I'll give you a version of capture_RPiHQ.cpp that sends error messages to a temporary file.

Yes it did work at first, day time or night time captures not working, but timelapse wasn't and was trying to fix it. Big things changed was swap to 2gig and GPU to 512 and camera w/h. Tried adding dtoverlay=imx477 and that didn't help removed it, removed camera auto detect and put it back.
Anyway tried the libcamera and it worked only error I saw was
ERROR CameraSensor camera_sensor.cpp:551 'imx477 10-001a': Camera sensor does not support test pattern modes.
Thanks for the Help!
Norman

@TexasTNT You can ignore the "test pattern modes" message - I told the developers about it and they'll fix it, but it's harmless.
I don't understand your sentence "Yes it did work at first, day time or night time captures not working".  If it did work, then what does "... not working" mean?
If I understand correctly, it works if you run it from the command line, but when run from Allsky it fails?
Did you try setting swap and GPU back to what they were before you changed them?
Would you please run grep "^CONF_SWAPSIZE" /etc/dphys-swapfile and let me know what it says?
Then run free and post the results.
I'd like to get your Pi back to where it takes pictures and timelapse fails.  We can then work on timelapse, which is easier to resolve.

sorry about that not being clear.
I can take an image manually and save it, what allsky is doing now is it takes about 6 images of about 1 to 2 meg in size each and quits.
Allsky used to take images all day if it was set true or all night, just would not build the time lapse.
No I have not not changed swap and GPU back to see if that fixed it, I will try it.
Swap is 2048
and the free result;
Mem: total 502812, used 155516, free 139068
swap: total 2097148, used 187136, free 1910012
shared: 256, buff/cache 208228, available 295184
Thanks, Norman

@TexasTNT   No problem.
Your Pi has 1/2 GB main memory and 2 GB swap according to "free".  2.5 GB total memory isn't much, but I believe it works for other people.
Is this correct?  Before changing swap and GPU, allsky would take about 6 images then quit.  timelapse's never worked.
After changing swap and GPU it doesn't take any images.
Did the 6 images look normal?  Full-size images with my RPiHQ camera are from 1.5 - 3 MB each.
If the above is correct, it's important that we be able to get back to that state so we can determine why it failed after a few images.
Can you try the following?  In allsky/src/capture_RPiHQ.cpp, look for a line like command += " 2> /dev/null";	// gets rid of a bunch of libcamera verbose messages.  Prepend // to it which will comment out the line.  Then:
cd allsky/src
make capture_RPiHQ
sudo systemctl stop allsky
cp capture_RPiHQ ..
sudo systemctl start allsky'

The log file will now contain any messages from libcamera-still, including (hopefully) an indication on why it's failing.
For the timelapse, per the Wiki page, you'll need to live with a smaller size video.  It has nothing to do with the amount of memory on your Pi - it's because the RPiHQ chip is too big for the libX264 codec used.  On my 8 GB Pi I have:
TIMELAPSEWIDTH=2028
TIMELAPSEHEIGHT=1520

No problem for me since my monitor is only 1920x1080, so anything larger just gets reduced to my monitor size anyhow.

Ok will do, Thanks.
I ran the libcamera-still again and it failed and trimmed it until it appeared to work.
Thanks for the Help!
Norman
libcamera-still output.txt

@TexasTNT Try all the arguments to libcamera-still except "--gain 4" to see if it's a problem with gain, or the number of arguments.

Waiting on libcamera apt update to fix segfaults.
Thanks for the Help!
Norman

OK,
Worked with libcamera and we have RPiHQ working as it should.
They fixed it and the segfaults are gone, loaded new apt.
To get the capture back I believe it was taking the swap down to 1gig from 2gig don't understand why that would effect it.
So now I am back to timelapse not working went through things in Wiki but no different.
I am using a Pi 3B+ with RPiHQ, 1gig ram, 128gig SD card, cma=384, swap=1gig
Put notes and logs together in the attached file.
Thanks for the Help!
Norma
timelapse_prob-03062022.txt
n

@TexasTNT, did you create an Issue on the libcamera-apps GitHub page?  I didn't see anything.  How did you get the updated version?
What's your FFLOG set to in config/config.sh?  The default is "warning", but it looks like yours may be "false".  If it's set to "warning", then edit scripts/timelapse.sh
You can ignore the "Camera sensor does not support test pattern modes" messages - it's a bogus message that the developers will remove.
Keogram is giving this error: "Unable to read first file (/home/pi/allsky/images/20220305/image-20220305073011.jpg); quitting".  Can you attach that file?
You can also add "-v -v" to the KEOGRAM_EXTRA_PARAMETERS setting in config/config.sh, and run scripts/generateForDay -k 20220305, then look in /var/log/allsky.log for any additional error messaged.
Startrails and Keograms don't like having images of different sized, for example, when you bin differently during the day and night.  That's why you got the "skip... 4056x4056 != 2021x1520" message.
Are you getting a startrails file?
There's nothing in the log file you attached that is for timelapse.

Yes I did at raspberrypi/libcamera-apps worked with davidplowman he sent me how to do the apt update and it resolved the segfaults I was getting and that cleared up issues with libcamera. It was also pushed the same day as an update.
Fixed FFLog now set to warning.
Attached the file Keogram was complaining about and set and added the -v -v and ran the script nothing more in allsky.log. but still complaining about the file. see the Keogram.txt file.
I do get startrails.
Here is what I have in my images file;
Over the last several nights starts to collect at 19:14 and stops between 21:56 and 00:05 and the timelapses it builds are around 5 to 15sec long. The images are around 1 to 3meg.
Thanks for the Help!
Norman

Keogram.txt
allsky.log.txt

@TexasTNT Thanks for the files.  The log file looks fine.  You aren't taking pictures during the day so they start at 19:10 pm based on your location and "angle" value.  The log file stops around 21:00 so I cant tell why it quits after that.
Would you please download the newest allsky/src/keogram.cpp and startrails.cpp?  Then run
cd allsky/src
make keogram
cp keogram ..
make startrails
cp startrails ..

Then try recreating the keogram.  It should give a better idea why it can't read the first file (now called the "sample" file).
I will look at the image in a bit.

OK Stupid question, how do you move the files from github to the Pi?
Last night got a full collection but saw in the log -
Mar 13 08:09:33 allsky allsky.sh[4769]: skip image-20220313040012.jpg size 4056x4056 != 2028x1520
Were is it picking up the size 4056x4056 from so if can make it match 2028x1520 so they are not skipped?
Or am I miss understanding?
Thanks for the Help!
Norman
allsky.log.txt

@TexasTNT Please grab the latest allsky/src/keogram.cpp and startrails.cpp.  They fix several bugs including displaying the width twice - 4056x4056 should be 4056x3040.
Unfortunately those programs don't accept image of different sizes, like when you bin differently in daytime and nighttime. I would like to fix this but currently don't know how. The programs look at the size of the first image and then ignore any image that isn't that size.
What is your KEOGRAM_EXTRA_PARAMETERS set to in config.sh?
One way to get files from GitHub to the Pi is to log into GitHub from the Pi. You can then go to the file and on the header on the right side is an icon with two boxes.  Clicking on that copies the file to the clipboard. You can then edit the file on the Pi and delete its contents then paste the new text in.  I do this.  It's easy when only doind a small number of files.
I am sure there is a git command to do this which would be easier.

Ok that works, rebuild keogram and startrails, reran keogram see keogram-2.txt and nothing went to the allsky.log.
Ran twice once with 20220305 and 20220312 same result.
Thanks for the Help!
Norman
Keogram-2.txt
allsky.log2.txt

@TexasTNT When you run the commands manually the output goes to your terminal. When run from the Allsky service the output goes to the log file since there may not be a terminal to output it to.  The service starts when the Pi is rebooted, but you may not log in for days.
You have the width and height set in the WebUI to the smaller size, so the keogram and startrails programs will ignore any image that isn't that size.  Unfortunately the first image is full size 4056x3040, which isn't a valid size, so the programs quit.  Try setting the width and heught in the WebUI to 0, which tell it to use the fill sensor.
What size do you want the images taken all day to be?  And what size do you want the startrails and keogram to be?

OK looks like they are working keogram, startrails and timelapse, Been testing in the office, going to put out tonight and capture real night sky and see what it looks like.
What size do you want the images taken all day to be? What is a good / normal setting.
And what size do you want the startrails and keogram to be? What is a good / normal setting.
Question how does Exposure, Brightness, Gain and Saturation come into play? haven't found anything that explains or makes sense yet.
Thanks for the Help!
Norman

@TexasTNT Norman,

What is a good / normal setting.

Only you can answer what a "good" setting is.  People whose camera has a small resolution may want a full-size image.  Your RPiHQ's resolution is larger than what fits on almost all monitors, so unless you want to zoom in on a picture, you're effectively "wasting" the high resolution and can safely decrease resolution in config/config.sh via the IMG_RESIZE/IMG_HEIGHT/IMG_WIDTH settings.
I take full-resolution RPiHQ images so I can zoom in, but decrease the timelapse size by 50%:
TIMELAPSEWIDTH=2028
TIMELAPSEHEIGHT=1520
I don't know enough peoples' settings to know what "normal" is.  I think a lot of people have smaller-resolution ZWO cameras so probably shoot full-resolution.

Question how does Exposure, Brightness, Gain and Saturation come into play? haven't found anything that explains or makes sense yet.

Good question, and I should create a Wiki page for this.
The combination of exposure and gain determine how bright a picture is.
If you've every used a film or DSLR camera, you know of the concepts of shutter speed ("Exposure") and ISO ("Gain").  If you take a picture at some exposure and gain, then half the exposure and double the gain by half, you should get a second picture of the same brightness as the first, but slightly noisier since increasing gain or ISO increases the salt-and-pepper like noise.
If you have a manual camera you can set the shutter speed and ISO to any value you want, but what if your camera (or allsky camera) automatically sets those values but you want an image that's brighter or dimmer?  In Allsky you can set the "Brightness" to change what settings the auto-exposure algorithm uses.
Saturation simply tells the camera how colorful you want the image, from no color (i.e., black and white), to really colorful (usually unrealistic).  Unfortunately the numbers you enter currently depend on the camera and what software you have.  For RPiHQ on Buster, I think goes from -100 to 100, but on Bullseye it goes from 0.0 to 2.0 (1.0 being "normal").  I need to figure out those numbers and then mention them in the WebUI.
Does this make sense?  If not, what doesn't make sense or what have I missed?  I'd like to add it to the Wiki?
Eric

OK, with it out looking at sky got everything Thursday night but last night froze at 3am. Noticed updates for ffmpeg and lib so have installed and will see what happens tonight. I think we got it and will let you now.
Question how does Exposure, Brightness, Gain and Saturation come into play?
I think I am following you, going to be a learning process and that's good.
Coffee coming Y-alls way!
Thanks for the Help!
Norman

@TexasTNT   Norman,  I created a Wiki page for these settings.  Let me know what you think.
What froze at 3 am?  If it's the Allsky software you can upload the log file and I'll take a look.
What updates for ffmpeg and lib?

That looks great, good job.
they were part of pi updates hey sent out.
I attached the load its large but march 26th at 03:00 hung there until i restarted the pi. was also stuck on that in live view.
Thanks for the HElp!
Norman
allsky.log.1.txt

@TexasTNT
I see what I believe is a hang at 03:26:15, and then you stopped or restarted Allsky at 08:50:11.  Is that correct?
Mar 26 03:26:15 allsky allsky.sh[1219]: STARTING EXPOSURE at: 2022-03-26 03:26:15   @ 10.0 sec
Mar 26 03:26:15 allsky allsky.sh[1219]:   > Capture command: LIBCAMERA_LOG_LEVELS='ERROR,FATAL' libcamera-still --output '/home/pi/allsky/tmp/image-20220326032615.jpg' --timeout 10 --nopreview --width 4056 --height 3040 --shutter 10000000 --gain 4 --awbgains 2.8,2.2 --vflip --saturation 1 --brightness 0.1 --quality 95

Mar 26 08:50:11 allsky allsky.sh[1219]: XXXXXX == in IntHandle(), got signal 15
Mar 26 08:50:14 allsky allsky.sh[1219]:      ***** Stopping AllSky *****

My RPiHQ was hanging a lot a few weeks ago, but it was after rain and I think the Pi or camera got wet or very humid.  When I brought the camera inside and it dried out, I haven't had the issue.  It's either a hardware problem or an issue with the "libcamera-still" command which actually controls the camera.  It's not an Allsky issue.
Check if your camera / Pi has moisture.
If the hang happens again, do the following BEFORE restarting Allsky:
strace -p $(pgrep libcamera-still)
libcamera-still --version

and let me know what it returns.

It hasn't happened again, working great. Playing with the settings and starting to work on move files to web page.
Thanks for all The Help!!
Norman

@TexasTNT. Are you OK if we close this Issue?
Eric

Yes Sir, as always Thanks for the Help!

Closing per user agreement.
We are always happy to help.

authors: EricClaeys TexasTNT

repo: thomasjacquin/allsky


text:
Add -newexposure option based on issue 417

Based on code update provided in comment by EricClaeys.  This allows reverting back to the 'v7' exposure method fixing issue 417.
Includes README.md documentation of the option.

Thomas, this looks good to me.
Michael - thanks for making these changes.  I have them in a version of capture.cpp that includes many other changes, but isn't quite ready for prime time.

@EricClaeys -- I reworded the help text per your suggestion.
Happy to help ( it's just your code after all )... but, ya, I recognize the struggle for your local testing code being included with a simple workaround.  So I thought it'd be good to re-package only the workaround to get it merged quicker.
Thanks for all your efforts on this @EricClaeys   (btw, if you use the @ then type someone's github name, it'll tag them in the comment for easier alerting. :)  )

authors: EricClaeys linuxkidd


text:
🛑 Syncthing-KA-TM is down

In 50bcd56, Syncthing-KA-TM ($URL_SYNCTHING_MERZ_NIMBUS_TM) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Syncthing-KA-TM is back up in 9465f27.

repo: thomasmerz/upptime


text:
🛑 OpenVPN-KA is down

In 4b27121, OpenVPN-KA ($URL_OPENVPN_KA) was down:

HTTP code: 0
Response time: 0 ms

Resolved: OpenVPN-KA is back up in 703193b.

Siehe: https://github.com/thomasmerz/issue-tracker/issues/630#issuecomment-1528802009


text:
Preserve https protocol per Infoton

Since we stopped using "https." prefix for Infoton path.
We need to keep it somewhere else, probably as a new (optional) system field 😱
Then, https will be fully supported in all APIs, including _out, _consume etc.,
// and we can remove the temp. hack of wombat-update-3
This will include #858 as well.

Note on existing data

if it should be http - nothing needs to be done
if it should be https - one needs to update the system field, can be done via _ow API

Have been tested manually.
We're still adding automated tests for this feature.
Moving to Done as of 1.5.164

authors: Ivan-Shestakov bryaakov

repo: thomsonreuters/CM-Well


text:
BTC not showing in Asgardex Desktop Wallet

Issue description

In June 1st. I sent to my Asgardex Desktop Wallet some BTC and swap half of them to Rune.
Today, when checking my Asgardex Desktop Wallet, my BTC is showing empty while my Rune is showing correctly.

Transaction: CD6609EC038C24B2CC311B8F79526A7996D383F1CAC2D9767BDE1877CA1E1976

Your Environment

ASGARDEX desktop version: v0.2.0

Operating system and version: Linux Mint 19.3 - 64 Bit

Transaction hash(es): CD6609EC038C24B2CC311B8F79526A7996D383F1CAC2D9767BDE1877CA1E1976

Wallet address(es):
Rune: thor1cja89yne8rv8jj0xxez73y5zghaygfq0wefwe8
BTC: bc1qyc9efg7mysajpnjhfmx8ndxwm9w75kxt40urkk

Upgraded my ASGARDEX desktop to 0.3.5 and resolved the issue.
Thank you.

repo: thorchain/asgardex-electron


text:
Need help with a small change.

Hi there!
I'm using this small piece of code:
    static func create(api_key: String)(id: Int)(urlString: String?) -> Sharing {
        return Sharing(api_key: api_key, id: String(id), urlString: urlString)
    }

    static func decode(j: JSON) -> Decoded<Sharing> {
        return Sharing.create
            <^> j <| "api_key"
            <*> j <| "id"
            <*> j <|? "urlString"
    }

when I change the static func called create as suggested by xcode because the way I used it is deprecated, an error pops up. I change the function to:
static func create(api_key: String, id: Int, urlString: String?) -> Sharing {
      return Sharing(api_key: api_key, id: String(id), urlString: urlString)
}

and then the decode function will come up with the following error:
/Users/matthijsotterloo/git/CaptureCamera/PhotoSharing/SharingService.swift:63:24: Cannot convert value of type '(String, id: Int, urlString: String?) -> Sharing' to expected argument type '_ -> _ -> _ -> Sharing'
Anyone knows how to solve this? Thanks in advance.

Hey there, that error pops up because they have decided to remove the function currying syntax for Swift 3.0, you can read about that change here. Because of that, it makes implementing currying in Swift a bit more of a pain. That being said, here's two different ways to get around it.
The first being to use currying how you have to use it in Swift now. Which would look like so:
static func create(_ api_key: String) -> ((Int) -> ((String?) -> Sharing)) {
    return { id in
        { urlString in
            return Sharing(api_key: api_key, id: String(id), urlString: urlString)
        }
    }
}

It's a little gnarly to read and maintain, but it should work.
The other option (which is what we typically do at thoughtbot), is to use our library Curry to handle it for you. With it, you don't even need to create the create function(assuming Sharing is a struct or has an initializer like you've defined like create) and using it would look like:
import Curry
// ...
static func decode(j: JSON) -> Decoded<Sharing> {
    return curry(Sharing.init)
        <^> j <| "api_key"
        <*> j <| "id"
        <*> j <|? "urlString"
}

Let me know if those work for you.
We also have a blog post that goes deeper into what currying is and how it works in Swift here. It's slightly out of date where it mentions the old syntax but it mostly talks about how to do it the way I did above.

fwiw, you don't need all of those parens in your curried function if you don't want them. This will compile just fine:
static func create(_ api_key: String) -> (Int) -> (String?) -> Sharing {
    return { id in
        { urlString in
            return Sharing(api_key: api_key, id: String(id), urlString: urlString)
        }
    }
}

I would highly recommend letting Curry.framework do this work for you, though.

@matthijsotterloo Do you still need help on this, or is it OK to close the issue?

Solved! ;)

authors: gfontenot jakecraige matthijsotterloo

repo: thoughtbot/Argo


text:
NEWS file entry missing from 1.5.1

https://github.com/thoughtbot/capybara-webkit/tree/v1.5.1
The NEWS file is missing an entry for changes in 1.5.1.

Sorry about that. I updated the file in master: https://github.com/thoughtbot/capybara-webkit/blob/master/NEWS.md

authors: betelgeuse jferris

repo: thoughtbot/capybara-webkit


text:
blank remember_token results in inability to authenticate

I'm introducing clearance on an app with existing users. I'm adding the remember_token column but not populating it. Existing users are unable to authenticate. (also, btw, the failure behavior is very difficult to diagnose, the authentication succeeds but then on the next request the cookie isn't accepted).
in the changelog from nov 2013 there is:
### Fixed
- Don't allow logins with blank `remember_token`.

What's the purpose of this? Wouldn't it make sense to populate a nil remember_token if one is encountered upon authentication? Is there some particular exploit that's been guarded against?

Did you run rails generate clearance:install? The install generatror should have generated a migration for an existing users table that populates this field for all users where it is null. It is not a valid state to authenticate users with no remember tokens.
If we were to allow blank remember tokens to attempt to log in then any request that contained a blank remember token would be signed in as the first user found in the database with a null remember token. I found the history on this issue by looking at the NEWS file, finding the entry you listed and then clicking on the version number for the full change-log. It pointed to this commit which came from this issue.

Hi @derekprior, thanks for your response. I see I could have been more thorough before submitting my issue -- I will next time!

It's not overly clear that clicking the version number gives you the full diff.

authors: derekprior jjb

repo: thoughtbot/clearance


text:
"ArgumentError: too few arguments" using :format attribute

I have created a simple Rails project to reproduce this issue:

https://github.com/fguillen/FactoryGirlTest

When one of my Models has an attribute called format and this attribute has not a default value into the factory definition I have an error when I try to assign a value to it into the factory create:
# /test/factories.rb
FactoryGirl.define do
  factory :thing do
    name 'Name'
  end
end

Factory(:thing, :format => "the format")

ArgumentError: too few arguments
  from /Users/fguillen/.rvm/gems/ruby-1.9.2-p290@factory_girl_test/gems/factory_girl-2.5.0/lib/factory_girl/attribute_assigner.rb:36:in `format'
  from /Users/fguillen/.rvm/gems/ruby-1.9.2-p290@factory_girl_test/gems/factory_girl-2.5.0/lib/factory_girl/attribute_assigner.rb:36:in `get'
  from /Users/fguillen/.rvm/gems/ruby-1.9.2-p290@factory_girl_test/gems/factory_girl-2.5.0/lib/factory_girl/attribute_assigner.rb:14:in `block (2 levels) in object'
  from /Users/fguillen/.rvm/gems/ruby-1.9.2-p290@factory_girl_test/gems/factory_girl-2.5.0/lib/factory_girl/attribute_assigner.rb:13:in `each'
  from /Users/fguillen/.rvm/gems/ruby-1.9.2-p290@factory_girl_test/gems/factory_girl-2.5.0/lib/factory_girl/attribute_assigner.rb:13:in `block in object'
  from /Users/fguillen/.rvm/gems/ruby-1.9.2-p290@factory_girl_test/gems/factory_girl-2.5.0/lib/factory_girl/attribute_assigner.rb:12:in `tap'
  from /Users/fguillen/.rvm/gems/ruby-1.9.2-p290@factory_girl_test/gems/factory_girl-2.5.0/lib/factory_girl/attribute_assigner.rb:12:in `object'
  from /Users/fguillen/.rvm/gems/ruby-1.9.2-p290@factory_girl_test/gems/factory_girl-2.5.0/lib/factory_girl/proxy/create.rb:5:in `result'
  from /Users/fguillen/.rvm/gems/ruby-1.9.2-p290@factory_girl_test/gems/factory_girl-2.5.0/lib/factory_girl/factory.rb:48:in `run'
  from /Users/fguillen/.rvm/gems/ruby-1.9.2-p290@factory_girl_test/gems/factory_girl-2.5.0/lib/factory_girl/syntax/methods.rb:148:in `run_factory_girl_proxy'
  from /Users/fguillen/.rvm/gems/ruby-1.9.2-p290@factory_girl_test/gems/factory_girl-2.5.0/lib/factory_girl/syntax/methods.rb:63:in `create'
  from /Users/fguillen/.rvm/gems/ruby-1.9.2-p290@factory_girl_test/gems/factory_girl-2.5.0/lib/factory_girl/syntax/vintage.rb:50:in `default_strategy'
  from /Users/fguillen/.rvm/gems/ruby-1.9.2-p290@factory_girl_test/gems/factory_girl-2.5.0/lib/factory_girl/syntax/vintage.rb:143:in `Factory'
  from (irb):2
  from /Users/fguillen/.rvm/gems/ruby-1.9.2-p290@factory_girl_test/gems/railties-3.1.3/lib/rails/commands/console.rb:45:in `start'
  from /Users/fguillen/.rvm/gems/ruby-1.9.2-p290@factory_girl_test/gems/railties-3.1.3/lib/rails/commands/console.rb:8:in `start'
  from /Users/fguillen/.rvm/gems/ruby-1.9.2-p290@factory_girl_test/gems/railties-3.1.3/lib/rails/commands.rb:40:in `<top (required)>'
  from script/rails:6:in `require'
  from script/rails:6:in `<main>'1.9.2-p290 :003 >

Sure!, looks like it works:
item = Item.create!(:name => "the name", :format => "the format")
item.format #=> "the format"

I have created a test in my "TestProject" to reproduce this: https://github.com/fguillen/FactoryGirlTest/commit/37d15cd7a6de29d32c3337a970d2da98be231062

How about if you call item.format = "the format" instead of passing it to
create!?

Yes, sorry, I have already updated my comment, please refresh it, I also have tried this and works.

Okay, this does seem like a bug, then. Thanks for working through this with me. I'm guessing this has to do with the fact that Object#format is already defined, and we need to override it or undefine on one of our proxy objects. More specifically, we likely need to make sure methods like format are undefined by default on Evaluator, so that method_missing will kick in for overrides that aren't also specified as attributes.
If you want to try a pull request, that would be awesome. If you don't have time to investigate a fix, just a failing unit test in factory_girl for the edge case you discovered would also be useful.

I'll be very proud to work on this issue, let me try to find time this week. If this is not faster enough let me know.

@jferris I'm stack need a few orientation.
The problem is that calling to Evaluator#send(:method_name) the Evaluator#method_missing is not executed if the method_name is a private method of some of the superclasses due is not a 'method missing'.
I have a test that reproduces de issue: https://github.com/fguillen/factory_girl/commit/df49072dde349895730c5d66b1ad4edb64128f91
Also I have a solution that makes no one test fail: https://github.com/fguillen/factory_girl/commit/89de5364d31ecadd34d3ddb1120ee368ace8512e
The only problem with this solution is that it uses eval and I don't know if you are gonna like it.
I have tried several approaches like:

Extending from BasicObject instead of Object but this it didn't work and also will be ruby 1.9.2 dependent.
Overwriting the Evaluator.send method and passing the argument to the Evaluator.missing_method, it works for my test but fails for several others.
I have tried to undef_method for all inherited methods in Evaluator as you already do it in DefinitionProxy, but if you check this commit you'll see I couldn't find the list of methods to no undef to make all the tests pass.

If you don't like the eval solution which approach you suggest?.

We were thinking of using BasicObject. There's a version in ActiveSupport (which we depend on) that's compatible with Ruby 1.8. What wasn't working when you tried to use that?

The first biggest issue I'm finding to make Evaluator inherits from BasicObject is that we lost the class method which now returns just nil and so we lost access to the class_attributes:

Evaluator.callbacks
Evaluator.attribute_lists

I can try to think in a solution where Evaluator.class is not needed but it will implied an small change in the architecture. And still we don't know if other issues will be appear.
You don't like the eval approach?
Do you think is worth to try to fight for the BasicObject solution? Any suggestion or orientation?

The BasicObject implementation seems cleaner to me. I'm interested in
Josh's opinion.

@fguillen I remember looking into this when you first filed the issue (sorry I haven't had more time this week to help out!) and I went down the BasicObject path. I ran into similar issues and seem to recall wanting to create another class or somehow move things around so that we were defining methods on a class that inherits from ActiveSupport::BasicObject. This will likely require a decent amount of work but will ensure that none of these issues with methods from Object come up anymore.

Just playing around I have removed the needed of Evaluator#class (at least to run my test):

https://github.com/fguillen/factory_girl/commit/0570f8c3c9ee89d62faf4bbb25457afd37f941e5

It is not an elegant solution, I'm just playing to see if there is more problems.
But still having the too few arguments error:
1) using attributes on a Factory that are private methods on Object but wihout assigning a default value in factory format
   Failure/Error: subject { FactoryGirl.build(:image, :format => "the format") }
   ArgumentError:
     too few arguments
   # ./lib/factory_girl/evaluator.rb:61:in `format'
   # ./lib/factory_girl/evaluator.rb:61:in `method_missing'
   # ./lib/factory_girl/attribute_assigner.rb:36:in `get'

This time the error is into the Evaluator#method_missing, what means we have move one step, it happens calling to @instance.format so I don't know if is something wrong in my test model definition:

https://github.com/fguillen/factory_girl/blob/basic_object_approach/spec/acceptance/attribute_existing_on_object_spec.rb#L23

To run my test:
$ rspec spec/acceptance/attribute_existing_on_object_spec.rb:23

I'll give another try other day. Any suggestion is welcome.

After looking at the eval solution, I realized that it worked because format is a private method. One alternative would be using public_send from the attribute assigner (https://github.com/thoughtbot/factory_girl/blob/master/lib/factory_girl/attribute_assigner.rb#L36) but public_send was introduced in 1.9 (and it wouldn't handle situations where the attribute gets called from a block).
I tried to copy https://github.com/thoughtbot/factory_girl/blob/master/lib/factory_girl/definition_proxy.rb#L3-7 as well, and that didn't work, so I changed it to undefine just private methods.
Here's the commit: https://github.com/thoughtbot/factory_girl/commit/97c92ac6a84a4aac57579169f048c84301adce4e
There's another related issue here: https://github.com/thoughtbot/factory_girl/issues/285 and I've confirmed that it is also resolved with this commit.
All this said, I'm not sure if this is the best solution. I really like the idea of using a class inheriting from BasicObject to store all the attributes but this works too. @jferris, @fguillen thoughts?

I think is the simplest approach so I like it.
Just be sure this test file is executed due it doesn't end with _spec.rb I think is ignored by the rake test.

Nice catch! Changed.

@fguillen I just released version 2.5.1 of factory girl, which includes the fix for this. Thanks for pointing it out!

Good job, thanks!

authors: fguillen jferris joshuaclayton


text:
Import Normalize first

It's usually best practice to import any sort of "reset" first. Right now, any
styles within the Bitters instance run the risk of being overriden by styles
in Normalize.

Doh! I didn't even think about the Bitters line. Thanks! :+1:

authors: joshuaogle tysongach

repo: thoughtbot/proteus-middleman


text:
th175 controllers support

th175 supposedly doesn't work with some controllers when using thcrap. Might be related to Steam not working.

Fixed by adding Steam integration in thpatch/thcrap-tsa@83a2a4b4c7a2f98ffcfb41ab337fb5046c07c101

repo: thpatch/thcrap

license: unlicense


text:
specify failure or success for periodic wakeup logs

Related issues:

#67

Failed wakeups are already logged here: https://github.com/threefoldtech/farmerbot/blob/00d1e38e2092972aadaa2e081c32a7851edfe91c/farmerbot/manager/data.v#L192

authors: MarioBassem scottyeager

repo: threefoldtech/farmerbot


text:
package delete doen't work

Steps

gedis_client = j.clients.gedis.get("pm", port=8901, package_name="zerobot.packagemanager")
package_manager = gedis_client.actors.package_manager
giturl ="https://github.com/threefoldtech/jumpscaleX_threebot/tree/development_testrunner/ThreeBotPackages/examples/test_package"
package_manager.package_add(git_url=giturl)
check package status = "Installed"

Issue
try package_manager.package_delete(p.name), will not do anything and try to get package status will find it still installed and package still exist in package list

Fixed in PR: https://github.com/threefoldtech/jumpscaleX_core/pull/590

steps

gedis_client = j.clients.gedis.get("pm", port=8901, package_name="zerobot.packagemanager")
package_manager = gedis_client.actors.package_manager
giturl ="https://github.com/threefoldtech/jumpscaleX_threebot/tree/development_testrunner/ThreeBotPackages/examples/test_package"
package_manager.package_add(git_url=giturl)
check if the package is installed, it should be installed ( we can check it using cmd or from portal)

http://172.17.0.2/zerobot/packagemanager/
for package in packages:
    if "test_package" in package.name:
    print(package)

try to delete the package:
package_manager.package_delete(name="jumpscale.test_package")

and check again if it is installed, shouldn't be exist.

authors: Dina-Abd-Elrahman Dinaamagdy m-motawea


text:
Feature Request parameter to get peers added automatically

Feature Request
Exploring Mycelium, I just set an SSH connection via Mycelium between two machines, quick and effective. It's just so cool. While doing so, I tried different peers and I rely on what is written in this README.md for example of peers. I was thinking, it is great to use the peers argument with few peers:
mycelium --peers tcp://188.40.132.242:9651 quic://185.69.166.8:9651

That being said, could it be possible to add some parameters, for e.g. to fetch all peers available, all IPv4 peers available, all IPv6 peers available, all tcp peers available, all quic peers available, and combinations of those, etc. e.g.
mycelium --peers all # this would be all: ipv4, ipv6, quic, tcp
mycelium --peers all ipv4
mycelium --peers all ipv6
mycelium --peers all tcp
mycelium --peers all quic
mycelium --peers all ipv6 quic
mycelium --peers all ipv6 tcp
mycelium --peers all ipv4 quic
mycelium --peers all ipv6 tcp

Implementation
I guess Mycelium would need to check all peers in the network. Perhaps one basic peer would be needed to first connect to the network? E.g.
mycelium --peers all tcp://188.40.132.242:9651

Or we could set a basic list of peers within every Mycelium release, and it tries any of them until at least one works, then it scans the whole network and connects to all peers.
Modalities
Perhaps fetching all peers is too much so it could be: find and connect to 10 peers within the given parameters (e.g. mycelium --peers find=10 ipv4, etc.)
Most surely the way I write commands is wrong, but it's to give an idea.

From what I read there isn't yet such suggestion, but if there is, feel free to close the issue.

Thanks!

In general, this is currently not doable since mycelium does not learn, nor care, about connection details of underlays of nodes in the network (except of course for the direct peers). From the protocols perspective, all it has is a bunch of connections (peers), which announce routes to overlay subnets, from which it then selects the "best" route (i.e. this packet should go on this connection).
In the (far) future, there might be a case to implement some form of network topology discovery. The main goal there would be for nodes to learn about the network, so they could potentially "shorten" the distance of frequently used paths by connecting to intermediate nodes in the path/the end node directly (as we generally assume that the triangle inequality theorem is applicable for route latency). Though I should stress that this is something which came up once that might be interesting, and is in no way a commitment to a future feature.

authors: LeeSmet Mik-TF

repo: threefoldtech/mycelium


text:
support info markdown pages

verified and works fine for all solution.

repo: threefoldtech/tfgrid-sdk-ts


text:
Is it possible to make SDXL guidance work?

I still hope to check if anyone makes SDXL guidance work. I implemented one but it did not work. The major changes I made was the prompt process part as SDXL needs text embedding from two text encoders as well as pooled embedding and the Unet to encode image size information.
There are 2 weird things I noticed:

If I set the data type of the VAE encoder to be float16, soon the gradient becomes nan, which is different from sd 2.0.
If I set the data type of VAE encoder to be float32, I no longer have the nan issue but I can only get very blurry results at the beginning and it diverges as the training goes on.

Looking forward to any thoughts and suggestions! Thanks in advance!

You can take some inspiration from the repo pinned in my profile.

authors: lzqsd mdarhdarz

repo: threestudio-project/threestudio


text:
Factor out RW base

r @abhinav

:+1:

authors: abhinav kriskowal

repo: thriftrw/thriftrw-node


text:
switch to using entry_points instead of scripts

I haven't tested it on windows, but switching to entry_points should allow all of the scripts to install on windows.

this isn't ready. it does get the script onto the path, but windows throws an error...
PS C:\Users\Justin> thunder
'--master' is not recognized as an internal or external command,
operable program or batch file.

something isn't right with the arguments & pyspark

alright, the scripts are all working on linux still, but getting java problems on windows:
PS C:\Users\Justin> thunder
PS C:\Users\Justin> Running python with PYTHONPATH=C:\Users\Justin\Code\spark\spark-1.3.1-bin-hadoop1\bin\..\python\lib\
py4j-0.8.2.1-src.zip;C:\Users\Justin\Code\spark\spark-1.3.1-bin-hadoop1\bin\..\python;
Python 2.7.9 |Continuum Analytics, Inc.| (default, Dec 18 2014, 16:57:52) [MSC v.1500 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
Anaconda is brought to you by Continuum Analytics.
Please check out: http://continuum.io/thanks and https://binstar.org
Exception in thread "main" java.lang.IllegalArgumentException: Given path is malformed: c:usersjustincodethunderpythonth
underlibthunder_2.10-0.6.0.dev.jar
        at org.apache.spark.util.Utils$.resolveURI(Utils.scala:1666)
        at org.apache.spark.util.Utils$$anonfun$resolveURIs$1.apply(Utils.scala:1688)
        at org.apache.spark.util.Utils$$anonfun$resolveURIs$1.apply(Utils.scala:1688)
        at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:244)
        at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:244)
        at scala.collection.IndexedSeqOptimized$class.foreach(IndexedSeqOptimized.scala:33)
        at scala.collection.mutable.ArrayOps$ofRef.foreach(ArrayOps.scala:108)
        at scala.collection.TraversableLike$class.map(TraversableLike.scala:244)
        at scala.collection.mutable.ArrayOps$ofRef.map(ArrayOps.scala:108)
        at org.apache.spark.util.Utils$.resolveURIs(Utils.scala:1688)
        at org.apache.spark.deploy.SparkSubmitArguments.parse$1(SparkSubmitArguments.scala:391)
        at org.apache.spark.deploy.SparkSubmitArguments.parseOpts(SparkSubmitArguments.scala:288)
        at org.apache.spark.deploy.SparkSubmitArguments.<init>(SparkSubmitArguments.scala:87)
        at org.apache.spark.deploy.SparkSubmit$.main(SparkSubmit.scala:105)
        at org.apache.spark.deploy.SparkSubmit.main(SparkSubmit.scala)
Using Spark's default log4j profile: org/apache/spark/log4j-defaults.properties
Traceback (most recent call last):
  File "C:\Users\Justin\Code\spark\spark-1.3.1-bin-hadoop1\bin\..\python\pyspark\shell.py", line 50, in <module>
    sc = SparkContext(appName="PySparkShell", pyFiles=add_files)
  File "C:\Users\Justin\Code\spark\spark-1.3.1-bin-hadoop1\python\pyspark\context.py", line 107, in __init__
    SparkContext._ensure_initialized(self, gateway=gateway)
  File "C:\Users\Justin\Code\spark\spark-1.3.1-bin-hadoop1\python\pyspark\context.py", line 221, in _ensure_initialized
    SparkContext._gateway = gateway or launch_gateway()
  File "C:\Users\Justin\Code\spark\spark-1.3.1-bin-hadoop1\python\pyspark\java_gateway.py", line 79, in launch_gateway
    raise Exception("Java gateway process exited before sending the driver its port number")
Exception: Java gateway process exited before sending the driver its port number

I can run pyspark just fine, so this seems to be a problem with the jar that thunder is passing to pyspark.

Yeah it looks like the path to the jar is getting garbled, it's constructed here https://github.com/thunder-project/thunder/blob/master/python/thunder/utils/launch.py#L76-81 but not clear that's where the issue is, the problem could also be in os.execv(sparkSubmit, [sparkSubmit,]+childArgs)

status:
thunder: there's something odd about how windows handles stdin/stdout with os.execv(), but we can still launch an ipython notebook
I can run pyspark without problem, but when I run thunder, the keyboard input is getting processed by the CMD interpretter, not python (or ipython if I've set that ENV variable). see:
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

C:\Users\Justin>thunder

C:\Users\Justin>Running python with PYTHONPATH=C:\Users\Justin\Code\spark\spark-
1.3.1-bin-hadoop1\bin\..\python\lib\py4j-0.8.2.1-src.zip;C:\Users\Justin\Code\sp
ark\spark-1.3.1-bin-hadoop1\bin\..\python;
Python 2.7.9 |Continuum Analytics, Inc.| (default, Dec 18 2014, 16:57:52) [MSC v
.1500 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
Anaconda is brought to you by Continuum Analytics.
Please check out: http://continuum.io/thanks and https://binstar.org

<LOGGING>

Welcome to
      ____              __
     / __/__  ___ _____/ /__
    _\ \/ _ \/ _ `/ __/  '_/
   /__ / .__/\_,_/_/ /_/\_\   version 1.3.1
      /_/

Using Python version 2.7.9 (default, Dec 18 2014 16:57:52)
SparkContext available as sc, HiveContext available as sqlContext.

←[33m       IIIII            ←[0m
←[33m       IIIII            ←[0m
←[33m    IIIIIIIIIIIIIIIIIII ←[0m
←[33m    IIIIIIIIIIIIIIIIII  ←[0m
←[33m      IIIII             ←[0m
←[33m     IIIII              ←[0m
←[33m     IIIII              ←[0mThunder
←[33m      IIIIIIIII         ←[0mversion 0.6.0.dev
←[33m       IIIIIII          ←[0m

A Thunder context is available as tsc
>>> tsc
'tsc' is not recognized as an internal or external command,
operable program or batch file.

C:\Users\Justin>

So even though I get a python prompt, "tsc" is getting passed to the cmd prompt. And at this point, the command prompt becomes largely unusable. The first character of every command is ignored. Backslashes (like when typing a path) present the python prompt again.
That said, if I've got IPYTHON=1 & IPYTHON_OPTS="notebook", then thunder properly launches an ipython notebook w/ a tsc instance. If we really want the cli working in windows, then it might be worth replacing os.execv() with subprocess.popen()
thunder-ec2
This crashes when trying to install boto:
C:\Users\Justin>thunder-ec2
Downloading Boto from PyPi
ERROR: Got wrong md5sum for Boto

C:\Users\Justin>

If I manually download boto from the path in the script and check it, it validates:
PS C:\Users\Justin> FCIV .\Downloads\boto-2.34.0.tar.gz
//
// File Checksum Integrity Verifier version 2.05.
//
5556223d2d0cc4d06dd4829e671dcecd .\downloads\boto-2.34.0.tar.gz
PS C:\Users\Justin>

I'm currently stuck as to why this is failing on windows.

OK. that boto error is unique to spark-1.3.1+, which is setup to download boto. reverting to spark-1.1.0. I'm not sure exactly when spark switched, but currently ec2.py assumes boto is version 2.4.1 & located in ec2/third_party

Thanks for the effort @neuromusic ! Closing this, as moving forward with 1.0.0 there will no longer be any launch scripts, as described in https://github.com/thunder-project/thunder/pull/243

authors: freeman-lab neuromusic

repo: thunder-project/thunder


text:
multiple devices in control, single result!

RESULT of 4 devices, different IPs and password..
[2017-03-01 21:47:41] Homebridge is running on port 51826.
Values
{ power: false,
consumption: 0,
totalConsumption: 0.094184,
temperature: 38 }
Values
{ power: false,
consumption: 0,
totalConsumption: 0.094184,
temperature: 38 }
Values
{ power: false,
consumption: 0,
totalConsumption: 0.094184,
temperature: 38 }
Values
{ power: false,
consumption: 0,
totalConsumption: 0.094184,
temperature: 38 }

problem confirmed.
With one unit all seems working correct. Connecting more than one plug results in a clone reply of the first unit.
here the output of firmware version and details of 1 plug.
Firmware External Version: V2.22
Firmware Internal Version: V2.22b05
Date: Wed, 3 Feb 2016
Checksum: 0x06CDB68D
2.4GHz regulation domain: EU
1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13
Firmware Query: http://wrpd.dlink.com/router/firmware/query.aspx?model=DSP-W215_Bx_Default_FW_0222_54B80A7C2194
LAN MAC: XXXXXXXXXX
Kernel: 2.6.31, B0015, Date=Tue, 1 Dec, 2015
Apps: 1.1, B0141, Date=Wed, 03 Feb, 2016
WLAN Driver: AR9531, 10.2-00082-4, B0012, Date=Fri, 15 Jan, 2016
2.4GHz WLAN MAC 0: XXXXXXXXXXXX
2.4GHz SSID: DSP-2194
Factory Default: 0
DCH_ID: 2c3e4d86028e90365d331522fe772e1c
and here the config.json used for tests:
{
"bridge": {
"name": "RaspNik",
"username": "XX:XX:XX:XX:XX:XX",
"port": 51826,
"pin": "XXX-XX-XXX"
},
"description": "This is an example configuration file with one fake accessory and one fake platform. You can use this as a template for creati$

"accessories": [
    {
    "accessory": "w215",
    "name": "Boiler",
    "host": "boiler_ip",
    "username": "admin",
    "password": "XXXXXX"
    },
    {
    "accessory": "w215",
    "name": "Giorno",
    "host": "giorno_ip",
    "username": "admin",
    "password": "XXXXXX"
    },
    {
    "accessory": "w215",
    "name": "Notte",
    "host": "notte_ip",
    "username": "admin",
    "password": "XXXXXX"
    },
    {
    "accessory": "w215",
    "name": "Studio",
    "host": "studio_ip",
    "username": "admin",
    "password": "XXXXXX"
    }
]

}

Sorry I've been really slow with this. I will spin up the other socket I have laying around and see if I can figure out the issue.

Seeing this too, in my case it's the last w215 that id duplicated. If I use Apple home app to toggle the switches, only the last one on config.json gets toggled. My config.json looks like urbook's

Strange. OK Shouldn't be a problem to fix.

Same issue for me with two plug only last one is targeted

OK so I have managed to find my other plug, so will look into it.

please use this pattern to avoid singleton issue
https://medium.com/@iaincollins/how-not-to-create-a-singleton-in-node-js-bd7fde5361f5
i'm patching your code like that
`'use strict';
var inherits = require('util').inherits;
var dsp = require('hnap/js/soapclient');
var Characteristic, Service;
module.exports = function(homebridge) {
console.log("homebridge API version: " + homebridge.version);
Service = homebridge.hap.Service;
Characteristic = homebridge.hap.Characteristic;
homebridge.registerAccessory('homebridge-w215', 'w215', W215Accessory, false);

};
function W215Accessory(log, config, api) {
this.dspInstance = new dsp();
this.log = log;
`

First, thank you @thunderbird for this plugin.
I am new to homebridge and npm. A novice in fact. And this is my first ever post on it. So, I request you to bear with me if I have made a noob mistake. Thanks.
I have setup homebridge on a pi2 and everything is working well. Just that I am unable to use more than 1 w-215 plug, as mentioned by the others here. @pumamood, you've mentioned that you fixed this in your setup and have included a file in your post. May I request you for some help in having that installed in my setup? What do I do with that file you've attached to resolve multiple plugs- single result issue?
Thank you!

here is my config:
{
"accessory": "w215",
"name": "HEATER",
"host": "172.20.1.115",
"username": "admin",
"password": "XXXXXX"
},
{
"accessory": "w215",
"name": "BEDROOM AIRCON",
"host": "172.20.1.116",
"username": "admin",
"password": "XXXXXX"
},
{
"accessory": "w215",
"name": "BEDROOM GEYSER",
"host": "172.20.1.117",
"username": "admin",
"password": "XXXXXX"
}
I only get results for the last entry (i.e.) BEDROOM GEYSER

Basically you should replace index.js inside homebridge-w215 folder and install in the same folder (or globally) require-uncached with npm.
$ npm install -g require-uncached
let me kno if you need more help

Thank you for the reply, @pumamood. Appreciate it much. Unfortunately for me, I don't know how to do what you've said. I am simply following the fine grained instructions to install stuff on the pi by all the enthusiasts here. Ill try and read up on installing from local folders and then come back to you. I am sure I will still need help after that too.

Hi Pumamood. I copied the file to the homebridge-w215 directory and installed require-uncached and homebridge again globally. The first time I ran the install it went thru smoothly, but I was still facing the single output issue. So i tried running the installs again and this is what i am getting:
pi@pi:/usr/lib/node_modules/homebridge-w215 $ sudo npm install -g require-uncached
path.js:1163
cwd = process.cwd();
^
Error: ENOENT: no such file or directory, uv_cwd
at Object.resolve (path.js:1163:25)
at Function.Module._resolveLookupPaths (module.js:408:17)
at Function.Module._resolveFilename (module.js:480:22)
at Function.Module._load (module.js:437:25)
at Module.require (module.js:513:17)
at require (internal/module.js:11:18)
at /usr/lib/node_modules/npm/bin/npm-cli.js:19:21
at Object. (/usr/lib/node_modules/npm/bin/npm-cli.js:92:3)
at Module._compile (module.js:569:30)
at Object.Module._extensions..js (module.js:580:10)
pi@pi:/usr/lib/node_modules/homebridge-w215 $ sudo npm install -g homebridge-w215
path.js:1163
cwd = process.cwd();
^
Error: ENOENT: no such file or directory, uv_cwd
at Object.resolve (path.js:1163:25)
at Function.Module._resolveLookupPaths (module.js:408:17)
at Function.Module._resolveFilename (module.js:480:22)
at Function.Module._load (module.js:437:25)
at Module.require (module.js:513:17)
at require (internal/module.js:11:18)
at /usr/lib/node_modules/npm/bin/npm-cli.js:19:21
at Object. (/usr/lib/node_modules/npm/bin/npm-cli.js:92:3)
at Module._compile (module.js:569:30)
at Object.Module._extensions..js (module.js:580:10)
Can you please help in identifying the issue! thanks!

the larger and bolder font is not intentional!

Also, i am getting the following in the journal logs:
Jul 01 12:42:23 pi homebridge[32096]: error: { Error: Server responded with status code 401:
Jul 01 12:42:23 pi homebridge[32096]: <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">soap:Bodysoap:Faultsoap:Client401 Unauthorized</soap:Fault></soap:Body></soap:Envelope>
Jul 01 12:42:23 pi homebridge[32096]: at Response.getBody (/usr/lib/node_modules/homebridge-w215/node_modules/http-response-object/lib/index.js:27:23)
Jul 01 12:42:23 pi homebridge[32096]: at /usr/lib/node_modules/homebridge-w215/node_modules/hnap/js/soapclient.js:81:43
Jul 01 12:42:23 pi homebridge[32096]: at tryCallOne (/usr/lib/node_modules/homebridge-w215/node_modules/promise/lib/core.js:37:12)
Jul 01 12:42:23 pi homebridge[32096]: at /usr/lib/node_modules/homebridge-w215/node_modules/promise/lib/core.js:123:15
Jul 01 12:42:23 pi homebridge[32096]: at flush (/usr/lib/node_modules/homebridge-w215/node_modules/asap/raw.js:50:29)
Jul 01 12:42:23 pi homebridge[32096]: at _combinedTickCallback (internal/process/next_tick.js:95:7)
Jul 01 12:42:23 pi homebridge[32096]: at process._tickCallback (internal/process/next_tick.js:161:9)
Jul 01 12:42:23 pi homebridge[32096]: statusCode: 401,
Jul 01 12:42:23 pi homebridge[32096]: headers:
Jul 01 12:42:23 pi homebridge[32096]: { 'www-authenticate': 'Basic realm="HNAP1"',
Jul 01 12:42:23 pi homebridge[32096]: connection: 'close',
Jul 01 12:42:23 pi homebridge[32096]: 'transfer-encoding': 'chunked',
Jul 01 12:42:23 pi homebridge[32096]: 'cache-control': 'no-store, no-cache, must-revalidate, post-check=0, pre-check=0, max-age=-1',
Jul 01 12:42:23 pi homebridge[32096]: 'content-type': 'text/xml',
Jul 01 12:42:23 pi homebridge[32096]: date: 'Sat, 01 Jul 2017 07:12:23 GMT',
Jul 01 12:42:23 pi homebridge[32096]: server: 'lighttpd/1.4.28-devel-5579M' },
Jul 01 12:42:23 pi homebridge[32096]: body: <Buffer 3c 3f 78 6d 6c 20 76 65 72 73 69 6f 6e 3d 22 31 2e 30 22 20 65 6e 63 6f 64 69 6e 67 3d 22 75 74 66 2d 38 22 3f 3e 3c 73 6f 61 70 3a 45 6e 76 65 6c 6f ... >,
Jul 01 12:42:23 pi homebridge[32096]: url: 'http://172.20.1.115/HNAP1' }
Jul 01 12:42:23 pi homebridge[32096]: undefined
Note that all the three W-215 plugs are connected and I am able to use them with the MyDlink App. Thanks in advance for your time and help.

Hi pumamood, i copied index.js to the w215 directory and installed it globally from there.
I am getting the following error in the journal log:
Jul 01 13:25:07 pi homebridge[32674]: /usr/lib/node_modules/homebridge/lib/api.js:64
Jul 01 13:25:07 pi homebridge[32674]: throw new Error("The requested accessory '" + name + "' was not registered by any plugin.");
Jul 01 13:25:07 pi homebridge[32674]: ^
Jul 01 13:25:07 pi homebridge[32674]: Error: The requested accessory 'w215' was not registered by any plugin.
Jul 01 13:25:07 pi homebridge[32674]: at API.accessory (/usr/lib/node_modules/homebridge/lib/api.js:64:13)
Jul 01 13:25:07 pi homebridge[32674]: at Server._loadAccessories (/usr/lib/node_modules/homebridge/lib/server.js:254:42)
Jul 01 13:25:07 pi homebridge[32674]: at Server.run (/usr/lib/node_modules/homebridge/lib/server.js:81:38)
Jul 01 13:25:07 pi homebridge[32674]: at module.exports (/usr/lib/node_modules/homebridge/lib/cli.js:40:10)
Jul 01 13:25:07 pi homebridge[32674]: at Object. (/usr/lib/node_modules/homebridge/bin/homebridge:17:22)
Jul 01 13:25:07 pi homebridge[32674]: at Module._compile (module.js:569:30)
Jul 01 13:25:07 pi homebridge[32674]: at Object.Module._extensions..js (module.js:580:10)
Jul 01 13:25:07 pi homebridge[32674]: at Module.load (module.js:503:32)
Jul 01 13:25:07 pi homebridge[32674]: at tryModuleLoad (module.js:466:12)
Jul 01 13:25:07 pi homebridge[32674]: at Function.Module._load (module.js:458:3)
Jul 01 13:25:07 pi homebridge[32674]: at Function.Module.runMain (module.js:605:10)
Jul 01 13:25:07 pi homebridge[32674]: at startup (bootstrap_node.js:158:16)
Jul 01 13:25:07 pi homebridge[32674]: at bootstrap_node.js:575:3
Jul 01 13:25:07 pi systemd[1]: homebridge.service: main process exited, code=exited, status=1/FAILURE
Jul 01 13:25:07 pi systemd[1]: Unit homebridge.service entered failed state.
Is there something I must replace in the index.js? Need help!! Thanks!!

I am in the same boat as @chietanjain here - I received my Raspberry Pi two days ago and this is my first project. I'm not a programmer but have a little bit of experience in reading/understanding code.
I'm a little unsure of the structure of how this is working. Is my Raspberry Pi referencing the code that is online? I cannot see the folder inside of it in FileZilla... otherwise, from my understanding, it is as simple as replacing the index.js file and it should run fine.
Any assistance or advice would be massively appreciated. Thanks!

OK! I got it working! All I had to do was the following:
Download the tar.gz file from @thunderbird 's repository
Download the index.js file from the link pumamood provided
replace the index.js in the tar.gz file (homebridge-w215-0.0.2.tar.gz)
(I used 7zip and gvim editor to manually open the existing index.js file and pasted the contents of the new index.js file and saved it back to the tar.gz file).
copy the new homebridge-w215-0.0.2.tar.gz to any location on the pi. (in my case /var/homebridge)
and run the following commands
sudo npm install -g require-uncached
sudo npm install -g /var/homebridge/homebridge-w215-0.0.2.tar.gz
and voila! it works!
Thank you @thunderbird
and thank you @pumamood
@TimCombridge , hope this is useful for you!

Hey, well done @chietanjain !
Just one question - did you start from scratch, or uninstall the original homebridge-w215 package? And did you install it to root?
I'll give that a whirl tonight if that's the case!

Nope. Just what I wrote. All the best TimCombridge.

On 16-Jul-2017, at 3:50 PM, TimCombridge notifications@github.com wrote:
Hey, well done @chietanjain !
Just one question - did you start from scratch, or uninstall the original homebridge-w215 package? And did you install it to root?
I'll give that a whirl tonight if that's the case!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.

Good! I'm happy if you finally managed it!

Hey,
I have the same problem here.
How do I download the tar.gz file from @thunderbird 's repository?
And how to download the index.js form the link?
Maybe this sounds very stupid, but I'm new to this all...

from here:
https://github.com/thunderbird/homebridge-w215/releases

thank you @thunderbird and thank you @pumamood !!

New release made - 0.0.3. Closing.
Let me know if there are any other issues, feel free to send me a pull request. I've not had much time the last couple months.

authors: Ritte88 TimCombridge chietanjain jurgverhoeven pumamood thecalle thunderbird urbok


text:
Add confirm delete in trash

Closes #7707

@beradeep Thanks for working on this. I've added a comment to issue #7707 adding details about how I think this feature should behave.

@cketti Shall I continue working on it, and try to incorporate the suggestions?

Shall I continue working on it, and try to incorporate the suggestions?

That would be great.
Please note that messages can also be deleted from places other than the message list. Looking at references to K9.isConfirmDelete* should reveal those locations.

This turned out to be more complex than I initially thought (see #7731). I think it'll be a while before our code is in a shape where we can easily implement this feature.
Closing this pull request. The feature request issue remains open.

authors: beradeep cketti

repo: thunderbird/thunderbird-android


text:
Why not use the Classifier(LogisticRegression) to evaluate the performance of GCN?

It seems that the acc of GCN is directly obtained from the GCN net, while the acc of other methods are obtained from the Classifier(LogisticRegression).
Is it fair to compare the performance between GCN and others by different classifiers (i.e., GCN net and LogisticRegression)?
Why not use the Classifier(LogisticRegression) to evaluate the performance of GCN?

GCN is a semi-supervised method while other methods are unsupervised network embedding methods. GCN can directly predict the labels of nodes.

Although GCN can directly predict the labels of nodes， is it fair to compare the performance between GCN and others by different classifiers (i.e., GCN net and LogisticRegression)?

Hi BenchengY,
GCN is used in semi-supervised node classification, which is a different task from unsupervised node classification (with methods such as Node2vec and GraRep). There is no way to compare these two tasks. I think it is also unfair to put GCN embeddings into a classifier and compare with other methods by classifiers.

authors: BenchengY Bznkxs zzy14

repo: thunlp/OpenNE


text:
Recommend Paper

The Factual Inconsistency Problem in Abstractive Text Summarization: A Survey

Thank you!


text:
🛑 TohoMoe is down

In b65e2ff, TohoMoe (https://toho.moe/test) was down:

HTTP code: 0
Response time: 0 ms

Resolved: TohoMoe is back up in 53d583a.

repo: thwiki/status


text:
Modification proposal. Do you think can be merged to your origin branch?

Modifications on library:

Fixed CS5490::calibrate - |= vs &= on bitwise operations

Added /RESET pin management (constructor overloading)

Added not blocking register reading with check on operation result

Added internal voltage reference checkInternalVoltageReference (according to "Errata: CS5490 Rev B2 Silicon (Mar'13) - Erratum 2 "On chip reference reset state")

Added sendCalibrationCommand method (with no settle time delay)

Added some not fundamental methods

Enriched "keywords.txt"

Modification on examples:

Added "CS5490_AC_Current_Gain_Tuning_demo.ino" example - a practical application built on CDB5490U evaluation board for sensing on AC line with current gain calibration

First, I'll thank you a lot for the proposal.

Fixed CS5490::calibrate - |= vs &= on bitwise operations

As you may have notice by fixing this. I could not test the calibration methods.
There are many methods and code that I can't do many tests. I'm reading everything to understand what you made, but I'll trust your tests

Added /RESET pin management (constructor overloading)
Enriched "keywords.txt"
Added not blocking register reading with check on operation result

Nice changes.

Added "CS5490_AC_Current_Gain_Tuning_demo.ino" example - a practical application built on CDB5490U evaluation board for sensing on AC line with current gain calibration

I still don't like this kind of operation like the code below, but I have no other ideas. Arduino unfortunately don't support try..catch operations :/
  double rmsV = line.getRmsV();
  if (!line.isLastReadingOperationSucceeded()) registerReadingOperationIsOK = false;
  double freq = line.getFreq();

I'll merge everything and make some other changes before next release. I just need some time.
Thanks again

It's a pleasure to contribute your project!
I can assure all is properly working here on my testbench. In every case I'll send you new pull request in case some bug to fix will arise (together with the related fixes, naturally!).

I still don't like this kind of operation like the code below, but I have no other ideas. Arduino unfortunately don't support try..catch operations :/

 double rmsV = line.getRmsV();
  if (!line.isLastReadingOperationSucceeded()) registerReadingOperationIsOK = false;
  double freq = line.getFreq();

Yes, that was just a "poor programmer"'s solution in order not to modify your base code ;-)
A cleaner way to write the code could be something as what follow, by defining methods that get a reference to the output parameter (Arduino staff advices not to use pointers, because error prones) and return the result of the operation (i.e. a bool, despite I know Arduino staff deprecates the use of boolean variables):
bool getRmsV(double &retVal); // method declaration in header file
and use it as follow:
double rmsV; if(line.getRmsV(&rmsV)) {         // reading of the rmsV succeeded --> perform operations on it } else {         // reading operation failed... --> retry or in general handle the exception (catch) action }

I can assure all is properly working here on my testbench. In every case I'll send you new pull request in case some bug to fix will arise (together with the related fixes, naturally!).

Great!
I had an idea. What about something like this:
Removing this line from CS5490::read()
  this->_readOperationResult = true;

Then adding another method like
CS5490::resolve(){
  this->hardwareReset(void);
  this->_readOperationResult = true;
}

You do similar in your code. It also gives the possibility to not use the operation result boolean. And you can check whether you want.

Hi Tiago,
ok for the "resolve" method. It could be useful but consider that a reset operation will apply all the default values to the internal registers set --> another setup will be necessary.
It's not so clear to me how you would use the modified code... could you please me send an usage example together with the modified "CS5490::read()" ?
Thank you!

a reset operation will apply all the default values to the internal registers set --> another setup will be necessary.
True. another setup means calling CS5490_SendConfiguration() again?

I think once we don't have CS5490::sendConfiguration() yet, we can use as follows:
Before:
double PF = line.getPF();
if (!line.isLastReadingOperationSucceeded()) registerReadingOperationIsOK = false;
uint32_t Igain = line.readReg(16, 33);
if (!line.isLastReadingOperationSucceeded()) registerReadingOperationIsOK = false;
if(registerReadingOperationIsOK)
{
  //Do something
}
else
{
   Serial.println("Critical registes checksum error - CS5490 hardware reset required!");
   resetRequired = true;
}
if(resetRequired)
{
  resetRequired = false;
  measureErrorDetectionCounter = 10;
  communicationMaxRetries = 5;
  line.resolve();
  CS5490_SendConfiguration();
  Serial.println("RESET PERFORMED");
}

After adding resolve method
The new methods:
void CS5490::read(int page, int address){

	unsigned long startMillis;

	this->clearSerialBuffer();

	uint8_t buffer;
	//Select page and address
	if(this->selectedPage != page){
		buffer = (pageByte | (uint8_t)page);
		cSerial->write(buffer);
		this->selectedPage = page;
	}
	buffer = (readByte | (uint8_t)address);
	cSerial->write(buffer);

	startMillis = millis();
	//Wait for 3 bytes to arrive
	while( (cSerial->available() < 3) && ( (millis()-startMillis) < 500));
	if(cSerial->available() >= 3)
	{
		for(int i=0; i<3; i++){
			data[i] = cSerial->read();
		}
                // this->_readOperationResult = true; // (Removing this line)
	}
	else
	{
		this->_readOperationResult = false;
	}

	this->clearSerialBuffer();
}

CS5490::resolve(){
  this->hardwareReset(void);
  this->_readOperationResult = true;
  // this->sendConfiguration(); //Future method?
}

The Example:
double PF = line.getPF();
uint32_t Igain = line.readReg(16, 33);
if(line.isLastReadingOperationSucceeded())
{
  //Do something
}
else
{
  resetRequired = true;
}
if(resetRequired)
{
  resetRequired = false;
  measureErrorDetectionCounter = 10;
  communicationMaxRetries = 5;
  line.resolve();
  CS5490_SendConfiguration();
  Serial.println("RESET PERFORMED");
}

This avoids multiple "if (!line.isLastReadingOperationSucceeded()) registerReadingOperationIsOK = false;" operations.

Hi Tiago,
crystalline explaination: for me it's OK.
Forget the "CS5490::sendConfiguration()" function or  other callback schemes: simplicity is the best approach and is the aim of Arduino.
I've just committed the modified files (tested on my bench).
I changed "isLastReadingOperationSucceeded" into "areLastReadingOperationsSucceeded" because the method now check a cumulative result of the communication between two line.resolve() calls, in general (take a look to my comments over both the "resolve" and "areLastReadingOperationsSucceeded" methods in teh .cpp).
Let me know if now is ok.
Thank you,
Maurizio

Forget the "CS5490::sendConfiguration()" function or other callback schemes: simplicity is the best approach and is the aim of Arduino.

True. That's also why we're trying to avoid pointers, etc...
Your request is good to go now.

Thank you for merging Tiago!

authors: MaurizioMalaspina tiagolobao


text:
Part Segmentation Error

HY !
I am facing the following issue while running the part segmentation model.
Can you please help?
Thanks for your time.

Firstly, I want to say your work is fantastic! I'm currently facing an issue while running the part segmentation model. Could you please lend a hand? Thanks a bunch for your time!

repo: tiangexiang/CurveNet


text:
Response model using Python Dataclasses with One-to-Many relationship results in error in openapi.json

First Check

[X] I added a very descriptive title to this issue.
[X] I used the GitHub search to find a similar issue and didn't find it.
[X] I searched the FastAPI documentation, with the integrated search.
[X] I already searched in Google "How to X in FastAPI" and didn't find any information.
[X] I already read and followed all the tutorial in the docs and didn't find an answer.
[X] I already checked if it is not related to FastAPI but to Pydantic.
[X] I already checked if it is not related to FastAPI but to Swagger UI.
[X] I already checked if it is not related to FastAPI but to ReDoc.

Commit to Help

[X] I commit to help with one of those options 👆

Example Code
from typing import List
from dataclasses import dataclass, field

from fastapi import FastAPI

app = FastAPI()

@dataclass
class Student:
    name: str = 'John Doe'
    age: int = 12

@dataclass
class Class:
    students: List[Student] = field(default_factory=list)
    name: str = 'Computer Science'

@app.get('/class/', response_model=Class)
async def get_class():
    cs_class = Class()
    cs_class.students = [Student()]
    return cs_class

Description
When dataclass is used as response model with one-to-many relationship, it results in error while generating openapi.json. Otherwise, the endpoint works as intended.
Stack trace for the error:
Traceback (most recent call last):
  File "/home/user/anaconda3/envs/nlpserver/lib/python3.7/site-packages/uvicorn/protocols/http/h11_impl.py", line 366, in run_asgi
    result = await app(self.scope, self.receive, self.send)
  File "/home/user/anaconda3/envs/nlpserver/lib/python3.7/site-packages/uvicorn/middleware/proxy_headers.py", line 75, in __call__
    return await self.app(scope, receive, send)
  File "/home/user/anaconda3/envs/nlpserver/lib/python3.7/site-packages/fastapi/applications.py", line 269, in __call__
    await super().__call__(scope, receive, send)
  File "/home/user/anaconda3/envs/nlpserver/lib/python3.7/site-packages/starlette/applications.py", line 124, in __call__
    await self.middleware_stack(scope, receive, send)
  File "/home/user/anaconda3/envs/nlpserver/lib/python3.7/site-packages/starlette/middleware/errors.py", line 184, in __call__
    raise exc
  File "/home/user/anaconda3/envs/nlpserver/lib/python3.7/site-packages/starlette/middleware/errors.py", line 162, in __call__
    await self.app(scope, receive, _send)
  File "/home/user/anaconda3/envs/nlpserver/lib/python3.7/site-packages/starlette/exceptions.py", line 93, in __call__
    raise exc
  File "/home/user/anaconda3/envs/nlpserver/lib/python3.7/site-packages/starlette/exceptions.py", line 82, in __call__
    await self.app(scope, receive, sender)
  File "/home/user/anaconda3/envs/nlpserver/lib/python3.7/site-packages/fastapi/middleware/asyncexitstack.py", line 21, in __call__
    raise e
  File "/home/user/anaconda3/envs/nlpserver/lib/python3.7/site-packages/fastapi/middleware/asyncexitstack.py", line 18, in __call__
    await self.app(scope, receive, send)
  File "/home/user/anaconda3/envs/nlpserver/lib/python3.7/site-packages/starlette/routing.py", line 670, in __call__
    await route.handle(scope, receive, send)
  File "/home/user/anaconda3/envs/nlpserver/lib/python3.7/site-packages/starlette/routing.py", line 266, in handle
    await self.app(scope, receive, send)
  File "/home/user/anaconda3/envs/nlpserver/lib/python3.7/site-packages/starlette/routing.py", line 65, in app
    response = await func(request)
  File "/home/user/anaconda3/envs/nlpserver/lib/python3.7/site-packages/fastapi/applications.py", line 224, in openapi
    return JSONResponse(self.openapi())
  File "/home/user/anaconda3/envs/nlpserver/lib/python3.7/site-packages/fastapi/applications.py", line 209, in openapi
    servers=self.servers,
  File "/home/user/anaconda3/envs/nlpserver/lib/python3.7/site-packages/fastapi/openapi/utils.py", line 419, in get_openapi
    flat_models=flat_models, model_name_map=model_name_map
  File "/home/user/anaconda3/envs/nlpserver/lib/python3.7/site-packages/fastapi/utils.py", line 29, in get_model_definitions
    model, model_name_map=model_name_map, ref_prefix=REF_PREFIX
  File "pydantic/schema.py", line 617, in pydantic.schema.model_process_schema
  File "pydantic/schema.py", line 658, in pydantic.schema.model_type_schema
  File "pydantic/schema.py", line 258, in pydantic.schema.field_schema
  File "pydantic/schema.py", line 498, in pydantic.schema.field_type_schema
  File "pydantic/schema.py", line 848, in pydantic.schema.field_singleton_schema
  File "pydantic/schema.py", line 736, in pydantic.schema.field_singleton_sub_fields_schema
  File "pydantic/schema.py", line 563, in pydantic.schema.field_type_schema
  File "pydantic/schema.py", line 947, in pydantic.schema.field_singleton_schema
ValueError: Value not declarable with JSON Schema, field: name='_students' type=Student required=True

Operating System
Linux
Operating System Details
No response
FastAPI Version
Version: 0.77.1
Python Version
Python 3.7.9
Additional Context
From stack trace it looks like the issue is related to fastAPI while generating the openapi documentation.

This is documented: https://fastapi.tiangolo.com/advanced/dataclasses/#dataclasses-in-nested-data-structures

In some cases, you might still have to use Pydantic's version of dataclasses. For example, if you have errors with the automatically generated API documentation.

authors: InzamamAnwar aboubacs

repo: tiangolo/fastapi


text:
Add support for Decimal in Pydantic and SQLAlchemy

First Check

[X] I added a very descriptive title to this issue.
[X] I used the GitHub search to find a similar issue and didn't find it.
[X] I searched the SQLModel documentation, with the integrated search.
[X] I already searched in Google "How to X in SQLModel" and didn't find any information.
[X] I already read and followed all the tutorial in the docs and didn't find an answer.
[X] I already checked if it is not related to SQLModel but to Pydantic.
[X] I already checked if it is not related to SQLModel but to SQLAlchemy.

Commit to Help

[X] I commit to help with one of those options 👆

Example Code
class City(SQLModel, table=True):
    id: Optional[int] = Field(default=None, primary_key=True)  # pylint: disable=invalid-name
    name: str = Field(nullable=False, max_length=150, index=False)
    population: Optional[int] = Field(default=None, index=False)
    latitude: condecimal(max_digits=13, decimal_places=10) = Field(nullable=False, index=False)
    longitude: condecimal(max_digits=13, decimal_places=10) = Field(nullable=False, index=False)

Description
When setting max_digits and decimal_places to condecimal these are ignored.
The SQL CREATE TABLE resulting from the previous model city definition results in:
CREATE TABLE city (
	id INTEGER AUTO_INCREMENT,
	name VARCHAR(150) NOT NULL,
	population INTEGER,
	latitude NUMERIC NOT NULL,
	longitude NUMERIC NOT NULL,
	PRIMARY KEY (id)
)

So latitude and longitude are created with default parameters max_digits = 10 and decimal_places = 0.
Operating System
Linux
Operating System Details
Ubuntu 18.04
SQLModel Version
0.0.4
Python Version
3.7.11
Additional Context
This is my requirements.txt:
fastapi==0.68.1
uvicorn==0.15.0
python-multipart==0.0.5
pydantic==1.8.2
pymysql==1.0.2
python-jose[cryptography]
passlib
starlette-json
bcrypt
sqlmodel==0.0.4

I submitted a PR https://github.com/tiangolo/sqlmodel/pull/103 to address this. Pydantic arguments needed to be mapped to sqlalchemy's for that type.

Thanks for the feedback @roomm! :nerd_face:
This was added in @robcxyz's PR #103, it is now included in the (just released) SQLModel 0.0.5 :tada:

authors: robcxyz roomm tiangolo

repo: tiangolo/sqlmodel


text:
mpush 功能调试出现错误

我打开了workflow的debug功能，虽然mpush能够正常运行，但是跳出了这样的错误：
[2019-04-01 09:00:45][ERROR: action.script] /Users/zhangyiteng/Library/Caches/com.runningwithcrayons.Alfred-3/Workflow Scripts/9A5C9356-CC16-44C6-AC42-395333EE0936: line 1: [: too many arguments

可以把开头的if ... fi 改拆成两个if
if [ -z "${MBLOG_HOME}" ];then
   exit 1
fi
if [ ! -d "${MBLOG_HOME}" ];then
   exit 1
fi

谢谢！

authors: sillybun tianhao

repo: tianhao/alfred-mweb-workflow


text:
🛑 TICKETS.DO is down

In 17ac8bd, TICKETS.DO (https://tickets.do) was down:

HTTP code: 0
Response time: 0 ms

Resolved: TICKETS.DO is back up in 70e9506 after 1 hour, 41 minutes.

repo: tickets/upptime


text:
Initial version

This countdown clock has a few feature enhancements over the default one. It has a more fine grained time (displays days, hours, and minutes left), can display longer event text, and has a slick fade effect.

I have read the CLA Document and I hereby sign the CLA

repo: tidbyt/community


text:
Building suspend/resume device status events

Does what it says on the tin.

 <1> [uploader] [tandem] suspends & resumes

Ping me when you've fixed the tests on this one @gniezen, and I'll do the final review and merge into tandem-v2.

Fixed tests, resolved conflicts and now pinging @jebeck

At least address the comment re: previous, then good to merge into tandem-v2.

Cleaned up the indentation and did previous properly. Going to merge.

authors: gniezen jebeck

repo: tidepool-org/chrome-uploader


text:
Tolerate IP6_AUTODETECTION_METHOD none when IP6 is none

Even though IP6_AUTODETECTION_METHOD = none is not valid, kops sets
it when IP6 is set to none also.
https://github.com/kubernetes/kops/blob/v1.23.2/upup/models/cloudup/resources/addons/networking.projectcalico.org/k8s-1.16.yaml.template#L4393
Description

For PR author

[ ] Tests for change.
[ ] If changing pkg/apis/, run make gen-files
[ ] If changing versions, run make gen-versions

For PR reviewers
A note for code reviewers - all pull requests must have the following:

[ ] Milestone set according to targeted release.
[ ] Appropriate labels:

kind/bug if this is a bugfix.
kind/enhancement if this is a a new feature.
enterprise if this PR applies to Calico Enterprise only.

Do we want the fix to be picked to other release branches? I'm asking because we are preparing a possible EE patch release containing operator v1.26.x and v1.25.x

authors: rene-dekker tmjd

repo: tigera/operator


text:
Fr Pluralization errors

translation data {:one=>"une erreur a empêché ce (ou cette) %{resource} d’être enregistré(e) :",
:other=>"%{count} erreurs ont empêché ce (ou cette) %{resource} d’être enregistré(e) :"}
can not be used with :count => 3

I've had several French Pluralization errors even with other components, I think it's a problem of using :other instead of :many, or something similar.

Oooh wait, this one doesn't seem to come from devise-i18n but rather i18n itself... sorry

Indeed, using :many instead of :other fixed the problem
(sorry had closed the issue because I thought for a second it was part of the base i18n gem, but this actually is in the last lines of the devise_fr translation)

It seems like something else is the problem here. I use one/other in my other stuff and I haven't seen any problems. This indicates it's just one/other too.

This works for me, if anyone has additional info on the problem, feel free to start a new issue.

authors: JasonBarnabe Startouf