magento2.4 – Layout with cacheable=”false” doesn’t work in Magento Cloud with Fastly

I am trying to make a whole custom controller not cacheable. In my layout XML I added this:

<?xml version="1.0" ?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="1column" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
    <body>
        <referenceContainer name="content">
            <block name="welcome.index" class="VendorWelcomeBlockWelcomeIndex" template="Vendor_Welcome::welcome/index.phtml" cacheable="false" />
        </referenceContainer>
    </body>
</page>

In my local, it works fine and the page is not coachable. However, when I upload it to our staging environment in Magento Cloud with Fastly enabled, it doesn’t work and the page is stored in cache showing the info from another customer. Do I need to do something different to make that the cacheable=”false” works with Fastly?

Is it allowed to look for a job (not work) while I’m in the US under Visa Waiver Program

Disclaimer:

  1. I know there are similar questions here already but the answers are a bit conflicting and I didn’t find quite the same question I have. Most were also quite old.
  2. I know that during current COVID-19 times getting work VISA is pretty much impossible for foreigners but let’s please focus on the case when the country opens up more.

Question:

I have been thinking about working in the US (among couple of other options) in the near future (when COVID permits hehe) but would like to also make a round trip for couple of months to see the country before. If I do decide for the US as my next work destination then can I continue using my free time during tourism as a time to also research job offers?

So, is it allowed to look for job (NOT WORK) while visiting the US under the Visa Waiver Program? What I mean is that a person has a ticket to fly back home bought and is planning to switch to work VISA before starting.

I’d imagine no-one can prohibit the person to explore the positions while searching the internet as it isn’t different from researching positions online from anywhere else? How about interviews? Online? In person?

Additional question:
If the case above is allowed then is it possible to switch from using VISA Waiver Program to work visa while being abroad? Not really seeing this case happening even if possible but would give a better picture of possibilities.

Thanks! 😊

sharepoint online – PowerShell to map a drive with saved credentials doesn’t work

I thought I had fixed my solution:
Mapping SharePoint Drives without the need of 3rd party software or refreshing credentials every 2-3 days.

My code is the following:

(Net.ServicePointManager)::SecurityProtocol = (Net.SecurityProtocolType)::Tls12
Install-Module -Name Microsoft.Online.SharePoint.PowerShell 
Install-PackageProvider -Name NuGet -MinimumVersion 2.8.5.201 -Force

Install-Module -Name CredentialManager
Install-Module -Name CredentialManager -AcceptLicense -AllowClobber -Force -Verbose 

Import-Module -Name CredentialManager -Verbose
Import-MOdule -Name Microsoft.Online.SharePoint.PowerShell -Verbose
$Credential = Get-StoredCredential -Target 'O365'
$Site_URL = "https://SITE.sharepoint.com/sites/Company_Share/"

$Apply_Credentials = New-Object Microsoft.Sharepoint.Client.SharepointOnlineCredentials($Credential.UserName, $Credential.Password)
write-host $Credential.Password
write-host $Apply_Credentials


$Context = New-Object Microsoft.SharePoint.Client.ClientContext($Site_URL)
$Context.Credentials = $Apply_Credentials
$Context.ExecuteQuery()
$Site = $Context.Web;
$Context.Load($Site)
$Context.ExecuteQuery()

MapDrive -Letter M -Path $Site_URL

Function MapDrive{   
  param($Letter,$Path)  
  try{
        $strLetter = $Letter + ':'
        net use $strLetter $Path /PERSISTENT:NO
        LogItem -LogEntry "$Letter has been mapped."}
  Catch{
        LogItem -LogEntry "$Letter failed to map."}
}

I have added the site to the trusted zone and disabled the ‘security setting’ in Internet Explorer. But sadly it still gets me the error ‘you have no access… please browse the site and enable automatic log in…. .

What am I doing wrong however ? What’s happening in the 3rd party software that I missed this time? Will I ever succeed in my objective?

I will Do expert & Accurate data Entry, Copy Paste, typing & Converting work for $3

I will Do expert & Accurate data Entry, Copy Paste, typing & Converting work

I will Doexpert & Accurate data Entry, Copy Paste , typing & Converting work
I am a professional freelancer. I am provide my service all day long. My service is better than other service. I am very responsible for my service.

My service,

1.Copy Paste

2.PDF To Excel

3.Convert PDF

4.Typing

5.Email Scrapping

6.MS World

7.Ms Excel

8.Google Docs

9.Google Sheets


If you wants to professional data entery work you can contact with me without any doubt .

Thanks for watching my gig.

.

simplifying expressions – TexForm Simplifies Equation but Holdform Doesn’t Work

I have several functions , g1 through gn, that I want to export the LaTeX for. For each iteration of the loop, the function is named gg(x,t). I want to export the function to LaTeX without simplifying it, but If I do this:

tex = "f(x,t) = " <> ToString(gg(x, t) // TeXForm);

The function gg is simplified (for example, $arctan(sin(x-2pi t)$ becomes $-arctan(sin(2pi t-x)$, which I don’t want).

But if I do this:

tex = "f(x,t) = " <> ToString(gg(x, t) // HoldForm // TeXForm);

The LaTeX I get is:

f(x,t) = text{gg}(x,t)

which is not what I want. I want the original form of gg as it was specifiied at definition.

To be clear, I have a bunch of functions defined, g1, g2, ... gn, and as I iterate over the for loop, I obtain the function of interest with:
gg = ToExpression("g" <> ToString(i));. But then neither of the two options I tried above give me the LaTeX output I’m looking for (one simplifies it and the other literally gives me gg every time.

Is there any way to get the LaTeX without simplifying?

user interface – Java Programming II Course GUI doesn’t work

I’m doing the Java Programming II MOOC course, and I’m having some problems with the section on GUIs. Whenever I copy and paste the code for the GUI into netbeans, it just results in a bunch of errors, and I have no idea how to fix them. The errors are like “package javafx.application does not exist,” and I don’t know how to make it exist. Do I need to install or import something to make it work?

Here’s a screenshot of what my code looks like right now. It’s just copy and pasted from the website, but you can see where the errors are:
GUI code in Netbeans

spells – Exactly how does a Storm of Blades work?

spells – Exactly how does a Storm of Blades work? – Role-playing Games Stack Exchange

applescript – My Apple Script Editor code doesn’t work gives “Syntax Error Expected end of line but found identifier.”

The problem is Evernote is not AppleScript scriptable.

When trying to add Evernote to the Library in Script Editor, in order to review its AppleScript dictionary, it errs with: Add Item Unable to add the item because it is not scriptable.

Additionally, when running the following command in Script Editor:

tell application "System Events" to ¬
    get has scripting terminology of application process "Evernote"

Its result is: false

exploit – ctf kernel challenges does not work

I’m trying to learn and solve some ‘kernel related’ ctf challenges (reading writups to try to run same environment and achieve root using one of the kernel-pwn technique…).

I’m using Ubuntu 20 VM and (for example) this challenge:

Unfortunately only results I can see (no matter if I’m trying to solve mentioned challenge or any other) is (similar to the one) presented below:

input: ImExPS/2 Generic Explorer Mouse as /devices/platform/i8042/serio1/input/input3

mount: mounting devpts on /dev/pts failed: No such file or directory
random: fast init done
kernel_baby: loading out-of-tree module taints kernel.
flux_baby says hi there!
flux_baby opened
—– Menu —–

  1. Call
  2. Show me my uid
  3. Read file
  4. Any hintz?
  5. Bye!

1
I need a kernel address to call. Be careful, though or we will crash horribly…

18446744071579168336
There is a good chance we will want to pass an argument. Which one is it?

0
Got call address: 0xffffffff8104ee50, argument: 0x0000000000000000
flux_baby ioctl nr 900 called
flux_baby ioctl nr 900 called
flux_baby ioctl extracted param ffffffff8104ee50 as function ptr, calling it
A miracle happened. We came back without crashing! I even got a return value for you…
It is: ffff88000212ca80
—– Menu —–

  1. Call
  2. Show me my uid
  3. Read file
  4. Any hintz?
  5. Bye!

1
I need a kernel address to call. Be careful, though or we will crash horribly…

18446612132349004608
There is a good chance we will want to pass an argument. Which one is it?

18446612132349004608
Got call address: 0xffff88000212cb40, argument: 0xffff88000212cb40
flux_baby ioctl nr 900 called
flux_baby ioctl nr 900 called
flux_baby ioctl extracted param ffff88000212cb40 as function ptr, calling it
kernel tried to execute NX-protected page – exploit attempt? (uid: 1000)
BUG: unable to handle kernel paging request at ffff88000212cb40
PGD 1b34067 P4D 1b34067 PUD 1b35067 PMD 21fd063 PTE 800000000212c163
Oops: 0011 (#1) PREEMPT NOPTI
CPU: 0 PID: 58 Comm: client_kernel_b Tainted: G O 4.18.0 #11
RIP: 0010:0xffff88000212cb40
Code: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
RSP: 0018:ffffc900000b3e00 EFLAGS: 00000246
RAX: 000000000000004c RBX: 0000000000000384 RCX: 0000000000000001
RDX: 0000000000000000 RSI: 00000000000000e4 RDI: ffff88000212cb40
RBP: ffffc900000b3e30 R08: ffffffff811b1ca0 R09: 00000000000000e4
R10: 636e756620736120 R11: 727470206e6f6974 R12: 00007fffadad3bf0
R13: ffff8800001a3300 R14: 0000000000000384 R15: 00007fffadad3bf0
FS: 000000000205a880(0000) GS:ffffffff81a35000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffff88000212cb40 CR3: 00000000021c8000 CR4: 00000000000006b0
Call Trace:
? 0xffffffffa0000040
0xffffffffa0000116
0xffffffff810db790
? 0xffffffff811220f7
? 0xffffffff810148b2
0xffffffff810dbd3c
0xffffffff810dbd95
0xffffffff81001134
0xffffffff81400075
RIP: 0033:0x000000000043f1eb
Code: 0f 97 c0 84 c0 75 af 48 8d 3c 2b e8 df dd 02 00 85 c0 78 b0 48 83 c4 08 48 89 d8 5b 5d c3 90 f3 0f
RSP: 002b:00007fffadad3bc8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 0000000000400488 RCX: 000000000043f1eb
RDX: 00007fffadad3bf0 RSI: 0000000000000384 RDI: 0000000000000003
RBP: 00007fffadad3c10 R08: 0000000000000000 R09: 0000000000000043
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000402e80
R13: 0000000000000000 R14: 00000000004c1018 R15: 0000000000000000
Modules linked in: kernel_baby(O)
CR2: ffff88000212cb40
—( end trace 960bcbc99b521658 )—
RIP: 0010:0xffff88000212cb40
Code: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
RSP: 0018:ffffc900000b3e00 EFLAGS: 00000246
RAX: 000000000000004c RBX: 0000000000000384 RCX: 0000000000000001
RDX: 0000000000000000 RSI: 00000000000000e4 RDI: ffff88000212cb40
RBP: ffffc900000b3e30 R08: ffffffff811b1ca0 R09: 00000000000000e4
R10: 636e756620736120 R11: 727470206e6f6974 R12: 00007fffadad3bf0
R13: ffff8800001a3300 R14: 0000000000000384 R15: 00007fffadad3bf0
FS: 000000000205a880(0000) GS:ffffffff81a35000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffff88000212cb40 CR3: 00000000021c8000 CR4: 00000000000006b0
flux_baby closed
Killed
ACPI: Preparing to enter system sleep state S5
reboot: Power down
acpi_power_off called
root@u20:/home/c/kernelz/baby_kernel_3460960b6fc99f8a90fba7397b5e4c46/public#

(In case you’d say “dude try the value(s) for your OS” – like I said, any kernel-related challenge will present ‘the same’ results, means: exploitation is killed (and I don’t know why)).

Thank you for all the hints.

i had upgraded magento 1.9 to magento 2.4 but it did not work properly so i decided to get back but when i restored it i can see this problem

error log
[14-Apr-2021 15:18:01 Australia/Sydney] PHP Fatal error: Uncaught Error: Class ‘MagentoFrameworkAppErrorHandler’ not found in /home/martarab/public_html/bin/magento:20
Stack trace:
#0 {main}
thrown in /home/martarab/public_html/bin/magento on line 20
enter image description here

DreamProxies - Cheapest USA Elite Private Proxies 100 Private Proxies 200 Private Proxies 400 Private Proxies 1000 Private Proxies 2000 Private Proxies ExtraProxies.com - Buy Cheap Private Proxies Buy 50 Private Proxies Buy 100 Private Proxies Buy 200 Private Proxies Buy 500 Private Proxies Buy 1000 Private Proxies Buy 2000 Private Proxies ProxiesLive Proxies-free.com New Proxy Lists Every Day Proxies123