Having trouble understanding the use of a label in Assembly

I am currently having trouble understanding what this label means in Assembly as it has no variable size with it. In the following program that declares several variables in the stack offset the variable is named SCMP_VARSIZE. I have seen many other variables that have a postfix of VARSIZE attached to them and can’t understand why it is used in programs.

/Stack Usage:     OFFSET 0 SCMP_RETVAL DS.B 1 ; Return value SCMP_VARSIZE SCMP_PRY DS.W 1 ; Preserve Register Y SCMP_PRX DS.W 1 ; Preserve Register X SCMP_RA DS.W 1 ; return address SCMP_STR1 DS.W 1 ; address of first string SCMP_STR2 DS.W 1 ; address of first string  strcmp: pshx ; preserve registers         pshy         leas -SCMP_VARSIZE,sp         clr SCMP_RETVAL,sp ... 

The program compares two strings but that is not important here. I just don’t understand what the VARSIZE label is used for in assembly programs.

Having trouble with getting a image to a fit on a face of a cube

I have little problem from a unity project that I’m working on. I’m making a 3d art gallery which will be further developed to VR application. In the 3d scene I created paint canvas as a game object (cube) but having trouble, getting the images fit through out the whole canvas. When i try to apply image as applying a material it is treated as a texture and only small proposition of image is visible in the canvas

And also i am planing to make a UI so that customer can upload pics and application automatically get the images and render the gallery. So I’m kind of stuck in the image to object part.

notebooks couple, double trouble

I’d really like a solution for my problem. I have two notebooks: one is an Asus f540sa-xx220T an the other is a Compaq 15-s004nl. The compaq was working very well but doesn’t start anymore because of a hard drive recent problem. The Asus starts but it’s working so slow that you can’t do anything anymore. The thing is I don’t want to throw them away. I really want to save at least one. So the idea was to open them and maybe exchange the inside pieces. Do like a super notebook 2.0 taking like the hard drive to change the broken one and maybe upgrading the ram, you know. The thing is the pieces doesn’t really seem compatible. For example I didn’t find a place for the ram and stuff in the other computer and all the stuff is so different. My idea is even possible? It’s really different from the PC work. If upgade is not possible than what could I do? The notebooks have been open on the table for one day already. Some advice? P. S. I’d like not to spend money if it’s possible =))

why I cannot, had trouble writing out superblocks

this hdd came out of an hp2000 with windows 8 pre installed. the notebook died and I always scavenge as many parts as possible. This time the drive is not cooperating, as I want to use it as a Linux drive 🙂

GParted 0.18.0 --enable-libparted-dmraid --enable-online-resize  Libparted 2.3 Create Primary Partition #1 (ext4, 298.09 GiB) on /dev/sda  00:16:42    ( ERROR )  create empty partition  00:00:00    ( SUCCESS )  path: /dev/sda1 start: 2048 end: 625141759 size: 625139712 (298.09 GiB) clear old file system signatures in /dev/sda1  00:00:04    ( SUCCESS )  write 68.00 KiB of zeros at byte offset 0  00:00:00    ( SUCCESS ) write 4.00 KiB of zeros at byte offset 67108864  00:00:00    ( SUCCESS ) write 4.00 KiB of zeros at byte offset 274877906944  00:00:00    ( SUCCESS ) write 4.00 KiB of zeros at byte offset 320071528448  00:00:00    ( SUCCESS ) flush operating system cache of /dev/sda  00:00:04    ( SUCCESS ) set partition type on /dev/sda1  00:00:00    ( SUCCESS )  new partition type: ext4 create new ext4 file system  00:16:38    ( ERROR )  mkfs.ext4 -L "" /dev/sda1  Filesystem label= OS type: Linux Block size=4096 (log=2) Fragment size=4096 (log=2) Stride=0 blocks, Stripe width=8191 blocks 19537920 inodes, 78142464 blocks 3907123 blocks (5.00%) reserved for the super user First data block=0 Maximum filesystem blocks=4294967296 2385 block groups 32768 blocks per group, 32768 fragments per group 8192 inodes per group Superblock backups stored on blocks: 32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208, 4096000, 7962624, 11239424, 20480000, 23887872, 71663616  Allocating group tables: done Writing inode tables: done Creating journal (32768 blocks): done Writing superblocks and filesystem accounting information: 2/2385 mke2fs 1.42.9 (4-Feb-2014)  Warning, had trouble writing out superblocks. 

Having trouble turning mbpfan into a system service

I’m a beginning Ubuntu user following this tutorial to enable fan management on my Mac Mini 4,1 running Ubuntu 18.04.

I had good success initially and then got to the point of trying to turn mbpfan into a system service. The first glitch I hit was that no mbpfan.service file was present on my system after installation, so I just downloaded it from GitHub, uploaded it via SFTP to my download folder, and then copied it as instructed with sudo cp mbpfan.service /etc/systemd/system/.

But here’s the result when I try to execute sudo systemctl enable mbpfan.service:

Synchronizing state of mbpfan.service with SysV service script with /lib/systemd/systemd-sysv-install. Executing: /lib/systemd/systemd-sysv-install enable mbpfan Failed to enable unit: File mbpfan.service: Invalid argument 

I’m kind of stuck at this point and would appreciate a nudge. Thank you.

NVMe M.2 drive trouble: Won’t boot, can’t format or reinstall

My laptop ran out of battery and shut down at 0%. When I charged it back up, Ubuntu 18.04 LTS couldn’t boot and dropped to initramfs after grub. Nothing I try will stick to get it working. At this point I am just trying to get the hard drive back to a state where I can reinstall Ubuntu.

System information: Ubuntu 18.04.3 fully updated as of a couple days ago. The hard drive is an NVMe M.2 2280 HP EX900 in a Dell XPS 13 9365. It was set up utilizing GPT and EFI, not legacy modes.

exit from initramfs says to run fsck because there is data in the journal. Running fsck (and fsck.ext4) from initramfs results in it saying it was unable to set the superblock flags and is still dirty. Research shows this result is because fsck could not actually write to the drive.

Booting from the Ubuntu installer live image, if I do anything with gparted, it shows as successful, but nothing changes. Delete partitions, make new ones, reformatting, convert to GPT: no errors pop up, but the hard drive partition scheme shows up the same as before I tried anything.

I can’t reinstall Ubuntu. The installer hangs once it tries to repartition–and doesn’t work if I choose to install in the existing partition.

The program boot-repair doesn’t change anything, even messing with advanced settings.

If I install nvme-cli tools and try to format the drive or delete the namespace, it comes back with an error. The error varies, but it’s unsuccessful every time. nvme id and log commands all show no problems with the drive/partitions.

I’d write this off as something wrong with the drive, except from Disks I can mount the partitions and access all of the data fine. I backed up my data from those partitions, so everything can be scrapped. I am just trying to get the hard drive to be accessible again so that the computer is usable. I don’t care if I get the existing system working or reinstall Ubuntu.

Thank you, and I appreciate any and all assistance. I’m at a loss of what to try next.

[ Law & Ethics ] Open Question : Get in trouble for offensive/hateful reply email?

so a friend of mine got an email from a rep of his new credit card company saying that he could use his new card before it got to him through their app (new card was supposed fo arrive by mail in 2 weeks). he was in a bad mood and replied that the rep should f*k off and stop pressuring him, and that he would use their sh*tty card whenever he feels like it. and that the rep should kill himself. following his reply he got an email from the company saying that they closed his account due to breaking terms of fairuse policy. he then apologized and they said they appreciate the apology but will not reopen his account. he is worried. can he get in trouble for the things he said?

SP 2016 on -premises error: Sorry, we’re having trouble reaching the server

while sharing permission and in all sorts of people picker i’m getting this error “Sorry, we’re having trouble reaching the server” enter image description here on clicking Shared with i’m getting error “unexpected response data from serverenter image description here

i tried the following,

  • resetting IIS,
  • restarted the server
  • different user names
  • memory space is sufficinet

Please help me in fixing this error

Q: How to fix printer trouble

I have a ink jet printer named ‘epson pm-a890’ connected directly via usb.

Ubuntu 19.04 automatically found the printer and configured it.

Configure

Name: PM-A890
Description: EPSON PM-A890
Driver: Current – EPson PM A890 – CUPS+Gutenprint v5.3.1

But when I start to print something, the printer prints nothing and it ejects all of the papers. I can’t print anything from ubuntu at all. Even test page cant be printed. ubuntu drives the printer eject all of the paper…

On the other hands, Windows 10 can print without any problems via usb.

How to fix the trouble? Where should I check?

Having trouble installing epson driver, seems related to Python?

I am having trouble installing the driver for my Epson scanner and I have had some issues in the past installing other things. It was suggested that this was a duplicate and I ran into the same error. When I do ./install.sh (for the driver) or something similar, as here, I get the following error code:

Traceback (most recent call last):   File "/usr/bin/add-apt-repository", line 11, in <module>     from softwareproperties.SoftwareProperties import SoftwareProperties, shortcut_handler   File "/usr/lib/python3/dist-packages/softwareproperties/SoftwareProperties.py", line 28, in <module>     import apt_pkg ModuleNotFoundError: No module named 'apt_pkg' Error in sys.excepthook: Traceback (most recent call last):   File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 63, in apport_excepthook     from apport.fileutils import likely_packaged, get_recent_crashes   File "/usr/lib/python3/dist-packages/apport/__init__.py", line 5, in <module>     from apport.report import Report   File "/usr/lib/python3/dist-packages/apport/report.py", line 30, in <module>     import apport.fileutils   File "/usr/lib/python3/dist-packages/apport/fileutils.py", line 23, in <module>     from apport.packaging_impl import impl as packaging   File "/usr/lib/python3/dist-packages/apport/packaging_impl.py", line 24, in <module>     import apt   File "/usr/lib/python3/dist-packages/apt/__init__.py", line 23, in <module>     import apt_pkg ModuleNotFoundError: No module named 'apt_pkg'  Original exception was: Traceback (most recent call last):   File "/usr/bin/add-apt-repository", line 11, in <module>     from softwareproperties.SoftwareProperties import SoftwareProperties, shortcut_handler   File "/usr/lib/python3/dist-packages/softwareproperties/SoftwareProperties.py", line 28, in <module>     import apt_pkg ModuleNotFoundError: No module named 'apt_pkg'```