c++ – Visual Studio 2019 – Form dentro da Lib não mostra quando adiciono imagem

Olá, fiz um form dentro da minha lib, para mostrar um alerta em um determinado momento, porém se eu adicionar uma imagem ou até mesmo alterar o ícone do form já não é mais possível mostrar o form.

O form está dentro de uma .lib, e eu estou chamando a .lib dentro de um console.

Estou fazendo dessa maneira para criar o form:

int UIMain()
{
    Application::EnableVisualStyles();
    Application::SetCompatibleTextRenderingDefault(false);

    MyForm^ NEWUI = gcnew MyForm();
    Application::Run(NEWUI);
    return 1;
}

É como se estivesse limitado para carregar um determinado tamanho da memória, não sei qual é o erro.

module – Composer to move Custom PHP SDKS to lib from folder during Installation

I am working on creating a module and wanted to submit it to the marketplace. My module interacts with various PHP SDKs, so for development, I have added them into the lib folder, not in the Module, and able to setup:di:compile without any issue. So now the main issue, if submit my module to Magento Market place, I am not able to move these file to lib folder [as magento doesn’t allow e], and keeping them in the module will fail setup:di:compile causing error like Google_Service_YouTubeAnalytics_BatchReportDefinitions_Resource Missed required argument serviceName in parent::__construct call. Quick search says we need to put the one with the public scripts to github and add it as dependency, but no sample process or steps outlined, Can anyone point to right directions?

bitcoinjs – How to fetch all UTXO from a SPV wallet using bitcoin-filter.js (or other lib)?

I am using bitcoinjs-lib to create private key (WIF), addresses and sign the transactions.

I would like to fetch all transactions (UTXOs) associated with a wallet. I found these libs: bitcoin-filter and bitcoin-net .

But I didn’t understand the code below:

var filter = new Filter(peers)
filter.add(new Buffer('818895f3dc2c178629d3d2d8fa3ec4a3f8179821', 'hex'))
filter.add(walletObject)

What parameters does filter receive ? Are they the addresses ?
If so, how can I find all the used addresses of a HD wallet ?

python – Converter uma lista em numpy array para usar a lib face_recognition

Olá, gente! Tudo bom? Então, eu estou utlizei a lib “face_recognition” para criar um numpy array com o face_encoding e salva-lo em formato de texto em uma table do sqlite3. Beleza, salvou e está tudo certo, porém, quando importo do SQL, vem em formato de string e queria converter um array_numpy que desse para usar o que está salvo na table para ser comparado com uma nova imagem através da função compare_faces do face_recognition.
Meu código está assim atualmente:

import sqlite3
con = sqlite3.connect("./teste.db")
cur = con.cursor()
import face_recognition
import numpy

j = face_recognition.load_image_file('mine.jpg')
je = face_recognition.face_encodings(j)(0)

cur.execute("SELECT faceencoding FROM users")
v = ''
for x in cur:
    v = str(x(0))

print(v)
j = numpy.asarray(str(v.replace('(','').replace(')', '')))
print(j)
result = face_recognition.compare_faces((je), j)

No momento ele me retorna esse erro:

numpy.core._exceptions.UFuncTypeError: ufunc 'subtract' did not contain a loop with signature matching types (dtype('<U1555'), dtype('<U1555')) -> dtype('<U1555'

Teve um momento em que a conversão funcionava e em teoria, ele aceitava para comparar, mas o array ficava vazio.

magento2 – Is it acceptable to put lib folder inside module folder structure?

Before I used this code to include some packages:

require_once($this->dir->getPath('lib_internal') . '/vendor/module/nuevomailer/api.php');

Now Magento doesn’t allow to use require_once anymore so I thought that the simplest way without creating another packages just for third party libraries would be to just create lib folder inside existing vendorname/modulename folder and call it like this:

    class Subscriber extends MagentoFrameworkModelAbstractModel{
        protected $mailchimp;
        protected $phpmailer;
        ...
        public function _construct(
            VendornameModulenameLibMailchimp $mailchimp,
            VendornameModulenameLibPhpmailer $phpmailer,
            ...
        function subscribe(){
            $this->mailchimp->subscribe();
        }

Is that acceptable method? I checked Magento modul file structure (https://devdocs.magento.com/guides/v2.3/extension-dev-guide/build/module-file-structure.html) and I couldn’t find lib folder. Is it allowed to put any other folder into module directory?

document library: using xml templates from SharePoint Online Doc Lib in PNP Provisioning

I'm creating PNP provisioning XML templates for use in team sites and storing them in a SharePoint document library for use in PowerShell scripts.

Every time I run the Apply-pnpprovisioningtemplate command I get the following error.

Apply-PnPProvisioningTemplate : File not found
At line:1 char:1
+ Apply-PnPProvisioningTemplate -Path $xmllistitems.FieldValues.FileRef
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : WriteError: (:) (Apply-PnPProvisioningTemplate), FileNotFoundException
    + FullyQualifiedErrorId : EXCEPTION,SharePointPnP.PowerShell.Commands.Provisioning.Site.ApplyProvisioningTemplate

The code I am using is the following:

$Password=Get-content "(MY Password Path)SecurePWckcpw.txt"|ConvertTo-SecureString
$userCredential=New-Object system.management.automation.pscredential($mysources.AdminUPN,$Password)
$adminSiteUrl = "https://"+$mysources.Org+"-admin.sharepoint.com"
Connect-SPOService $adminSiteUrl -Credential $userCredential

#Connect-PnPOnline -url ($MySources.sourceurl) -Credentials $userCredential 

connect-pnponline -url "https://(tenant)/sites/CKCShareptDev" -Credentials $usercredential

$XMLList=get-pnplist "xmltemplatebak"
$xmllistitems=get-pnplistitem -list $xmllist -id 3 -fields "FileRef", "File_x0020_Type","FileLeafRef"

foreach($Item in $xmllistitems){

    #Write-Host $Item('FileRef') + " " + $Item('File_x0002_Type')+ " " + $Item('FileLeafRef')

    Connect-PnPOnline -url "https://(tenant).sharepoint.com/sites/ProvTest" -Credentials $usercredential
    Apply-PnPProvisioningTemplate -Path $item('FileRef')     }

I cannot understand how to access the file to use in the Apply-PNPProvisioningTemplate command.

Thanks for the help

linux – the root user will not create any more files in the / usr / lib directory

I have a Centos 7 server that I can no longer install on that system.
After researching, I discovered that I can no longer add new content to the / usr / lib folder. However, I have a / usr / lib64 folder, which has the same permission that can still be written.


dr-xr-xr-x. 2 root root 90112 Apr 14 16:49 bin
drwxr-xr-x. 2 root root 6 Jun 9 2014 etc
drwxr-xr-x. 2 root root 6 Jun 9 2014 games
drwxr-xr-x. 187 root root 12288 Feb 10 17:26 include
dr-xr-xr-x. 53 root root 8192 Nov 3 2017 lib
dr-xr-xr-x. 212 root root 131072 Apr 17 11:49 lib64

When I tried to add any new files to the / usr / lib folder, I will receive a "permission denied" message. There is no problem adding new content to / usr / lib64.


$ sudo touch /usr/lib/t
touch: cannot touch ‘/usr/lib/t’: Permission denied
$ sudo touch /usr/lib64/t
$

I made a parenthesis when I touched this new file, however the system call only returns the error message

open("/usr/lib/t", O_WRONLY|O_CREAT|O_NOCTTY|O_NONBLOCK, 0666) = -1 EACCES (Permission denied)

Any suggestions where I can dive in?

mount: unable to run sudo in Ubuntu 14.04 after changing permissions on / usr / lib folder

I manually changed the permissions to the / usr / lib folder by right clicking on it and set the properties in "Create and delete file" for root, group and others. I also did this for attachments as well.

When I used "sudo pat-get install" it throws the following error:
sudo: error in /etc/sudo.conf, line 0 when loading plugin `sudoers_policy & # 39;
sudo: /usr/lib/sudo/sudoers.so should only be editable by the owner
sudo: fatal error, plug-ins cannot be loaded

After that I did the recovery mode and also ran below the commands
mount -o trace, rw /
mount –all

Please help the error

file system – / lib cannot be written even for root

What can cause /lib not be accessible even to root?

I can't install new packages because almost all packages want to write /lib.

Someone suggested antivirus, but I don't have one. The only thing I remember having installed is LXD.

Description:    Ubuntu 18.04.3 LTS
# mount
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
proc on /proc type proc (rw,relatime)
udev on /dev type devtmpfs (rw,nosuid,relatime,size=32925888k,nr_inodes=8231472,mode=755)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
tmpfs on /run type tmpfs (rw,nosuid,noexec,relatime,size=6596552k,mode=755)
/dev/md2 on / type ext4 (rw,relatime,data=ordered)
securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k)
tmpfs on /sys/fs/cgroup type tmpfs (ro,nosuid,nodev,noexec,mode=755)
cgroup on /sys/fs/cgroup/unified type cgroup2 (rw,nosuid,nodev,noexec,relatime)
cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,xattr,name=systemd)
pstore on /sys/fs/pstore type pstore (rw,nosuid,nodev,noexec,relatime)
cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpu,cpuacct)
cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer)
cgroup on /sys/fs/cgroup/hugetlb type cgroup (rw,nosuid,nodev,noexec,relatime,hugetlb)
cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices)
cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset,clone_children)
cgroup on /sys/fs/cgroup/pids type cgroup (rw,nosuid,nodev,noexec,relatime,pids)
cgroup on /sys/fs/cgroup/perf_event type cgroup (rw,nosuid,nodev,noexec,relatime,perf_event)
cgroup on /sys/fs/cgroup/net_cls,net_prio type cgroup (rw,nosuid,nodev,noexec,relatime,net_cls,net_prio)
cgroup on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,blkio)
cgroup on /sys/fs/cgroup/memory type cgroup (rw,nosuid,nodev,noexec,relatime,memory)
cgroup on /sys/fs/cgroup/rdma type cgroup (rw,nosuid,nodev,noexec,relatime,rdma)
systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=24,pgrp=1,timeout=0,minproto=5,maxproto=5,direct,pipe_ino=27100)
mqueue on /dev/mqueue type mqueue (rw,relatime)
debugfs on /sys/kernel/debug type debugfs (rw,relatime)
hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime,pagesize=2M)
configfs on /sys/kernel/config type configfs (rw,relatime)
fusectl on /sys/fs/fuse/connections type fusectl (rw,relatime)
/dev/md1 on /boot type ext3 (rw,relatime,data=ordered)
lxcfs on /var/lib/lxcfs type fuse.lxcfs (rw,nosuid,nodev,relatime,user_id=0,group_id=0,allow_other)
tmpfs on /var/lib/lxd/shmounts type tmpfs (rw,relatime,size=100k,mode=711)
tmpfs on /var/lib/lxd/devlxd type tmpfs (rw,relatime,size=100k,mode=755)
/var/lib/lxd/disks/default.img on /var/lib/lxd/storage-pools/default type btrfs (rw,relatime,space_cache,user_subvol_rm_allowed,subvolid=5,subvol=/)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,relatime)
tracefs on /sys/kernel/debug/tracing type tracefs (rw,relatime)
tmpfs on /run/user/1000 type tmpfs (rw,nosuid,nodev,relatime,size=6596548k,mode=700,uid=1000,gid=1000)
tmpfs on /run/user/0 type tmpfs (rw,nosuid,nodev,relatime,size=6596548k,mode=700)
# stat /lib
  File: /lib
  Size: 4096            Blocks: 8          IO Block: 4096   directory
Device: 902h/2306d      Inode: 5767169     Links: 17
Access: (0755/drwxr-xr-x)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2020-03-30 09:34:07.260619267 +0200
Modify: 2019-05-30 17:56:34.581935968 +0200
Change: 2019-05-30 17:56:37.801900596 +0200
 Birth: -
# ls -ld /lib
drwxr-xr-x 17 root root 4096 May 30  2019 /lib/

How to create a jsfiddle with v-money lib?

Advertising

Dont do it?

Advertise pretty much anything here, with CPM banner ads, CPM email ads, and CPC contextual links. You can segment relevant areas of the site and display ads based on the user's geographic location if you want.

It starts at just $ 1 per CPM or $ 0.10 per CPC.