|
^^^ Apparently there is an extra parameter to let you control that behaviour? http://msdn.microsoft.com/en-us/library/ef48waz8.aspx
|
# ¿ Jan 28, 2009 19:23 |
|
|
# ¿ May 15, 2024 18:23 |
|
I would probably just do something silly like (int) (val * 100 + 0.5) / 100.0, but then again, no one is paying me to write decent C#.
|
# ¿ Jan 28, 2009 19:37 |
|
Bonus posted:Wow, what a substantiated claim. Those are probably exactly what you want. Well, at least half of them is not what you want.
|
# ¿ Feb 12, 2009 13:29 |
|
nasoren posted:Whoa look at all this thin ice we're on gently caress I tried to make a joke about how we better avoid emacs in that case but then I accidentally opened emacs and :q! is not doing anything
|
# ¿ Feb 12, 2009 14:09 |
|
Vince McMahon posted:However, some users click "save image as" instead and end up just getting the thumbnail. Perhaps you can replace the thumbnail imgs with divs with the thumbnail as background image so that no "save image as" option appears to begin with?
|
# ¿ Apr 22, 2009 18:27 |
|
Pipe it through lynx --dump
|
# ¿ May 6, 2009 16:02 |
|
Well, the compiler cannot actually inline them if there is no definition available in the translation unit in which they are used.
|
# ¿ May 12, 2009 23:15 |
|
ShoulderDaemon posted:Yeah, you're right. Javascript has crazy scoping. In this case, at least, the distinction doesn't really matter. It matters if you want to return more than one closure. code:
|
# ¿ Jul 21, 2009 18:54 |
|
EscapeHere posted:So, anybody have any clue what is going on here? You are invoking undefined behaviour in a way that is not immediately obvious from the lines of code you posted.
|
# ¿ Aug 10, 2009 17:38 |
|
It should be relatively easy to transform that to a representation that excel will eat up. Can you run a regexp over it or something? What format would that last column ideally be in? Edit: Maybe you can just have excel ignore the last column and use the line number instead to recalculate the time of each line if that is easier. Vanadium fucked around with this message at 00:06 on Sep 24, 2009 |
# ¿ Sep 24, 2009 00:02 |
|
Using String#scan?
|
# ¿ Dec 18, 2009 23:51 |
|
I want to throw my hands into the air and scream about the monomorphism restriction, but I am not entirely sure
|
# ¿ Feb 16, 2010 10:47 |
|
Sweeper posted:I am getting a strange error when I compile under linux (kubuntu in VM) with a project that works on Windows and Linux. windows.h defines min and max as macros because it is retarded, maybe you are indirectly including that or something else that is as stupid. You are apparently defining NOMINMAX to avoid that, but it loks like you are doing things in C++ and only setting that for C or something. Not sure. Vanadium fucked around with this message at 21:18 on Feb 16, 2010 |
# ¿ Feb 16, 2010 21:15 |
|
Sweeper posted:It compiles under windows without error or warning, but it fails under Linux, does Linux have a Windows.h somewhere that it includes? If so I will look to see if my project includes it and put an #ifndef or something around it. Just guessing here, maybe the SDK headers include a copy or something. Can you search them for #define max or something?
|
# ¿ Feb 16, 2010 22:44 |
|
Why are we not using seq here? seq --format=%010g 1 100000 or whatever number.
|
# ¿ May 28, 2010 17:33 |
|
Guessing for i in range(len(list)): if list[i] < 0: list[i] += 180 but i know literally nothing about python
|
# ¿ Jul 17, 2010 04:11 |
|
Look Around You posted:Hey guys, I was wondering where I could find some programming exercises http://code.google.com/codejam/contests.html and http://www.facebook.com/careers/puzzles.php have a bunch of not-so-trivial problems to solve, maybe they are fun! quote:Also, I'd like to learn some GUI frameworks if there's anything on those (Cocoa, GTK+, etc.). I think the best you can do here is working through their non-reference documentation (like the free Gtk+ "book"), then imitating how other people do things in the framework.
|
# ¿ Jul 21, 2010 14:20 |
|
Gtk+ is the only gui framework that does not make me tear my hair out five minutes into it. It takes at least half an hour or so.
|
# ¿ Jul 21, 2010 16:04 |
|
I honestly do not do much with it and can see how it is a great deal inconvenient, and no, I do not like glade either. I like the gtkmm API and most other language bindings a great deal more than other frameworks', and Gtk+ seems to do a bunch more plumbing for me like properly layouting poo poo or dealing with fonts and whatnot.
|
# ¿ Jul 21, 2010 18:40 |
|
Just use std:: everywhere, then you do not have to remember to put the using thing elsewhere.
|
# ¿ Jul 23, 2010 15:09 |
|
Well, Forms is a .net thing and C++/CLI is the extension that lets C++ talk to .net things directly. I guess you will have to tell visual studio you want to make a winapi project or something stupid instead.
|
# ¿ Aug 1, 2010 14:02 |
|
Smugdog Millionaire posted:Alright I'll take another swing at explaining myself. yeah, and what if I have a square class and want to make a rectangle class, it makes more sense to just inherit from the square and add another diameter or whatever
|
# ¿ Sep 3, 2010 22:49 |
|
.chr a number and it becomes a one-character string!!
|
# ¿ Sep 23, 2010 23:09 |
|
If you do not release your thing under AGPL v3 you are literally Steve Ballmer
|
# ¿ Sep 25, 2010 00:46 |
|
http://libsigc.sourceforge.net/
|
# ¿ Oct 14, 2010 15:59 |
|
Aluminum Record posted:It works perfectly fine. Generally you post the code that does not.
|
# ¿ Oct 24, 2010 21:03 |
|
At a guess, argv is a list, so you have to do [script, first, second, third] = argv so that there is a list on either side.
|
# ¿ Dec 26, 2010 19:23 |
|
Rampager posted:I'm going to ask a possibly really stupid question but my curiousity demands answers. I realise that this might not be the best place for it. I guess a bunch of programming languages explicitly allow unicode symbols, but, as a German, I get unreasonably annoyed when I have to read code with German comments in it, let alone German identifiers. Also my dictionary did not have "malloc" in it anyway so I did not feel disadvantaged there at all.
|
# ¿ Dec 29, 2010 11:09 |
|
I bet it would be even faster and easier to understand if he rewrote it in C.
|
# ¿ Jan 15, 2011 15:48 |
|
He doesn't have to. The license doesn't apply to the dude who wrote the code, it's about the terms under which he allows you to redistribute it.
|
# ¿ May 24, 2011 18:32 |
|
I think this instead of "..." should do what you want? [A-Z]{2,3}
|
# ¿ Sep 29, 2011 22:01 |
|
import List "aA1w">>=(++"\n").intersperse '\t'.take 4.iterate succ
|
# ¿ Nov 2, 2011 14:52 |
|
Guys, I can't get into #cobol, what's the deal with synirc?
|
# ¿ Nov 28, 2011 16:20 |
|
Taking this here from the screenshots-of-your-projects thread.Suspicious Dish posted:
I and some dude in the #gtk+ channel found that this only prevents the window from receiving clicks and short of also making that part of the window invisible the clicks won't be passed to windows behind mine. I know Gtk+ isn't too popular around these parts, but does anyon have any clue how to get a Gtk window to not be invisible but pass clicks through to the window of another process in the background that it covers? I don't even want this to run anywhere but a recent X on linux but doing the xlib stuff myself sounds like a bunch of stuff to learn without even knowing whether it'll get me anywhere. Edit: Here's my sample that doesn't work. https://gist.github.com/1528915 Edit: My window manager was doing it wrong and I needed gdk_window_set_override_redirect() to tell it to step off. Thanks, Suspicious Dish! Vanadium fucked around with this message at 22:25 on Dec 28, 2011 |
# ¿ Dec 28, 2011 21:17 |
|
pokeyman posted:I'm surprised I've never heard of an intro programming course doing stuff in the browser, maybe using something like Processing. It (anything in the browser) is shareable, it's the best REPL you can get, it can do graphics without dickery, and it should score high marks in co-op interviews. It's not a real programming course but there was this: http://cdsmith.wordpress.com/2011/08/16/haskell-for-kids-week-1/
|
# ¿ Feb 23, 2012 22:41 |
|
oRenj9 posted:I only really use ternary operators for conditional assignments to the same variable, only because they are more clear and concise. Dude in the OP could be using Constant[home_team.score > away_team.score ? :HomeTeamWin : home_team.score < away_team.score ? :AwayTeamWin : :Tie], that's about the same thing, right. Wouldn't want to have to type the Constant[ ] thing more than once. Edit: How about the good old spaceship operator!! code:
Vanadium fucked around with this message at 05:41 on Mar 7, 2012 |
# ¿ Mar 7, 2012 05:38 |
|
yo, if I feel like I finally need to get in on all that sort of stuff, is the ~Dragon Book~ still the right place to start?
|
# ¿ Mar 21, 2012 00:36 |
|
If you do something like (\d\d )+ depending on the regex library you'll be able to get multiple captures for a single grouped subexpression.
|
# ¿ Mar 29, 2012 19:05 |
|
tef posted:My email address has puny code in it We really need a new internet standard specifying a more limited grammar for valid email addresses so that we can finally explain the regexes to match valid emails in unironic tutorials!
|
# ¿ Jun 18, 2012 19:15 |
|
|
# ¿ May 15, 2024 18:23 |
|
Does this help? http://en.wikibooks.org/wiki/Ada_Programming/Installing
|
# ¿ Aug 1, 2012 02:39 |