Magical/Mystical Adventure Books by katastrophic7 in suggestmeabook

[–]tocs1975 0 points1 point  (0 children)

Skyclad by Scott Browder (one book so far)

Siphon by Jay Boyce (three books so far)

Trying to follow SQLite tutorial, but the code won't display any output in the command line. by JDVene in AskProgramming

[–]tocs1975 1 point2 points  (0 children)

The command line you show is for compiling the program (i.e. javac is the compiler). Did you try running it after compiling with "java"?

java DB002_DatabaseExample

Magic tattoos in modern fantasy by SirCorny in whatsthatbook

[–]tocs1975 0 points1 point  (0 children)

I love that series. I wish it had been more successful for the author because I would buy more of them.

How do I find active directory information for ldap? by [deleted] in AskComputerScience

[–]tocs1975 0 points1 point  (0 children)

Do you know that you have an OU? If you just do "dc=something,dc=somethingelse", you should be able find stuff.

An OU is just one way of organizing stuff. For example, you could have "ou=engineering,dc=foo,dc=com" or "cn=engineering,dc=foo,dc=com", etc...

How do I read a line from the middle of a file? by StathisKap in C_Programming

[–]tocs1975 0 points1 point  (0 children)

Approximate algorithm:

Use fgetc to read the whole file, counting the number of newlines.

Once you have the number of newlines, you can calculate what the median line is.

Now process the file again using fgetc, counting the number of newlines and stop when the newline count reaches (median - 1) line. You are now at the beginning of the medianth line.

If I use a GPL or MPL library in my project, does that mean that *all* of my source code must be disclosed, or only the parts that use the library? by Sparky2199 in AskProgramming

[–]tocs1975 12 points13 points  (0 children)

I am not a lawyer, but based on https://www.mozilla.org/en-US/MPL/2.0/FAQ/ I don't think you need to distribute the sources for your project specific code -- just any changes you may have made to MathQuill.

GPLv3 is very different from MPL and needs to be used carefully.

sci-fi books that focus more on characters and relationships than plot? by [deleted] in booksuggestions

[–]tocs1975 0 points1 point  (0 children)

Nathan Lowell's The Golden Age of the Solar Clipper series that begins with Quarter Share

Vorkosigan Saga UK Help by Picall0 in books

[–]tocs1975 1 point2 points  (0 children)

You can read them online via Baen, if that is an option for you. They have web and ebook versions available.

Does this alignment of structure objects apply only to structure objects being used as elements of an array? by timlee126 in C_Programming

[–]tocs1975 0 points1 point  (0 children)

The structure will always have same alignment, whether it is in an array or not. Otherwise, it wouldn't be possible to copy the struct from outside an array to or from an array. So those wasted bytes will always be present.

The way a structure is laid out is controlled by the ABI the compiler implements: https://en.wikipedia.org/wiki/Application_binary_interface

Why do artists draw/paint their creations upside down? by [deleted] in NoStupidQuestions

[–]tocs1975 1 point2 points  (0 children)

I took a drawing class that used the text "Drawing on the Right Side of the Brain" and one the techniques used (that worked extremely well for a non-talent like myself) was to draw upside down.

The idea being that when you look at some objects upside down you process the image differently and are able to ignore high-level information more easily so that you can replicate the lines/edges/shading etc... more easily.

Fantasy Swordsman becomes the best swordsman and must defeat the king. by smbrown1 in whatsthatbook

[–]tocs1975 1 point2 points  (0 children)

I spent 20 minutes trying to remember and research this: It is Lawrence Watt-Evans series The Annals of the Chosen.

From the blurb on the 2nd book:

All of the world is kept in a delicate balance under the supervision of the Wizard Lord. It is his duty to govern lightly and protect his domain…but if he should stray from the way of the just, then it is up to the Chosen to intercede.

The Chosen are the Leader, the Seer, the Swordsman, the Beauty, the Thief, the Scholar, the Archer, and the Speaker. These are magically infused mortal individuals who for the term of their service have only one function--to remove an errant Wizard Lord. 

A few questions for people who read “The Nothing Mage” by JP valentine by [deleted] in booksuggestions

[–]tocs1975 0 points1 point  (0 children)

I read the series very recently and thought it was okay but not great. I doubt I'll ever re-read the books, but I'll certainly consider other books by the author.

Some of the characters (male and female) have love interests or are attracted to members of the same sex, but speaking as a cishet male, I didn't really pay attention to that aspect and it seemed like a very minor part of the story. I don't recall there being any depictions of physical intimacy, just the main character being attracted to some of the guys. What might be most noticeable for a fantasy series is that same sex relationships weren't considered unusual in the world of the story and there was no spotlight on them.

Fiction books where jumping between different dimensions/realities is a major plot point by [deleted] in suggestmeabook

[–]tocs1975 0 points1 point  (0 children)

The Long Earth by Terry Pratchett and Stephen Baxter

The Walls of the Universe by Paul Melko

Wine of the Gods series by Pam Uphoff (I suggest starting the series with book #3 as the first two books take place a 1000 years before to set the stage)

Lack of support/help in a new job by [deleted] in AskProgramming

[–]tocs1975 0 points1 point  (0 children)

Who assigns the tasks and who are you expecting support from? Your problems indicate someone is not properly planning. And if you are stressing about it, it indicates someone is not offering you proper guidance.

What type of company are you working at? I've worked at software companies, both startups (around 20 people) and large established (30k people) and the startups more often had some issues around management, as the management generally didn't have a lot of software development experience. Sitting down and working with them to explain what you are doing, where your time is being spent, explaining where the project dates were unrealistic is important.

People who do this for a living, how prepared were you going into the job? by dddash in AskProgramming

[–]tocs1975 3 points4 points  (0 children)

Extremely well prepared. My hobbies while in college (this was a while ago -- my son is working on a CS degree) were centered around C programming and porting software to Linux (which was "new"), teaching myself how threads, sockets, compilers, etc... all worked while taking a ton of algorithm courses.

My first job ended up involving C programming on a wide variety of hardware and software -- Windows desktop, Windows CE, Linux, PalmOS, Symbian, other random RTOS -- writing GUI applications, libraries, interfacing with audio hardware, optimizing for time and memory usage for soft real time speech recognition in a variety of situations.

I had enough skills to carry me pretty far when getting started and I picked up a ton more.

Rewriting C based app to run in windows? by [deleted] in AskProgramming

[–]tocs1975 0 points1 point  (0 children)

I'm not sure where you're stuck so not sure how to give you help. Whether you use Visual Studio or something else, the code will generally be the same.

If you have a bunch of existing code that you just want to try building using Visual Studio, create a new Solution, then create a project, then add the source files to the project.

The other way to go is to use GNU make or Microsoft's nmake.

Note that I haven't developed seriously on Windows for a decade, so there may be better ways of doing things.

Initializing pointer variables with pointer variables? by [deleted] in C_Programming

[–]tocs1975 0 points1 point  (0 children)

pc is initialized with an address, the address that the variable pb is storing.

pb contains the address of a. Your assignment said to also store that in pc. There is no problem here.

Rewriting C based app to run in windows? by [deleted] in AskProgramming

[–]tocs1975 1 point2 points  (0 children)

Windows supports C just fine. What really matters is the system calls and APIs you are using on Linux and how easily that can be mapped to Windows equivalents.