I really like the little outline ruler to the right of the scroll bar in Eclipse, where it will show you where in the file you have a //TODO or if you highlight a variable name it will mark all occurrences of it in the file on the ruler. I'd like to be able to do this for javascript as well. I tried the JSDT plugin for eclipse but it doesn't seem very good. Is there maybe a Outline Ruler like plugin for Notepad++?
|
|
# ? Aug 27, 2009 17:12 |
|
|
# ? May 14, 2024 01:46 |
|
I have a javascript function fired by the onclick of a listbox. It works fine in all browsers except IE6. In IE6 it lags (i.e. you click on one item, nothing happens, click on another item, it reacts like you just clicked the first time) -- however, if I add an alert() to the function it works fine every time. I don't know if the code is relevant, since this is more IE being loving-insane than code-specific, but here's the code. Works fine if I uncomment the alert line, and totally hosed if it's not there or commented out. What the crap is going on? Anybody run into something like this before? I loving hate IE6. Forget it, I 'figured it out' by adding a delay to the onclick. I loving hate IE6. wrok fucked around with this message at 13:35 on Aug 28, 2009 |
# ? Aug 28, 2009 13:32 |
|
Have you tried onChange instead of onClick? Seems like that would work better anyway since it would catch when arrow keys are used to change the selection.
|
# ? Aug 28, 2009 17:54 |
|
What's the safest way on Linux or Cygwin to determine the availability of a link library? Basically I have a module that uses libbfd to extract debugging information from an executable, and in order to use all the symbol table routines I also have to link to libintl and libiberty. This works fine on Cygwin, but apparently on Linux now libintl has been folded into glibc, so on those systems I don't want to try to do a -lintl during my build. The naive solution would be to just search /usr/lib for the file, but I need to make sure I'm searching the entire library path that gcc might get its libraries from. On the other end of the spectrum is some craziness like this: echo "int main() { return 0; }" | gcc -xc++ -o /dev/null - -lintl 2>/dev/null and checking the process's exit status to determine if it failed or not. Is there a better way? (I also get the feeling that "-o /dev/null" only does what it does as a happy side-effect, based on some old posts I read about Linux kernel unit tests... I'd hate for some idiot to run this as root.)
|
# ? Aug 30, 2009 16:09 |
|
nevermind
me your dad fucked around with this message at 11:48 on Sep 1, 2009 |
# ? Aug 30, 2009 19:18 |
|
Flobbster posted:What's the safest way on Linux or Cygwin to determine the availability of a link library? If it's a dynamic library (.so), couldn't you just use dlopen?
|
# ? Aug 30, 2009 19:19 |
|
litghost posted:If it's a dynamic library (.so), couldn't you just use dlopen? No, it's a static library (.a). I want to be able to do this with the standard tools that are available on Linux and Cygwin because it needs to run from Java on either of those systems (it's an Eclipse plug-in that interacts with their C development tools... don't ask.)
|
# ? Aug 30, 2009 20:46 |
|
Then why not just use autotools?
|
# ? Aug 30, 2009 20:58 |
|
Avenging Dentist posted:Then why not just use autotools? Because I've never used those tools directly (just from running pre-existing configure scripts), so I wasn't really sure what I was looking for. Thanks for the pointer, I should be able to piece something together using autoconf.
|
# ? Aug 30, 2009 21:28 |
|
Avenging Dentist posted:Then why not just use autotools?
|
# ? Aug 31, 2009 00:27 |
|
Does anybody know of a good 3D geometry library? I'm basically just looking for something that will let me do boolean geometry operations on polyhedra. This isn't for graphics, so I don't need lightning-fast calculation so much as ease of use and functionality. It can't be GPLed (and probably not LGPLed either), although it doesn't need to be free.
|
# ? Sep 2, 2009 00:03 |
|
I'm trying to write a custom code profiler using the /Gh and /GH compiler options in Visual Studio. The problem I'm running into is that if a C++ exception is thrown and the stack is unwound to an exception handler, _pexit never gets called for some functions. Is there any way to explicitly arrange for my code to be called during stack unwinding, the way destructors for local variables magically get called?
|
# ? Sep 2, 2009 06:48 |
|
It's a really dumb question, but is there any difference between using != and <> for testing inequality? Specifically in SQL. It doesn't look like it based on googling, but my boss tutted at me for daring to use !=.
|
# ? Sep 2, 2009 14:08 |
|
Flamadiddle posted:It's a really dumb question, but is there any difference between using != and <> for testing inequality? Specifically in SQL. It doesn't look like it based on googling, but my boss tutted at me for daring to use !=.
|
# ? Sep 2, 2009 15:09 |
|
Flamadiddle posted:It's a really dumb question, but is there any difference between using != and <> for testing inequality? Specifically in SQL. It doesn't look like it based on googling, but my boss tutted at me for daring to use !=. I don't think the MySQL manual could do any more to say they are the same (to MySQL) without adding flashing red text that says so: http://dev.mysql.com/doc/refman/5.0/en/comparison-operators.html#operator_not-equal
|
# ? Sep 2, 2009 15:13 |
|
It's MSSQL. Thanks for the links. I tried googling, but it's not so useful when searching for symbols.
|
# ? Sep 2, 2009 16:24 |
|
GrumpyDoctor posted:Does anybody know of a good 3D geometry library? I'm basically just looking for something that will let me do boolean geometry operations on polyhedra. This isn't for graphics, so I don't need lightning-fast calculation so much as ease of use and functionality. It can't be GPLed (and probably not LGPLed either), although it doesn't need to be free.
|
# ? Sep 2, 2009 20:46 |
|
tripwire posted:Hyperfun.
|
# ? Sep 2, 2009 23:02 |
|
Does anyone know of a good C/C++ API for working with a Tablet PC? Something that lets me get access to both the stylus and the touchscreen, as well as able to poll if either is available ( since some PCs would have just a touchscreen, some just a stylus, and ideally both! ) Also something that's hardware/OS agnostic would be nice. My search for such an API is somewhat troubled - there's talk of such-and-such works under XP Tablet Edition but not any other XP, some things just for Vista, some things just for Windows 7, etc. That's not very handy. I know of JPen, which does what I want for the stylus, but it's in Java and I don't think is able to differenciate between the touchscreen and the mouse ( but I'd recommend it to anyone in need of something like it! ) If it can read in the mouse and keyboard too, that would be golden. Just something that spouts out a stream of "x did y" where x is keyboard/mouse/touch/stylus and y is clicked/moved/hovered/touched/stylus-lifted/stylus-pressed/stylus-inhover/stylus-outhover. And some other things like pen pressure. Or might I just be dreaming of such a thing?
|
# ? Sep 3, 2009 13:49 |
|
It probably doesn't help you at all, but modern Linux exposes all input sources as separate /dev/event devices, which have a fairly straightforward protocol to understand. In order to decide which event device corresponds to which input source, you'd need to deal with dbus and query hal, but that's not too hard. It's not really a nicely-packaged API, though, and it's extremely Linux specific, but the essentials of what you're asking for does exist.
|
# ? Sep 3, 2009 19:33 |
|
I have written a C++ program using the nCurses library. It works perfectly on some computers, it's completely garbled on others -- but only when I attempt to resize -- before I resize they're all working perfect. All I'm doing is when data is pumped in, I check the height/width of the terminal, and put text on the screen based on that. I'm not doing anything fancy with events, all my code is based on the height/width global variables. All the computers are being connected to via putty, but run a variety of versions of Linux. How do I begin to debug this? Is there a good document/FAQ out there on exactly how terminal information is stored? Is there a way to do an ugly hack and force nCurses to use "putty" as the terminal?
|
# ? Sep 4, 2009 23:52 |
|
Garbled, how? Is it a formatting issue (ie. correct characters not in the expected place) or are even the characters completely off? What are the differences between the computers that poo poo the bed and the ones that don't In any event, without seeing code, it's hard to tell what the issue is. Maybe post the contents of your SIGWINCH handler? also, "putty" is not a terminal type, so ncurses doesn't know anything about it. edit: I just reread your post. Chuu posted:All I'm doing is when data is pumped in, I check the height/width of the terminal, and put text on the screen based on that. I'm not doing anything fancy with events, all my code is based on the height/width global variables. In any event, post the relevant code, look up Unix signals, and implement a SIGWINCH handler. Even if this isn't the cause of your problems, you'll be one step closer to having a reasonably-well written program. Dijkstracula fucked around with this message at 14:44 on Sep 5, 2009 |
# ? Sep 5, 2009 14:32 |
|
The forums would be forever grateful if someone would code up a greasemonkey script that combats image spamming. Can anyone point me in the right direction?
|
# ? Sep 6, 2009 17:22 |
|
politicorific posted:The forums would be forever grateful if someone would code up a greasemonkey script that combats image spamming. Sure. http://www.microtoolsinc.com/Howsrs.php
|
# ? Sep 6, 2009 17:27 |
|
I've had a problem with one of the batch scripts I'm working with. I had a variable with a null value, and when I called the variable it killed the process. I had a process write a new .bat file which just declared a variable, so I could call it later on. However I made a mistake and the batch file would come out like this:code:
code:
|
# ? Sep 7, 2009 11:14 |
|
Your label is LABLE1 (E and L wrong way around) and your jump is to LABEL1 (E and L correct way around). I have no idea what the semantics are when you tell it to jump to a label that doesn't exist so don't know if that's your problem, though.
|
# ? Sep 7, 2009 13:54 |
|
zootm posted:Your label is LABLE1 (E and L wrong way around) and your jump is to LABEL1 (E and L correct way around). I have no idea what the semantics are when you tell it to jump to a label that doesn't exist so don't know if that's your problem, though. That's not it, I just mistyped there. I'm using different variable and label names in the real script.
|
# ? Sep 7, 2009 14:12 |
|
If I remember correctly, to test for an empty/undefined variable in MS-DOS batch files, you do something like this: IF %VARIABLE%x == x where x is just a nonce appended to the variable because empty variables aren't handled very gracefully (as you've seen).
|
# ? Sep 7, 2009 20:17 |
|
ShoulderDaemon posted:It probably doesn't help you at all, but modern Linux exposes all input sources as separate /dev/event devices, which have a fairly straightforward protocol to understand. In order to decide which event device corresponds to which input source, you'd need to deal with dbus and query hal, but that's not too hard. Anyway, I'm posting again to note that I solved my problem by using Microsoft's RealTimeStylus interface. I decided on using it after seeing this page, as it's pretty much exactly what I needed. It provides that nice OS-supported layer of abstraction that's supposed to work on XP, Vista, and 7, and supports all the things I needed. I quickly wrote up a test app that you move around different boxes if you were using the mouse, the touch screen, hovering the pen, writing with the pen, hovering the eraser, or erasing with the eraser. Works good. Except that it's part of Microsoft's COM bullshit and I had a hell of a time figuring that out from nothing. ( You need to #include things in the right order, I'd rather not see another CLSID or IID ever again, oh god ) There isn't a whole lot of examples of people using it, and the ones that are out there are often for .NET. There is a very useful example project in the Windows Platform SDK, though, and I referenced enough obscure code snippets from the bottom of the Google barrel to get everything working.
|
# ? Sep 8, 2009 08:58 |
|
Mario posted:If I remember correctly, to test for an empty/undefined variable in MS-DOS batch files, you do something like this: Sorry, I'm guessing "nonce" means something very different where you are. That's great, anyway, but it's strange, I've inherited a lot of old scripts that use IF %VARIABLE% == "" with no ill effects that I've seen.
|
# ? Sep 8, 2009 10:47 |
|
BizarroAzrael posted:Sorry, I'm guessing "nonce" means something very different where you are. This is more what I was thinking.
|
# ? Sep 8, 2009 17:01 |
|
I have a quick question for those already in the field as professional programmers. I'm in my last year of school for an undergrad degree in CS, and I'd like to get a job as a programmer after graduation. Aside from the actual cs classes that are math/theory, most of the implementation classes are in desktop application programming in Java. Outside of coursework, I'm trying to learn other languages and technologies, and I wanted to ask whether you guys think there will be more need for desktop application programmers, or for web application programmers/web developers. I hope to be skilled at both eventually, but is there one that I should be focused on learning more than the other in regards to getting a job?
|
# ? Sep 9, 2009 05:29 |
|
fge posted:web application programmers The demand for this in Java is something like 100 times the demand for desktop Java in my experience. Unless you're a Swing specialist, you're almost certainly going to be working with some web framework or another. Though there are occasional internal business application developers farting around, most of them end up using a web framework anyway.
|
# ? Sep 9, 2009 07:41 |
|
This should be pretty simple, I want a script to rename any file within a directory with another extension:code:
Edit: Got it. Apparently there is weirdness with the way it handles files with two extensions code:
BizarroAzrael fucked around with this message at 15:45 on Sep 9, 2009 |
# ? Sep 9, 2009 14:24 |
|
Wait! I've got another one! I have a script calling other scripts and directing the output to a .txt rather than the prompt: code:
I hoped to make things tidier by doing this: code:
|
# ? Sep 9, 2009 16:22 |
|
BizarroAzrael posted:
I'm not up with DOS programming, but putting something in quotes probably makes it so nothing inside will be interpreted as a command.
|
# ? Sep 9, 2009 16:25 |
|
yatagan posted:I'm not up with DOS programming, but putting something in quotes probably makes it so nothing inside will be interpreted as a command. Sorry, forgot to mention I tried with and without.
|
# ? Sep 9, 2009 16:34 |
|
BizarroAzrael posted:Sorry, forgot to mention I tried with and without. In most languages, control characters and statements won't ever get parsed as commands when they're inside a variable. On your specific problem, check out this page: http://www.robvanderwoude.com/redirection.php It looks to me that you're redirecting standard out to the logfile, but then you redirect standard out to standard err which is then printed to console. Try ending the original command with 2>&1 instead of 1>&2.
|
# ? Sep 9, 2009 16:39 |
In the rotation component of DES, does each key (K[1] - K[16]) rotate from the PC-1 transformed data, or from the previous K? I.E. does K[2] rotate twice, (once for K[1] and the again?) or once? Does K[3] rotate four times (once for K[1], once for K[2], twice again?) or once? Ninja edit: On a similar note, is the input to K[2] the PC-2 shifted K[1] or the PC-1 shifted data? Really, I'm wondering if each key is independently generated, or if K[1] plays a roll in K[>1]. EDIT 2: Grammar. Jo fucked around with this message at 05:12 on Sep 11, 2009 |
|
# ? Sep 11, 2009 05:08 |
|
|
# ? May 14, 2024 01:46 |
|
Why are you implementing DES? (I would have thought the diagrams of keyscheduling on wikipedia would be enough to answer your questions)
|
# ? Sep 11, 2009 11:10 |