text:
Educational gamification

Hey what an impressive site and code base you have here! I was working on my own simple tectonics simulator to make an educational game and came across this one which is significantly higher fidelity. The concept for the game was to show how tectonics impact the formation of life and to provide a little more context and interest to the life of a planet from conception to freezing over. Thinking about trying to make the whole game about 5 minutes long and have different objectives for the users. Target audience would be high school age and older.
I don't know how you feel about something like that and about sharing code with what you have. The game as I conceptualized it was going to focus a lot on the carbon cycle as well. I am a chemical engineer by training, but I am not looking to put academic rigor into the climate and carbon interactions.
I am really impressed with the site as it stands right now. It is impressively smooth and fast, and it certainly knows things about tectonics that I am oblivious to, judging by the discussion in the wiki articles. Gamification would include features like:

Ability to speed up time (~5 Gy in 5 mins ish, could fudge the numbers a little here to make the plate movement not too chaotic at this time scale), and how tectonics slowly fade out as the mantle solidifies.
A little more detail around ice ages and global temperature fluctuations
More detail around the flora/fauna and how it responds to temperature changes and climate
Depending on desired level of detail, basic comprehension of fossil fuel deposits and the interaction of the oceans with atmospheric carbon.
maybe a few animations for volcanoes or asteroids

Then the game part would include some objectives maybe some friendly competition and a leader board, etc.
Thoughts? It seems like a very different direction than this project is currently heading, but wanted to bounce the idea off and see what you thought. Maybe a game mode would be possible or maybe a fork with game hierarchy built in that version. If not I will keep plugging along with my uneducated tectonics version - it will be amusing to you if nothing else (assuming the project goes anywhere of course).
Best,
David

Hey, awesome!
The model is licensed under creative commons. You're welcome to fork the code right away and do whatever you like! Forking is probably the best approach for what you have in mind. What you describe is a pretty agressive change in project objectives, and I expect you'll want to start now while you're still in the headspace. What do you think your timeline looks like? I'm only one developer and I struggle to find time even to implement original project objectives. You probably won't want to wait on me. I think it's best if you have full ownership over the code on your fork, and we can work changes back in where appropriate. A few things on your list intersect with my own list of improvements - we might be able to work on some of those together, or see who is able to implement them first. I think there's a tremendous opportunity for collaboration and I'm excited to see what comes out of it.
Now, onto your feature list:

Ability to speed up time (~5 Gy in 5 mins ish, could fudge the numbers a little here to make the plate movement not too chaotic at this time scale)
You can play around with speed, yourself. Just open the dev console in a browser and type something like sim.speed = 1e9*Units.SECONDS_IN_YEAR/Units.SECONDS_IN_MINUTE. It's definitely possible, but there is some loss of precision that's unavoidable.

and how tectonics slowly fade out as the mantle solidifies

A quick search reveals this paper which we might be able to base some behavior off (the paper is summarized in a news article here if you prefer light reading). Sounds like this would switch off tectonics if mantle temperature crosses the solidus temperature, however it says nothing about speed. A better approach might be to set mantle viscosity to a function of mantle temperature. The model correctly simulates speed from mantle viscosity, so if that changes all else will easily follow. We can probably use one of the functions described here. I might prefer the Arrhenius model since I'm already familiar with it and I know it can be used elsewhere.

A little more detail around ice ages and global temperature fluctuations

The orbital mechanics submodel is pretty well generalized, and it can be modified to describe changes in insolation due to milankovitch cycles. However, the whole atmospheric submodel is in a cursory state. For one thing, the model makes no attempt to model the carbon cycle. The carbon cycle is extremely important for getting climate right and right now it's not modeled at all. There's only a single factor expressing the greenhouse effect and it's a hardcoded constant. I think any attempt to model the carbon cycle will be better than the current state, especially if drafted by someone with a background in the area. Chemistry isn't my strong suit.

More detail around the flora/fauna and how it responds to temperature changes and climate

This one I would love to implement! My background is in ecology, and this is right up my alley. There are so many ideas I have in this area, which may or may not be in line with what you're thinking.
On a short term scale, I'd like to model plant biomass as a state variable that changes based on several limiting factors, starting with insolation and precipitation. A trivial trophic pyramid can be constructed based on energy/biomass considerations to describe the biomass that's allocated to herbivores and carnivores.  A reaction-diffusion equation can be implemented to represent the propogation of life across space, traversing land bridges and the like. If we accompany this by a vector field that mutates over time, we have some way to visualize evolutionary lineage (picture a color map indicating place of origin). We may not be able to species individually, but we can at least see how species ought to be related spatially. Lastly, if we assume the biosphere is ergodic, then we can assume any type of animal life will evolve to occupy a certain niche, and we can give quick statistics about what animals within that niche could look like. For instance, the trunk of a large tree will have a width that is a function of the planet's gravity.

Depending on desired level of detail, basic comprehension of fossil fuel deposits and the interaction of the oceans with atmospheric carbon.

I've wanted to model fossil fuel reserves for a while, as documented here. A critical step will be to model plant biomass as a state variable, as I describe above. Given that, we can assume a certain background mortality rate and a certain fraction of dead biomass that gets converted to fossil fuel, though I'm not sure how to find those or whether they'd be sufficiently generic.

maybe a few animations for volcanoes or asteroids

Your perogative. I want to implement impact craters but don't really care about animating the impact. If the code is there I might pull it in. I just hope whatever comes out of it ties in nicely with orbital mechanics/solar accretion.

Then the game part would include some objectives maybe some friendly competition and a leader board

This is your fuzziest point. A huge inspiration for the model was SimEarth, but SimEarth was never known for its compelling gameplay. Its more like an executive toy, or a super complex lava lamp. Do you have any ideas?

Great - sounds like you still have lots of ideas and energy for development. It sounds like we have a few areas of overlap that I could start developing before completing the game fork. It sounds like you are also interested at some level in a carbon cycle simulation and climate. Maybe I can do a little on that front as I familiarize myself with the code, then from there start some of the other pieces.
You are correct that the game aspect was fuzzy - still working out details. The basic structure of the game as I am imagining it now is something like this:
PHASE I - ACCRETION (0.5 Gy) *maybe just find a video of earth accretion
PHASE II - (Hadean) Liquid water, first anaerobic life develops (1 Gy) goal: create CO2 from CH4 features: deep and shallow ocean,
Phase III - (Archaean) More of Phase II, (1 Gy) goal: create O2 in the atmosphere; Phase ends when complex life is developed.
Phase IV - (Cambrian and later) Complex life! (slow down the game here?) goal: avoid ice ages and temperature runaway due to GHG, Features: ice age, volcanoes, maybe a couple asteroids; Another game objective could be to figure out what needs to happen so the mass extinctions don't totally wipe out life on earth.
Phase V - Quiescence; mantle solidifies to a certain extent and the plates stop moving. Game ends - I guess at this point all the land would erode and eventually the carbon cycle would essentially stop.
Supercontinents might be a good marker of the passage of time and progress into each new phase ... that is a little more visual than atmospheric composition.
Cool bonus features to make things more interesting:
Volcanoes
Asteroid impacts
Ice Ages
Algal bloom / fossil fuel
Mass extinctions
Game controls: So far the way I imagined it was just the tectonic plate directions and speeds. For example, the goals would be to make lowlands and shallow water to encourage life.
Game Indicators

Surface Temperature
Mantle temperature (linked to volcanism, tectonic plate size, and tectonic plate speeds possible) - might need separate volcanism measure??
Carbon Cycle Indicator (probably need to simplify the typical 6 to fewer reservoirs) - may also need more indicators here to follow mass extinctions more closely
Atmospheric Composition (CH4, CO2, O2; probably don't need to include NH3 or N2)

A lot of these were going to be simplified by just having a single number for the whole planet. Using the given code base, there is an easier path to have more rigorous calculations localized.
I think the biggest challenges will be figuring out the controls and not making it too complicated. Everything else I think we can adapt to whatever seems to make sense.

Hi!  I'm also working on the game idea - and I'm 100% sure that we should share code.   I'm not 100% sure about the idea of doing an actual fork right at the outset.
Forking is evil - and although it's sometimes necessary - it should only be done when all else fails.
What might make more sense would be to try to take your existing project and carefully divide it into a "Tectonics Engine" and a "UI/UX" part and turn those into separate GitHub projects.  We could then share the engine part between game and simulation - so we can BOTH benefit from improvements to it - while the UI/UX part would be a complete do-over for the game project - that you wouldn't have to ever care about.
The main reason I suggest this is that I (personally) believe that we should use C++ code via WebAssembly for the "Tectonics Engine" part because it would allow the math loop to run MUCH faster.  This would entail someone (probably me) translating the core engine code into C++.   I'm a professional game and simulation programmer with 35 years of C++ and 20 years of JavaScript experience - so this is something which I hope I could be trusted to do with very great care!
We might even be able to leverage the GPU to speed it up still more - my speciality is in graphics - so writing intricate GLSL shaders is "what I do".   Moving heavy-duty math code into the GPU can sometimes offer 100x speedups over C++ and 1,000x speedups over JavaScript - so this is something that definitely needs to be considered.
Making that core engine code run MUCH faster would allow us to have multiple math iterations per display iteration - which should help the issues of stability at higher years-per-second rates - but to do that and maintain some sort of useful frame rate, we have to make the code go a lot faster.
We could do that speedup only in the game 'fork' of course - but that would be a shame because you could be benefitting from it too.   Hence the idea to split the code base so we don't have to fork the engine code...or at least, we don't have to fork it forever.
Another benefit to not forking the engine code is that we'd very much like to retain your expertise.  I think it's fair to say that nobody on the game team has even a fraction of the expertise that you evidently have - so if there are issues about how planets develop - then we don't want to lose your improvements when they happen in some other fork.
Similar issues might show up in the graphics stuff (which I'd say was in the UI/UX bit) - but that's more controversial.  We might (for example) want to artificially exaggerate elevations so you can visually see erosion happening - we would certainly want some dramatic lava oozing effects in ocean-bottom spreading and some nice volcanoes where the physics says they should be.  We would probably want to add some purely decorative texturing to make things look more detailed than the underlying math actually is.  Not sure whether you'd want those things on the simulation side - but for us, they are "Must Have" items.
So I think we should spend some effort thinking about creating some libraries that can be shared between the two projects BEFORE we consider forking anything.
An alternative (since I'm sure you're already feeling nervous about a bunch of people coming in and ripping apart your engine code!) would be to divide your project (per above) then fork just the tectonics engine library.   We could define an API for that which the game version would promise to remain backwards compatible.   Then when we're finished with any major upheavals, you could make a decision as to whether to switch your simulation over to our fork - or to simply divorce yourself from it.
But the delicate decisions about how to dissect out the engine part from the UI part really needs to be something that both projects discuss carefully because it's a critical decision for the future that would be hard to undo.
So BEFORE we rush into forking code and diving in and ripping and tearing stuff - let's at least take a few days to consider HOW we do this.

@berg44:

Maybe I can do a little on that front as I familiarize myself with the code, then from there start some of the other pieces.

Check out noncompiled/model/Atmosphere.js and noncompiled/academics/AtmosphereModeling.js. This encompasses all behavior within the atmospheric submodel. All submodels use "rasters" as their basic building blocks, and you can see code for these data structures within the "raster layer", under precompiled/utils/.

PHASE I - ACCRETION (0.5 Gy) *maybe just find a video of earth accretion

I do want to implement a solar accretion submodel at some point. For a quick first pass, we can use the accrete/starform/stargen model, which is the de facto king of solar accretion models. There are several javascript ports available.

Game controls: So far the way I imagined it was just the tectonic plate directions and speeds. For example, the goals would be to make lowlands and shallow water to encourage life.

I should mention plate directions are deterministic within the model - we calculate them from crust age and density. You could override this behavior, though. Might require some discussion.

I think the biggest challenges will be figuring out the controls and not making it too complicated. Everything else I think we can adapt to whatever makes sense.

I do think it's important to understand where the player lies on an abstraction hierarchy: what do they control, vs what gets abstracted away. For instance, are you like Kerbal Space Program, where you control an individual rocket, or Children of a Dead Earth, where you order entire fleets to perform orbital maneuvers? Personally, I wouldn't mind seeing a game where you micromanaged some aspects. Rather than order up an asteroid impact from a menu, have the player find an asteroid and try pushing it on a collision course, then they can see if that accomplishes their objectives. Make them feel like they could shape the planet in real life. Make them feel powerful for knowing what they do. Stuff like that.
@SteveBaker:

What might make more sense would be to try to take your existing project and carefully divide it into a "Tectonics Engine" and a "UI/UX" part and turn those into separate GitHub projects.

Agreed. The app already has a clear separation between model and view that we can leverage to accomplish this. I was already thinking about doing this after the port to C++. But we might consider doing this before the port. It depends on how fast you want to move. This will involve creating a new Github project, "tectonics engine", which will be included as a git submodule within the existing tectonics.js project.
In principle, we could also break off "Rasters.js" into its own library. It's sufficiently general to function as one, though I doubt it will see much use outside the model.

The main reason I suggest this is that I (personally) believe that we should use C++ code via WebAssembly for the "Tectonics Engine" part because it would allow the math loop to run MUCH faster.

I agree whole heartedly. Performance eventually always winds up limiting development of the model, and I expect porting to C++ will help immensely. Porting to C++ will also enable future development paths, allowing the model to work in many environments, and as an engine for many applications.
It's actually funny you should mention - I'm already working on a C++ port. Check out the "wasm" branch off master. It has a partly implemented C++ port of the tectonics.js's "Raster" layer, complete with a wasm wrapper. You can build to wasm by running make, and run a set of unit tests using make test. All unit tests pass on my machine.

I'm a professional game and simulation programmer with 35 years of C++ and 20 years of JavaScript experience

I would appreciate your contribution. By contrast, I have about 2 years of professional C++ experience and I'm aware I have a lot to learn. Feel free to make whatever contributions you feel are appropriate.

We might even be able to leverage the GPU to speed it up still more - my speciality is in graphics - so writing intricate GLSL shaders is "what I do". Moving heavy-duty math code into the GPU can sometimes offer 100x speedups over C++ and 1,000x speedups over JavaScript - so this is something that definitely needs to be considered.

I was of this mindset when I first discovered shaders. However, I found that using shaders to express model behavior significantly slowed development time. Once something's in a shader, it's hard to get it out. It's hard to transform it. It also reduces portability.
There's even been times where I decide to implement something in javascript, even though I know it would normally be implemented in shaders. Case in point: insolation. You'd normally use shaders to determine how much light strikes a surface, right? But I wind up reimplementing that code in javascript anyway, since insolation is important for determining things like temperature and plant biomass. And since I already calculate it in javascript, I just take the output and feed it into the shader. That's how we're able to display day/night cycles, right now.
I should mention that WebGL is based off a very old version of OpenGL with significantly limited shader functionality. Whatever parts of code we share should be able to continue working with WebGL.
By the way, what sort of platform do you have in mind for your game? Do you still want to work with browsers? Do you want to port it to desktops using Electron? Something else?

We might (for example) want to artificially exaggerate elevations so you can visually see erosion happening... Not sure whether you'd want those things on the simulation side - but for us, they are "Must Have" items.

In developing view code, I've always wanted to make the planet look photorealistic. Anything that works to that end I'll port to my UI/UX project, one way or another. So textures are possibly yes, but exaggerated landscapes are a no.

I'm sure you're already feeling nervous about a bunch of people coming in and ripping apart your engine code!

Not really, that's what pull requests are for. 😀
I'm usually pretty liberal when it comes to accepting pull requests for new features, because developer time is precious. It can be hard to find time to implement features and for someone to spend their time on a feature speaks volumes to how important it is to them.
However, I am going to give extra scrutiny to anything that changes model behavior. There are right and wrong ways to do things in modeling, and I think calling wrong stuff out is an easy way I can add value to the endeavour.
I reserve the right to be picky about stuff like arbitrary name changes, but I will concede to changes made for consistency, particularly when there's an established standard in code that isn't being followed, or where we establish a convention ahead of time.
Same goes for architectural changes, but I may concede to well reasoned arguments.

We could define an API for that which the game version would promise to remain backwards compatible

That's actually what I'm more nervous about, since this will also probably bind myself to the API. We'll probably have to define an API anyways when we're breaking up engine/uiux, but I don't want to commit myself to an API unless absolutely necessary.

Then when we're finished with any major upheavals, you could make a decision as to whether to switch your simulation over to our fork - or to simply divorce yourself from it.

Eh, let's try not to make monolithic pull requests.

But the delicate decisions about how to dissect out the engine part from the UI part really needs to be something that both projects discuss carefully because it's a critical decision for the future that would be hard to undo.

Agreed, but I don't think the dissection is as hard as you might think. We already have a well defined model (noncompiled/academics and noncompiled/model) and view (noncompiled/view and precompiled/view), which correspond well to your idea of Engine and UI/UX. There is some discussion to be had for parts that could arguably belong to both (mostly stuff under noncompiled/Simulation.js). We could also discuss what the API for the engine might look like: the stuff that we need to promise not to change.

Hey, sorry if that was a lot to digest. The gist is you have my full support for this endeavor. We should have a discussion for how to split off the engine code and go from there.

No that sounds great! I'll probably let you guys figure out the C++ and engine thing for a while. I think I want to start on the carbon cycle next.

I am also curious about the land masses in the middle of plates - I was expecting most of the land mass to be along the edges of plates, but it seems like that doesn't hold true for the plate behavior in the simulation.

Hey just a quick question on plates - it looks like the plates can co-inhabit the same position and continue on their merry way ... is that intentional? Is that a behavior seen in reality?

Could you clarify? Is there a particular seed that replicates this behavior, or would you be able to capture it on video?
There was a time when plate velocity were assigned only at the start of a new super continent cycle and wouldn't change based on the configuration of crust. This meant that plates sometimes did some really wierd things, but this has since been addressed. The model now calculates plate velocity at every timestep as the average terminal velocity of subducting ocean crust. If two continents collide, then any ocean crust that's pulling them together will likely be destroyed soon, after which there's no force to pull them together anymore and the continents will slow down.
However there is no "frictional" force in the model that slows the crust down when overlaps occur, so it's possible for there to be some remaining issues. There probably does exist an analogous force IRL, and I think the modeling framework is designed well enough that it could be straight forward to implement, but I'm not sure how to quantify it, and thus far I haven't seen a reason to investigate it.
As for land masses in the middle of the plates: I have no direct control over that. The model draws boundaries based on a velocity field, which itself is derived from crust buoyancy. Old ocean crust is the only thing that generates negative buoyancy, so plates will generally split landmasses if appropriate, however it's not a hard and fast rule. If a landmass is only surrounded by new oceanic crust, it will not split - simple as that.


text:
Error to import TradingService

I'm using eBaySDK but I'm getting error to import to Laravel.
I'm using:
use \DTS\eBaySDK\Constants;
use \DTS\eBaySDK\Trading\Services;
use \DTS\eBaySDK\Trading\Types;
use \DTS\eBaySDK\Trading\Enums;

and:
$this->tradingService = new Services\TradingService(array(
            'appId' => $this->appId,
            'siteId' => $this->siteId,
            'sandbox' => $this->sandbox,
            'apiVersion' => $this->apiVersion,
            'certId' => $this->certId,
            'devId' => $this->devId
        ));

But I'm getting this error:
Fatal error: Class 'DTS\eBaySDK\Trading\Services\TradingService' not found in app/controllers/MarketplaceImportEBayController.php on line 46
It was working fine and stopped to works..
Any ideas?

Just to let you all know: I had to reinstall ebay-sdk again and everything is working again...

source: gharchive/issue

repo: davidtsadler/ebay-sdk-php

license_type: permissive

license_source: bigquery


text:
error:06065064:digital envelope routines:EVP_DecryptFinal_ex:bad decrypt

I get this
Error:  error:06065064:digital envelope routines:EVP_DecryptFinal_ex:bad decrypt     at Error (native)     at Decipheriv.Cipher.final (crypto.js:153:26)     at api.decode (/home/shekhar/openmrs-contrib-atlas-node/node_modules/multipass/lib/multipass.js:49:64)
The multipass.decode(token); this line is the cause of the problem. @davidwood  Please look into it ASAP :)

While I'm no longer actively using this project, but I pulled down the repo and ran the tests against node 0.10.46 and 4.4.7. In both cases, the tests pass without an issues.
Since you haven't provided any details on replicating the issue and you're probably more familiar with the code (as I haven't used it in over 4 years), feel free to add a test case / pull request for this issue when you get it resolved and I can get a new version published to npm.
For what it's worth, I've seen a similar error when decrypting a string that was encrypted in a different language. If I recall, the issue was related to the difference languages using different padding (null byte vs PKCS). I believe setting decrypt.setAutoPadding(false); resolved the issue for me.

repo: davidwood/node-multipass

license: mit


text:
SSE4 used when not exist

Expected Behavior
I'm using DLib as a python binding but got error Dlib was compiled to use SSE41 instructions, but these aren't available on your machine. After some googling its looks like i have to compile it myself to disable SSE4 instruction.
Current Behavior
So i tried to compile it manualy but without success. I've try several flags like --set USE_SSE4_INSTRUCTIONS=off and --set ENABLE_SSE4=off to disable SSE4 but it always enabled.

(my-env) root@server:~/dlib-19.21# python setup.py install --set USE_SSE4_INSTRUCTION=off
running install
running bdist_egg
running egg_info
writing tools/python/dlib.egg-info/PKG-INFO
writing dependency_links to tools/python/dlib.egg-info/dependency_links.txt
writing top-level names to tools/python/dlib.egg-info/top_level.txt
package init file 'tools/python/dlib/__init__.py' not found (or not a regular file)
reading manifest file 'tools/python/dlib.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
no previously-included directories found matching 'tools/python/build*'
writing manifest file 'tools/python/dlib.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-x86_64/egg
running install_lib
running build_py
running build_ext
Building extension for Python 3.6.0 | packaged by conda-forge | (default, Feb  9 2017, 14:36:55)
Invoking CMake setup: 'cmake /root/dlib-19.21/tools/python -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/root/dlib-19.21/build/lib.linux-x86_64-3.6 -DPYTHON_EXECUTABLE=/opt/anaconda/envs/my-env/bin/python -DUSE_SSE4_INSTRUCTION=off -DCMAKE_BUILD_TYPE=Release'
-- The C compiler identification is GNU 9.3.0
-- The CXX compiler identification is GNU 9.3.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found PythonInterp: /opt/anaconda/envs/my-env/bin/python (found version "3.6")
-- Found PythonLibs: /opt/anaconda/envs/my-env/lib/libpython3.6m.so
-- Performing Test HAS_CPP14_FLAG
-- Performing Test HAS_CPP14_FLAG - Success
-- pybind11 v2.2.2
-- Using CMake version: 3.18.4
-- Compiling dlib version: 19.21.0
-- SSE4 instructions can be executed by the host processor.
-- Enabling SSE4 instructions
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE

Steps to Reproduce
Compile python binding on Core 2 Duo processor

Version: 19.21.0
Where did you get dlib: dlib.net directly
Platform: Ubuntu 20.04 x86_64 on Virtual Machine with Core2 Duo Processor
Compiler: CMake 3.18.4

Closing
After checking /proc/cpuinfo, it turns out our VM has glitchy cpu flags.

flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx lm constant_tsc rep_good nopl cpuid tsc_known_freq pni ssse3 cx16 pcid sse4_2 x2apic hypervisor lahf_lm pti

It doesn't have SSE4 instruction but have SSE4.2. I thought it shuold be bug on CMake that enabling SSE4 even though it doesn't exist in cpu flags. So i submit issue to CMake issue tracker but the developer there ask me to submit this issue to project's upstream so i create issue on CMake Python Distribution. I create the same issue here just in case you guys have some insight.
Thank you.

Dib's cmake scripts are attempting to compile and run the small cmake project in dlib/cmake_utils/test_for_sse4.  if that succeeds then it assumes you have sse4.  Can you build and run that project?  If it fails then you probably have some other issue, like you aren't using the dlib install that you just built but are using some other binary built with sse4.

authors: davisking gabri-ns

repo: davisking/dlib

license_source: github-api


text:
Draw string on images

As discussed in #2264 with @pfeatherstone.
It's almost the same as the one defined in fonts.h for the gui widgets.

Awesome! Looking forward to this. I imagine dlib users will be very happy with this and will probably be able to remove opencv as a massive dependency.

Nice, looks good.  Can you add a small test that does something like draws "cat" into a small image and checks that the expected result is obtained?  You could use file_to_code_ex.cpp to embed the correct image into the test code.

Yes, I was wondering how to test it systematically.
Let me make sure I understand what you mean:

embed a target image with the string already drawn (a small black image with cat written in white)
generate a black image of the same size, write "cat" at the same position in white
compare both images

Yes, I was wondering how to test it systematically.
Let me make sure I understand what you mean:

embed a target image with the string already drawn (a small black image with cat written in white)
generate a black image of the same size, write "cat" at the same position in white
compare both images

Yep.

Sweet, thanks for another PR :)

source: gharchive/pull-request

authors: arrufat davisking pfeatherstone


text:
fix letterbox_image in yolo example

Fixes #2910

Thanks :)

authors: arrufat davisking


text:
Is there anyway to not shrink size when maximize when there's window on the prev or next of the current active window?

sorry i didn't find where exactly this logic is in the code and it feels like it's related to a lot of code in different places

That is because of the gaps setting. gaps_in is the gap between windows. gaps_out is the gap between windows and the monitor edges. So your maximized window will use a width of viewport_width - 2 * gaps_out, but if there are any windows at any side of it, they will be separated by gaps_in. That makes you see a bit of the window, like in your example. I also find it useful because it lets me know if there are more windows on the sides.
I know it doesn't work well for what you are trying to do with your shell, but it is the way it should be by definition of what gaps are.  I don't understand why you are trying to interact with the windows layer. When you create a layer shell window (like waybar or ags), you normally anchor it to some edge, and the compositor reserves that area. So the window layer (in this case hyprscroller) receives a message recalculateMonitor() and the area used by those bars, which can be located on any edge and any monitor, is already deducted from the CMonitor data, and not used by the windows layer. That is how we have bars as big as we want and they don't need to fight with the windows layer. That way you could get your own space there without any annoying windows showing up. You should also use a Z value that is on top of the layer, otherwise you would see pieces of windows as you do now.
Maybe I don't understand what you are trying to achieve, but my understanding is you want some kind of edge wigets, hot corners etc. So please enlighten me as to why you want to fight hyprscroller, as in the other warp cursor PR, which I have no problem with, of couse, but it serves a very specific purpose. Maybe we can find an easier and cleaner solution through the layer shell API. I am sure you have looked at AGS's code which also uses gtk-layer-shell, but if you haven't, maybe it can provide some insight. Or maybe I don't understand what you are trying to do.

Thanks! i'm learning rust by developing some tools i can use, what i'm actually trying to build is just put some hidden button on the edge of the screen and we can click it with different mouse button and trigger different events which including hyprctl dispatch scroller::movefocus.
If with follow_mouse=1 i want to move focus to the window on the side, it will continuously move to the beginning/end of the row/column; And with follow_mouse=2 i would have to click the window which result in a unwanted click event passed to that window. This is what bothering me and i didn't find any proper way dealing with it.
You are right, there could be a cleaner way, not to modify something for unrelated and specific purpose. i could just make a transparent surface and extend the input region to cover that area.

Oh, I understand. The follow_mouse problem is quite annoying. There is a simple way to solve it. Just use a gaps_in value that is bigger than gaps_out, and you won't see any of the prev or next windows, and even with follow_mouse = 1, scrolling won't happen when at the edge of the monitor.

authors: dawsers ogios

repo: dawsers/hyprscroller

license: MIT


text:
feat: add qr code for tunnel links

Add Qr code for tunnel links
Description
Added Qr code for tunnel links
/claim #444

[ ] This change requires a documentation update
[ ] I have made corresponding changes to the documentation

Related Issue(s)
This PR addresses issue #444
Screenshots

Notes
Please add any relevant notes if necessary.

@ezhil56x would it be possible to inverse the colors? or to be more specific that there bg is transparent and only the qr elements are of color?

@ivan-burazin
This is what I thought of

Thanks for the quick PR! Please address the one comment and we should be good to go.

Fixed!

Updated my PR with the changes

repo: daytonaio/daytona


text:
Code review branch

#A single-page tribute to Dr. Borlaug.
It contains an image of Dr. Borlaug and a brief description.

Hi @dazehinn
Good job so far!
There are some issues that you still need to work on to go to the next project but you are almost there!

Required Changes ♻
Check the comments under the review.

Regarding linters, If a project does not pass linter checks it is an invalid project, so don't review it. For this project, we didn't have linters on the admission trial. So please remove the linter files or just fix the linters.

Optional suggestions
Every comment with the [OPTIONAL] prefix is not crucial enough to stop the approval of this PR. However, I strongly recommend you to take them into account as they can make your code better.
You can also consider:

To use emojis, they make the code review more human-friendly 👽🤖.

Cheers and Happy coding!👏👏👏
Feel free to leave any questions or comments in the PR thread if something is not 100% clear.
Please, remember to tag me in your question so I can receive the notification.
Please, do not open a new Pull Request for re-reviews. You should use the same Pull Request submitted for the first review, either valid or invalid unless it is requested otherwise.

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

authors: dazehinn huseyinbiyik


text:
TypeError 'Job' object is not callable when running schedule within class

Hi,
I need help with this code snippet. Below, I'm instantiating a schedule object within a class.
And from within the class I'm running my loop which I hope to run the scheduled job. It seems the "at" method won't accept the job I give it throwing a TypeError. Whereas running it every minute works fine.
In both cases assert statement does not fire. Can someone provide insight?
Thanks,
Dennis
import schedule
import time

class TestSchedule():

    def __init__(self):
        self.schedule = schedule

    def setup(self):
        ### WORKS ###
        # self.schedule.every(1).minutes.do(self.job)
        assert callable(self.job)
        ### DOESN'T WORK ###
        self.schedule.every().day().at("7:54").do(self.job)

    def job(self):
        print 'Job start at {0}'.format(time.strftime('%H:%M'))

    def loop(self):
        while 1:
            self.schedule.run_pending()
            print 'Sleeping for 10 sec'
            time.sleep(10)

if __name__ == '__main__':
    ts = TestSchedule()
    ts.setup()
    print 'Start schedule at {0}'.format(time.strftime('%H:%M'))
    ts.loop()

i don't know if this could be the issue, but "day" is a proerty, not a function
try
self.schedule.every().day.at("7:54").do(self.job)

Thanks! You are correct.
self.schedule.every(1).days.at("8:35").do(self.job)
as works.

authors: WoLfulus denhua

repo: dbader/schedule


text:
8 位数的学费 | 区块链罗宾

https://dbarobin.com/2021/03/18/bitcoin/
文/Robin今天在某知名知识星球圈子看到的某大佬的动态：  因为存储不当，助记词被盗，把自己的比特币弄丢了，价值八位数。好吧，笔者只能说这个教训实在是太惨重了，八位数的资产，能干的事情还是挺多的。那既然事情发生了，从别人的教训，还是有必要 Review 自己保管加密货币的方案。笔者一贯的看法，就是没有相关的知识...

coin 的存储真的是让人提心吊胆, 后面当我研究GBTC之后, 发现值得分配一部分过去, 溢价部分就当作是保护费了.

@luoxugeng
coin 的存储真的是让人提心吊胆, 后面当我研究GBTC之后, 发现值得分配一部分过去, 溢价部分就当作是保护费了.

也是个思路，🐂

authors: dbarobin luoxugeng


text:
SQL Error [08006]: An I/O error occurred while sending to the backend.

System information:

Windows 10 Enterprise 1909
DBeaver version 7.3.5

Describe the problem you're observing:
Not sure exactly what the issue is, but if a Query takes longer than 2 mins I get this error
Error Log:
org.jkiss.dbeaver.model.sql.DBSQLException: SQL Error [08006]: An I/O error occurred while sending to the backend.
at org.jkiss.dbeaver.model.impl.jdbc.exec.JDBCStatementImpl.executeStatement(JDBCStatementImpl.java:133)
at org.jkiss.dbeaver.ui.editors.sql.execute.SQLQueryJob.executeStatement(SQLQueryJob.java:509)
at org.jkiss.dbeaver.ui.editors.sql.execute.SQLQueryJob.lambda$0(SQLQueryJob.java:440)
at org.jkiss.dbeaver.model.exec.DBExecUtils.tryExecuteRecover(DBExecUtils.java:168)
at org.jkiss.dbeaver.ui.editors.sql.execute.SQLQueryJob.executeSingleQuery(SQLQueryJob.java:427)
at org.jkiss.dbeaver.ui.editors.sql.execute.SQLQueryJob.extractData(SQLQueryJob.java:812)
at org.jkiss.dbeaver.ui.editors.sql.SQLEditor$QueryResultsContainer.readData(SQLEditor.java:3226)
at org.jkiss.dbeaver.ui.controls.resultset.ResultSetJobDataRead.lambda$0(ResultSetJobDataRead.java:118)
at org.jkiss.dbeaver.model.exec.DBExecUtils.tryExecuteRecover(DBExecUtils.java:168)
at org.jkiss.dbeaver.ui.controls.resultset.ResultSetJobDataRead.run(ResultSetJobDataRead.java:116)
at org.jkiss.dbeaver.ui.controls.resultset.ResultSetViewer$ResultSetDataPumpJob.run(ResultSetViewer.java:4516)
at org.jkiss.dbeaver.model.runtime.AbstractJob.run(AbstractJob.java:105)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
Caused by: org.postgresql.util.PSQLException: An I/O error occurred while sending to the backend.
at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:335)
at org.postgresql.jdbc.PgStatement.executeInternal(PgStatement.java:441)
at org.postgresql.jdbc.PgStatement.execute(PgStatement.java:365)
at org.postgresql.jdbc.PgStatement.executeWithFlags(PgStatement.java:307)
at org.postgresql.jdbc.PgStatement.executeCachedSql(PgStatement.java:293)
at org.postgresql.jdbc.PgStatement.executeWithFlags(PgStatement.java:270)
at org.postgresql.jdbc.PgStatement.execute(PgStatement.java:266)
at org.jkiss.dbeaver.model.impl.jdbc.exec.JDBCStatementImpl.execute(JDBCStatementImpl.java:327)
at org.jkiss.dbeaver.model.impl.jdbc.exec.JDBCStatementImpl.executeStatement(JDBCStatementImpl.java:130)
... 12 more
Caused by: java.io.EOFException
at org.postgresql.core.PGStream.receiveChar(PGStream.java:308)
at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:1952)
at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:308)
... 20 more

Hi @kylewhittaker17 ,
could you try to change keep-alive in connection properties and check if it helps?

Hi @uslss,
Thanks for the tip, I set it to 10,000 and still the error comes at around 180s into the query.
Do you have any other suggestions?

@kylewhittaker17 could you try to make keep-alive interval less (e.g. 100)?

repo: dbeaver/dbeaver


text:
dBeaver not responding again.

Description
when running a block of PL/pgSQL across multiple databases dBeaver once again uses > 95% of all cores and the UI freezes with the white  screen and the entirely too common: "(Not Responding)" text in the title bar.
this will typically happen if I visit more than a dozen clusters without restarting dBeaver.
if finally just crashed out.
thread dump included.
DBeaver Version
Community Edition 23.0.1
Operating System
Windows 10
Database and driver
No response
Steps to reproduce
connect to cluster/database
do something
connect to another cluster/database
repeat 12,20, or more times with unique clusters
watch dBeaver UI freeze and eventually crash the application.
thread-dump_2023-03-30.txt
Additional context
No response

Probably will be fixed in #19553

@coleman-rik Please reopen if this will happen again.

authors: E1izabeth coleman-rik serge-rider


text:
Error "Internal error when opening new connection wizard"

Description
Trying to open a "New Connection" wizard, error as in screenshot appears
DBeaver Version
Version 23.1.5.202308201919
Operating System
Ubuntu 20.04.6 LTS
Database and driver
N/A
Steps to reproduce
Just open dbe, and try to create a new connection
Additional context

Hello @wiwwo
Could you please provide the log files? You can find instructions here: https://dbeaver.com/docs/wiki/Log-files/. Thank you.

Hi @LonwoLonwo ,
link is broken, i think you mean
https://dbeaver.com/docs/dbeaver/Log-files/
Also, documentation is broken, since env var '$XDG_DATA_HOME' is not set in my case.
Anyway,
those are the logs you might be refering to :
dbeaver-debug-1692875535849.log
dbeaver-debug-1692862412492.log
dbeaver-debug-1692869073553.log

Ok, thanks. It looks like a duplicate of https://github.com/dbeaver/dbeaver/issues/20931
Could you please check the latest Early Access version https://dbeaver.io/files/ea/?
Does this issue still happen there?

I can confirm the fixing with the latest version 23.2.0

Thank you for update

authors: E1izabeth LonwoLonwo wiwwo


text:
Wiki documentation does not match ER Diagram Viewer behavior for creating new table

Description
The project wiki, at https://github.com/dbeaver/dbeaver/wiki/New-Table-Creation , says "From ER Diagram: In the Database Navigator, double-click on the database name or table name. In the window that opens, navigate to the ER Diagram tab, right-click on the window, and choose Create New Table. Alternatively, in the Database Navigator, right-click on the database/table name and click View Diagram. In the window that opens, you can right-click and choose Create New Table."
However, these options do not appear on the right-click menu (screenshot attached).

The project wiki should be updated appropriately.
DBeaver Version
Community Edition 24.0.3
Operating System
Ubuntu 23.10
Database and driver
MariaDB.
Steps to reproduce
In the database navigator, double-click a database name. Navigate to the ER Diagram tab, and right-click within the diagram.
Additional context
No response

Hello @michael-s-crouch
Thanks for noticing.
This menu action is visible only in the Edit mode in the ERD diagram.
This Edit mode is only available in PRO versions. We need to add this information to our wiki.

authors: LonwoLonwo michael-s-crouch


text:
SQL Developer changes to json connections in their v18.3 broke connection import

System information:

Operating system (distribution) and version: OS X Mojave
DBeaver version: 6.0.1.201903251041
Java version: Any
Additional extensions

Connection specification:

Database name and version: Oracle
Driver name
Do you use tunnels or proxies (SSH, SOCKS, etc)?

Describe the problem you're observing:
In SQL Developer v18.3 (released in October 2018), Oracle changed their connections file from XML to JSON. As a result, connection import is no longer working. UI is presenting with "Connection list is empty"
Steps to reproduce, if exist:
File / Import / Third Party Configuration / Oracle SQL Developer
Include any warning/errors/backtraces from the logs

No errors logged, but looking at the code, it's handling the case where the xml file doesn't exist, so wouldn't expect an error.
I'd be happy to take a crack at this, but didn't know if there were any contributor processes, etc.

For the latest versions we use the same XML but with corrected paths

Reopened.
Tested on SQL Developer 18.3. Issue still reproduced.
Connections in defined version are saved to the file with *.json extension, so DBeaver shows message Connection list is empty. If I changed, for example, extension to xml, application shows message that documents cannot be parsed

verified. Works for v18.3

authors: mwhitis riednyko uslss


text:
DBeaver: Database Navigator context menu choice Tools -> Disable trigger ought to be named Disable trigger(s)

DBeaver - Version 6.1.3 CE
DBeaver driver: MS SQL Server  / Microsoft Driver (the new Microsoft Driver)
Operating System: Windows 7 / Windows 8.1 / Windows 10
Database Server: Microsoft SQL Express 2014, 2016, 2017
The Database Navigator tree context menu choice Tools -> Disable trigger ought to be slightly renamed as Disable trigger(s). This since I can Disable/Enable more than one trigger.
PS. The disable trigger dialog Disable trigger and he Disable trigger progress dialog ought to be changed too.

verified

authors: pdanie uslss


text:
Active catalog/schema behaviour

System information:

Operating system (distribution) and version
Windows 10
DBeaver version
7

Connection specification:

Database name and version
MariaDB

Describe the problem you're observing:
The active schema keeps randomly changing. I have auto sync connection with navigator on but it just keeps changing. I've added a key binding for "set as default", so when I press that, it is bolding the selected database and also updates the active at the top. Then randomly from time to time the same one is bold on the navigator but the active one has changed. I haven't figured out how to reproduce it yet but will update if I do. It should never be different from the one I set as default unless I specifically tell it to do so. I created a table in the wrong schema earlier because this is new and unexpected behaviour

This is happening after I run a query in the script editor. I change the active schema, run a query, then it's just changing to a different schema which I had default earlier. It's like it's remembering the first one I defaulted then reverting to that.
Even more strangely, I have just restarted and selected the one I actually want as default, then set a different one as default, ran a query in that schema. The active drop down at the top changed to the one I set first, but the queries are still running against the other one. It is very strange behaviour.
When I set as default in the navigator it should set any script files to the default unless they have been manually changed. I think the active schema should have a "use default" option

Since 6.3 each SQL editor has its own active schema. You can change it in the main toolbar (or by ctrl+0).
You can disable this behavior by turning SQL Editor option "Open separate connection for each editor" off.

Hi Serge
I want this feature to stay as it is. The problem is, it is changing when
I'm not telling it to. If I don't select one manually it should use the
default
On Tue, 3 Mar 2020, 09:47 Serge Rider, notifications@github.com wrote:

Since 6.3 each SQL editor has its own active schema. You can change it in
the main toolbar (or by ctrl+0).
You can disable this behavior by turning SQL Editor option "Open separate
connection for each editor" off.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/dbeaver/dbeaver/issues/8059?email_source=notifications&email_token=ACJFRMZEEBBQTY3LKI35MQTRFTG3PA5CNFSM4K73BJ52YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOENSZNRI#issuecomment-593860293,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ACJFRM73PWEBXLNNKGBJFOLRFTG3PANCNFSM4K73BJ5Q
.

@harryshepard I can't reproduce such "random" schema change.
Maybe it is a result of "auto sync connection" option on? It changes editor's connection whenever you change selection in database navigator.

@serge-rider I turned that on to try and stop this odd behaviour. It may have something to do with my user shortcut of F3 to set a schema as the default (which is changing the editor schema as expected).
What other settings could change the editor schema? In general I will just always select the schema I want to run queries against and hit F3 so I would like for the editor to just always use the default as I set it. I am clicking around between the navigator and editor text area, and I've managed to get the editor schema to be different from the default schema (bold in the navigator) again somehow. When I press F3 on another schema it sets it correctly again but I definitely still have a problem of the editor's active schema changing from the default I'm setting within the navigator

authors: harryshepard serge-rider


text:
Oracle - Procedures and table triggers are missing

System information:

Ubuntu 18.04 LTS
DBeaver v7.0.0
No extensions

Connection specification:

Oracle Database 11g
Oracle JDBC driver 18.3.0.0.0
No proxies or SSH tunnels

Describe the problem you're observing:
All table triggers and procedures are missing. I can see them with other software (SQL Developer).
According to Query Manager, DBeavers looks for triggers in SYS.ALL_TRIGGERS. They are not listed in this table. However, they are listed in SYS.DBA_TRIGGERS. But it seems that DBeaver doesn't look there.
Same for procedures: they are missing from SYS.ALL_PROCEDURES, but they are visible in SYS.DBA_PROCEDURES.
These triggers/procedures are not in the schema of the user I'm logged with.
Here are a few info about logged user, in case it helps:
SELECT * FROM USER_SYS_PRIVS;
Returns:

USERNAME
PRIVILEGE
ADMIN_OPTION

xxxxxx
SELECT ANY DICTIONARY
NO

xxxxxx
SELECT ANY TABLE
NO

xxxxxx
UNLIMITED TABLESPACE
NO

Thanks

thanks for the bug report

It is not a bug, you can force DBA_ views usage:

Oh, I missed this settings. My bad.
It fixes my issue, thanks!

This option should be the default!!!

authors: antonio-petricca macolu serge-rider uslss


text:
Autosave SQL sheet

Hi,
with the last update, when I close a SQL sheet the alert that allows me to save the worksheet no longer appears.
Where can I reactivate it?
Is there a method to autosave the sheet?

Looks like a bug. As a workaround you can use Auto-save editor on close (Database settings>SQL Editor).

seems to be duplicate of #8617

authors: Ferrox12 kseniiaguzeeva uslss


text:
Testing notebook

a bunch of options for testing

Replaced with #33

repo: dbekaert/RAiDER-docs


text:
[BUG] ~/.netrc access too permissive: access permissions must restrict access to only the owner

Here is a sample log:
â•â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â•®
 â”‚ I'm building Herbie's default config file.      â”‚
 â•°â•¥â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â•¯
 ðŸ‘·ðŸ»â€â™‚ï¸
 â•â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â•®
 â”‚ You're ready to go.                             â”‚
 â”‚ You may edit the config file here:              â”‚
 â”‚ /home/raider/.config/herbie/config.toml         â”‚
 â•°â•¥â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â•¯
 ðŸ‘·ðŸ»â€â™‚ï¸
Downloading s3://hyp3-a19-jpl-contentbucket-1wfnatpznlg8b/98d7a79e-69a1-4234-8203-ac76c37579a8/S1-GUNW-A-R-064-tops-20220206_20220125-015020-00119W_00032N-PP-b0e2-v3_0_0.nc to S1-GUNW-A-R-064-tops-20220206_20220125-015020-00119W_00032N-PP-b0e2-v3_0_0.nc
âœ… Found â”Š model=hrrr â”Š product=nat â”Š 2022-Feb-06 02:00 UTC F00 â”Š GRIB2 @ aws â”Š IDX @ aws
âœ… Found â”Š model=hrrr â”Š product=nat â”Š 2022-Feb-06 01:00 UTC F00 â”Š GRIB2 @ aws â”Š IDX @ aws
âœ… Found â”Š model=hrrr â”Š product=nat â”Š 2022-Jan-25 02:00 UTC F00 â”Š GRIB2 @ aws â”Š IDX @ aws
âœ… Found â”Š model=hrrr â”Š product=nat â”Š 2022-Jan-25 01:00 UTC F00 â”Š GRIB2 @ aws â”Š IDX @ aws
/opt/conda/envs/RAiDER/lib/python3.12/site-packages/xarray/backends/plugins.py:80: RuntimeWarning: Engine 'gini' loading failed:
Struct() takes at most 1 argument (3 given)
  warnings.warn(f"Engine {name!r} loading failed:\n{ex}", RuntimeWarning)
Downloading s3://hyp3-a19-jpl-contentbucket-1wfnatpznlg8b/98d7a79e-69a1-4234-8203-ac76c37579a8/S1-GUNW-A-R-064-tops-20220206_20220125-015020-00119W_00032N-PP-b0e2-v3_0_0.json to S1-GUNW-A-R-064-tops-20220206_20220125-015020-00119W_00032N-PP-b0e2-v3_0_0.json
Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "/opt/conda/envs/RAiDER/lib/python3.12/site-packages/RAiDER/cli/__main__.py", line 44, in <module>
    main()
  File "/opt/conda/envs/RAiDER/lib/python3.12/site-packages/RAiDER/cli/__main__.py", line 40, in main
    process_entry_point.load()()
  File "/opt/conda/envs/RAiDER/lib/python3.12/site-packages/RAiDER/cli/raider.py", line 548, in calcDelaysGUNW
    path_cfg, wavelength = RAiDER.aria.prepFromGUNW.main(iargs)
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/conda/envs/RAiDER/lib/python3.12/site-packages/RAiDER/aria/prepFromGUNW.py", line 400, in main
    GUNWObj = GUNW(args.file, args.weather_model, args.output_directory)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<string>", line 6, in __init__
  File "/opt/conda/envs/RAiDER/lib/python3.12/site-packages/RAiDER/aria/prepFromGUNW.py", line 165, in __post_init__
    self.OrbitFile  = self.get_orbit_file()
                      ^^^^^^^^^^^^^^^^^^^^^
  File "/opt/conda/envs/RAiDER/lib/python3.12/site-packages/RAiDER/aria/prepFromGUNW.py", line 280, in get_orbit_file
    path_orb = eof.download.download_eofs([dt], [sat], save_dir=orbit_dir)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/conda/envs/RAiDER/lib/python3.12/site-packages/eof/download.py", line 92, in download_eofs
    client = DataspaceClient(username=cdse_user, password=cdse_password)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/conda/envs/RAiDER/lib/python3.12/site-packages/eof/dataspace_client.py", line 38, in __init__
    username, password = get_netrc_credentials(DATASPACE_HOST)
                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/conda/envs/RAiDER/lib/python3.12/site-packages/eof/_auth.py", line 89, in get_netrc_credentials
    n = netrc.netrc()
        ^^^^^^^^^^^^^
  File "/opt/conda/envs/RAiDER/lib/python3.12/netrc.py", line 75, in __init__
    self._parse(file, fp, default_netrc)
  File "/opt/conda/envs/RAiDER/lib/python3.12/netrc.py", line 142, in _parse
    self._security_check(fp, default_netrc, self.hosts[entryname][0])
  File "/opt/conda/envs/RAiDER/lib/python3.12/netrc.py", line 161, in _security_check
    raise NetrcParseError(
netrc.NetrcParseError: ~/.netrc access too permissive: access permissions must restrict access to only the owner (None, line None)

Looks like these are all failing at Raider step; sample jobs over LA:
[{'job_id': '98d7a79e-69a1-4234-8203-ac76c37579a8',
  'job_type': 'INSAR_ISCE',
  'request_time': '2023-11-21T22:05:44+00:00',
  'status_code': 'FAILED',
  'user_id': 'cmarshak',
  'name': 'Los-Angeles-0_64_HRRR_1121',
  'job_parameters': {'compute_solid_earth_tide': True,
   'estimate_ionosphere_delay': True,
   'frame_id': 9847,
   'granules': ['S1A_IW_SLC__1SDV_20220206T015006_20220206T015035_041786_04F91C_FABC'],
   'secondary_granules': ['S1A_IW_SLC__1SDV_20220125T015006_20220125T015036_041611_04F317_D09A'],
   'weather_model': 'HRRR'},
  'logs': ['https://hyp3-a19-jpl-contentbucket-1wfnatpznlg8b.s3.us-west-2.amazonaws.com/98d7a79e-69a1-4234-8203-ac76c37579a8/98d7a79e-69a1-4234-8203-ac76c37579a8.log'],
  'expiration_time': '2024-05-21T00:00:00+00:00',
  'processing_times': [6889.867, 8.739]},
 {'job_id': 'abc7c403-22d3-470c-899b-41d6e2524f90',
  'job_type': 'INSAR_ISCE',
  'request_time': '2023-11-21T22:05:44+00:00',
  'status_code': 'RUNNING',
  'user_id': 'cmarshak',
  'name': 'Los-Angeles-0_64_HRRR_1121',
  'job_parameters': {'compute_solid_earth_tide': True,
   'estimate_ionosphere_delay': True,
   'frame_id': 9848,
   'granules': ['S1A_IW_SLC__1SDV_20220125T015006_20220125T015036_041611_04F317_D09A',
    'S1A_IW_SLC__1SDV_20220125T015034_20220125T015102_041611_04F317_A805'],
   'secondary_granules': ['S1A_IW_SLC__1SDV_20220113T015007_20220113T015037_041436_04ED43_1441',
    'S1A_IW_SLC__1SDV_20220113T015034_20220113T015102_041436_04ED43_9F80'],
   'weather_model': 'HRRR'}},
 {'job_id': '8668c753-c731-40b8-987d-92d7d9658002',
  'job_type': 'INSAR_ISCE',
  'request_time': '2023-11-21T22:05:44+00:00',
  'status_code': 'FAILED',
  'user_id': 'cmarshak',
  'name': 'Los-Angeles-0_64_HRRR_1121',
  'job_parameters': {'compute_solid_earth_tide': True,
   'estimate_ionosphere_delay': True,
   'frame_id': 9847,
   'granules': ['S1A_IW_SLC__1SDV_20220218T015005_20220218T015035_041961_04FF34_65A4'],
   'secondary_granules': ['S1A_IW_SLC__1SDV_20220206T015006_20220206T015035_041786_04F91C_FABC'],
   'weather_model': 'HRRR'},
  'logs': ['https://hyp3-a19-jpl-contentbucket-1wfnatpznlg8b.s3.us-west-2.amazonaws.com/8668c753-c731-40b8-987d-92d7d9658002/8668c753-c731-40b8-987d-92d7d9658002.log'],
  'expiration_time': '2024-05-21T00:00:00+00:00',
  'processing_times': [5517.819, 7.999]},
 {'job_id': 'd95373f0-90f7-4134-a824-2565fde4c237',
  'job_type': 'INSAR_ISCE',
  'request_time': '2023-11-21T22:05:44+00:00',
  'status_code': 'RUNNING',
  'user_id': 'cmarshak',
  'name': 'Los-Angeles-0_64_HRRR_1121',
  'job_parameters': {'compute_solid_earth_tide': True,
   'estimate_ionosphere_delay': True,
   'frame_id': 9849,
   'granules': ['S1A_IW_SLC__1SDV_20220206T015033_20220206T015101_041786_04F91C_DC3C',
    'S1A_IW_SLC__1SDV_20220206T015059_20220206T015126_041786_04F91C_5AC7'],
   'secondary_granules': ['S1A_IW_SLC__1SDV_20220125T015034_20220125T015102_041611_04F317_A805',
    'S1A_IW_SLC__1SDV_20220125T015059_20220125T015126_041611_04F317_8459'],
   'weather_model': 'HRRR'}},
 {'job_id': 'a24b5e36-bce1-4432-90aa-5dc2c3d055ab',
  'job_type': 'INSAR_ISCE',
  'request_time': '2023-11-21T22:05:44+00:00',
  'status_code': 'RUNNING',
  'user_id': 'cmarshak',
  'name': 'Los-Angeles-0_64_HRRR_1121',
  'job_parameters': {'compute_solid_earth_tide': True,
   'estimate_ionosphere_delay': True,
   'frame_id': 9849,
   'granules': ['S1A_IW_SLC__1SDV_20220125T015034_20220125T015102_041611_04F317_A805',
    'S1A_IW_SLC__1SDV_20220125T015059_20220125T015126_041611_04F317_8459'],
   'secondary_granules': ['S1A_IW_SLC__1SDV_20220113T015034_20220113T015102_041436_04ED43_9F80',
    'S1A_IW_SLC__1SDV_20220113T015100_20220113T015127_041436_04ED43_14E4'],
   'weather_model': 'HRRR'}},
 {'job_id': 'c8b60601-7c4a-4e99-b92d-05902163fb83',
  'job_type': 'INSAR_ISCE',
  'request_time': '2023-11-21T22:05:44+00:00',
  'status_code': 'FAILED',
  'user_id': 'cmarshak',
  'name': 'Los-Angeles-0_64_HRRR_1121',
  'job_parameters': {'compute_solid_earth_tide': True,
   'estimate_ionosphere_delay': True,
   'frame_id': 9847,
   'granules': ['S1A_IW_SLC__1SDV_20220218T015005_20220218T015035_041961_04FF34_65A4'],
   'secondary_granules': ['S1A_IW_SLC__1SDV_20220125T015006_20220125T015036_041611_04F317_D09A'],
   'weather_model': 'HRRR'},
  'logs': ['https://hyp3-a19-jpl-contentbucket-1wfnatpznlg8b.s3.us-west-2.amazonaws.com/c8b60601-7c4a-4e99-b92d-05902163fb83/c8b60601-7c4a-4e99-b92d-05902163fb83.log'],
  'expiration_time': '2024-05-21T00:00:00+00:00',
  'processing_times': [5509.174, 8.218]},
 {'job_id': 'a0f016b3-9825-49b1-b4c2-2f481c092dfd',
  'job_type': 'INSAR_ISCE',
  'request_time': '2023-11-21T22:05:44+00:00',
  'status_code': 'RUNNING',
  'user_id': 'cmarshak',
  'name': 'Los-Angeles-0_64_HRRR_1121',
  'job_parameters': {'compute_solid_earth_tide': True,
   'estimate_ionosphere_delay': True,
   'frame_id': 9848,
   'granules': ['S1A_IW_SLC__1SDV_20220218T015005_20220218T015035_041961_04FF34_65A4',
    'S1A_IW_SLC__1SDV_20220218T015033_20220218T015101_041961_04FF34_E691'],
   'secondary_granules': ['S1A_IW_SLC__1SDV_20220125T015006_20220125T015036_041611_04F317_D09A',
    'S1A_IW_SLC__1SDV_20220125T015034_20220125T015102_041611_04F317_A805'],
   'weather_model': 'HRRR'}},
 {'job_id': '6440d7f2-479b-49a3-95c8-2eba5792b26b',
  'job_type': 'INSAR_ISCE',
  'request_time': '2023-11-21T22:05:44+00:00',
  'status_code': 'FAILED',
  'user_id': 'cmarshak',
  'name': 'Los-Angeles-0_64_HRRR_1121',
  'job_parameters': {'compute_solid_earth_tide': True,
   'estimate_ionosphere_delay': True,
   'frame_id': 9847,
   'granules': ['S1A_IW_SLC__1SDV_20220125T015006_20220125T015036_041611_04F317_D09A'],
   'secondary_granules': ['S1A_IW_SLC__1SDV_20220113T015007_20220113T015037_041436_04ED43_1441'],
   'weather_model': 'HRRR'},
  'logs': ['https://hyp3-a19-jpl-contentbucket-1wfnatpznlg8b.s3.us-west-2.amazonaws.com/6440d7f2-479b-49a3-95c8-2eba5792b26b/6440d7f2-479b-49a3-95c8-2eba5792b26b.log'],
  'expiration_time': '2024-05-21T00:00:00+00:00',
  'processing_times': [6850.148, 8.421]},
 {'job_id': 'b470f629-4f12-46e4-ad20-b7c007fc8a3a',
  'job_type': 'INSAR_ISCE',
  'request_time': '2023-11-21T22:05:44+00:00',
  'status_code': 'RUNNING',
  'user_id': 'cmarshak',
  'name': 'Los-Angeles-0_64_HRRR_1121',
  'job_parameters': {'compute_solid_earth_tide': True,
   'estimate_ionosphere_delay': True,
   'frame_id': 9849,
   'granules': ['S1A_IW_SLC__1SDV_20220206T015033_20220206T015101_041786_04F91C_DC3C',
    'S1A_IW_SLC__1SDV_20220206T015059_20220206T015126_041786_04F91C_5AC7'],
   'secondary_granules': ['S1A_IW_SLC__1SDV_20220113T015034_20220113T015102_041436_04ED43_9F80',
    'S1A_IW_SLC__1SDV_20220113T015100_20220113T015127_041436_04ED43_14E4'],
   'weather_model': 'HRRR'}},
 {'job_id': 'f7158a25-e298-4f63-bf7a-551ce16ad71c',
  'job_type': 'INSAR_ISCE',
  'request_time': '2023-11-21T22:05:44+00:00',
  'status_code': 'RUNNING',
  'user_id': 'cmarshak',
  'name': 'Los-Angeles-0_64_HRRR_1121',
  'job_parameters': {'compute_solid_earth_tide': True,
   'estimate_ionosphere_delay': True,
   'frame_id': 9848,
   'granules': ['S1A_IW_SLC__1SDV_20220218T015005_20220218T015035_041961_04FF34_65A4',
    'S1A_IW_SLC__1SDV_20220218T015033_20220218T015101_041961_04FF34_E691'],
   'secondary_granules': ['S1A_IW_SLC__1SDV_20220206T015006_20220206T015035_041786_04F91C_FABC',
    'S1A_IW_SLC__1SDV_20220206T015033_20220206T015101_041786_04F91C_DC3C'],
   'weather_model': 'HRRR'}},
 {'job_id': '8e5ff3f1-8461-4fcb-91cb-9e6a3b84df3c',
  'job_type': 'INSAR_ISCE',
  'request_time': '2023-11-21T22:05:44+00:00',
  'status_code': 'RUNNING',
  'user_id': 'cmarshak',
  'name': 'Los-Angeles-0_64_HRRR_1121',
  'job_parameters': {'compute_solid_earth_tide': True,
   'estimate_ionosphere_delay': True,
   'frame_id': 9849,
   'granules': ['S1A_IW_SLC__1SDV_20220218T015033_20220218T015101_041961_04FF34_E691',
    'S1A_IW_SLC__1SDV_20220218T015059_20220218T015126_041961_04FF34_DD48'],
   'secondary_granules': ['S1A_IW_SLC__1SDV_20220125T015034_20220125T015102_041611_04F317_A805',
    'S1A_IW_SLC__1SDV_20220125T015059_20220125T015126_041611_04F317_8459'],
   'weather_model': 'HRRR'}},
 {'job_id': '5d68cf6a-3762-44ef-b46e-d43bffe8964f',
  'job_type': 'INSAR_ISCE',
  'request_time': '2023-11-21T22:05:44+00:00',
  'status_code': 'FAILED',
  'user_id': 'cmarshak',
  'name': 'Los-Angeles-0_64_HRRR_1121',
  'job_parameters': {'compute_solid_earth_tide': True,
   'estimate_ionosphere_delay': True,
   'frame_id': 9848,
   'granules': ['S1A_IW_SLC__1SDV_20220206T015006_20220206T015035_041786_04F91C_FABC',
    'S1A_IW_SLC__1SDV_20220206T015033_20220206T015101_041786_04F91C_DC3C'],
   'secondary_granules': ['S1A_IW_SLC__1SDV_20220113T015007_20220113T015037_041436_04ED43_1441',
    'S1A_IW_SLC__1SDV_20220113T015034_20220113T015102_041436_04ED43_9F80'],
   'weather_model': 'HRRR'},
  'logs': ['https://hyp3-a19-jpl-contentbucket-1wfnatpznlg8b.s3.us-west-2.amazonaws.com/5d68cf6a-3762-44ef-b46e-d43bffe8964f/5d68cf6a-3762-44ef-b46e-d43bffe8964f.log'],
  'expiration_time': '2024-05-21T00:00:00+00:00',
  'processing_times': [8750.294, 8.058]},
 {'job_id': '9bc07b3c-0677-4673-af9b-7a9183022f20',
  'job_type': 'INSAR_ISCE',
  'request_time': '2023-11-21T22:05:44+00:00',
  'status_code': 'FAILED',
  'user_id': 'cmarshak',
  'name': 'Los-Angeles-0_64_HRRR_1121',
  'job_parameters': {'compute_solid_earth_tide': True,
   'estimate_ionosphere_delay': True,
   'frame_id': 9847,
   'granules': ['S1A_IW_SLC__1SDV_20220206T015006_20220206T015035_041786_04F91C_FABC'],
   'secondary_granules': ['S1A_IW_SLC__1SDV_20220113T015007_20220113T015037_041436_04ED43_1441'],
   'weather_model': 'HRRR'},
  'logs': ['https://hyp3-a19-jpl-contentbucket-1wfnatpznlg8b.s3.us-west-2.amazonaws.com/9bc07b3c-0677-4673-af9b-7a9183022f20/9bc07b3c-0677-4673-af9b-7a9183022f20.log'],
  'expiration_time': '2024-05-21T00:00:00+00:00',
  'processing_times': [6850.175, 8.311]},
 {'job_id': '1437a7dd-1b9c-4314-ae11-27d41ef07cb8',
  'job_type': 'INSAR_ISCE',
  'request_time': '2023-11-21T22:05:44+00:00',
  'status_code': 'RUNNING',
  'user_id': 'cmarshak',
  'name': 'Los-Angeles-0_64_HRRR_1121',
  'job_parameters': {'compute_solid_earth_tide': True,
   'estimate_ionosphere_delay': True,
   'frame_id': 9848,
   'granules': ['S1A_IW_SLC__1SDV_20220206T015006_20220206T015035_041786_04F91C_FABC',
    'S1A_IW_SLC__1SDV_20220206T015033_20220206T015101_041786_04F91C_DC3C'],
   'secondary_granules': ['S1A_IW_SLC__1SDV_20220125T015006_20220125T015036_041611_04F317_D09A',
    'S1A_IW_SLC__1SDV_20220125T015034_20220125T015102_041611_04F317_A805'],
   'weather_model': 'HRRR'}},
 {'job_id': '36fff253-45c1-4261-b958-7e038c273edd',
  'job_type': 'INSAR_ISCE',
  'request_time': '2023-11-21T22:05:44+00:00',
  'status_code': 'FAILED',
  'user_id': 'cmarshak',
  'name': 'Los-Angeles-0_64_HRRR_1121',
  'job_parameters': {'compute_solid_earth_tide': True,
   'estimate_ionosphere_delay': True,
   'frame_id': 9849,
   'granules': ['S1A_IW_SLC__1SDV_20220218T015033_20220218T015101_041961_04FF34_E691',
    'S1A_IW_SLC__1SDV_20220218T015059_20220218T015126_041961_04FF34_DD48'],
   'secondary_granules': ['S1A_IW_SLC__1SDV_20220206T015033_20220206T015101_041786_04F91C_DC3C',
    'S1A_IW_SLC__1SDV_20220206T015059_20220206T015126_041786_04F91C_5AC7'],
   'weather_model': 'HRRR'},
  'logs': ['https://hyp3-a19-jpl-contentbucket-1wfnatpznlg8b.s3.us-west-2.amazonaws.com/36fff253-45c1-4261-b958-7e038c273edd/36fff253-45c1-4261-b958-7e038c273edd.log'],
  'expiration_time': '2024-05-21T00:00:00+00:00',
  'processing_times': [8045.098, 9.241]}]

I've resubmitted these as INSAR_ISCE_TEST jobs to ensure we've correctly fixed the .netrc issue; if they all run through, I'll open a release PR to ship it.
You can get to these jobs like:
import hyp3_sdk as sdk

hyp3 = sdk.HyP3('https://hyp3-a19-jpl.asf.alaska.edu')
jobs = hyp3.find_jobs(name='Los-Angeles-0_64_HRRR_1121', user_id='jhkennedy')

authors: cmarshak jhkennedy

repo: dbekaert/RAiDER


text:
Focused Rage

Added Focused Rage to CULL's uncommon card pool

Focused Rage 1: Gain 2(3) strength for each card Exerted this fight. Exert.

Thanks for jumping back into the project. Maybe we can get some momentum going! I want to get brosmike to look as well before we merge.

repo: dbjorge/jorbs-spire-mod


text:
1 new cull card art

Card art for Double, by Newigeg on discord.

Closing, as #568 is already out there.


text:
Bug on define labels

In some circumstances, when assigning labels to columns on the define function, label parameter is not being honored.  Still not sure of the circumstances.

This was because the user was not setting the first parameter to attach the define to a table.  So the define was not getting applied at all.  No problem with the code.

This was because the user was not setting the first parameter to attach the define to a table.  So the define was not getting applied at all.  No problem with the code.


text:
Get correct Chrome Version on windows

Fixes #24

Thanks @laurent35240

repo: dbrekelmans/browser-driver-installer


text:
Allow custom variables inside profiles.yml

Describe the feature
I would like to be able to create and set custom variables inside ~/.dbt/profiles.yml file and then use these variables within models.
Describe alternatives you've considered

Setting environment variables. However this would require further setup instructions to ask people to add variables to their .profile, .bash_rc, .zshrc etc. which requires additional command line knowledge. It would also be harder to phase more variables in and deprecate them.
Creating a macro that can parse a yaml file (i.e. with open('~/.dbt/profiles.yml') ... ) and setting variables from there. However this is not currently possibly.

Additional context
The goal is to make the initial setup process for installing dbt as simple as possible. A lot of the users will not have command line experience, so it's a big step to get them to update their ~/.dbt/profiles.yml file. Therefore asking them to also maintain their own environment variables is not ideal and we would be able to provision these variables within our GitHub repo (and deploy efficiently).
This would also allow greater flexibility for what we can conditionally do inside dbt_project.yml and each of the individual models.
Who will this benefit?
The driver behind this is for everyone to set a DBT_USER_ALIAS variable that be used as a prefix to table names (inside generate_alias_name) and therefore prevent conflicts from occurring.
It will benefit those without that much command line experience, and subsequently administrators who spend time supporting them.

I'm having a use case for this, too.
This is what I'm currently using to dynamically select database for my sources (in schema.yml):
sources:
  - name: extract
    database: "{{ env_var('SOURCE_EXTRACT_DB') }}"
    schema: extract
    tables: ...

I have to set env variable before running dbt and change them before running for a different profile/target, which can easily lead to errors. I'd appreciate if I could define custom variables for each target in profiles.yml and then use it like this:
sources:
  - name: extract
    database: "{{ target.source_extract_db }}"

@vembloud How many different environments are you running against? Have you considered conditional logic like:
sources:
  - name: extract
    database: "{{ 'extract_prod' if target.name == 'prod' else 'extract_dev' }}"
    schema: extract
    tables: ...

In general, we find a pretty smooth handoff point from "I'm running with a few environments and can write target-based conditional logic" to "I have a complex deployment with several environments, codified in an orchestration tool that can also reliably set environment variables."

@jtcohen6 Thanks for your quick answer. I have considered the conditional logic, but that would require developers to follow the same target naming pattern. We'd probably stick to env variables, then :)

Fair enough!
I'm going to close this issue, since we're not planning to make the code change originally requested (custom target vars in profiles.yml).

@jtcohen6 apologies for the late reply, this skipped my inbox!

I want to understand better. Do all of your development users materialize their models in the same database + schema? What value does each person set for database and schema in profiles.yml?

Yes all dev users materialise their tables in the same BigQuery project. We've got a like-for-like match between our prod and dev env which is bound to datasets so creating a project per user is out of the question really (for provisioning/maintenance reasons as well).
What we did for this is asked each user to set schema in profiles.yml to firstname_lastname i.e. dale_b and then modified the generate_alias_name macro to:
{% macro generate_alias_name(custom_alias_name=none, node=none) -%}

    {%- if custom_alias_name is none and (target.name.split('-')[0] == 'prod' or target.schema == 'landing') -%}

        {{ node.name }}

    {%- elif target.name.split('-')[0] == 'prod' or target.schema == 'landing' -%}

        {{ custom_alias_name | trim }}_{{ node.name }}

    {%- elif custom_alias_name is none -%}

        {{ target.schema | trim }}_{{ node.name }}

    {%- else -%}

        {{ target.schema | trim }}_{{ custom_alias_name | trim }}_{{ node.name }}

    {%- endif -%}
{%- endmacro %}

This has worked very well for us since.

What we did for this is asked each user to set schema in profiles.yml to firstname_lastname i.e. dale_b

This is in line with what we do in development, too. I don't totally follow how there can be namespace conflicts if everyone is building into their own dev schema.
All the same, I'm glad yo've been able to use generate_alias_name and find a solution that works well.

@vembloud How many different environments are you running against? Have you considered conditional logic like:
sources:
  - name: extract
    database: "{{ 'extract_prod' if target.name == 'prod' else 'extract_dev' }}"
    schema: extract
    tables: ...

In general, we find a pretty smooth handoff point from "I'm running with a few environments and can write target-based conditional logic" to "I have a complex deployment with several environments, codified in an orchestration tool that can also reliably set environment variables."

I dislike this solution since it is not declarative – Ideally, a model can determine its state without dependencies of env vars, at least in the yaml. I would much rather a way of storing variables with a yaml – and in the case of sensitive values, have the keys point to env variables.

Adding my voice to the others asking for this.  Being able to set variables as part of a profile is a much cleaner solution than putting that configuration into conditional expressions or requiring additional setting of environment variables.
The choice to not implement this as a capability feels like the wrong decision.

The choice to not implement this as a capability feels like the wrong decision.
I agree as well. This feature would be extremely handy for my current project

Would be nice to have this, I have extremely long -vars "{...."} in every invocation because I have multiple depending on the environment, but they dont fit into schema of profile.yml
Combined with https://github.com/dbt-labs/dbt-core/issues/4314 it makes the life very hard

I would also like this change, if I need to specify a vars per environment, how would I apply this change currently?

Heard!
I am sympathetic to the need for better per-env config options. Writing the same conditional expressions (Jinja-in-yaml) doesn't feel very good. Setting environment variables does feel like The Right Solution, but it's a bigger lift for simpler deployments.
I still believe this specific proposal would require overloading the profile/target, which is really just the set of necessary credentials & configuration for making & managing a data platform connection. It shouldn't be a means of setting arbitrary conditional configuration, which is what dbt makes possible with vars and env_vars.
But: There's no great way today to tie the value of vars or env_vars to the same "environments" that are already (loosely) defined as target names within profiles.yml. If anything, this makes me want to revisit the structure of profiles.yml (long overdue - https://github.com/dbt-labs/dbt-core/issues/1958), in a way that might desire/require some breaking changes, and therefore land in the next major version (v2).
In the shorter term: We've been spending the last several months revisiting & revamping our configuration story, and there are several ideas proposed in #6207. Some of the options:

A dbt.env file for setting environment variables—in version control, to be shared by all users, if you so chose
A dbt_config.yml file that could live in the root directory, or the user's "home" directory (similar to profiles.yml). Should it be possible to set vars in there as well (instead of on the CLI)? That wouldn't support defining multiple different environments, though—and I'm not sure how we would support that, short of requiring an explicit flag be passed every time. (Because this file needs to be read before all other flags / env vars are resolved, we can't have a circular dependency of "read this config file to determine project/profile location" → "read the project file to determine the profile" → "read the profile to determine the default target" → "reread this config file now that we know the target.")

authors: adam-wrobel cwelton dalebradman franviera92 inakrin jtcohen6 vembloud ybressler

repo: dbt-labs/dbt-core


text:
clarify docs generate steps

add clarifying language and distinction between generate run on docs checkbox and adding it as a command in the run steps.
pr resulted from slack thread
Description & motivation

To-do before merge

Prerelease docs
If this change is related to functionality in a prerelease version of dbt (delete if not applicable):

[ ] I've added versioning components, as described in "Versioning Docs"
[ ] I've added a note to the prerelease version's Migration Guide

Checklist
If you added new pages (delete if not applicable):

[ ] The page has been added to website/sidebars.js
[ ] The new page has a unique filename

If you removed existing pages (delete if not applicable):

[ ] The page has been removed from website/sidebars.js
[ ] An entry has been added to _redirects
[ ] Run link testing to update the links that point to the deleted page

@graciegoheen @sophiad96 , is there any more conceptual or useful info i can add so the user understands each option?

I'm wondering if we might be able to include this as a note for source freshness somewhere in the docs too? I know this section is specific to docs only, but the behavior is the same (in terms of check boxes vs. adding a step manually). I think it would be good to mention it for both.

good callout and the source freshness doc does specify it (see here) but maybe i can clarify the format further to match the docs one

hey @sophiad96 and @graciegoheen - hope ya'll had a great holiday break! can you both review the docs and source freshness for feedback and accuracy? once you review it, I'll request a docs review for feedback. many thanks!

source freshness deploy staging link
docs generate

LGTM! I like that there are separate tabs for "select checkbox" and "add as a run step". I think that makes things clearer!

thanks so much @runleonarun - i've responded to two comments, please let me know what you think. deploy staging link here

awesome, thanks for that review @runleonarun and I've made some changes. let me know what you think!


text:
modify custom schema page

Per slack thread raised by Benoit, we need to clarify to the user that if they'd like to use the generate_schema_name macro, they need to copy and paste the macro in a file named generate_schema_name. Most importantly, they DO NOT need to remove the {{ default_schema }} code one the {{ default_schema }}_{{ custom_schema_name | trim }} line of the macro.
To modify the target schema, the user should instead use either target variables or env_var explained in detail in our course videos, which are linked in new pr.
Resolves #3303

thanks @matthewshaver ! @b-per , going to merge this now!


text:
Iconset for menu?

Hi,
Apart Heroicones, which iconsets do you suggest ?
Regards

Generally, I use this: https://iconpark.oceanengine.com/official

authors: milewski scramatte

repo: dcasia/collapsible-resource-manager


text:
Show hidden fields on index

Hi,
Would it be possible to show hidden fields on index and give them a null value when they are missing?
/Tim

Yes this would be fantastic.

authors: noahlocke timcv

repo: dcasia/conditional-container


text:
Support IPv6 addresses as part of Uris.

At this time, this is blocked by https://github.com/NET-A-PORTER/scala-uri/issues/62 . An alternate solution would be to change back to using java.net.URI but we would then loose pattern matching and stuff.

No activity in a while. Closing.

authors: BenWhitehead jsancio

repo: dcos/cosmos


text:
remove pypi universal config param

Changing from using universal wheels to pure python wheels

@tamarrow Can you test that doing this doesn't break the existing install script?

Going to hold off on this for now

authors: jsancio tamarrow

repo: dcos/dcos-cli


text:
DCOS-43324: fix Cosmos icons

The PR drops parsing of cosmos URL as that can break URL on some clusters.
Testing

add --https to npm start like so "start": "NODE_ENV=development webpack-dev-server --https --config ./webpack/webpack.dev.js --hot --progress --colors --content-base ./build --host 0.0.0.0 --port $npm_package_config_port",
Launch any catalog service with an icon
Verify that icon is visible

Trade-offs
Dev mode without https won't show icons
We can' switch to https on dev just now as webpack crashes on the catalog page

I'm seeing all placeholder purple icons in the catalog and then webpack crashes... am I missing something? Changed npm start as indicated

@natmegs please launch something from the catalog before testing Services page. As I mentioned in the PR Catalog page crashes webpack :(

:tada: This PR is included in version 1.0.1 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:

:tada: This PR is included in version 2.25.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:

Are we adding this to master?

@nLight Okay, I thought we forgot because I still have buggy icons for services when running it locally.

@GeorgiSTodorov please refer to the trade-offs section. icons will be always broken locally unless running webpack with --https key which we can't do as it is crashes on the Catalog page

@nLight Okay, thank you.

authors: GeorgiSTodorov mesosphere-ci nLight natmegs

repo: dcos/dcos-ui


text:
metronome 0.2.4 bump

High Level Description
What features does this change enable? What bugs does this change fix? High-Level description of how things changed.
Related Issues
-COPS-1814 Fixes to cron-utils enables advanced cron expressions.

MARATHON_EE-1670  Release Metronome 0.2.4 on DCOS

Checklist for all PR's

[x] Included a test which will fail if code is reverted but test is not. If there is no test please explain here:
[x] Read the DC/OS contributing guidelines
[x] Followed relevant code rules Rules for Packages and Systemd

Checklist for component/package updates:
If you are changing components or packages in DC/OS (e.g. you are bumping the sha or ref of anything underneath packages), then in addition to the above please also include:

[x] Change log from the last version integrated (this should be a link to commits for easy verification and review): [changelong]((https://github.com/dcos/metronome/compare/87976...23fe8ca)
[x] Test Results: link to CI job test results for component

@mesosphere-mergebot bump-ee

@mesosphere-mergebot label ready-for-review

@mesosphere-mergebot bump-ee

downloaded and sha1sum checks out
/lgtm

This was not cleanly transferred to train 240, so I am closing this manually now.

authors: jdef jgehrcke kensipe

repo: dcos/dcos


text:
Collect all lines for mesos node logs

https://jira.mesosphere.com/browse/DCOS-57008
The collected logs would be very minimal. Only the last second. As you can see in the linked artifacts, they are all significantly larger (closer to 1 MB)
proof it works:
Open 1.10: https://teamcity.mesosphere.io/viewLog.html?buildId=2252983&buildTypeId=DcOs_Open_Test_IntegrationTest_TestLogFetcherAwsOnpremWStaticBackendGroup1&tab=artifacts
Open master: https://teamcity.mesosphere.io/viewLog.html?buildId=2252985&buildTypeId=DcOs_Open_Test_IntegrationTest_TestLogFetcherAwsOnpremWStaticBackendGroup1&tab=artifacts
EE 1.10: https://teamcity.mesosphere.io/viewLog.html?buildId=2252987&buildTypeId=DcOs_Enterprise_Test_Inte_TestLogCollectionAwsOnpremWStaticBackendAndSecurityStr&tab=artifacts
EE master : https://teamcity.mesosphere.io/viewLog.html?buildId=2252989&buildTypeId=DcOs_Enterprise_Test_Inte_TestLogCollectionAwsOnpremWStaticBackendAndSecurityStr&tab=artifacts

@mesosphere-mergebot label ready for review

@mesosphere-mergebot changelog-not-required log script change


text:
🛑 Danbs is down

In 960d675, Danbs (https://danbs.net) was down:

HTTP code: 404
Response time: 182 ms

Resolved: Danbs is back up in 864aeef after 18 minutes.

repo: ddanbs/upptime


text:
🛑 Danbs is down

In fe6beba, Danbs (https://danbs.net) was down:

HTTP code: 404
Response time: 3046 ms

Resolved: Danbs is back up in c122820 after 11 minutes.


text:
🛑 Danbs is down

In 6b2b67d, Danbs (https://danbs.net) was down:

HTTP code: 404
Response time: 3516 ms

Resolved: Danbs is back up in feab03d after 32 minutes.


text:
🛑 Danbs is down

In 5f1377f, Danbs (https://danbs.net) was down:

HTTP code: 404
Response time: 120 ms

Resolved: Danbs is back up in f2e52ef after 6 minutes.


text:
🛑 Danbs is down

In 181a54a, Danbs (https://danbs.net) was down:

HTTP code: 404
Response time: 170 ms

Resolved: Danbs is back up in ba81ef2 after 23 minutes.


text:
🛑 Danbs is down

In 26bf33a, Danbs (https://danbs.net) was down:

HTTP code: 404
Response time: 146 ms

Resolved: Danbs is back up in a8b9095.


text:
🛑 Danbs is down

In a777755, Danbs (https://danbs.net) was down:

HTTP code: 404
Response time: 196 ms

Resolved: Danbs is back up in 9eb8f8a.


text:
🛑 Danbs is down

In d923049, Danbs (https://danbs.net) was down:

HTTP code: 404
Response time: 210 ms

Resolved: Danbs is back up in 55e9dbe.


text:
🛑 Danbs is down

In af68399, Danbs (https://danbs.net) was down:

HTTP code: 404
Response time: 94 ms

Resolved: Danbs is back up in 371844b.


text:
🛑 Danbs is down

In 6757c04, Danbs (https://danbs.net) was down:

HTTP code: 404
Response time: 83 ms

Resolved: Danbs is back up in afb94ee.


text:
Feat: support server side usage of the saml class

When using global cookie:

The user is only able to login the first time, the subsequent logins will fail to get the login path since the server returns the samlresponse directly instead of the login page
Different users are sharing the global cookie

@EbenZhangEmbed thanks for the PR! Will review and test it and release as new version as soon as I have a few hours.

@EbenZhangEmbed released in v1.1.2, thanks for contributing!

authors: EbenZhangEmbed ddimitrioglo

repo: ddimitrioglo/aws-saml


text:
Anyone Still thereeee? This seems deserted....

Hey! I was trying to uh upload a file via rclone/python...
My code:
import os
import zipfile
import datetime
import rclone
import time
import logging

logging.basicConfig(
    level=logging.DEBUG,
    format="%(asctime)s %(name)s [%(levelname)s]: %(message)s")

cfg = """[local]
type = local
nounc = true"""
result = rclone.with_config(cfg).listremotes()

print("Starting compression...")
def zipdir(path, ziph):
    # ziph is zipfile handle
    for root, dirs, files in os.walk(path):
        for file in files:
            ziph.write(os.path.join(root, file), os.path.relpath(os.path.join(root, file), os.path.join(path, '..')))

zipf = zipfile.ZipFile(r"G:/forge_server/world_autoBackup.zip", 'w', zipfile.ZIP_DEFLATED)
zipdir(r'G:/forge_server/mods', zipf)    # ^^ name of what the file will be outputted as
zipf.close()   #^^ PATH TO BACKUP !! CHANGE ME !!

print("Successfully compressed!")

print("Renaming...")

Current_Date = datetime.datetime.today().strftime ('%d-%b-%Y')
#os.rename(r'G:/forge_server/world_autoBackup.zip',r'G:/forge_server/world_autoBackup ' + str(Current_Date) + '.zip')

time.sleep(5)

print("Uploading to google drive via rclone...")

#cfg = """[local]
#type = local
#nounc = true"""
#result = rclone.with_config(cfg).run_cmd(command="copy", extra_args=["G:/forge_server/world_autoBackup.zip", "backup_drive:forge-server-backups"])

print("Finished Upload!")

Its giving me the error:
2021-02-27 01:58:19,689 RClone [DEBUG]: rclone config: ~[local] type = local nounc = true~ 2021-02-27 01:58:19,694 RClone [DEBUG]: Invoking : rclone listremotes --config C:\Users\Krish\AppData\Local\Temp\tmpf3pwwzzw 2021-02-27 01:58:19,887 RClone [DEBUG]: b'' 2021-02-27 01:58:19,942 RClone [WARNING]: 2021/02/27 01:58:19 Failed to load config file "C:\\Users\\Krish\\AppData\\Local\\Temp\\tmpf3pwwzzw": open C:\Users\Krish\AppData\Local\Temp\tmpf3pwwzzw: The process cannot access the file because it is being used by another process.
Any idea how to fix?

@YTMrSnipa I realize you might have figured it out, but this is because python-rclone is using tempfile.NamedTemporaryFile() to generate a temporary file that the spawned rclone process uses as the config.
Unfortunately, the temporary file generated this way cannot be opened a second time on Windows!
As I understand, this effectively means that python-rclone cannot currently be used on Windows.
I'll try to implement a workaround and open a PR soon.

Hey man! Yeah, I did end up figuring it out... I ended up not using rclone at all, I soon came to realize that I can upload and do everything via python itself. Thanks though!

@YTMrSnipa
I just opened #5 to fix this issue.
I understand you no longer need this, but it might be helpful for others who try using this wrapper on Windows.  Can you please reopen?

repo: ddragosd/python-rclone


text:
save all changes functionality

I have added a new item in the menu for saving all files, please take a look at the screenshot below

Great new feature, see my question about it:
https://github.com/deadlyjack/Acode/discussions/900

authors: francwalter harishkumarc

repo: deadlyjack/Acode


text:
[PRD] Role details updates

Closes #2525
Screenshots:

Disconnected wallet:

Mobile:

Approved

@Da-Colon minor design adjustments to that new member chip.
Can you reduce avatar size to 1rem and update text style to labels-large

repo: decentdao/decent-interface


text:
feat: messages between parcels

Separates comms into Broker and World implementations

Adds a WS broker

Fixes chat analytic events

Avoids removal of internal persistent scenes in CLI preview

Separates hellmap to avoid continously builds

adds a make watch-single FILE="-100.80*" to only build a subset of scenes

adds a make initialize-ecs-npm-link to prepare and link a local decentraland-ecs to test with the CLI in real time

uses a new version of decentraland-rpc that fixes a bug in the lifecycle hooks of remote controllers

adds the original .proto files to the comms project

separate the single .proto into Broker and World (same as our services)

[x] Update .proto files and regenerate

[x] Separate into communication channels (WS/Comms)

[x] Tests

Overall:

The hellmap moves could be their own PR
The api-extractor update would be great as a different PR

authors: eordano menduz

repo: decentraland/explorer


text:
register screen changes

[x] add backbutton arrow at appbar for register screen
[x] validation message showing issue
[x] remove unused blank area from backup and restore screen

@lijogeorgep add snack bar in login screen also

authors: josmilan lijogeorgep


text:
Update -animation MainActivity.java

delete methods empties

The methods you removed were added by an interface that was implemented. The code won’t compile without those methods.

authors: C-ollins EvertonMelo

repo: decred/dcrandroid

license: ISC


text:
member are null null

evry body in member component in server sidebar are just null null.
probably thats clerk problem, maybe its problem with prisma or postgres. idk

so
that was problem with clerk. also i've deleted option to signUp using github.
i'll try to to github authentification but later
now this problem is solved and i'm happy with it:)


text:
Add content from the reentrancy blog

Reentrancy blog

Edited index.md to include content from the reentrancy blog
Cannot add code blocks hence using images for code snippets

Screenshots

Navigation Page

repo: deep-stack/blog-template


text:
[api] Moves RawDataset from basicdata to api module

Description
Brief description of what this PR is about

If this change is a backward incompatible change, why must this change be made?
Interesting edge cases to note here

Codecov Report
Base: 72.08% // Head: 74.45% // Increases project coverage by +2.36% :tada:

Coverage data is based on head (7f8d33b) compared to base (bb5073f).
Patch coverage: 73.69% of modified lines in pull request are covered.

:mega: This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more
Additional details and impacted files
@@             Coverage Diff              @@
##             master    #2375      +/-   ##
============================================
+ Coverage     72.08%   74.45%   +2.36%
- Complexity     5126     6770    +1644
============================================
  Files           473      658     +185
  Lines         21970    29400    +7430
  Branches       2351     3052     +701
============================================
+ Hits          15838    21889    +6051
- Misses         4925     6026    +1101
- Partials       1207     1485     +278

Impacted Files
Coverage Δ

api/src/main/java/ai/djl/modality/cv/Image.java
69.23% <ø> (-4.11%)
:arrow_down:

...rc/main/java/ai/djl/modality/cv/MultiBoxPrior.java
76.00% <ø> (ø)

...rc/main/java/ai/djl/modality/cv/output/Joints.java
71.42% <ø> (ø)

.../main/java/ai/djl/modality/cv/output/Landmark.java
100.00% <ø> (ø)

...main/java/ai/djl/modality/cv/output/Rectangle.java
72.41% <0.00%> (ø)

...i/djl/modality/cv/translator/BigGANTranslator.java
21.42% <0.00%> (-5.24%)
:arrow_down:

.../modality/cv/translator/ImageFeatureExtractor.java
0.00% <0.00%> (ø)

.../ai/djl/modality/cv/translator/YoloTranslator.java
27.77% <0.00%> (+18.95%)
:arrow_up:

...ain/java/ai/djl/modality/cv/util/NDImageUtils.java
67.10% <0.00%> (+7.89%)
:arrow_up:

api/src/main/java/ai/djl/modality/nlp/Decoder.java
63.63% <ø> (ø)

... and 623 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.

authors: codecov-commenter frankfliu

repo: deepjavalibrary/djl


text:
Elementwise masking

It would be nice to extend the elementwise masking capability of INDArrays for RichNDArrays.
For example def :<=(other : Number) returns the matrix that results from doing an elementwise less than or equal to operation. Indices where the expression is false is 0, otherwise it remains the same as that in the matrix.

Now you can elementwise masking like this.
val ndArray =
      Array(
        Array(1, 2, 3),
        Array(4, 5, 6),
        Array(7, 8, 9)
      ).toNDArray

ndArray.filter(_ > 3)

assert(filtered ==
      Array(
        Array(0, 0, 0),
        Array(4, 5, 6),
        Array(7, 8, 9)
      ).toNDArray)

val filterMasked = ndArray.filterBit(_ % 2 == 0)

assert(filterMasked ==
      Array(
        Array(0, 1, 0),
        Array(1, 0, 1),
        Array(0, 1, 0)
      ).toNDArray)

Since too many custom operators may spoil source code readability, I use filter function name as Scala Collection has similar one :).

authors: rahulpalamuttam taisukeoe


text:
how to run three-player kuhn and leduc?

FYI.

I find the configuration for three-play settings.


text:
An implicit requirement

deeppavlov.core.commands.infer.build_model_from_config doesn't work without gensim and tensorflow (trying to run goo.gl/V2gfxn tutorial on windows)

Tensorflow has cpu-version tensorflow and gpu-compatible version tensorflow-gpu.
You should choose yourself and install any of them BEFORE installing deeppavlov.
gensim is not required by all deeppavlov models, and is not installed by default. Before using any model you should firstly install it's requirements by python -m deeppavlov install path/to/config. Maybe that was in your case?

authors: avidale vikmary

repo: deepmipt/DeepPavlov