Register a SA Forums Account here!
JOINING THE SA FORUMS WILL REMOVE THIS BIG AD, THE ANNOYING UNDERLINED ADS, AND STUPID INTERSTITIAL ADS!!!

You can: log in, read the tech support FAQ, or request your lost password. This dumb message (and those ads) will appear on every screen until you register! Get rid of this crap by registering your own SA Forums Account and joining roughly 150,000 Goons, for the one-time price of $9.95! We charge money because it costs us money per month for bills, and since we don't believe in showing ads to our users, we try to make the money back through forum registrations.
 
  • Post
  • Reply
duck monster
Dec 15, 2004

Avenging Dentist posted:

If you want some "deep" theory, check out Knuth's "Art of Computer Programming" series (be warned, they are very, very math-heavy).

This book is the Computer science version of Walter Pistons "Counterpoint" and "Harmony" , THE canonical bibles on music theory, but also complete brainfucks for people first reading them.

If you DO struggle through Knuth's works, do so reverently, Knuth may be hard , but you get that when dealing with the sacred texts of God himself.

Adbot
ADBOT LOVES YOU

duck monster
Dec 15, 2004

Mister Biff posted:

Really stupid question about Visual Studio 2008:

I don't normally write Visual C stuff, but I found a tool that I absolutely must have, and it was only available as source code. After a lot of rigamarole, I've managed to get a compiled .exe, but the file won't run on any other system!

The error is always the same: The system cannot execute the specified program.

I've tried installing the Visual C Runtime Libraries (for both 2005 & 2008) on my test machine, but it doesn't seem to make any difference. I know I'm probably being stupid, but I can't seem to figure out how to make this thing work.

P.S. -- I only have the following includes, which I don't think are anything out of the ordinary:
code:
#include <stdio.h>
#include <windows.h>
#include <lm.h>
#include <lmdfs.h>
I've also got NetAPI32.lib linked as a resource file, so that might be it, but I'm still baffled. Any thoughts? :confused:

Edit: Er, this may be more appropriate for the C/C++ thread... if so, just tell me.

I don't really know Visual C++, but can you tell it to statically rather than dynamically link itself to its dependencies? Maybe windows isn't wired that way, so I might be off track, but look into it.

That was the thing I always liked about delphi. It usually (and optionally) statically linked itself to the VCL libs (or at least earlier versions did), so you just had to distribute a big fat binary, rather than a whole messy link of dlls and poo poo.

duck monster
Dec 15, 2004

Not quite a programming question, but an IDE question.

I'm using eclipse and remote-systems-explorer plugin to do SCP stuff.

The problem is, almost at random it choses various files and silently saves them to cache instead of remote end, and then starts loading it from cache. Meaning the remote end never gets updated.

I've been searching google high and low and cant find any documentation to tell me how to induce it to cut this poo poo out, and eclipse IRC on freenode isn't being useful at all.

Any eclipse boffins got ideas on the cause of this?

duck monster
Dec 15, 2004

I've got some jquery that looks like this:

code:
for (item in adlist) {
			counter = counter + 1
			if ((counter >= startv) && (counter <= endv)) {
					icounter = icounter +1
					$('#cp'+icounter).html(adlist[item]+'&nbsp;');
					$('#cp'+icounter).unbind();
					$('#cp'+icounter).click( function() {
						window.location.href="/editad/?id="+item; }
					);
				}
			}

All the links end up going to the same place. After much headscratching I realised that the code binded was exactly the same with window.location.href="/editad/?id="+item being evaluated at the click point, rather than at binding. Doh.

The question is, how do i set these so that the ?id=nn is set to the correct item value.

Excuse the goofy code, its bit of a deadline o_O

e: Solved

quote:


$('#cp'+icounter).bind('click', {'itm':item}, function(event) {
window.location.href="/editad/?id="+event.data.itm; }
);

duck monster fucked around with this message at 04:07 on Aug 2, 2011

duck monster
Dec 15, 2004

PDP-1 posted:

Does anyone have recommendations for a programmer-friendly hosting service? I primarily want to try writing a small client/server setup in .NET and put the server part up somewhere that I can connect to from wherever. This is mainly a learning project since I've never done anything cross-network before so it wouldn't need any fancy bandwidth/storage/cpu specs, but if they had database access of some kind and maybe FTP or web page hosting that'd be cool.

I just finished participating in the SA GameDev competition, and a lot of the other entries feature high-score leaderboards. I realized that I have no clue how to do that kind of thing but that would be a good first target application.

Any book recommendations for this kind of programming would be great too, especially if it came from a .NET angle for the non-fundamentals parts.

Find a vhost provider that does windows. Won't be cheap compared to linux, but hey, at least your not trying to write a server in Cocoa. I don't even know if mass hosted mac vhosts even exist. But yeah, its always going to be more expensive in windows, because frankly windows just isn't good at being squeezed into resource constrained spaces like you can do with linux (by just stripping poo poo out till it fits comfortably), and any host has to pay licencing fees.

Interestingly however once you go up the scale the difference in price isnt too much different. Microsoft are not stupid and your vhost provider isn't paying store prices for win server , but rather they tend to have fancy negotiated licencing plans with microsoft that make it economical for them. MS knows full well any sale is better than no sale, and adjusts accordingly.

It will be interesting to see how microsoft reacts to the interest being shown by the datacenter world towards ARM as a possible future, as the biggest issue datacenters have is heat and power, and ARM currently murders intel on this front. The ability to make a 1U server thats basically a tiny lunchbox of micro blade servers running scaled back "appliance" OS's+server software would be a loving killer in this space, and if Win8 can deliver a cut down appliance server version for arm, it will allow for very cheap hosting that can do dot net. But that future aint quite here yet.

duck monster fucked around with this message at 05:54 on Aug 3, 2011

duck monster
Dec 15, 2004

I'm currently having a giant annoyance with eclipse where the tabs at the top only seem to show the last segment of the directory and not the filename, and I have to hover over the tab to get the file name. This is using PyDev for django work.

Ie a file called /project/appname/views.py will just say appname in the tab, which is annoying since if I've got 5 tabs all in the appname directory its just five tabs saying appname.

It didn't used to do this, and I'm stuffed if I can work out what I've changed.

Anyone know how to fix this?

duck monster
Dec 15, 2004

Does anyone know where the gently caress I can get a Google maps API V2 key for a website.

Large un-source-code-available java bloblet website needs a google maps API javascript key and the google site just loving leads me on a wild goosechase.

It *used* to be there, but I'm fearing that google jumped the shark and stopped key availability for the API, which might leave us in potentially tens of thousands of hours of "oh gently caress" labor reverse engineering a blob and figuring out how to update it.

duck monster
Dec 15, 2004

This doesnt really belong anywhere so I'll leave it here. Found on slashdot. CSS to correctly render sarcasm tags.

code:
@namespace url([url]http://www.w3.org/1999/xhtml[/url]);
sarcasm {
text-decoration: blink !important;
}
I have no idea why I found this so funny.

duck monster
Dec 15, 2004

ultrafilter posted:

If you do the CS degree, you'll probably write a barebones operating system as a senior project. Of course, that's a far cry from something like Windows or *nix, but it's similar on some level.

If you want to torture yourself, but get really loving smart in the process, Tanenbaum's Operating Systems Design and Implementation book is what your after. He's pretty hell bent on microkernel design, but microkernels ARE something its better to understand completely before deciding to break the design anyway (Is its easy to make a completely monolithic kernel than a microkernel, but practically speaking the optimal design is somewhat of a hybrid (This is a topic of religious war amongst OS geeks, fair warning!), and knowing what belongs in the kernel and what belongs in the kernel daemons requires a good understanding of microkernel architecture anyway. Linus Torvald learned on that book, and although he went for a fairly monolithic design, I can guarantee he had good reasons for not chosing a full microkernel design that he would have been unlikely to have formulated without undergoing Tanenbaums microkernel course.

duck monster
Dec 15, 2004

downout posted:

Ya pretty sure Mac is just linux underneath. edit: I'm wrong - see above.

Its a mutant BSD kernel over a Mach microkernel. Apple to their credit does open source the kernel (Darwin). It'd be nice if they ported over BSD's lunix compatibility layer, but they've never shown any interest in doing so.

Docker for Mac just spins up a background VirtualBox. Its crufty, but it works reliably well.

duck monster
Dec 15, 2004

The Fool posted:

1. Sorry, hyperkit, which is better I suppose.
2. Actually use linux.


that's not to say I think there is a better way to run docker on mac or windows, just that it is adding another layer to the stack, which does indeed bring it into the 'crufty' territory.

Hyperkit is a management layer that wraps around virtualbox.

duck monster
Dec 15, 2004

Bruegels Fuckbooks posted:

I've seen the verb "unroll" used in English for this.

a bunch of pages late, but I was briefly in a band called "funroll loops" named after the -FUNROLL-LOOPS flag in GCC that does this.

duck monster
Dec 15, 2004

Does anybody here have buildbot experience?

I've got a buildbot master/workers setup to replace lovely jenkins, but while I can get it to watch a git branch, I cant figure out how to get it to trigger on a specific tag.

Any suggestions on this one?

Adbot
ADBOT LOVES YOU

duck monster
Dec 15, 2004

Helicity posted:

No it doesn't, but a full blown SQL server is overkill for what is essentially storing values in a set. I mean if you really want to go that route I always say use Postgres until it hurts. Redis wouldn't be a horrible choice here either, since you're not messing with clustering and it has a built in set data type.

SQLite is similar to RocksDB in mechanics but still has the unnecessary relational stuff on top.

Django and optionally something like Vue if you want to treat the back end purely like an API is a rather common solution and should have plenty of examples around.

NoSQL databases really ought be considered last resort for the specialised cases where they are better (graph data, heirachical data, and failed DB theory in uni). SQLite is a great choice for small dtasets.Regardless, Django doesn't work with hipster databases, it requires a relational backend.

duck monster fucked around with this message at 16:11 on Oct 10, 2019

  • 1
  • 2
  • 3
  • 4
  • 5
  • Post
  • Reply