procedure TfrmOrcamento.btnSalvarClick(Sender: TObject);
var
i : integer;
vValor : Double;
begin
for i := 0 to Pred(listaOrcamento.Count) do
begin
vValor:=vValor+
TfrmTipoOrc(listaOrcamento.ListItems[i].Components[0]).edValor.Value;
end;
end;
I use this two condition on the date I'm testing against.
=EOMONTH(TODAY(); -1)+1
and
=EOMONTH(TODAY();0)
The other method to test for the date is not taking into account the year and would get you the data from the past years.
You would need to do the following, which is longer.
=AND(YEAR('Date')=YEAR(TODAY());MONTH('Date')=MONTH(TODAY()))
No, this is not a bug. In toHaveBeenCalledWith, the arguments are checked positionally, as explained in the first comment.
If you run into this problem and would like to avoid it for console.log specifically, a relatively simple fix is to use template strings in Javascript instead of passing arguments that console.log concatenates with a space. A template string uses backticks (`) to delineate the string, and will execute code which is placed between ${ and } inside the string. The result is a single string, parts of which are the result of executing the code in the ${} parts, and so console.log will get called with a single argument. Thus, your call to any of the various Jest matchers will see the whole string as the first argument.
I've ran into the same issue. For some reason, adding +1 to itemIndex
works. Without the +1, it also doesn't seem to scroll to the right amount ever. Maybe it's for some reason 1-indexed?
/Volumes vs /volumes are different. For example I was setting GITLAB_HOME=/volumes/ext_ssd1/gitlab and it kept on erroring out.
/Volumes was already part of Docker but still it kept saying mount denied.
Changing from /volumes to /Volumes helped.
Answering my own question to help others who might face the same issue in the future. While I still don't understand why in some cases the script_score
gets called more than once, I was able to fix the scoring.
To prevent the scoring from being summed or multiplied I added boost_mode: replace
parameter like below:
{
"query": {
"function_score": {
"query": { ... },
"boost_mode": "replace", // Adding this fixed the issue for me
}
}
I found this solution by looking at OpenSearch docs https://opensearch.org/docs/latest/query-dsl/compound/function-score
You can specify how the score computed using all functions[1] is combined with the query score in the
boost_mode
parameter, which takes one of the following values:
multiply
: (Default) Multiply the query score by the function score.replace
: Ignore the query score and use the function score.sum
: Add the query score and the function score.avg
: Average the query score and the function score.max
: Take the greater of the query score and the function score.min
: Take the lesser of the query score and the function score.
[1] Note that the boost_mode
works in both scenarios: whether you have a single function (as in my case) or multiple functions (also in case of multiple functions you might want to look at score_mode
parameter too from the same docs page that I provided its link above)
you can use quiktime to record the sound then add it to the video.
Is there any reason that irq_callback_table
needs to be an std::array<>
? If it were an old fashioned C style array, there would be no bounds checking whatsoever so no possibility of an exception.
Hey maybe the following question can help you out: When to use ModelAndView vs Model in Spring?
It is similar to leaflet demo page example. I would suggest to add the markers themselves instead of several layers
sedi.forEach((sede) => {
const marker = L.marker([sede.lat, sede.lng]).addTo(map).bindPopup(`<b>${sede.name}</b>`)
markers.addLayer(marker)
})
This is heavily dependent on "what" and "which" and other questions. I believe I have read somewhere that reference is in general the fastest method of passing larger pieces of data around in Rust. You will get different results based on the size, the access, possible the type and to mix it all up, even your environment and other running processes can affect the results. The same benchmark test could differ in end results depending on your system.
I made some very un-scientific tests, and on my system, the fewer iterations i made the relatively slower the reference method became, while it would catch up as i increased the # of iterations.
In the lower end of iterations the reference was taking twice the time as the no_reference, and as i increased the time difference would decrease. By the 10_000_000 mark the difference was less than 1%.
Currently it is iterating through 1_000_000_000_000_000, and by the time of writing this, it wasn't finished. yeah.. didn't really think that one through when I clicked run!
I was able to resolve this by switching for dayGridYear to just dayGrid.
For my case, the build from Qt worked but exe did not. I had to copy the "sqldrivers" folder and all its DLLs from Qt folder to deployment folder next to exe file. Remember to dump the folder and its content there not just the contents, it's looking for the path in that folder.
Are you successful in the end? I'm trying to integrate mega.io into my flutter project too and I can't do it
Hi instgram my instgram account is Huck my account name @get_fit_withkulsum My account is Huck no access gmail account and phone number changed and please recover my Instagram account very important my account please reset link send is email [email protected] My account is Huck no access email account phone number reset password please help me instgram
screeninfo is a dependency of ursina, it looks as if you need to install it manually:
pip install ursina
have you figured it out, how to do silent sign in with the new Credential Manager?
I had the same error but nothing worked for me. So, I replaced ntlk.download('punkt') with ntlk.download('punkt_tab') and it worked. Actually "punkt_tab" is a newer, more accurate version of the same tokenizer.
I"ve been noticing the same issue. EMA on NT8 varies from Tradingview and TOS. Did you ever figure out, how to make NT8 match Tradingview? I've also noticed that TOS and Tradingview are exactly the same EMA's. meaning they match. I'd like to match Nt8 to them. Thanks in Advance!
use const userId = String(user._id); // Safely convert _id to a string const userData = JSON.stringify(user); // Serialize the user object
redis.set(userId, userData); // Store the data in Redis
No, SCTE-35 does not work with mp4, but does work with mp4 hls or dash.
https://github.com/futzu/threefive does scte35 insertion for mpegts, hls, and dash.
tsduck is great software as well, I have a lot of respect for it.
Those are the only two packages I would use for SCTE-35.
As it may be late for your question. Please email me on <redacted>
, if you are still interested.
I was looking for the very same thing and found the module WebServer on PowerShell Gallery handling file uploads just right.
I am facing a similar error with the waller. test in agricolae. I tried to trace it but I've totally failed to rectify it Here is a glimpse of my data frame: print(obj1) ID code bp stage dose rep day numberinitiated numberhealth numberdead 1 1 BAA n a A 1 0 10 10 0 2 2 BAA n a A 2 0 10 10 0 3 3 BAA n a A 3 0 10 10 0 4 4 BPA n p A 1 0 10 10 0 5 5 BPA n p A 2 0 10 10 0 6 6 BPA n p A 3 0 10 10 0 7 7 BLA n l A 1 0 10 10 0 8 8 BLA n l A 2 0 10 10 0 9 9 BLA n l A 3 0 10 10 0 10 10 BAF b a F 1 0 10 10 0 11 11 BAF b a F 2 0 10 9 1 12 12 BAF b a F 3 0 10 10 0 13 13 BPF b p F 1 0 10 9 1 14 14 BPF b p F 2 0 10 10 0 15 15 BPF b p F 3 0 10 9 1 16 16 BLF b l F 1 0 10 9 1 17 17 BLF b l F 2 0 10 9 1 18 18 BLF b l F 3 0 10 7 3 19 19 BAE b a E 1 0 10 6 4 20 20 BAE b a E 2 0 10 6 4 21 21 BAE b a E 3 0 10 6 4 22 22 BPE b p E 1 0 10 1 9 23 23 BPE b p E 2 0 10 3 7 24 24 BPE b p E 3 0 10 2 8 25 25 BLE b l E 1 0 10 8 2 26 26 BLE b l E 2 0 10 6 4 27 27 BLE b l E 3 0 10 7 3 28 28 BAD b a D 1 0 10 0 10 29 29 BAD b a D 2 0 10 1 9 30 30 BAD b a D 3 0 10 2 8 31 31 BPD b p D 1 0 10 6 4 32 32 BPD b p D 2 0 10 0 10 33 33 BPD b p D 3 0 10 0 10 34 34 BLD b l D 1 0 10 9 1 35 35 BLD b l D 2 0 10 5 5 36 36 BLD b l D 3 0 10 7 3 37 37 BAC b a C 1 0 10 9 1 38 38 BAC b a C 2 0 10 9 1 39 39 BAC b a C 3 0 10 8 2 40 40 BPC b p C 1 0 10 6 4 41 41 BPC b p C 2 0 10 9 1 42 42 BPC b p C 3 0 10 8 2 43 43 BLC b l C 1 0 10 7 3 44 44 BLC b l C 2 0 10 8 2 45 45 BLC b l C 3 0 10 8 2 46 46 BAB b a B 1 0 10 0 10 47 47 BAB b a B 2 0 10 0 10 48 48 BAB b a B 3 0 10 1 9 49 49 BPB b p B 1 0 10 5 5 50 50 BPB b p B 2 0 10 0 10 51 51 BPB b p B 3 0 10 0 10 52 52 BLB b l B 1 0 10 0 10 53 53 BLB b l B 2 0 10 10 10 54 54 BLB b l B 3 0 10 0 10 55 55 MAF m a F 1 0 10 10 0 56 56 MAF m a F 2 0 10 10 0 57 57 MAF m a F 3 0 10 10 0 58 58 MPF m p F 1 0 10 10 0 59 59 MPF m p F 2 0 10 10 0 60 60 MPF m p F 3 0 10 10 0 61 61 MLF m l F 1 0 10 10 0 62 62 MLF m l F 2 0 10 10 0 63 63 MLF m l F 3 0 10 10 0 64 64 MAE m a E 1 0 10 10 0 65 65 MAE m a E 2 0 10 10 0 66 66 MAE m a E 3 0 10 10 0 67 67 MPE m p E 1 0 10 10 0 68 68 MPE m p E 2 0 10 10 0 69 69 MPE m p E 3 0 10 10 0 70 70 MLE m l E 1 0 10 10 0 71 71 MLE m l E 2 0 10 10 0 72 72 MLE m l E 3 0 10 10 0 73 73 MAD m a D 1 0 10 10 0 74 74 MAD m a D 2 0 10 10 0 75 75 MAD m a D 3 0 10 10 0 76 76 MPD m p D 1 0 10 10 0 numberinfected event PctMrt 1 0 0 0 2 0 0 0 3 0 0 0 4 0 0 0 5 0 0 0 6 0 0 0 7 0 0 0 8 0 0 0 9 0 0 0 10 0 0 0 11 0 0 10 12 0 0 0 13 0 0 10 14 0 0 0 15 0 0 10 16 0 0 10 17 0 0 10 18 0 0 30 19 0 0 40 20 0 0 40 21 0 0 40 22 0 0 90 23 0 0 70 24 0 0 80 25 0 0 20 26 0 0 40 27 0 0 30 28 0 0 100 29 0 0 90 30 0 0 80 31 0 0 40 32 0 0 100 33 0 0 100 34 0 0 10 35 0 0 50 36 0 0 30 37 0 0 10 38 0 0 10 39 0 0 20 40 0 0 40 41 0 0 10 42 0 0 20 43 0 0 30 44 0 0 20 45 0 0 20 46 0 0 100 47 0 0 100 48 0 0 90 49 0 0 50 50 0 0 100 51 0 0 100 52 0 0 100 53 0 0 0 54 0 0 100 55 0 0 0 56 0 0 0 57 0 0 0 58 0 0 0 59 0 0 0 60 0 0 0 61 0 0 0 62 0 0 0 63 0 0 0 64 0 0 0 65 0 0 0 66 0 0 0 67 0 0 0 68 0 0 0 69 0 0 0 70 0 0 0 71 0 0 0 72 0 0 0 73 0 0 0 74 0 0 0 75 0 0 0 76 0 0 0
Here is the code: Effmodel <- lm(event ~ dose, data = obj1) summary(Effmodel) anovaEff <- anova(Effmodel) waller.test (Effmodel, "dose", group = TRUE)
Here is the error: waller.test (Effmodel, "dose", group = TRUE) Error in if ((K - IN0/ID0) * (K - IN1/ID1) <= 0) b0 <- t : missing value where TRUE/FALSE needed
Please help me as I#ve been stuck for 4 hours and googling the error is not helping
Ran into a similar issue - disabling the rp-filter did help:
... in many cases the reverse path filter may decide to drop your intercepted packets. The rp_filter can't be disabled globally, so for each interface do:
sysctl net.ipv4.conf.${INT}.rp_filter=0
In my case, I gave file name as global.js and it was conflicting with some node.js files, renaming the file fixed for me
I reformulate my need more simply
I have 3 environments
Each of these environments has the FIREBASE_DSN secret with a value specific to its environment:
Secrets are linked to an environment so detection should be done automatically, but there is no variable proposed by github to automatically detect the environment, this does not work. Is the only solution to copy my .yaml file 3 times?
environment: dev # <-- Here!
Use string-to-react-component package, which is a robust solution for converting strings to JSX within React applications. It parses the string to extract the component structure, making it a great choice for applications that require dynamic rendering of components from string inputs.
undefined and false are distinct values. false is a defined Boolean value, while undefined signifies the absence of a value.
Active extension=sodium in php.ini solve my problem. Laravel 11
Argument of type 'unknown' is not assignable to parameter of type 'RedisKey'.
redis.set(user._id, JSON.stringify(user) as any)
first lines are error and second line is code, im trying upload session data to redis
/storage/emulated/0
is a restricted directory, so you can't run the command there. Try running it in the location where you want to put the project.
There is no way an element returns an empty bounding client rect, you just need to look a bit harder.
For example.com:
cy.visit('https://example.com');
cy.get('h1')
.first()
.then(($target) => {
let coordsDrop = $target[0].getBoundingClientRect();
cy.log('coordsDrop', coordsDrop);
console.log('coordsDrop', coordsDrop);
})
The log:
Click the log entry:
or use consolg.log(coords)
I have modified a html animation on my own and I'd like to run it on github in just a click without downloading it. Is is possible?
I mean, I should have saved the data coming from the api to shared_preference, I want to save it but for some reason my data is not being saved.
Thanks to @AdrianKlaver in the comments - got me on the right track.
Here's the solution I went with to ensure a COMMIT
was issued:
from sqlalchemy import create_engine
from sqlalchemy.schema import CreateSchema
def main():
conn_str = "postgresql+psycopg2://philipjoss:Mombassa11@localhost/belgarath_test"
engine = create_engine(conn_str, echo=True)
with engine.connect().execution_options(isolation_level="AUTOCOMMIT") as connection:
with connection.begin():
connection.execute(CreateSchema("test_schema"))
if __name__ == "__main__":
main()
You can enable properties globally by putting a line at the top of your document like here and there:
#+PROPERTY: header-args:bash :results output verbatim :async yes :session execute-asynchronously
Important: don't forget to refresh properties by C-c C-c
with cursor on top of properties. More info here
Check the Action if name is in use
property of the actual publication article. See if you want to set it to Keep existing object unchanged
to avoid table being recreated each time.
working with me, just run python3 app.py instead of flask run, flask run just use your defined ip in main, but run by python3 can know all ip in local and network
I can make any root website for LG webos tv And LG netcast tv?
Aderess:atvroot.mylg
How to root: open This webpage on your LG webos or netcast tv,click on a Button saying root the tv or click on a text saying APK click And gets open the yes on a option saying solicitation atvroot.mylg click on yes Button And gets open a thing of gets download Netflix or prime vÃdeo or Disney plus login And make a exploration on your tv later gets restart your tv automatically in 5 seconds, later of restart gets install a Appstore called of WebOs Look Start Appstore And later of install The look start Appstore, you are acess With Very Apps And games Of Is Not Compatible With Our TV And Finish.
Note:You Must Open This WebPage On Your LG Smart TV To explore.
Supported System Versions: NetCast 2.0 Or More Recent.
Is a cut S, whith every arc that crosses S being saturated, always a minimum cut?
I managed to make it work in my project, thanks to the example provided by Svyatoslav Danyliv
, the references shared by Alexander Petrov
, and the help from the people in the comments. Thank you all!
Basically, what I needed to do was create a DbContext builder. This builder receives the company to be queried, constructs the connection string, and dynamically defines the table names to be queried (only the mapped ones, of course). In the end, it returns a DbContext referencing only the tables and database for that specific company.
I created a demo project for anyone who wants to test it out. If possible, feel free to submit pull requests with suggestions for improvements. I’ve never used EF Core in this way before, so there’s a chance it’s not implemented in the best way.
Here is an example site that uses the api to randomly generate country flag random country generation
The connection might be timing out if there's too much delay between requests. You could add a mechanism to send pings.
I have the same issue with react-native-svg-transformer.
I followed the official installation's guide https://www.npmjs.com/package/react-native-svg-transformer. It works fine on browser but when build on Android emulator i got the exact error.
this is the package.json with interested packages:
"dependencies": {
...
"@svgr/core": "^8.1.0",
"@svgr/plugin-jsx": "^8.1.0",
"@svgr/plugin-svgo": "^8.1.0",
"expo": "~52.0.20",
"path-dirname": "^1.0.2",
"react": "18.3.1",
"react-native": "0.76.5",
"react-native-svg": "15.8.0"
},
"devDependencies": {
...
"@babel/core": "^7.25.2",
"react-native-svg-transformer": "^1.5.0",
},
Look your react-native.config.js on root of your project, maybe there a lib tha is missing on your package.json.
Google Places API Nearby is a great choice but gets expensive after your free £200 a month. A better and less expensive choice would be Woosmap Localities Nearby API. Just as rich as Google but about half the price. If you just want restaurants then consider Wyre Data API which allows you to search for restaurants by location, or name or even local authority.
@Stem Florin Did you solve this problem somehow?
What version of Docker Desktop is installed on your laptop?
Also keep in mind next updates in docker desktop v4.23.0 and above
Removed Compose V1 from Docker Desktop as it has stopped receiving updates. Compose V2 has replaced it and is now integrated into all current Docker Desktop versions. For more information, see Migrate to Compose V2.
Reference: Docker Desktop 4.23.0 release notes
In my case I had to add a custom constructor with all the values that were coming in JSON object.
https://gist.github.com/abakum/5c5861dc3a1bb769560b264d58413b39
Host 12_
User koka
HostName 192.168.0.12
UserKnownHostsFile ~/.ssh/%h
#For Windows instead of
#ProxyCommand connect -S 127.0.0.1:1080 %h %p
#or
#ProxyCommand nc -x 127.0.0.1:1080 %h %p
#use plink:
#reg add "HKCU\SOFTWARE\SimonTatham\PuTTY\Sessions\D1080" /v ProxyHost /d 127.0.0.1 /f
#reg add "HKCU\SOFTWARE\SimonTatham\PuTTY\Sessions\D1080" /v ProxyMethod /d 2 /f /t REG_DWORD
#reg add "HKCU\SOFTWARE\SimonTatham\PuTTY\Sessions\D1080" /v ProxyPort /d 1080 /f /t REG_DWORD
ProxyCommand plink -load D1080 -raw %h -P %p
According to Angular official docs starting ver 19, in order to keep your components modular, you simply need to update your component to standalone: false
You can find randomly generated flags in this site random flag generator
According to Angular official docs starting ver 19, in order to keep your components modular, you simply need to update your components to standalone: false
dir can show content of multiple directories if they are specified ";" separated:
mkdir test\a
mkdir test\b
touch test\a\a1.txt test\a\a2.txt test\b\b1.txt test\b\b3.dat
dir /b test\a;test\b
a1.txt
a2.txt
b1.txt
b3.dat
Use a stream map.
public String getBody() throws IOException {
StringBuilder stringBuilder = new StringBuilder();
request.getReader().lines().map(line -> stringBuilder.append(line));
return stringBuilder.toString();
}
Same issue, did you solve it deleting MobileAds.initialize?
As of December 2024, I still get null for email using OAuth 2.0 even with providing the necessary URLs.
In web scraping, you are doing a reverse process to get the data. That means you don't follow the requests from the beginning, you must follow them from the endpoint.
Remember, you are working against a back-end developer trying to prevent you from scraping the data.
How to do that?
for example:
The link you are trying to scrap is loading the results in POST request not GET.
Also don't forget to check the cookies, to see if it's mandatory to get the results or optional.
I created a vscode extension to run scripts within the script
, after_script
and before_script
sections in a child process and output it in vscode panel.
That should reduce feedbacktime for ci-jobs. Also I integrated shellcheck into such sections while keeping yaml syntax in tact.
You can check it out here: https://marketplace.visualstudio.com/items?itemName=matthiesen-technology.yaml-with-script
Check it out, reviews and feedback very appreciated! :)
I will probably integrate gitlab-ci-local in the future to make it even easier to start and test jobs from vscode.
If it's not something major, you can try using git reset
to revert to a suitable commit before the conflicts, and then use git pull
to fetch all the changes. This should resolve all your conflicts.
URL url = new URL(endPoint);
String encoding = Base64.encodeBase64String(this.key.getBytes());
connection = (HttpURLConnection) url.openConnection();
connection.setRequestMethod("POST");
connection.setDoOutput(true);
connection.setRequestProperty ("Authorization", "Basic " + encoding);
It finally worked! I solved the problem by adding distributionUrl=https://services.gradle.org/distributions/gradle-8.0-all.zip in the android/gradle/wrapper/gradle-wrapper.properties file and change gradle old gradle.zip
anyone who have problem about Not able to detect the update in AppUpdateInfo can watch this video. He explain everythnig
i solved that by: set -g pane-border-lines simple
I created an App to simulate the low memory situation of being killed by the system lmdk process, you can download it from here: https://play.google.com/store/apps/details?id=io.github.twiceyuan.ramkiller
Just click on the app's unique button and wait for your app to be killed (you can see this event in Logcat with a filtered tag of "lmdk").
If you sell both products on the same website, it is recommended to use a single Stripe webhook.
You can differentiate between the two products by implementing one of these options:
Checkout this issue on Github, it solved the problem for me: https://github.com/prisma/prisma/discussions/22837
Faced the same issue, it has something to do with setState re-rendering the whole component so the Modal being inside the component gets re-rendered. I moved the whole Modal into a separate file and had all its states in its own component file to fix the issue.
In order to make call async you can create Mono.fromSupplier
and afterwards subscribeOn
a different scheduler, because by default subscription is made on main
thread.
Mono.fromSupplier(()->getValue())
.subscribeOn(Schedulers.parallel())
.subscribe(value -> System.out.println(value));
I have removed the message 'this field is required' by adding the following in styles.css file.
/* static/css/styles.css */
.errorlist {
display: none; /* Hide error message */
}
Currently it is not possible. Vote for it here:
Add support in Visual Studio 2015 and higher for ECDSA-SHA256 (and not only RSA-SHA256) for code-signing VSIX packages https://developercommunity.visualstudio.com/t/Add-support-in-Visual-Studio-2015-and-hi/10481797
If there are any developers with a background in 3d reconstruction please reach out here: +1 7168082171
Company/startup in the gaming space would love to talk.
You can create listener for event MessageReceived::class
, more detail you can watch the presentation by Joe Dixon - "REAL-TIME LARAVEL" at Laracon EU
https://www.youtube.com/watch?v=yrL5eCMpqtc
?
@Html.TextAreaFor(model => model.Comments, 5, 10, new { @class = "form-control ", @style = "width:50%", @readonly = "readonly" })the pkg config not installing after the produced information is incorrect,please resolve this issue fast.
regards, Mahmadullah
I STRUGGLED A LOT WITH THIS ONE , Even if you have already build web or initialized or overwrite your index.html doesn't matter just follow this again:
-> firebase build web
-> firebase init
-> firebase deploy --only hosting
do write "only hosting". Worked for me:)
Your Grafana page does currently not allow displaying it in an iFrame because it is hosted with http, not https. You can see this by opening the Dev Tools on your Wordpress site.
So you are right, you can fix this by hosting the Grafana page over https.
When dealing with skewed data and large datasets, requires a combination of techniques.
I name few. The one I am highlighting are extra suggestions on what you did not try yet.:
so on and so forth ...
Update google-services.json
as it may include new auto-generated keys.
You can use the package get_word_forms
Documentation here: https://github.com/gutfeeling/word_forms
It sorts the array by the difference between the number stored in the list C
with the index passed to the parameter j
and the number stored in the list C
with the index passed to the parameter i
.
Better use the OpenGoPro driver.
Have you tried building it from one of the MSL valves, such as Modelica.Fluid.Valves.ValveIncompressible
, that take a control signal [0, 1] as input, and then calculate that signal from a pressure sensor on the upstream-side?
Use a publicizer such as BepInEx.AssemblyPublicizer.MSBuild or Krafs.Publicizer.
They allow full access to the target reference as if everything is public.
They can also create "stripped" versions of assemblies similar to a ref library.
P.S. Sorry for the necro, but this comes up as one of the first Google results.
So i just figured out that you need to use a newer Intellij version. I used version 2023.1 and it didn't work there now I installed version 2024.3 and it works perfectly!
You have encountered a bug, raised an issue on GitHub and a fix was delivered in v22.0.0.13: https://github.com/OpenLiberty/open-liberty/issues/22738
I tried several tools, this tool resolves the issue and let me update the firmware. ONVIF Studio - https://www.wink.co/wink-onvif-studio.php Its not clear why but it seems it was just a mistake by the manufacture like they put the wrong firmware on when they shipped it but now its good.
Including a Shinylive app in an R package and displaying it on a pkgdown website hosted via GitHub Pages is indeed possible, but it requires integrating several tools together. Here's a step-by-step guide to help you set this up:
1. Create the Shiny App :
Start by creating your Shiny app as a standalone app. For example:
# inst/shinyapp/app.R
library(shiny)
ui <- fluidPage(
titlePanel("Shiny App Example"),
sidebarLayout(
sidebarPanel(
sliderInput("obs", "Number of observations:", min = 1, max = 100, value = 50)
),
mainPanel(
plotOutput("distPlot")
)
)
)
server <- function(input, output) {
output$distPlot <- renderPlot({
hist(rnorm(input$obs))
})
}
shinyApp(ui = ui, server = server)
2. Convert the App for Shinylive :
Shinylive uses WebAssembly to run Shiny apps in the browser. To convert your Shiny app:
pip install shinylive
shinylive export inst/shinyapp --output docs/shinyapp
This command generates the necessary files (including HTML, JavaScript, and WebAssembly) in the docs/shinyapp directory, which can be hosted as a static webpage.
3. Add the App to a pkgdown Article :
Pkgdown articles are R Markdown-based vignettes that you can customize to include your Shinylive app.
---
title: "Shiny App Article"
output: rmarkdown::html_document
---
Include the following HTML snippet in the body to embed the Shinylive app:
<iframe src="shinyapp/index.html" width="100%" height="600" frameborder="0"></iframe>
pkgdown::build_site()
4. Host the Site on GitHub Pages :
5. Access the App :
The app will be embedded in the pkgdown website as part of the article. Navigate to the appropriate article URL to see the Shinylive app running seamlessly.
Troubleshooting :
Path issues: Ensure the relative path in the (shinyapp/index.html) matches the docs/ directory structure.
Cache invalidation: If changes don’t reflect immediately, clear the browser cache or append a version string (e.g., shinyapp/index.html?v=1.0).
This workflow should integrate your Shinylive app into the R package and its corresponding pkgdown site. Let me know if you run into any specific issues!
-----------------------------------------Your Answer-----------------------------------------------------------------
You're on the right track. The GitHub Action you’ve configured (deploy-app.yaml from the r-shinylive examples) is designed to build and deploy Shinylive apps to your GitHub Pages. Since you've created the app and set up the necessary infrastructure, here’s how to integrate your app seamlessly into your pkgdown site:
Key Steps to Finalize Your Setup
1. Organize App Files :
UI and Server Functions in R/: Since you’ve already modularized your app by placing the UI and server logic in R/, make sure your app.R (in the root folder) sources these functions and constructs the app.
Example for app.R
:
library(shiny)
source("R/ui.R") # Assuming ui.R defines `ui`
source("R/server.R") # Assuming server.R defines `server`
shinyApp(ui = ui, server = server)
Ensure app.R
Works Locally: Test the app by running:
shiny::runApp("app.R")
2. Shinylive GitHub Action :
The action you’re using (deploy-app.yaml
) will automatically convert the app into a Shinylive-compatible format and deploy it to GitHub Pages.
Make sure your repository’s gh-pages branch (or the branch configured for GitHub Pages) is set up to serve content from the docs/ directory
.
3. Embed the App in Your pkgdown Site :
Create a vignette/article (vignettes/shiny-app.Rmd) in your package.
<iframe>
to embed the app:---
title: "Shiny App Example"
output: rmarkdown::html_document
---
<iframe src="shiny-app/index.html" width="100%" height="600" frameborder="0"></iframe>
pkgdown::build_site()
4. GitHub Pages Configurations :
Confirm GitHub Pages is serving from the correct branch and folder (docs/).
Ensure that the Shinylive app is placed in a subdirectory like shiny-app/ under docs/.
5. Troubleshooting Tips :
GitHub Action Logs: Check the logs of the GitHub Action to confirm the app is successfully converted and deployed.
Path Adjustments: Verify the iframe path (shiny-app/index.html) works relative to your site URL.
6. Final URL Integration :
After deployment, your app should be embedded at: https://capellett.github.io/scpopulation/articles/shiny-app.html
And the app itself should be available at: https://capellett.github.io/scpopulation/shiny-app/
Consider using fcm (Firebase cloud messaging) , easy setup and easy to user
.jar
fileI know you asked specifically for this:
Can anyone please provide me the documentation link and possibly an answer on how can I include dependencies inside ".jar"?
And while you can do this, see the answer from Uros, you have a few drawbacks:
Clearly you want to create a distribution? Let me show yo ua few more options.
Instead, please consider the approach taken in the JReleaser plugin, which can create a template-based script (script.cmd for Windows and just 'script' for unix/linux systems):
https://jreleaser.org/guide/latest/reference/assemble/java-archive.html
Using the dependency plugin, you just assemble all dependencies into a lib folder and then run the jreleaser goal. You will have such a directory layout:
myapp-1.0.0
|- bin
| |- myapp.cmd
| `- myapp(.sh)
`- lib
|- logback.jar
`- slf4j.jar
(just a simple example).
Additionally, this plugin creates a .zip or .tar.gz file which can be attached to your project as an artifact.
I'm interested in the fact that one of these replies uses SET when setting the property of the mail item, and one does not. This is rather odd! I have a large and quite complex lump of VBA code which
finds the account amongst those available that matches a string that contains a unique part of the email address I want to send from
creates a new mail item , and then sets the account to be used to send it.
The SET statement is required in 1) but, is required not to be there in 2) which is very odd (including generates a 91 run time error). I think that somehow the account object is morphing into the string that is the SMTP address of that account.
Key parts of the code:
a) Various declarations
Public g_olapp As outlook.Application
Public g_ol_account As outlook.Account
Private olmsg As outlook.MailItem
b) Initialise things
Set g_olapp = New outlook.Application
Set g_ol_account = find_account(g_from_email, b_err)
c) Find account function, this does seem to return an object
Private Function find_account(s As String, b As Boolean) As outlook.Account
Dim p_olaccount As outlook.Account
Dim s_send_from As String
s_send_from = UCase(s)
If s_send_from = "" Then
If MsgBox("No account specified, do you want to use the default account <SPJUDGE> ?", Title:=box_title, Buttons:=vbYesNo + vbQuestion) = vbNo Then
b = True
Exit Function
End If
s_send_from = "SPJUDGE"
End If
Set find_account = Nothing
For Each p_olaccount In g_olapp.Session.Accounts
If (Not InStr(UCase(p_olaccount.SmtpAddress), s_send_from) = 0) Then
Set find_account = p_olaccount
s = p_olaccount.SmtpAddress
Exit Function
End If
Next
MsgBox "Account <" & s_send_from & "> not found" _
& String(2, 13) & "Program terminating", Title:=box_title,
Buttons:=vbOKOnly + vbCritical
b = True
End Function
d) Make the email item
Set olmsg = make_new_email(g_olapp, lemail)
e) Another function.
Public Function make_new_email(olapp As Object, s As String) As outlook.MailItem
Dim arr() As String
Dim jloc As Integer
Dim jlb As Integer
Dim recip As outlook.Recipient
Set make_new_email = olapp.CreateItem(olMailItem)
' MsgBox g_ol_account note this does work.
With make_new_email
.SendUsingAccount = g_ol_account ' WHY NOT SET IN THIS LINE ??
If gb_set_reply Then
.ReplyRecipients.add (g_reply_to_email)
End If
.OriginatorDeliveryReportRequested = b_askfor_receipts
.ReadReceiptRequested = b_askfor_receipts
End With
s = Replace(s, "SIMON JUDGE", "", , , vbTextCompare)
arr = Split(s, ";") ' changed from comma Nov 2023
jlb = LBound(arr)
For jloc = jlb To UBound(arr)
Set recip = make_new_email.Recipients.add(Trim(arr(jloc)))
If jloc = jlb Then
recip.Type = olTo
Else
recip.Type = olCC
End If
Next jloc
End Function
This worked for my SMTP hosting:
$mail->addCustomHeader('Sender', 'Example.com <[email protected]>');
In my opinion i think you could switch your script to the import syntax from the require to the import "foo" from "bar", also i advise you to remove module exports if you are not so dying to use those cool features
What worked for me was to move MyApplication.attachBaseContext()
to the activities and then use either recreate()
or startActivity()
+ finish()
to reload the activity.
You can check the answer to this question here
Hope this helps the people of the future.
I also often need to switch between big amount of different k8s clusters and it's annoying to keep in mind which cluster is already selected and type this long command like kubectl config get/set context, so I just write a simple Python script that shows current k8s context in bash prompt and switch between clusters with simple TUI command line, you can find it here and try:
https://github.com/ratibor78/kube-context-suite?tab=readme-ov-file
Same Issues facing, Please help out guys.
I guess the trick is to add a wix form instead of going through velo, please find the steps below:
Now you will see the most easiest way to create a form and add conditions to the same (available on the left)
After creating the form, go to your website and link the button or whichever you are creating to redirect to the form that you craeted