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
shrughes
Oct 11, 2008

(call/cc call/cc)

coffeetable posted:

Ah, sorry. I meant L = { M : for all inputs x, M(x) halts in 100|x|^2 + 200 steps }.

I have no idea what you want to do with diagonalization. Instead, you should show that if L is decidable, then a decider for L could be used to solve the halting problem.

Adbot
ADBOT LOVES YOU

Troyo
Jun 2, 2010
Hey guys,

I am considering learning how to code. I have no experience in this field.

I own an online business, a few other websites, and am planning on starting a very large project within the next 6-12 months, which everything else would take a backseat to. This project would certainly require a full-time coder.

The problem is that while I'm not broke, I am hesitant to use a lot of my resources to outsource something like this again. I've had two different coders and two site designers do my other projects and I haven't had the greatest experience. It's been expensive and time consuming.

If I were to start now, and put a ton of effort into learning this stuff, would I be able to be competent enough in six months' time to create a somewhat coding-intensive website myself? I'd imagine it would be similarly difficult to coding a simple forum from scratch.

Right now my websites are essentially side sources of income (although the markets they are in have been doing spectacularly awful this year) and my main source of income is playing online poker. I am making between $100-$150 an hour as a poker player, but if it's worth it to learn the "hacker" trade, I can sacrifice a substantial amount of time to do so. If not, I would bite the bullet and outsource the coding again.

Lastly, I'll very likely start more websites in the future, so perhaps this is a valuable time investment. Any advice is appreciated.

Avenging Dentist
Oct 1, 2005

oh my god is that a circular saw that does not go in my mouth aaaaagh
Read this article: http://norvig.com/21-days.html

coffeetable
Feb 5, 2006

TELL ME AGAIN HOW GREAT BRITAIN WOULD BE IF IT WAS RULED BY THE MERCILESS JACKBOOT OF PRINCE CHARLES

YES I DO TALK TO PLANTS ACTUALLY

shrughes posted:

I have no idea what you want to do with diagonalization. Instead, you should show that if L is decidable, then a decider for L could be used to solve the halting problem.

well drat. it was at the end of a chapter on diagonalization, so my silly mistake was getting tunnel vision.

thanks :)

coffeetable fucked around with this message at 08:47 on Jun 8, 2010

shrughes
Oct 11, 2008

(call/cc call/cc)

Avenging Dentist posted:

Read this article: http://norvig.com/21-days.html

This is not even close to relevant.

Janitor Prime
Jan 22, 2004

PC LOAD LETTER

What da fuck does that mean

Fun Shoe
Well it is if he doesn't want to create a ton of sites that aren't full of SQL and XSS vulnerabilities, otherwise sure he can learn to code in 6 months.

chocojosh
Jun 9, 2007

D00D.
Any UI patterns/tips/research on how to handle applications for non-technical users who want lots and lots of options/settings/configuration?

Our clients want EVERYTHING as a setting. Of course, users want everything. And I have no problem programming the options. But, we have mainly non-technical users, some of whom find computers very intimidating (even if I judge from our internal customer representatives).

We do custom installations with support and training (i.e. our customers number in the hundreds, not the millions). We're considering having preset groups of options that our support tech can configure for the clients. I'm also wondering if it is a good idea to have a "basic settings" and an "advanced settings".

chocojosh fucked around with this message at 15:33 on Jun 8, 2010

tef
May 30, 2004

-> some l-system crap ->

chocojosh posted:

Any UI patterns/tips/research on how to handle application for non-technical users who want lots and lots of options/settings/configuration?


Hit them with a stick, until they achieve enlightenment

Lumpy
Apr 26, 2002

La! La! La! Laaaa!



College Slice

chocojosh posted:

Any UI patterns/tips/research on how to handle applications for non-technical users who want lots and lots of options/settings/configuration?

Our clients want EVERYTHING as a setting. Of course, users want everything. And I have no problem programming the options. But, we have mainly non-technical users, some of whom find computers very intimidating (even if I judge from our internal customer representatives).

We do custom installations with support and training (i.e. our customers number in the hundreds, not the millions). We're considering having preset groups of options that our support tech can configure for the clients. I'm also wondering if it is a good idea to have a "basic settings" and an "advanced settings".

Tough to answer without knowing a LOT more about your industry, product, and customers, but I design UIs for a group of people who are generally below "average" ( and 'average' is setting the bar very low ) when it comes to technology, and what works for me is:

1. Have as few options as humanly possible showing. Only put what 90% of users want to change each time they use the software. It's very often that this means showing NO options, assuming you have sane defaults that *most* users will use. If users set an option once and tend to leave it alone, hide it. If 95% of your users use the same setting, set it to that and they never need to see it. If that setting will depend on the individual ( i.e. many users have a need for different defaults), show it to them the first time they use the software, let them set it, tell them they can change it later if they want ( with instructions on how to do so ) and then hide it.

2. Find what subset of options most users will change over their usage, but change infrequently. These are your "easy to find" options. There is a button / link / whatever that reveals this ( generally small ) subset of options. There is also a link / button / whatever to "Advanced Options" with scary sounding 'you will be baffled and confused by this crap' text that gets them to the set of everything.

Obviously this will require either lots of data on how people are currently using the product, or user testing for something new. If 90% of your users change 90% of the options frequently, then you have a fun design challenge ahead of you! Just remember: an interface is improved by REMOVING things, not by adding stuff.

Troyo
Jun 2, 2010

shrughes posted:

This is not even close to relevant.

Where should I start? Perhaps I should learn the basics then determine whether I'd like to continue with the endeavor?

The Gate of Nanna
Sep 20, 2008

:c00l: My Editor :c00l:
I know nothing about compiling things on Windows, but I do have the full source code to a small C GUI program which needs some headers generally found in things like Visual Studio. Is there any quick and painless ways to compile something for Windows without having to shell out for Visual Studio?

Mustach
Mar 2, 2003

In this long line, there's been some real strange genes. You've got 'em all, with some extras thrown in.
The Windows API is free and so is Visual C++ Express.

the talent deficit
Dec 20, 2003

self-deprecation is a very british trait, and problems can arise when the british attempt to do so with a foreign culture





Troyo posted:

Where should I start? Perhaps I should learn the basics then determine whether I'd like to continue with the endeavor?

Read through something like http://www.djangobook.com/

If you can make sense of it, give it a shot.

Contra Duck
Nov 4, 2004

#1 DAD

Troyo posted:

Where should I start? Perhaps I should learn the basics then determine whether I'd like to continue with the endeavor?

If you decide to it yourself you will be trusting the coding of your project to a person with only 6 months of textbook learning and no professional experience behind them. That does not sound like a good idea to me.

notMordecai
Mar 4, 2007

Gay Boy Suicide Pact?
Sucking Dick For Satan??

Another question from me for the people familiar with IBM DB2 and stuff like that-

How hard is DataStage to use for someone who has never worked with databases?

ToxicFrog
Apr 26, 2008


The Gate of Nanna posted:

I know nothing about compiling things on Windows, but I do have the full source code to a small C GUI program which needs some headers generally found in things like Visual Studio. Is there any quick and painless ways to compile something for Windows without having to shell out for Visual Studio?

If you're used to a *nix development environment, MinGW provides a make/gcc/bash build environment with the w32api headers and libraries preinstalled. If you're actually on linux, this makefile will download and build a linux-host, windows-target gcc4 cross compiler, again with the w32api headers and libraries (grab the development version or you'll have to download some of the parts yourself, mingw changed their download URLs since the last release). In either case you can add more windows libs just by putting the headers in include/ and the .dll/.a/.lib files in lib/.

I'm given to understand that there's also a free version of Visual Studio (VS Express?) which you could use if you don't feel like using gcc, but not having used it myself I can't tell you anything about it.

wasabimilkshake
Aug 21, 2007

North Carolina votes yes.
A small C++/Visual Studio question: Does VS9 perform arithmetic on straight-up constants at compile-time? For example, OpenGL measures rotation in degrees, whereas the physics library I'm using measures it in radians. If I want to do something like this:

mRotation = (mpBody->GetAngle() * (180.0f / M_PI)) % 360.0f;

Is the compiler smart enough to simplify 180/pi to 57.2957795 when it compiles, or do I have to declare ONE_EIGHTY_OVER_PI as a constant to avoid the extra instructions at runtime?

Avenging Dentist
Oct 1, 2005

oh my god is that a circular saw that does not go in my mouth aaaaagh
In general, compilers do not fold floating-point constants (VS2010 might, due to changes in the C++ standard). If you actually care, and you shouldn't right now, check the assembly code generated by the compiler. You'd probably be better spending your time working on other stuff though, instead of worrying about micro-optimizations (unless you've already profiled your code and know that this is taking a large percentage of your CPU time).

Rusty Kettle
Apr 10, 2005
Ultima! Ahmmm-bing!
I asked a question in the "C and C++ General Questions" thread and no one really responded, so I figure I'll repeat my question here, with the additional subquestion of whether or not a poorly made Makefile would cause a segmentation fault.

Rusty Kettle posted:

Quick question, hopefully.

I am trying to install MPICH2 on my mac to use with gcc. I have gone through the installation guide and have executed their example executable that approximates pi. However, when I attempt to compile and run a helloworld program, I get segmentation fault errors alerting me that an address is not mapped.

The exact code and command line inputs are at the linked site. Error can be supplied, but I do not know how much information it contains.

rjmccall
Sep 7, 2007

no worries friend
Fun Shoe

Avenging Dentist posted:

In general, compilers do not fold floating-point constants (VS2010 might, due to changes in the C++ standard).

I'm not sure where you're getting this. This is really a very common optimization; I don't have a copy of VS to test with, but both gcc and clang fold wasabimilkshake's constant at -O1. The gotchas are:

- Programmers need to be careful about order of operations because compilers usually can't re-associate FP operations. blah * (180f / M_PI) can be folded, but blah * 180f / M_PI can't.

- The compiler has to simulate FP arithmetic on the target architecture, so if you're cross-compiling, sometimes you lose optimizations because the host system isn't quite sure what to do.

- A lot of compilers for embedded systems are total crap and don't actually do any optimization.

Avenging Dentist
Oct 1, 2005

oh my god is that a circular saw that does not go in my mouth aaaaagh

rjmccall posted:

I'm not sure where you're getting this. This is really a very common optimization; I don't have a copy of VS to test with, but both gcc and clang fold wasabimilkshake's constant at -O1.

What version of GCC? As I recall, before they started working on C++0x support, they didn't do this. Since you have to do this for C++0x, it's obviously going to be the standard going forward.

Partyworm
Jul 8, 2004

Tired of partying
This might be a bit of a weird question, but at what point are you generally allowed to say "I can program" ?

When i first started learning a few months ago (mainly just just to see if i could do it) i thought that if could make a simple program with a user interface that responds to user input, then i'd be able to say 'i can program'. Now that ive done that, and given how easy it was, i still feel like a complete novice (and rightfully so).

Then i thought that if i could make a simple interactive game (no fancy graphics, just nuts and bolts stuff) then i'd be able to say 'i can program'. Ok. done that, and i still feel horribly inadequate as a programmer. It feels like each step i take to get better, i just realise how little i actually know about programming.

I'm trying to get a job in IT at the moment. It's not directly programming related, but it's a job where programming knowledge would be beneficial to have on my CV. At what point is it 'ok' to say i can program on my CV, and not look like a complete idiot if called on it at interview ?

rjmccall
Sep 7, 2007

no worries friend
Fun Shoe

Avenging Dentist posted:

What version of GCC? As I recall, before they started working on C++0x support, they didn't do this. Since you have to do this for C++0x, it's obviously going to be the standard going forward.

Well, with the machines I can ssh to, I can only directly verify it back to gcc-3.4.6 (March 2006), but the old GCC hands here remember when RMS rewrote the FP folding code 10 years ago, so I'm going to say it doesn't have anything to do with C++0x.

It's true that '0x is the first C/C++ standard to codify the idea of a FP constant expression and to mandate folding in certain situations, but the whole reason that's acceptable (†) is that there's decades of compiler support for FP folding, only it's been in optimizers rather than front-ends.

† Not that the C++ committee has ever felt particularly constrained by what the implementors think is acceptable.

pseudorandom name
May 6, 2007

Avenging Dentist posted:

What version of GCC? As I recall, before they started working on C++0x support, they didn't do this. Since you have to do this for C++0x, it's obviously going to be the standard going forward.

Both clang 2.7 and gcc 4.4 do it now.

A random gcc dev I just asked says that gcc has been folding floats since real.c was added in 1993 or so.

Dijkstracula
Mar 18, 2003

You can't spell 'vector field' without me, Professor!

Rusty Kettle posted:

I asked a question in the "C and C++ General Questions" thread and no one really responded, so I figure I'll repeat my question here, with the additional subquestion of whether or not a poorly made Makefile would cause a segmentation fault.

<MPICH question>
OSX comes with OpenMPI, so you've now introduced a second implementation on your machine. Are you sure you're linking against the right MPI, and using the right mpiexec ?

As for the makefile question, I can't think of anything that could be screwed up at the Makefile level that would cause a segfault.

Avenging Dentist
Oct 1, 2005

oh my god is that a circular saw that does not go in my mouth aaaaagh

Dijkstracula posted:

As for the makefile question, I can't think of anything that could be screwed up at the Makefile level that would cause a segfault.

Pointing to the wrong mpicc could do it.

Dijkstracula
Mar 18, 2003

You can't spell 'vector field' without me, Professor!

Avenging Dentist posted:

Pointing to the wrong mpicc could do it.
Ah, true, if you were using the right mpiexec but were using the wrong mpicc, that could do it, too.

Rusty Kettle
Apr 10, 2005
Ultima! Ahmmm-bing!

Dijkstracula posted:

Ah, true, if you were using the right mpiexec but were using the wrong mpicc, that could do it, too.

Oh wow. I didn't think about that. That is a good point.

What is the best way of removing MPICH2, so I can test out OpenMPI without it?

EDIT: Also, the reason I am looking to have both is because I would like fortran support.

Rusty Kettle fucked around with this message at 03:47 on Jun 11, 2010

Aesop
Dec 25, 2005
[deleted]

Aesop fucked around with this message at 17:35 on Sep 7, 2020

Dijkstracula
Mar 18, 2003

You can't spell 'vector field' without me, Professor!

Rusty Kettle posted:

What is the best way of removing MPICH2, so I can test out OpenMPI without it?
probably the same way you installed it :confused: Did you get it from macports or build from source or ...?

Henry Black
Jun 27, 2004

If she's not making this face, you're not doing it right.
Fun Shoe
At the risk of sounding :filez:, can anyone help me with this?

I'm trying to set this up for someone to use as a .sh:

code:
#!/bin/bash

for f in `ls`
do
	mktorrent -p -a "http://1.com" "$f" 
done
When they run it, they get

: command not foundsh: line 2:
'home/Susan/mktorrent.sh: line 4: syntax error near unexpected token `do
'home/Susan/mktorrent.sh: line 4: `do

How do I fix this?

yatagan
Aug 31, 2009

by Ozma
code:
#!/bin/bash

for f in "*"
do
  mktorrent -p -a "http://1.com" "$f" 
done

Henry Black
Jun 27, 2004

If she's not making this face, you're not doing it right.
Fun Shoe
Thanks, but it still produces the same errors as before. :(

This is Ubuntu 10.04 if it makes any difference.

yatagan
Aug 31, 2009

by Ozma

LittleBob posted:

Thanks, but it still produces the same errors as before. :(

This is Ubuntu 10.04 if it makes any difference.

Your bash is different than my bash then. My version works for me with echo instead of mktorrent. What is the error you now get, because your previous error is impossible with my version.

Henry Black
Jun 27, 2004

If she's not making this face, you're not doing it right.
Fun Shoe
It's still this:

Susan@ns211627:~/OCR$ sh ~/mktorrent.sh
: command not foundsh: line 2:
'home/Susan/mktorrent.sh: line 4: syntax error near unexpected token `do
'home/Susan/mktorrent.sh: line 4: `do

yatagan
Aug 31, 2009

by Ozma

LittleBob posted:

It's still this:

Susan@ns211627:~/OCR$ sh ~/mktorrent.sh
: command not foundsh: line 2:
'home/Susan/mktorrent.sh: line 4: syntax error near unexpected token `do
'home/Susan/mktorrent.sh: line 4: `do

That token does not exist in the script... So this is an impossibility if you're running a saved version of my script.

Henry Black
Jun 27, 2004

If she's not making this face, you're not doing it right.
Fun Shoe
I copy pasted your code directly in to nano and saved as mktorrent.sh. This is what I have if I reopen it:

Only registered members can see post attachments!

Dijkstracula
Mar 18, 2003

You can't spell 'vector field' without me, Professor!

I can't tell from the image and don't trust Bash's error reporting to not have off-by-one problems; is the shabang actually on line 1?

Contra Duck
Nov 4, 2004

#1 DAD

LittleBob posted:

It's still this:

Susan@ns211627:~/OCR$ sh ~/mktorrent.sh
: command not foundsh: line 2:
'home/Susan/mktorrent.sh: line 4: syntax error near unexpected token `do
'home/Susan/mktorrent.sh: line 4: `do

Are you sure you're running the right version of the script? It looks like you're in the OCR directory but you're running the script in your home directory.

Contra Duck fucked around with this message at 15:24 on Jun 11, 2010

Adbot
ADBOT LOVES YOU

Rusty Kettle
Apr 10, 2005
Ultima! Ahmmm-bing!

Dijkstracula posted:

probably the same way you installed it :confused: Did you get it from macports or build from source or ...?

I built it from source. The problem is that the "make uninstall" command might end up uninstalling the mpicc, mpiexec, and so on. Really what I want is to revert to OSX's standard OpenMPI, and then try again from there to create a fresh installation of MPICH2 for fortran only. I think my initial error was that I used the default installation that did everything, and that overwrote the OpenMPI binaries or something, which is causing my segmentation fault.

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