Windows Electron DLL initialization Error

So i've followed all of the steps of configuring my package.json:
"iohook": {
    "targets": [
      "node-64",
      "electron-64"
    ],
    "platforms": [
      "win32",
      "darwin",
      "linux"
    ],
    "arches": [
      "x64",
      "ia32"
    ]
  }

and:
"cmake-js": {
    "runtime": "electron",
    "runtimeVersion": "3.1.9"
  },

I've also tried using electron-rebuild:
.\node_modules\.bin\electron-rebuild.cmd -f
Here is the error output:
 ELECTRON_ASAR.js:166
[1]         return old.apply(this, arguments)
[1]                    ^
[1]
[1] Error: A dynamic link library (DLL) initialization routine failed.
[1] \\?\C:\Users\Dan\Desktop\registrationutilities\node_modules\iohook\builds\node-v64-win32-x64\build\Release\iohook.node
    at process.module.(anonymous function) [as dlopen] (ELECTRON_ASAR.js:166:20)
[1]     at Object.Module._extensions..node (internal/modules/cjs/loader.js:740:18)
[1]     at Object.module.(anonymous function) [as .node] (ELECTRON_ASAR.js:166:20)
[1]     at Module.load (internal/modules/cjs/loader.js:620:32)
[1]     at tryModuleLoad (internal/modules/cjs/loader.js:559:12)
    at Function.Module._load (internal/modules/cjs/loader.js:551:3)
[1]     at Module.require (internal/modules/cjs/loader.js:658:17)
[1]     at require (internal/modules/cjs/helpers.js:20:18)
[1]     at Object.<anonymous> (C:\Users\Dan\Desktop\registrationutilities\node_modules\iohook\index.js:10:21)
    at Object.<anonymous> (C:\Users\Dan\Desktop\registrationutilities\node_modules\iohook\index.js:397:3)
[1] refresh_locale_list [476]: GetKeyboardLayoutList(0, NULL) found 1 layouts.
[1] refresh_locale_list [493]: Received 1 locales.
[1] load_input_helper [866]: refresh_locale_list() found 1 locale(s).

Expected Behavior
I shouldn't get this error
Current Behavior
I get this error
Possible Solution

Steps to Reproduce (for bugs)

Install with configuration in package.json
Fork a node.js file from the electron process, with iohook required in the forked file

Context
Everything else SEEMS to run fine, but not the forked process
Your Environment

Version used: 0.4.5
Environment name and version (e.g. Chrome 39, node.js 5.4): Node 10.15.3, Electron 3.1.9 (these were the only versions I could use together without having iohook require a higher version of the node-XXv that actually existed)
Operating System and version (desktop or mobile): Windows 10
Link to your project: N/A

I'd also note that the reason I am using electron 3.1.9 is because when specifying node-XXV and electron-XXv it would look for the node version of what ever the installed electron version ended up being, weird I know

If I do try to use electron 4.2.0, I get this error instead: ```
internal/modules/cjs/loader.js:586
[1]     throw err;
[1]     ^
[1]
[1] Error: Cannot find module 'C:\Users\Dan\Desktop\registrationutilities\node_modules\iohook\builds\node-v69-win32-x64\build\Release\iohook.node'

FIXED IT. Turns out it was just because I was forking the process that was using it, but I am still forced to use electron 3.1.9 with node 10.15.3... Good enough for me though. I'll leave this open so maybe someone can look at the version forcing issue...

Seems like your electron version combo is wrong :
"electron-64" + "runtimeVersion": "3.1.9" doesn't make sense. Try not to specify the cmakejs version, or use 4.1.1 for instance.

I'm closing this. Feel free to tell us if you still experience this.

Maybe this help:
https://github.com/wilix-team/iohook/issues/160


Demo link broken

It seems that the demo link http://henlin.org/touchpolyfill/demo.html mentioned in the README.md is broken: 404 Not Found.

Fixed, thank you


Putting bars on one row

Hi, it's possible ? anyone knows ? :)

Yeah, bro, something like this :D

@lanizz how did you implement that? do you have a code example or an example what you changed inside the code?

@uVisionM maybe you want like this ?

What is the name of the plugin? I need that

@uVisionM maybe you want like this ?

What is the name of the plugin? I need that

I used an alternative plugin for this and this is the demo: https://github.com/detongz/react-gantt-one-row


Update to 5.4

Update to 5.4. Please also accept #1

Fixed with release 1.0.2: https://github.com/pascalbaljetmedia/laravel-webdav/releases/tag/1.0.2


restart and install update restarts lost 1 window

I used the install and update button,
(but I did not know I was already in the latest version, so this should not have been available I guess)
I had 2 Atom windows open,
1 reopened well,
The second reopened showing the folder app-0.174.0 with the DLL inside

And I'm still in 0.174.0 (which is normal)

I can confirm when I upgraded to 0.174.0 on Windows (refs #4653).

This might be a separate issue but on the Mac when I "Install & restart" a new Atom from the menu, Atom always closes all windows and re-opens a new blank one. I don't get my original window back.

@cthielen that's #1603.

One part of this is covered by #1603 and the other (button not available when it should be) has I think been fixed (not able to repro).


Specification vartype

Coverage increased (+0.5%) to 83.113% when pulling fabc04674dd8beadb80641a974f9de7628d5a60d on arcondello:specification_vartype into 01db8d5a6e75ee553d99c492ae028fbb18413d7d on dwavesystems:master.


Links in map popups are incorrect

If you select a location on the map & the info window comes up, the link doesn't go to an accurate page.

After setting up a new default avatar URL, the links on the map now work properly even though the links are to specific article IDs. Another ticket can be opened to change those to slugs.


Allow domain admins to configure resource limits

Fixes: https://github.com/apache/cloudstack-primate/issues/854

@blueorangutan package

@Pearl1594 a Jenkins job has been kicked to build primate packages. I'll keep you posted as I make progress.

Packaging result: :heavy_check_mark:centos :heavy_check_mark:debian :heavy_check_mark:archive.
QA: http://primate-qa.cloudstack.cloud:8080/client/pr/855 (JID-3651)

IMHO the better approach is to enable tab based on user permissons not role names.

@blueorangutan package

@davidjumani a Jenkins job has been kicked to build primate packages. I'll keep you posted as I make progress.

Packaging result: :heavy_check_mark:centos :heavy_check_mark:debian :heavy_check_mark:archive.
QA: http://primate-qa.cloudstack.cloud:8080/client/pr/855 (JID-3653)


guides/import: Add .src to src={imgReference.src}

Without this change, I get the following error:
Type 'ImageMetadata' is not assignable to type 'string'.ts(2322)
astro-jsx.d.ts(701, 3): The expected type comes from property 'src' which is declared here on type 'ImgHTMLAttributes'

It is also how it is documented in https://docs.astro.build/en/guides/images/#images-in-astro-files

On a separate note, I wonder why this text

// This example uses JSX, but you can use import references with any framework.

references JFX explicity. The example it not valid JSX AFAIK, because there is no function wrapper and no return statement. Wouldn't it be to write it as a .astro component which would only require to add the --- part…?


Fixes Xcode 7 nullability check

Thanks for the improvement @OliverLetterer! You are right, there is no point of using cancelByProducingResumeData just to pass nil.

I'm sorry to bother you any further, but would it be possible to get a minor CocoaPods release and version 0.2.1 including the last two fixes? 😊😊😊 (I always hate it when my project compiles with warnings)

Hi Oliver, thanks for your help. Version 0.2.1 is available now ;)
On Wed, Sep 9, 2015 at 9:13 AM, Oliver Letterer<EMAIL_ADDRESS>wrote:

I'm sorry to bother you any further, but would it be possible to get a minor CocoaPods release and version 0.2.1 including the last two fixes? 😊😊😊 (I always hate it when my project compiles with warnings)
Reply to this email directly or view it on GitHub:
https://github.com/andresbrun/ABMSoundCloudAPI/pull/7#issuecomment-138809891

Wow this was fast. Thank you very much 😊✨🎉


How to set max_output_token for AWS Bedrock Titan text express model?

Checked other resources

[X] I added a very descriptive title to this issue.
[X] I searched the LangChain documentation with the integrated search.
[X] I used the GitHub search to find a similar question and didn't find it.
[X] I am sure that this is a bug in LangChain rather than my code.

Example Code
llm = Bedrock(
    client=client,
    model_id='amazon.titan-text-express-v1',
    model_kwargs={'temperature': 0.1,'},
    endpoint_url='https://bedrock-runtime.us-east-1.amazonaws.com',
    region_name='us-east-1',
    verbose=True,
)

Is there a way I can provide the max output limit in model_kwargs? I am using llm in SQLDatabaseChain and seeing that the SQL command generated by llm gets truncated may be because of default max token limit
Error Message and Stack Trace (if applicable)
truncates the SQL commands suddenly after 128 tokens
Description
llm = Bedrock(
    client=client,
    model_id='amazon.titan-text-express-v1',
    model_kwargs={'temperature': 0.1,'},
    endpoint_url='https://bedrock-runtime.us-east-1.amazonaws.com',
    region_name='us-east-1',
    verbose=True,
)

Is there a way I can provide the max output limit in model_kwargs? I am using llm in SQLDatabaseChain and seeing that the SQL command generated by llm gets truncated may be because of default max token limit
System Info
boto3==1.34.29
chromadb==0.4.22
huggingface-hub==0.20.3
langchain==0.1.4
langchain-experimental==0.0.49
python-dotenv==1.0.1
sentence_transformers==2.3.0
snowflake-connector-python==3.7.0
snowflake-sqlalchemy==1.5.1
SQLAlchemy==1.4.51
streamlit==1.30.0
watchdog==3.0.0

@dosu-bot. problem is not with input token but output token count limit

@dosu-bot. how to implement this in code with SQLDatabaseChain. Will it be before calling llm bedrock or after? show with example
titan_model = TitanTakeoff()
titan_model.generate_max_length = 256

@dosu-bot. where to include model.max_new_tokens ? how to use that with the code below:
llm = Bedrock(
    client=client,
    model_id='amazon.titan-text-express-v1',
    model_kwargs={'temperature': 0.1},
    endpoint_url='https://bedrock-runtime.us-east-1.amazonaws.com',
    region_name='us-east-1',
    verbose=True,
)

return_op = SQLDatabaseChain.from_llm(
    llm,
    db_connection,
    prompt=few_shot_prompt,
    verbose=True,
    return_intermediate_steps=True,
)

@dosu-bot.

I am using llm = bedrock model = amazon.titan-text-express-v1. Is this same as titan_model = TitanTakeoff()
Is there a way to increase output token limit for amazon.titan-text-express-v1 using titan_model.generate_max_length = 256
Show how to increase output token limit  for amazon.titan-text-express-v1 in the below code:

few_shot_prompt = FewShotPromptTemplate(
example_selector=example_selector,
example_prompt=example_prompt,
prefix=_snowflake_prompt + 'Provide no preamble' + ' Here are some examples:',
suffix=PROMPT_SUFFIX,
input_variables=['table_info', 'input', 'top_k'],
)
snowflake_url = get_snowflake_db_uri()
db_connection = SQLDatabase.from_uri(
snowflake_url,
sample_rows_in_table_info=2,
include_tables=['table1'],
view_support=True,
max_string_length=30000,
)
return_op = SQLDatabaseChain.from_llm(
llm,
db_connection,
prompt=few_shot_prompt,
use_query_checker=True
verbose=False,
return_intermediate_steps=True

@dosu-bot.
Here is the Bedrock class that I am using to call llm model = amazon.titan-text-express-v1
from langchain_community.llms import Bedrock

@dosu-bot.
Here is the Bedrock class that I am using to call llm model = amazon.titan-text-express-v1
from langchain_community.llms import Bedrock
is there a way to increase the max output token limit for the model

@dosu-bot.
when i implement this:
llm = Bedrock(
client=client,
model_id='amazon.titan-text-express-v1',
model_kwargs={'temperature': 0.1, 'maxOutputTokens': 500},  # Set your desired max output token limit here
endpoint_url='https://bedrock-runtime.us-east-1.amazonaws.com',
region_name='us-east-1',
verbose=True,
)
I get the following error
ValueError: Error raised by bedrock service: An error occurred (ValidationException) when calling the InvokeModel operation: Malformed input request: extraneous key [maxOutputTokens] is not permitted, please reformat your input and try again.
how to fix?

@dosu-bot.
Same error, even when using max_new_tokens
llm = Bedrock(
client=client,
model_id='amazon.titan-text-express-v1',
model_kwargs={'temperature': 0.1, 'max_new_tokens': 500},  # Set your desired max output token limit here
endpoint_url='https://bedrock-runtime.us-east-1.amazonaws.com',
region_name='us-east-1',
verbose=True,
)
error is below:
ValueError: Error raised by bedrock service: An error occurred (ValidationException) when calling the InvokeModel operation: Malformed input request: extraneous key [max_new_tokens] is not permitted, please reformat your input and try again.

solved using custom token prompting for usecase based on AWS bedrock documentation and 'maxTokenCount'
llm = Bedrock(
client=client,
model_id='amazon.titan-text-express-v1',
model_kwargs={'temperature': 0', maxTokenCount': 500},
endpoint_url='https://bedrock-runtime.us-east-1.amazonaws.com',
region_name='us-east-1',
verbose=True,
)


Use production widgets in HP staging environment

It is a recurring cause of confusion for site owners that the data widgets aren't the same between their staging site and production site.
The reason of course is that the 2 sites are configured to use different react components (staging vs prod).
I suspect it would be better to use the react production library both places. So that the HP site appears the same in staging and production. @MattBlissett you have in the past been opposed to using mixed environments, how do you feel about this?

Isn't this something you control, when making deployments from https://builds.gbif.org/view/Hosted Portals/job/gbif-web/ ?

Not this part no, but I'm not being very clear I must admit. Largely because I'm not sure exactly what I would like.
Current status is:
hp-bison is using staging libraries (whichever release/branch is running in that environment)
gbif.us is using production libraries (whichever release/branch is running in that environment)
The library on staging and production often differs as staging is essentially a test environment for me as a developer.
But for the hp site owners it is confusing that they see one data widget in staging and another version in production.
To avoid this confusion we could use production component libraries and endpoints in the HP staging environments.

I am in charge of the site mentioned in this ticket but I do not understand this ticket. I don't think I realized that widgets are different? For me whatever makes it so that changes I make to staging will show up exactly the same in production is what I need. I am not understanding the libraries issue Morten mentions.


Country Edit datatype issue

Context
/admin/country/country/
Steps

Home>>Country>Edit add country
Enter negative number on fields accepting numbers
Example: Population,GDP and so on
Enter Special characters or Numbers for currency field

Actual Result

Negative numbers over different fields are being saved.
Field accepts numbers and special characters

Expected Result

Fields should restrict Negative number over fields
Special character or numbers to be restricted. Dropdown for currency could be implemented

This issue has been fixed.


feat: refactor cucumber implementation

Closed in favour of integrating https://github.com/philips-software/amp-cucumber-cpp-runner going forward. Cucumber support in amp-embedded-infra-lib will be marked deprecated, and eventually removed.


AngelLoader.Common.GlobalCatOrTag appearing in tags list

I've stumbled across a small bug:

Add a new namespace and tag to an FM, for instance, bug:yes
Delete this new tag
Press Add from list

Doing so will cause the text AngelLoader.Common.GlobalCatOrTag to fill this position in the tags list instead of being removed.

Thanks for catching this! It was a simple fix.


Added server side code

Ok
On Sat, 25 Mar 2023, 5:17 am Golden Chukwukere, @.***>
wrote:

You can view, comment on, or merge this pull request online at:
https://github.com/NobleOsinachi/vidly-react/pull/3
Commit Summary

50bcfd3
https://github.com/NobleOsinachi/vidly-react/pull/3/commits/50bcfd3c8f79245f322dfe4eef592ef519aa5a05
Create logs.log
d4ab191
https://github.com/NobleOsinachi/vidly-react/pull/3/commits/d4ab191d245d1759c5681fa39ac0eeee1bbd1579
Create reveert.log
9f809ba
https://github.com/NobleOsinachi/vidly-react/pull/3/commits/9f809baa571dc94dd1467f7b4402cfa894850a34
Create Write.cs

File Changes
(3 files https://github.com/NobleOsinachi/vidly-react/pull/3/files)

A Write.cs
https://github.com/NobleOsinachi/vidly-react/pull/3/files#diff-d3423f49ca5025ba958a526e958969cb067bd8a9c346f480e0a6638d86a646b0
(1)
A logs.log
https://github.com/NobleOsinachi/vidly-react/pull/3/files#diff-d185d04ef1a3c8dd9564937d4698c5394327f03997fa7a6c683ea8088cc82ec5
(1)
A reveert.log
https://github.com/NobleOsinachi/vidly-react/pull/3/files#diff-ee41dcd366a159540f6a7fdef8c346cb050cc0d38fe487a82e7d656bccb41723
(1)

Patch Links:

https://github.com/NobleOsinachi/vidly-react/pull/3.patch
https://github.com/NobleOsinachi/vidly-react/pull/3.diff

—
Reply to this email directly, view it on GitHub
https://github.com/NobleOsinachi/vidly-react/pull/3, or unsubscribe
https://github.com/notifications/unsubscribe-auth/ANRS6AEEC5DA343SWBH4JZDW5ZWXFANCNFSM6AAAAAAWHJGOUA
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>

GITHUB STATS API
https://github-readme-stats.vercel.app/api?username=iamgolden

Message ID: @.***>


Breadcrumb navigation

right now the top appbar looks like this:

an common alternative is to have the following layout: (from left to right)

logo + App Title ... clickable to go back to the main screen
Breadcrumb ... clickable to navigate and go up in the hierarchy
spacer
Options (like Profile, General Preferences, ...) on the right side of the bar

I agree this would be an improvement. Not sure if we have anything for profile/preferences yet, but the other changes sound good to try. I never really liked the close button.


Added Screenshot and updated ReadMe.md

Hello,
Kamlesh here,
I Added Screenshot and updated ReadMe.md
Hope that contributes to your project
(^_^)

Hey m8!
Thanks for your contribution!

Glad that I could help 😊
Hoping you would like to Merge my Commite

Also, in the screenshot why are the particles only contained in the name div. Instead, they should span the entire website.

Hey,
well the error was that Animation of particles works only when that Div is on screen,
so I Screenshotted Divisions individually,
Have a look now 🙌🏻

Alright!

Hey,
the Pull request hadn't been merged,
did you intent to close the PR?

What do you mean by after some time?
can you elaborate?

I mean currently I am working on another project. I will restart this once I am done with my project.


support PATCH for admin APIs

[x] routes: https://github.com/iresty/apisix/pull/365

[x] service: https://github.com/iresty/apisix/pull/370

[x] upstream: https://github.com/iresty/apisix/pull/371

[ ] consumers: waiting to do

[ ] ssl: waiting to do

hello, why we need patch method?  for

We can only modify one parameter of the configuration, not the entire configuration.

support already