|
How aboutcode:
|
# ? Sep 29, 2008 07:00 |
|
|
# ? May 14, 2024 08:47 |
|
That works too I didn't know you could use 'NOT' with REGEXP_LIKE. You know how there's always that one lady in class that talks about her kids/dogs/whatever? This is an online class and one has appeared:
|
# ? Sep 29, 2008 07:49 |
|
I'm not that experienced of a programmer. But I use VB alot at work. For my job I get some of the information I need off a website. On the website there are drop 5 drop down boxes, and a command button to start the query. It just returns one number to the page. I have lists combinations of these boxes I need to manually put in, then click GO. Then write the number in an excel sheet. There must be some way to automate this. The extention of the site is .aspx so thats the microsoft .Net type stuff right? Where would I start to learn how to write something to help me, or is it not possible to do this because of security type stuff? I help take care of a webserver with a webpage that has some feilds you can fill in for feedback. There are spambots that fill in the blanks with garbage all the time, so it must be possible. Just not sure where to start. VB.net maybe?
|
# ? Sep 29, 2008 21:43 |
|
blueninja posted:This is worth its own thread Just to boil it all down, your goals for the client-server communication foundation are:
Is this about right? Rodney Chops posted:I'm not that experienced of a programmer. But I use VB alot at work. For my job I get some of the information I need off a website. On the website there are drop 5 drop down boxes, and a command button to start the query. It just returns one number to the page. I have lists combinations of these boxes I need to manually put in, then click GO. Then write the number in an excel sheet. There must be some way to automate this. Something like AutoIt may be your best bet.
|
# ? Sep 30, 2008 14:57 |
|
Rhusitaurion posted:Question for those familiar with Erlang: ETS table, I think. Probably two, one for ASCII->EBCDIC and one for EBCDIC->ASCII (assuming you need the conversion both ways).
|
# ? Sep 30, 2008 15:04 |
|
csammis posted:Something like AutoIt may be your best bet. Awesome! This is exactly what I'm looking for. Thanks a million.
|
# ? Sep 30, 2008 16:56 |
|
I have some variable names that I want to be clear, but can't find a way to shorten them while still remaining readable.code:
|
# ? Sep 30, 2008 17:04 |
|
pankus posted:I have some variable names that I want to be clear, but can't find a way to shorten them while still remaining readable. code:
As long as you use consistent and non-conflicting abbreviations, and you document them somewhere, you'll be fine.
|
# ? Sep 30, 2008 17:08 |
|
Does anyone know if there is some sort of cool algorithm for cutting up a random convex/concave polygon into triangles in a smart way, or if it's impossible to do automatically?
|
# ? Sep 30, 2008 17:55 |
|
Boz0r posted:Does anyone know if there is some sort of cool algorithm for cutting up a random convex/concave polygon into triangles in a smart way, or if it's impossible to do automatically? If you know that a closed polygon is convex, you can divide it into triangles by just picking a point and drawing segments to all the non-adjacent points. Concave polygons will be a major problem; depending on your application, though, you might be able to use negative polygons to some effect. What are you trying to do?
|
# ? Sep 30, 2008 20:52 |
|
rjmccall posted:If you know that a closed polygon is convex, you can divide it into triangles by just picking a point and drawing segments to all the non-adjacent points. Concave polygons will be a major problem; depending on your application, though, you might be able to use negative polygons to some effect. What are you trying to do? He can just use BSP to transform a concave polygon into a union of convex polygons.
|
# ? Sep 30, 2008 20:56 |
|
csammis posted:This is worth its own thread Just to boil it all down, your goals for the client-server communication foundation are: http://forums.somethingawful.com/showthread.php?threadid=2971766
|
# ? Sep 30, 2008 21:55 |
|
Rodney Chops posted:I'm not that experienced of a programmer. But I use VB alot at work. For my job I get some of the information I need off a website. On the website there are drop 5 drop down boxes, and a command button to start the query. It just returns one number to the page. I have lists combinations of these boxes I need to manually put in, then click GO. Then write the number in an excel sheet. There must be some way to automate this. There might be a few different approaches depending on the website. The common theme is wget and a script (although this is of course not the only possible solution). The easiest one would be if it's a simple GET form in which case you code the selections in the URL and could easily write a script to get the data with wget. The next step up is that it's a POST form which is only slightly more difficult. Again you could use wget only this time you'd encode the selections in a parameter to wget. Then you might need to login and this could either be standard http-login stuff or some cookie based thing. Again, wget can do this. The last and most difficult option is if it's some sort of web2.0 ajax thingy which doesn't refresh the webpage inbetween requests but since you say there is a command button I'd guess it's not this version. Even if it were it'd still be possible but you'd have to use some sort of library send requests and to decode the data returned from them, probably a bit above beginner level. Is there any possibility that we could take a look at the website in question to help decide or is it private stuff?
|
# ? Sep 30, 2008 22:37 |
|
Tolan posted:ETS table, I think. Probably two, one for ASCII->EBCDIC and one for EBCDIC->ASCII (assuming you need the conversion both ways). I had looked into ETS tables, and they looked like a pain in the rear end. What I ended up doing is horribly abusing matching on a 256-byte binary, defined as a constant: code:
|
# ? Oct 1, 2008 00:47 |
|
How do I make a simple 2-column table in CSS? I have a main division, and I have a division for left and right. I put a left in and a right in, then repeat and it seems to work, but Amaya gives me an error about not being able to use the divs more than once. So, I turned them into classes and now it doesn't line up. There has to be an easy way to do something so simple.
|
# ? Oct 1, 2008 05:29 |
|
Dominoes posted:How do I make a simple 2-column table in CSS? I have a main division, and I have a division for left and right. I put a left in and a right in, then repeat and it seems to work, but Amaya gives me an error about not being able to use the divs more than once. So, I turned them into classes and now it doesn't line up. There has to be an easy way to do something so simple. code:
|
# ? Oct 1, 2008 06:11 |
|
Nvm, the class widths were too much, dumb question.
Dominoes fucked around with this message at 06:38 on Oct 1, 2008 |
# ? Oct 1, 2008 06:17 |
|
Dominoes posted:How do I make a simple 2-column table in CSS? I have a main division, and I have a division for left and right. I put a left in and a right in, then repeat and it seems to work, but Amaya gives me an error about not being able to use the divs more than once. So, I turned them into classes and now it doesn't line up. There has to be an easy way to do something so simple. CSS tables are unbelievably lovely. Just forget about trying to use XHTML Strict for now. I'm writing a program that injects a Dll into another process in C. I've got the injector and the dll working fine, I just can't actually figure out how to call the dll's functions. Considering the way that most hits on google gloss over this point, I get the impression that it's really easy using LoadLibrary or GetModuleHandle or something.
|
# ? Oct 1, 2008 08:35 |
|
Is there any way to get sh, in the context of a shell script, to interpret a given string as a variable name. I'm trying to do an assignment like: var1=\$$var2 Where var2 will be a number, so I want to get the var2-th command line argument and store it in var1, yet the code as written acts like var1='$var2' Is there any way to get around this?
|
# ? Oct 1, 2008 14:26 |
|
ante posted:I'm writing a program that injects a Dll into another process in C. I've got the injector and the dll working fine, I just can't actually figure out how to call the dll's functions. Considering the way that most hits on google gloss over this point, I get the impression that it's really easy using LoadLibrary or GetModuleHandle or something. What are you trying to do after injection? Are you attempting to hook calls to another DLL or just execute on your own code? You can't really force a process to call your DLL's functions (well, except DllMain()).
|
# ? Oct 1, 2008 16:25 |
|
PT6A posted:Is there any way to get sh, in the context of a shell script, to interpret a given string as a variable name. I'm trying to do an assignment like: eval "var1=\$$var2" works, but I'm sure there's a better way.
|
# ? Oct 1, 2008 17:04 |
|
PT6A posted:Is there any way to get sh, in the context of a shell script, to interpret a given string as a variable name. I'm trying to do an assignment like: Maybe something like this? code:
./skipvar.sh a b c e d f g I skipped a Looking for b
|
# ? Oct 1, 2008 17:05 |
|
My question pertains to excel VBA. If I had a 35000-entry list of records in the following form: Author / Editorial Position ...and wanted to parse the sheet for the number of times each author's name occurred under a specific position (there are only three or four types of positions), is there a simple macro/vba based way to do it? I'd like the results to look like this. Author_1 / Editorial_Position1: 42 Author_1 / Editorial_Position2: 9 Author_2 / Editorial_Position1: 10 Author_2 / Editorial_Position2: 0 Author_2 / Editorial_Position3: 5 . . . Author_N / Editorial_Positiona: aCount Author_N / Editorial_Positionb: bCount If this isn't feasble, any other ideas? Thanks a TON!
|
# ? Oct 1, 2008 22:39 |
|
Plastic Jesus posted:What are you trying to do after injection? Are you attempting to hook calls to another DLL or just execute on your own code? You can't really force a process to call your DLL's functions (well, except DllMain()). I'm trying to pass variables to a function in my Dll. One way or another I need to get my program and the injected Dll communicating.
|
# ? Oct 2, 2008 01:33 |
|
I'm thinking about writing a program in Java that parses local files, then submits some of that info to a form on a website, then parses the resulting returned webpage for some info and outputs it (command line or GUI is fine). What's a good starting point for that? I'm well versed in regexps and Java in general, just not sure what I should be looking at for the part where it has to enter the info on the website and "submit" it. Alternately, I could do this in Perl. I'm less familiar with Perl, but I can do the regexp stuff.
|
# ? Oct 2, 2008 07:21 |
|
You don't actually have to fill out forms. All it has to do is make a HTTP POST request that contains all the same data that a request made from the form would. Use the Firefox extension live http headers to see what the POST request looks like when you fill out and send that form and to which URL it is made. Then just make a POST request to the same URL with the same POST data from your Java code. As to how you make a POST request from Java, I wouldn't know exactly.
|
# ? Oct 2, 2008 10:23 |
|
CryptoDerk posted:Alternately, I could do this in Perl. I'm less familiar with Perl, but I can do the regexp stuff. If you pick perl: http://search.cpan.org/dist/WWW-Mechanize/lib/WWW/Mechanize.pm
|
# ? Oct 2, 2008 10:23 |
|
Hey guys, Is it possible to prove P \/ ~ P using coq? It's obviously always true, but I can't seem to prove it using coq, I've been at it for the last half hour trying various things but I'm completely stuck, and not getting anywhere.
|
# ? Oct 2, 2008 13:45 |
|
C# WebService Declarations I'm designing a WebService which will return some datasets, and handle manipulations of a SQL Server database. Simple question: Is there any reason I can't use a class declaration of the connectionstring and connection (SqlConnection(connString)) and simply call open()/close() in each method? Or should I use per-method declarations? (This is a service that dozens may be using at first, but thousands in the future as we build new front-ends for different states/counties in the country.
|
# ? Oct 2, 2008 15:39 |
|
Orlen posted:Hey guys, That's only always true in classical logic, which is a subset of what coq allows. The simplest thing is to assert Axiom classic : forall p : Prop, p \/ ~ p. somewhere and rely on that. You may also want to look at Logic.Classical_Prop or google for "excluded middle" and "intuitionist logic".
|
# ? Oct 2, 2008 16:15 |
|
VBScript question: I have our domain workstations execute a batch script that checks a log file for the set date of the local admin password and then invokes a .vbe script if it needs to be changed. It looks something like this: code:
|
# ? Oct 2, 2008 16:43 |
|
Bonus posted:Maybe you can give it an onEnterFrame event where it checks if the button is in its roll-over state but the mouse is not on it. If that's the case, then fire the roll-off event. Thanks for the suggestion - I did end up giving up on this because it doesn't seem like Flash can handle what I wanted to do. There seems to be gently caress-all in the way of tutorials or documentation on this kind of thing on the web - every tutorial I've seen on making Flash menus just has the menu disappear instantly by jumping back to the beginning of the timeline. That works for me and I'm not going to keep blowing time on this since it was a minor issue anyway.
|
# ? Oct 3, 2008 16:43 |
|
So, I'm writing a Java server that is serving a MySQL database. I have the server up and running, all is well. I also have a simple HTML form page with Javascript on it, that GETs and POSTs information from the Java server to the page and back and forth. My problem is this: the way I wrote the server, a socket has to be accepted. I was hoping that even though Javascript seems to not have support for sockets, I was hoping to do something like 'http://localhost:8888". But it doesn't seem to work. I'm thinking it's because the page never connects to the socket, because it's waiting for a connection, and waiting for something to accept the connection. I'm extremely new to Javascript, especially with connecting to servers. Is there anyway I can get past this or at least something I can read? EDIT: So right now I'm thinking it's because Javascript probably sends through socket 80, which I can't use because it gets me a BindException. Hmmm. Anyway to force Javascript to send to a different socket? ndb fucked around with this message at 23:44 on Oct 3, 2008 |
# ? Oct 3, 2008 23:11 |
|
PHP supports sockets.
|
# ? Oct 4, 2008 00:29 |
|
It's probably more like having bad form, but can I just use PHP when sending/recieving requests, and use Javascript for all the...let's say mechanical parts of the scripts?
|
# ? Oct 4, 2008 01:32 |
|
Clock Explosion posted:So, I'm writing a Java server that is serving a MySQL database. I have the server up and running, all is well. quote:PHP supports sockets.
|
# ? Oct 4, 2008 09:01 |
|
Standish posted:PHP won't run in the browser. No, but most webservers support PHP, so I'm assuming he has access to it. If you need to use sockets on odd ports, I think your only options are PHP(or some other language that you can run server-side like Perl) or a Java applet(which will basically run like poo poo).
|
# ? Oct 4, 2008 09:16 |
|
ante posted:No, but most webservers support PHP, so I'm assuming he has access to it. The quick and dirty way to solve this problem would be to have the Java server on port 8888 serve up the HTML page, that will allow the page make XMLHTTPRequests back to port 8888. Standish fucked around with this message at 10:38 on Oct 4, 2008 |
# ? Oct 4, 2008 10:32 |
|
I guess I'll try to make things more clear. The HTML page is served from localhost:80, I assume. The Java server is listening on localhost:8888. They are supposed to interact through XmlHttpRequest objects. However, due to the nature that Javascript doesn't support sockets, and that Java won't let you bind to port 80, they don't notice each other's presence, and thus, the server just stays still, no matter what you do on the HTML page. The Java server isn't noticing the presence of the page, and I'm assuming Standish's solution would work. It makes sense to me, at least, and something I probably should've done from the beginning.
|
# ? Oct 4, 2008 13:42 |
|
|
# ? May 14, 2024 08:47 |
|
ante posted:I'm trying to pass variables to a function in my Dll. One way or another I need to get my program and the injected Dll communicating. There isn't any real way to force the host process to execute anything in your DLL (outside of hooking). You get a chance to do whatever you want in your DllMain(), but after that your DLL won't be doing anything unless explicitly called by the host process. I guess that I still don't understand precisely what you're trying to do.
|
# ? Oct 4, 2008 13:49 |