Invalid class typecast C++ RAD Studio

Estoy teniendo este problema el cual no logro ubicar alguna solución válida para Android (sigo buscando), todas las soluciones son para Windows.

Trabajo con Embarcadero RAD Studio 10.3.2 en C++ para una aplicación de Android y estoy recibiendo el error: Invalid class typecast desde la nada y no sé por dónde puede venir el problema.

De antemano, muchas gracias.

Passwordless flow: What to do when user enters an invalid email when logging in

I’m planning to make my app passwordless and I’ve seen sites implement things differently when one puts in an email they haven’t actually used for an account on the site before when trying to login.

On Medium, if I put in a new email I’ll get the message “We just emailed a confirmation link to youremail@gmail.com. Click the link to complete your account set-up.”

This makes the signup process fast, but I’m not sure if this message is strong enough to make it clear to some users that this was a new email being used. This could frustrate users who had forgotten which email was used for their existing account and would now take the time to realize they’re using a new account before trying to login again with the right email. However, that scenario may not occur often enough that its worth designing the UX to prevent it.

Zeit does design things so if I don’t have an account and I put in a new email I’ll get the message “There is no ZEIT account associated with this email address. Continue with signup?” and I can click to signup.

This prevents one from realizing they used the wrong email, but it adds an extra step to signing up and I think it could confuse users who weren’t paying attention to the fact that they clicked login rather than signin.

What do you think is a better flow and why?

Warning: ZipArchive::addFile(): Invalid or uninitialized Zip object

I am trying to zip the files in a folder. Example: In a path localhost/magento/var/log, there are two files system.log, debug.log. Following is the code which I tried to zip the files. Am developing this in MAGENTO 2. Am getting an error when adding a file to zipping.

$  filePath = $  this->_dir->getPath('log');//[/rootpath/var/log] $  logFileConfigurations = scandir($  filePath, 1);//[system.log, debug.log] if (is_array($  logFileConfigurations)) {     foreach ($  logFileConfigurations as $  configuration) {         if ($  dir = opendir($  filePath)) {             $  file = $  configuration;             chdir($  filePath);             try {                 $  zip = new ZipArchive();                 $  fileName = $  configuration . date("d-m-YH:i:s") . '.zip';                 $  fileName = str_replace(" ", "", $  fileName);                  if ($  zip->open($  fileName, ZIPARCHIVE::CREATE) === false) {                     die ("An error occurred creating your ZIP file.");                 }                  $  zip->addFile($  file);                 $  zip->close();                 unlink($  file);             } catch (\Exception $  e) {                 echo $  e->getMessage();             }          }      } } 

Thanks in advance.

ZAP Proxy unable to launch browser invalid argument: can’t kill an exited process

  • Using OWSAP ZAP 2.8.0
  • On Ubuntu 19.04
  • With openjdk version 11.0.3 installed

When clicking the “Launch Browser” button on ZAP to launch the HUD enabled browser for ZAP no browser is launched and an error is printed in the terminal (full output below).

I have already tried Chromium and Firefox, both have the same issue.

Another issue I’ve been experiencing, although potentially unrelated, is that when trying to use ZAP in Firefox I am unable to visit HTTPS sites due to the certificate not working correctly (even though it’s installed on Firefox).

I have also tried launching it with sudo zaproxy (as apposed to just zaproxy)

While writing this I restarted ZAP and now the “Enable HUD” checkbox unchecked and is disabled (greyed out), clicking “Launch Browser” does nothing and prints the same error.

1564053694462   mozrunner::runner   INFO    Running command: "/usr/lib/firefox/firefox" "-marionette" "-foreground" "-no-remote" "-profile" "/tmp/rust_mozprofile.RrRH7dDl2ZK7" 1564053694915   addons.webextension.screenshots@mozilla.org WARN    Loading extension 'screenshots@mozilla.org': Reading manifest: Invalid extension permission: mozillaAddons 1564053694915   addons.webextension.screenshots@mozilla.org WARN    Loading extension 'screenshots@mozilla.org': Reading manifest: Invalid extension permission: telemetry 1564053694915   addons.webextension.screenshots@mozilla.org WARN    Loading extension 'screenshots@mozilla.org': Reading manifest: Invalid extension permission: resource://pdf.js/ 1564053694915   addons.webextension.screenshots@mozilla.org WARN    Loading extension 'screenshots@mozilla.org': Reading manifest: Invalid extension permission: about:reader* ExceptionHandler::GenerateDump cloned child 4758 ExceptionHandler::SendContinueSignalToChild sent continue signal to child ExceptionHandler::WaitForContinueSignal waiting for continue signal... 59660 [ZAP-BrowserLauncher] ERROR org.zaproxy.zap.extension.quickstart.launch.ExtensionQuickStartLaunch  - invalid argument: can't kill an exited process Build info: version: 'unknown', revision: 'unknown', time: 'unknown' System info: host: 'my-ubuntu', ip: '127.0.1.1', os.name: 'Linux', os.arch: 'amd64', os.version: '5.0.0-21-generic', java.version: '11.0.3' Driver info: driver.version: FirefoxDriver remote stacktrace:  org.openqa.selenium.WebDriverException: invalid argument: can't kill an exited process Build info: version: 'unknown', revision: 'unknown', time: 'unknown' System info: host: 'my-ubuntu', ip: '127.0.1.1', os.name: 'Linux', os.arch: 'amd64', os.version: '5.0.0-21-generic', java.version: '11.0.3' Driver info: driver.version: FirefoxDriver remote stacktrace:      at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)     at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)     at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)     at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490)     at org.openqa.selenium.remote.W3CHandshakeResponse.lambda$  new$  0(W3CHandshakeResponse.java:57)     at org.openqa.selenium.remote.W3CHandshakeResponse.lambda$  getResponseFunction$  2(W3CHandshakeResponse.java:104)     at org.openqa.selenium.remote.ProtocolHandshake.lambda$  createSession$  0(ProtocolHandshake.java:123)     at java.base/java.util.stream.ReferencePipeline$  3$  1.accept(ReferencePipeline.java:195)     at java.base/java.util.Spliterators$  ArraySpliterator.tryAdvance(Spliterators.java:958)     at java.base/java.util.stream.ReferencePipeline.forEachWithCancel(ReferencePipeline.java:127)     at java.base/java.util.stream.AbstractPipeline.copyIntoWithCancel(AbstractPipeline.java:502)     at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:488)     at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474)     at java.base/java.util.stream.FindOps$  FindOp.evaluateSequential(FindOps.java:150)     at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)     at java.base/java.util.stream.ReferencePipeline.findFirst(ReferencePipeline.java:543)     at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:126)     at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:73)     at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:142)     at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:83)     at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:600)     at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:219)     at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:142)     at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:120)     at org.zaproxy.zap.extension.selenium.ExtensionSelenium.getWebDriverImpl(ExtensionSelenium.java:777)     at org.zaproxy.zap.extension.selenium.ExtensionSelenium.getWebDriver(ExtensionSelenium.java:700)     at org.zaproxy.zap.extension.selenium.internal.BuiltInSingleWebDriverProvider.getWebDriver(BuiltInSingleWebDriverProvider.java:62)     at org.zaproxy.zap.extension.selenium.ExtensionSelenium.getWebDriverImpl(ExtensionSelenium.java:639)     at org.zaproxy.zap.extension.selenium.ExtensionSelenium.getWebDriver(ExtensionSelenium.java:509)     at org.zaproxy.zap.extension.selenium.ExtensionSelenium.getProxiedBrowser(ExtensionSelenium.java:602)     at org.zaproxy.zap.extension.selenium.ExtensionSelenium.getProxiedBrowserByName(ExtensionSelenium.java:566)     at org.zaproxy.zap.extension.selenium.ExtensionSelenium.getProxiedBrowserByName(ExtensionSelenium.java:552)     at org.zaproxy.zap.extension.selenium.ExtensionSelenium.getProxiedBrowserByName(ExtensionSelenium.java:542)     at org.zaproxy.zap.extension.quickstart.launch.ExtensionQuickStartLaunch$  2.run(ExtensionQuickStartLaunch.java:227)     at java.base/java.lang.Thread.run(Thread.java:834)  

“The URL _catalogs/fpdatasources is invalid” in SharePoint designer when publishing a workflow

When I try and publish a workflow I get the following error.

enter image description here

I have tried creating a fresh workflow in this list and other lists. this is apparently a sitewide problem. The only references I can find online to this problem are for on-premise SharePoint environments and suggest a full logging database but I’m on O365.

“Invalid Protection Option”

In the following error message, the reason given is “Invalid Protection Option”. What does that indicate?

SQL Server detected a logical consistency-based I/O error: invalid protection option

For the purposes of this question, I don’t need to know anything about “how to run DBCC”, or “check for corruption”. I got that. I’m just curious about the “root cause” piece, and what could possibly cause this flavor of the logical consistency-based I/O error.

Date: Invalid date

I keep on getting this error everytime I run csh script

date: invalid date ‘2D1B/E1//S AS:/D:AT’ … date: invalid date ‘/nisa/3E – 1 day’ date: invalid date ‘/nisa/3E + 1 day’

Can someone please help me and tell me what to do to fix this problem? Thanks

Exception Error: Invalid Method on Product Pages in Magento 2

I recently installed the Porto Magento 2 Theme, it works however when a product is clicked on the below error occurs: enter image description here

1 exception(s): Exception #0 (Magento\Framework\Exception\LocalizedException): Invalid method Magento\Catalog\Block\Product\View\Details::__  Exception #0 (Magento\Framework\Exception\LocalizedException): Invalid method Magento\Catalog\Block\Product\View\Details::__ <pre>#1 call_user_func_array() called at [vendor/magento/framework/View/TemplateEngine/Php.php:82] #2 Magento\Framework\View\TemplateEngine\Php->__call() called at [app/design/frontend/Smartwave/porto/Magento_Catalog/templates/product/view/details.phtml:33] #3 include() called at [vendor/magento/framework/View/TemplateEngine/Php.php:59] #4 Magento\Framework\View\TemplateEngine\Php->render() called at [vendor/magento/framework/View/Element/Template.php:271] #5 Magento\Framework\View\Element\Template->fetchView() called at [vendor/magento/framework/View/Element/Template.php:301] #6 Magento\Framework\View\Element\Template->_toHtml() called at [vendor/magento/framework/View/Element/AbstractBlock.php:668] #7 Magento\Framework\View\Element\AbstractBlock->toHtml() called at [vendor/magento/framework/View/Layout.php:557] #8 Magento\Framework\View\Layout->_renderBlock() called at [vendor/magento/framework/View/Layout.php:533] #9 Magento\Framework\View\Layout->renderNonCachedElement() called at [vendor/magento/framework/View/Layout.php:488] #10 Magento\Framework\View\Layout->renderElement() called at [vendor/magento/framework/View/Layout.php:585] #11 Magento\Framework\View\Layout->_renderContainer() called at [vendor/magento/framework/View/Layout.php:535] #12 Magento\Framework\View\Layout->renderNonCachedElement() called at [vendor/magento/framework/View/Layout.php:488] #13 Magento\Framework\View\Layout->renderElement() called at [vendor/magento/framework/View/Layout.php:585] #14 Magento\Framework\View\Layout->_renderContainer() called at [vendor/magento/framework/View/Layout.php:535] #15 Magento\Framework\View\Layout->renderNonCachedElement() called at [vendor/magento/framework/View/Layout.php:488] #16 Magento\Framework\View\Layout->renderElement() called at [vendor/magento/framework/View/Layout.php:585] #17 Magento\Framework\View\Layout->_renderContainer() called at [vendor/magento/framework/View/Layout.php:535] #18 Magento\Framework\View\Layout->renderNonCachedElement() called at [vendor/magento/framework/View/Layout.php:488] #19 Magento\Framework\View\Layout->renderElement() called at [vendor/magento/framework/View/Layout.php:585] #20 Magento\Framework\View\Layout->_renderContainer() called at [vendor/magento/framework/View/Layout.php:535] #21 Magento\Framework\View\Layout->renderNonCachedElement() called at [vendor/magento/framework/View/Layout.php:488] #22 Magento\Framework\View\Layout->renderElement() called at [vendor/magento/framework/View/Layout.php:585] #23 Magento\Framework\View\Layout->_renderContainer() called at [vendor/magento/framework/View/Layout.php:535] #24 Magento\Framework\View\Layout->renderNonCachedElement() called at [vendor/magento/framework/View/Layout.php:488] #25 Magento\Framework\View\Layout->renderElement() called at [vendor/magento/framework/View/Layout.php:585] #26 Magento\Framework\View\Layout->_renderContainer() called at [vendor/magento/framework/View/Layout.php:535] #27 Magento\Framework\View\Layout->renderNonCachedElement() called at [vendor/magento/framework/View/Layout.php:488] #28 Magento\Framework\View\Layout->renderElement() called at [vendor/magento/framework/View/Layout.php:954] #29 Magento\Framework\View\Layout->getOutput() called at [vendor/magento/framework/Interception/Interceptor.php:58] #30 Magento\Framework\View\Layout\Interceptor->___callParent() called at [vendor/magento/framework/Interception/Interceptor.php:138] #31 Magento\Framework\View\Layout\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor/magento/framework/Interception/Interceptor.php:153] #32 Magento\Framework\View\Layout\Interceptor->___callPlugins() called at [generated/code/Magento/Framework/View/Layout/Interceptor.php:39] #33 Magento\Framework\View\Layout\Interceptor->getOutput() called at [vendor/magento/framework/View/Result/Page.php:258] #34 Magento\Framework\View\Result\Page->render() called at [vendor/magento/framework/View/Result/Layout.php:171] #35 Magento\Framework\View\Result\Layout->renderResult() called at [vendor/magento/framework/Interception/Interceptor.php:58] #36 Magento\Framework\View\Result\Page\Interceptor->___callParent() called at [vendor/magento/framework/Interception/Interceptor.php:138] #37 Magento\Framework\View\Result\Page\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor/magento/framework/Interception/Interceptor.php:153] #38 Magento\Framework\View\Result\Page\Interceptor->___callPlugins() called at [generated/code/Magento/Framework/View/Result/Page/Interceptor.php:26] #39 Magento\Framework\View\Result\Page\Interceptor->renderResult() called at [vendor/magento/framework/App/Http.php:140] #40 Magento\Framework\App\Http->launch() called at [vendor/magento/framework/App/Bootstrap.php:258] #41 Magento\Framework\App\Bootstrap->run() called at [index.php:39] </pre> 

I have cleared and flushed the cache, re-indexed, recompiled and nothing seems to work, does anyone have any ideas on how to solve this issue?

xargs: invalid option — ‘o’

I was trying to execute this command to fix yet another error (Unable to use a TTY – input is not a terminal or the right kind of file):

kubectl get pods -n foobar | grep baz | awk '{print $  1}' | xargs -J % kubectl exec -it -n foobar % /bin/bash 

Which resulted in the following error:

xargs: invalid option -- 'o' 

I was able to execute the command correctly on my Mac Mojave, but not on Ubuntu 16.04.

According to the xargs website, there should have been a -o option:

–open-tty

-o

Reopen stdin as /dev/tty in the child process before executing the command, thus allowing that command to be associated to the terminal while xargs reads from a different stream, e.g. from a pipe. This is useful if you want xargs to run an interactive application.

grep -lz PATTERN * | xargs -0o vi

But man xargs did not show this option.

The changelog did not mention any change to the flag.

My xargs version on Ubuntu 16.04 LTS:

xargs (GNU findutils) 4.7.0-git Copyright (C) 2016 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>. This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Written by Eric B. Decker, James Youngman, and Kevin Dalley.