Where did the text segment get its name?

Going a little further with nos’s comments, I turned up a scanned version of the GE-635 Programming Manual, and found the following in the section on the macro assembler: The GE-625/635 Macro Assembler is being provided to give the professional programmers some of the conveniences of a compiler and the flexibility of an Assembler. […] … Read more

When was the NULL macro not 0?

The C FAQ has some examples of historical machines with non-0 NULL representations. From The C FAQ List, question 5.17: Q: Seriously, have any actual machines really used nonzero null pointers, or different representations for pointers to different types? A: The Prime 50 series used segment 07777, offset 0 for the null pointer, at least … Read more

Are design patterns really language weaknesses?

Some canonized design patterns — Adapter, Factory, Command, Visitor, etc — are approximations of features which are baked into other languages. Off the top of my head: Event-handlers in C# are baked-in versions of the observer pattern. Think about how you’d wire up events in C# if you had to roll your own observer each … Read more

How can I save my mini-buffer history in Emacs?

As Trey Jackson said, you want to put this: (savehist-mode) in your Emacs start up file, then restart Emacs. (Calling it interactively will stomp on your current mini-buffer history, so you may not want to do that.) It’s also worth pointing out that you can persist other variables across sessions by adding them to savehist-additional-variables, … Read more

Prevent duplicates from being saved in bash history [closed]

As far as I know, it is not possible to do what you want. I see this as a bug in bash’s history processing that could be improved. export HISTCONTROL=ignoreboth:erasedups # no duplicate entries shopt -s histappend # append history file export PROMPT_COMMAND=”history -a” # update histfile after every command This will keep the in … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)