anyone know what import kernel,\ GetModuleHandle,'GetModuleHandleA',\ExitProcess,'ExitProcess' for in FASMW ??? PLS Hyelp - fasm

section '.idata' import data readable writeable
library kernel,'KERNEL32.DLL',\
user,'USER32.DLL'
import kernel,\
GetModuleHandle,'GetModuleHandleA',\
ExitProcess,'ExitProcess'
import user,\
DialogBoxParam,'DialogBoxParamA',\
EndDialog,'EndDialog',\
SetDlgItemText,'SetDlgItemTextA',\
GetDlgItemText,'GetDlgItemTextA',\
SetDlgItemInt,'SetDlgItemInt',\
GetDlgItemInt,'GetDlgItemInt',\
GetDlgItem,'GetDlgItem',\
SetFocus,'SetFocus',\
GetWindowLong,'GetWindowLongA',\
SetWindowLong,'SetWindowLongA',\
CallWindowProc,'CallWindowProcA',\
SendMessage,'SendMessageA',\
TrackPopupMenu,'TrackPopupMenu',\
LoadMenu,'LoadMenuA',\
GetSubMenu,'GetSubMenu',\
CheckMenuItem,'CheckMenuItem'
Anyone know what Kernel32.dll for in this code ?? PLS

Related

Jmeter-selenim driver javax.script.ScriptException: javax.script.ScriptException: groovy.lang.MissingPropertyException:No such property: org for class

I have below code
import org.openqa.selenium.By;
import org.openqa.selenium.support.ui.WebDriverWait;
import org.openqa.selenium.chrome.ChromeDriverService;
import org.openqa.selenium.remote.DesiredCapabilities;
import org.openqa.selenium.remote.RemoteWebDriver;
import static org.openqa.selenium.support.ui.ExpectedConditions.*
import org.openqa.selenium.support.ui.*;
import openqa.selenium.OutputType.*;
// 1. Go to a page with a form
WDS.browser.get('http://mobile.yellow.com.au')
// 2. Enter characters into the text input field
WDS.browser.findElement(By.id('clue'))sendKeys('tyres')
And i am getting below error
javax.script.ScriptException: javax.script.ScriptException: groovy.lang.MissingPropertyException: No such property: org for class: Script32
at org.codehaus.groovy.jsr223.GroovyScriptEngineImpl.eval(GroovyScriptEngineImpl.java:158)
at java.scripting/javax.script.AbstractScriptEngine.eval(AbstractScriptEngine.java:262)
at com.googlecode.jmeter.plugins.webdriver.sampler.WebDriverSampler.sample(WebDriverSampler.java:99)
at org.apache.jmeter.threads.JMeterThread.doSampling(JMeterThread.java:651)
at org.apache.jmeter.threads.JMeterThread.executeSamplePackage(JMeterThread.java:570)
at org.apache.jmeter.threads.JMeterThread.processSampler(JMeterThread.java:501)
at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:268)
at java.base/java.lang.Thread.run(Thread.java:1589)
Could some one please help
#jmeter #performance
import org.openqa.selenium.By; import org.openqa.selenium.support.ui.WebDriverWait; import org.openqa.selenium.chrome.ChromeDriverService; import org.openqa.selenium.remote.DesiredCapabilities; import org.openqa.selenium.remote.RemoteWebDriver; import static org.openqa.selenium.support.ui.ExpectedConditions.* import org.openqa.selenium.support.ui.*; import openqa.selenium.OutputType.*; // 1. Go to a page with a form WDS.browser.get('http://mobile.yellow.com.au') // 2. Enter characters into the text input field WDS.browser.findElement(By.id('clue'))sendKeys('tyres')
I don't see any issues with your code, it runs just fine.
You can remove unnecessary imports and even get rid of them totally by putting fully qualified reference
// 1. Go to a page with a form
WDS.browser.get('http://mobile.yellow.com.au')
// 2. Enter characters into the text input field
WDS.browser.findElement(org.openqa.selenium.By.id('clue'))sendKeys('tyres')
If you still experience problems:
Reinstall JMeter from scratch
Add WebDriver Sampler only using JMeter Plugins Manager
Restart JMeter to pick the plugin up

Error while loading pickle file: - Errno 13 Permission denied: 'data' pkl file

Error in Model Loading
Here, the error is occurring while loading a pickle file. Please help me resolve this.
use the below codes and it should work.
import os
from joblib import load
from joblib import dump
#creating directory
if not os.path.exists("models"):
os.makedirs("models"
# saving model best estimator
rffinal=model.best_estimator_
dump(rand_forest, 'models/rffinal-clf.joblib')
#loading saved model
random_forest=load('models/rffinal-clf.joblib')

Attempted import error: 'SelectDialog' is not exported from '#ui5/webcomponents-react'

I'm using UI5 web component https://sap.github.io/ui5-webcomponents-react/?path=/docs/modals-popovers-selectdialog--default-story in React
and I'm using SelectDialog Component but I'm getting this error Attempted import error: 'SelectDialog' is not exported from '#ui5/webcomponents-react'.
can anyone please help me on the same I'm using #ui5/webcomponents-react version 0.13.11.
Code
import {SelectDialog } from '#ui5/webcomponents-react';
return (
<SelectDialog
ref={iconRef}
></SelectDialog>
)
Thanks

React "Module Not Found" when loading a local image

I am trying to load an image using React using the following code:
const DogImage = require("../../public/dog.jpg");
console.log(DogImage);
...
<img src={DogImage} width="100px"/>
but I am getting the error:
the console log statement gives:
Please let me know if you have any suggestions or if I can provide more info!
EDIT: The file listed in the console.log (dist/8ce0...) exists when built
The path is going into the default property, which is a special property used by the import syntax. Try:
import DogImage from '../../public/dog.jpg';
OR
const DogImage = require('../../public/dog.jpg').default;
Anything else would require digging into the webpack config.

Where to find locale for US in #formatjs/intl-relativetimeformat/dist/locale-data/

I'm migrating react-intl to version 3.0, and need to polyfill locale-data for IE. Specifically I want to load a polyfill of locale data for en-US. I can only find #formatjs/intl-relativetimeformat/dist/locale-data/en locale file.
if (!Intl.RelativeTimeFormat) {
// eslint-disable-next-line global-require
require('#formatjs/intl-relativetimeformat/polyfill');
// eslint-disable-next-line global-require
require('#formatjs/intl-relativetimeformat/dist/locale-data/en-US');
}
It leads to this error :
Module not found: Error: Can't resolve '#formatjs/intl-relativetimeformat/dist/locale-data/en-US' in '/xxx/xxx/xxx/xxx/app'
Try the below format in "#formatjs/intl-relativetimeformat": "^7.2.0",
import '#formatjs/intl-pluralrules/polyfill'
import '#formatjs/intl-pluralrules/locale-data/en'
import '#formatjs/intl-pluralrules/locale-data/de'
import '#formatjs/intl-relativetimeformat/polyfill'
import '#formatjs/intl-relativetimeformat/locale-data/en'
import '#formatjs/intl-relativetimeformat/locale-data/de'
and addLocaleData is no removed already as per https://formatjs.io/docs/react-intl/upgrade-guide-3x/#migrate-to-using-native-intl-apis
try to install :
npm i #formatjs/intl-relativetimeformat
I had this same exact issue, when I checked the #formatjs directory inside node_modules/ there was no dist directory #formatjs/intl-relativetimeformat/**dist/**locale-data/en so I removed it from the import and everything worked fine.

Resources