title task .model small  .stack 100h  .data  string db &quot;I got 10$ as reward for my hard work&quot;,'$' main proc  mov ax,@data mov ds,ax mov ah,9 mov dx,offset string int 21h    mov ah, 4Ch int 21h  main endp end main
123982
In my assembly language class, our first assignment was to write a program to print out a simple dollar-terminated string in DOS.  It looked something like this:  BITS 32     global _main  section .data     msg db "Hello, world!", 13, 10, ’$’  section .text _main: mov ah, 9 mov edx, msg int 21h ret   As I understand it, the $ sign serves to terminate the sting like null does in C.  But what do I do if I want to put a dollar sign in the string (like I want to print out "it costs $30")?  This seems like a simple question, but my professor didn't know the answer and I don't seem to find it using a google search.
68752
I downloaded Hex Workshop, and I was told to read a .dbc file.     It should contain 28,315 if you read   offset 0x04 and 0x05   I am unsure how to do this? What does 0x04 mean?
19865
Can someone explain what this means?  int (*data[2])[2];
107732
Batch jobs error emails report:      The transaction log for database 'WebDB' is full.   No, it isn't. Its 90% free. The transaction log backups run normally. My hardware guy tells me the hardware is running perfectly, with plenty of space. SQL Server 2008 SP3, but not R2.  I'm a developer, we no longer have a DBA. So it falls to me to try and fix this.
112628
I don't know the correct answer how this reduction should've be done. Should I simply put λfx.fx in a place of m and λzy.zzy in a place of n?  (λmnfx.mf(nfx) λfx.fx λzy.zzy)
114916
Context : In order to test some backup process which are supposed to work all nights, i want to select a random files on a large amount of datas. (Around 7 millions of files. This is a NFS server with  ~8To of data used, mainly web applications.   The random selecting part need to be called 2 times, first with pure random selection, and then i want to pick some fresh files (something like : find /data/ -mtime 1|shuf -n 1 ) I wrote a script which made a parsing of backup configuration files, try to restore via the tool, compare original checksum with the old one and report all tests in a mail.  Everything work except the "random selecting part", indeed i've some performance issues.   I've tested many ways to select random files on a large FS. here is some of my ideas :    Select random used inodes and getting the filename of associed inode (Performance issue, to lot of ram needed, process is very long.)  find /data/ -type f -mtime 1 |shuf -n 1 →  (Too much files piped to shuf (time $command ~ 46seconds) ) RANDOM=$(shuf -i 1-7000000 -n 1) &amp;&amp; find /data/ -type f -mtime 1 |head -n ${RANDOM} → Same performance problem when random > 1000000 (time $command ~ 49seconds)) Python discovery script with (os.listdir) → Good performance but i used with ctime, horrible performance issues   I'm very surprised to not find some library/tools/scripts (in Python, Bash, C or whatever) for making things like explained before. It seems not be a specific problem, i think that some admins in the world and to test randomly if backup are working correctly.   So i'm interrested of some ways to do it, with specific GNU/Linux/BSD/*nix tools, Python script/library. Hope you consider that i'm searching for "high performance" things. My script will call solution for each path backup config files.   Thanks in advance
6569
free -m currently puts out something like this.     I would like to know using grep/awk how we can get the total free amount. i.e. 9083
26143
It keeps crashing and this is the newest one:  Anonymous UUID:       0BCEAA1D-32A3-1735-AF5F-607108F40027  Wed Jun 13 18:53:02 2018  *** Panic Report *** panic(cpu 0 caller 0xffffff8016f154f0):  initproc exited -- exit reason namespace 2 subcode 0xa description: none  Thread 1 crashed  RAX: 0x0000000000000010, RBX: 0x00000001047f4f28, RCX: 0x00000001047a6a80, RDX: 0x00000001047f2000 RSP: 0x0000700003560250, RBP: 0x00007000035602f0, RSI: 0x000000000004b000, RDI: 0x00000001047f7410 R8:  0x0000000000000000, R9:  0x0000000000000e20, R10: 0x00000001047a6a10, R11: 0x0000000000000001 R12: 0x0000000000000001, R13: 0x0000000000001cf0, R14: 0x0000000000000001, R15: 0x0000000000000001 RFL: 0x0000000000010202, RIP: 0x00007fff6e9497c4, CS:  0x000000000000002b, SS:  0x0000000000000023  Thread 0: 0xffffff80258a8000 0x00007fff6ea9402a 0x00007fff6e915cc0 0x0000000000000000  Thread 1: 0xffffff802683f290 0x00007fff6e9497c4 0x00007fff6e94aa8d 0x00007fff6e94aca5 0x00007fff6e9521c4 0x00007fff6e9a45b1 0x00000001047c8c95 0x00000001047d89ea 0x00007fff6e909db8 0x00007fff6e91ce81 0x00007fff6e90c081 0x00007fff6e91e07a 0x00007fff6e911166 0x00007fff6e91ef0d 0x00007fff6e922d21 0x00007fff6ec5afd2 0x00007fff6ec5abe9 0x0000000000000000  Thread 2: 0xffffff8029432c70 0x00007fff6ea955b2 0x00007fff6e91ce81 0x00007fff6e90c081 0x00007fff6e91e07a 0x00007fff6e911166 0x00007fff6e91ef0d 0x00007fff6e922d21 0x00007fff6ec5afd2 0x00007fff6ec5abe9 0x0000000000000000  Thread 3: 0xffffff802c2c54f0 0x00007fff6ec5abdc  Thread 4: 0xffffff8027d56650 0x00007fff6ec5abdc   Mac OS version: 17F77  Kernel version: Darwin Kernel Version 17.6.0: Tue May  8 15:22:16 PDT 2018; root:xnu-4570.61.1~1/RELEASE_X86_64 Kernel UUID: CC1699EE-71B5-3AF1-AAA3-6DBD16222B92 System model name: MacBookAir7,2 (Mac-937CB26E2E02BB01) Root disk errors: "Could not recover SATA HDD after 5 attempts. Terminating."  EOF Model: MacBookAir7,2, BootROM MBA71.0177.B00, 2 processors, Intel Core i5, 1.6 GHz, 4 GB, SMC 2.27f2 Graphics: Intel HD Graphics 6000, Intel HD Graphics 6000, Built-In Memory Module: BANK 0/DIMM0, 2 GB, DDR3, 1600 MHz, 0x80AD, 0x483943434E4E4E384A544D4C41522D4E544D Memory Module: BANK 1/DIMM0, 2 GB, DDR3, 1600 MHz, 0x80AD, 0x483943434E4E4E384A544D4C41522D4E544D AirPort: spairport_wireless_card_type_airport_extreme (0x14E4, 0x117), Broadcom BCM43xx 1.0 (7.77.37.31.1a9) Bluetooth: Version 6.0.6f2, 3 services, 27 devices, 1 incoming serial ports Network Service: Wi-Fi, AirPort, en0 Serial ATA Device: APPLE SSD SM0256G, 251 GB USB Device: USB 3.0 Bus USB Device: BRCM20702 Hub USB Device: Bluetooth USB Host Controller Thunderbolt Bus: MacBook Air, Apple Inc., 27.2
97498
In crontab, I can use an asterisk to mean every value, or "*/2" to mean every even value.  Is there a way to specify every odd value? (Would something like "1+*/2" work?)
47546
So recently I've wanted to learn assembly, so I learnt a bit. I put this into nano and saved it as playground.asm. Now I'm wondering, how do I compile and run it? I've already searched everywhere and still cant find it. I'm really curious and there's no point learning a language if you can't even use it.
35975
The variable BUILDNUMBER is set to value 230. I expect 230_ to be printed for the command echo $BUILDNUMBER_ but the output is empty as shown below.  # echo $BUILDNUMBER_  # echo $BUILDNUMBER 230
63666
We are getting very slow compile times, which can take upwards of 20+ minutes on dual core   2GHz, 2G Ram machines.  A lot of this is due to the size of our solution which has grown to 70+ projects, as well as VSS which is a bottle neck in itself when you have a lot of files. (swapping out VSS is not an option unfortunately, so I don't want this to descend into a VSS bash)  We are looking at merging projects.  We are also looking at having multiple solutions to achieve greater separation of concerns and quicker compile times for each element of the application. This I can see will become a DLL hell as we try to keep things in synch.  I am interested to know how other teams have dealt with this scaling issue, what do you do when your code base reaches a critical mass that you are wasting half the day watching the status bar deliver compile messages.  UPDATE I neglected to mention this is a C# solution. Thanks for all the C++ suggestions, but it's been a few years since I've had to worry about headers.  EDIT:  Nice suggestions that have helped so far (not saying there aren't other nice suggestions below, just what has helped)   New 3GHz laptop - the power of lost utilization works wonders when whinging to management Disable Anti Virus during compile 'Disconnecting' from VSS (actually the network) during compile - I may get us to remove VS-VSS integration altogether and stick to using the VSS UI   Still not rip-snorting through a compile, but every bit helps.  Orion did mention in a comment that generics may have a play also. From my tests there does appear to be a minimal performance hit, but not high enough to sure - compile times can be inconsistent due to disc activity. Due to time limitations, my tests didn't include as many Generics, or as much code, as would appear in live system, so that may accumulate. I wouldn't avoid using generics where they are supposed to be used, just for compile time performance  WORKAROUND  We are testing the practice of building new areas of the application in new solutions, importing in the latest dlls as required, them integrating them into the larger solution when we are happy with them.  We may also do them same to existing code by creating temporary solutions that just encapsulate the areas we need to work on, and throwing them away after reintegrating the code. We need to weigh up the time it will take to reintegrate this code against the time we gain by not having Rip Van Winkle like experiences with rapid recompiling during development.
117975
I've got a "Schroedinger's Cat" type of problem here -- my program (actually the test suite for my program, but a program nonetheless) is crashing, but only when built in release mode, and only when launched from the command line.  Through caveman debugging (ie, nasty printf() messages all over the place), I have determined the test method where the code is crashing, though unfortunately the actual crash seems to happen in some destructor, since the last trace messages I see are in other destructors which execute cleanly.  When I attempt to run this program inside of Visual Studio, it doesn't crash.  Same goes when launching from WinDbg.exe.  The crash only occurs when launching from the command line.  This is happening under Windows Vista, btw, and unfortunately I don't have access to an XP machine right now to test on.  It would be really nice if I could get Windows to print out a stack trace, or something other than simply terminating the program as if it had exited cleanly.  Does anyone have any advice as to how I could get some more meaningful information here and hopefully fix this bug?  Edit: The problem was indeed caused by an out-of-bounds array, .  Thanks everybody for your help in finding this problem!
1982
The following code is generating a stack overflow error for me  int main(int argc, char* argv[]) {     int sieve[2000000];     return 0; }   How do I get around this? I am using Turbo C++ but would like to keep my code in C  EDIT:  Thanks for the advice.  The code above was only for example, I actually declare the array in a function and not in sub main.  Also, I needed the array to be initialized to zeros, so when I googled malloc, I discovered that calloc was perfect for my purposes.  Malloc/calloc also has the advantage over allocating on the stack of allowing me to declare the size using a variable.
41448
I see you have succussfully answered this question previously but it is not specific to my system.  I have downloaded your file and created the relevant dump file but I don't know how to analyse it. Can I upload it to you for some advice please?
41268
I have seen this syntax in MSDN: , but I don't know what it does.  Does anyone know?
37116
Within the output of top, there are two fields, marked "buff/cache" and "avail Mem" in the memory and swap usage lines:    What do these two fields mean?  I've tried Googling them, but the results only bring up generic articles on top, and they don't explain what these fields signify.