Just 'cause I've been thinking. I wonder if it'd be possible to use google docs as a really primitive socket layer.
Like open up a spreadsheet and assign clients certain cells and all that, sort of like a peer to peer network.
not a doctor, not a lawyer, examples I use may not be fully researched so don't take out of context plz, don't @ me
0
Options
GnomeTankWhat the what?Portland, OregonRegistered Userregular
In theory...but you'd just be layering your "protocol" on top of HTTP(S), effectively adding a bunch of protocol overhead. It's also horribly inefficient, as you'd have to use a 100% poll model as Google Doc's has no push (that I am aware of...maybe you can piggy back on the documentation notification system they have built in to know when a doc changes?).
@echo off
set CLEANUP=1
set SUBTYPE=
set OUTPUT_DIR=D:\Some\Directory
if "%CLEANUP%"=="1" (
set SUBTYPE=generated
echo. del /s /q %OUTPUT_DIR%\%SUBTYPE%
)
Guess the output.
That's right - it's:
del /s /q \Some\Directory\
"Where did "generated" go?", was what I screamed, when the list of files that it was deleting scrolled past.
It turns out that %SUBTYPE% was substituted when the line was read, as opposed to when it was executed. When the line was read, SUBTYPE was still set to an empty string.
Turns out it was a simple whoops - I needed delayed expansion.
I hate web hosting. My site stopped processing servlets and its been 24hrs and they keep sending one line things for me to try HOURS apart. The site hasn't changed and it stopped working. Grrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr.
I hate web hosting. My site stopped processing servlets and its been 24hrs and they keep sending one line things for me to try HOURS apart. The site hasn't changed and it stopped working. Grrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr.
Sounds like you need to be on our linode!
not a doctor, not a lawyer, examples I use may not be fully researched so don't take out of context plz, don't @ me
Today in CodeIgniter Adventures: trying to figure out why this didn't run.
$this->db->select("*, CONCAT_WS(' ', firstname, lastname) AS fullname");
$query = $this->db->get('user');
Turns out that CI tries to be helpful and add some backticks for me in the SQL it generates!
SELECT *, CONCAT_WS(' ', `firstname`, `lastname)` AS fullname FROM (`user`)
Even if I added backticks myself in the query, CI cheerfully adds one more outside of the parenthesis.
In the end I had to write "lastname )" with a space before the parenthesis, which works, and has the side effect of disturbing my sense of aesthetics.
$this->db->select() accepts an optional second parameter.
If you set it to FALSE, CodeIgniter will not try to protect your field or table names with backticks. This is useful if you need a compound select statement.
I was actually looking for a SqlExpression-like class for strings as what you described made no sense, but this was the first thing I ran into.
Been asked to write two project summaries for two different projects. One long and one short. There is a template but I have absolutely no idea how to do any of this. I am not a technical writer... I wasn't hired on to do papers.
0
Options
admanbunionize your workplaceSeattle, WARegistered Userregular
Been asked to write two project summaries for two different projects. One long and one short. There is a template but I have absolutely no idea how to do any of this. I am not a technical writer... I wasn't hired on to do papers.
If you can develop that skill you'll become exponentially more valuable. :P
Doing summaries and all the paperwork part tends to be fun at times and gives you a nice break, especially if you don't decide the kind of stuff you work on.
not a doctor, not a lawyer, examples I use may not be fully researched so don't take out of context plz, don't @ me
If you're the same as me, it was never the writing that was the issue. It was the literary analysis of boring ass books. You won't be writing about onomatopoeia or similes.
not a doctor, not a lawyer, examples I use may not be fully researched so don't take out of context plz, don't @ me
Unfortunately I just literally cannot write a technical paper. Even on something that I worked on I just freeze up. I literally just cannot do it without spending hours and hours on it... And then it still ends up really shitty.
Can you describe it outloud? Do that. I also tend to be very visual, so all of my papers have tons of graphs and illustrations and such. I use GIMP more in my papers then I do Word. Makes it much more fun and more my style.
I hate web hosting. My site stopped processing servlets and its been 24hrs and they keep sending one line things for me to try HOURS apart. The site hasn't changed and it stopped working. Grrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr.
Sounds like you need to be on our linode!
Been thinking about it! Five hours now since I showed them a simple .jsp that worked on Sunday, doesn't work now. No word.
<Provide a detailed (storyline) description of the project. The purpose of this section is to provide the reviewer with a sound understanding of our capabilities through past performances.
Describe benefits/applications. Include any transition successes to-date and describe early users/markets.
The description must include at minimum one image that includes callout boxes in the image as shown below to support the summary. In addition, the project description must include a reference the image and provide a more in depth description of its meaning (the reader should not have to decipher the purpose or meaning of the image).
This section should range from 0.5 to 1.5 pages in length depending on the complexity and scope of the project.>
On a project I've never even heard of is next to impossiburu for me to do.
New thread time? I've got a question and it's about to be lost to the abyss. But here it is anyway:
I'm trying to automate the process of downloading virus defs from a particular webpage and applying them via a command line tool. I need some help isolating the url of the download from some web page source code. So far what I have is this:
URL="http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/Definitions/"
Set WshShell = WScript.CreateObject("WScript.Shell")
Set http = CreateObject("Microsoft.XmlHttp")
On Error Resume Next
http.open "GET", URL, False
http.Send ""
if err.Number = 0 Then
WScript.Echo http.responseText
Else
Wscript.Echo "error " & Err.Number & ": " & Err.Description
End If
set WshShell = Nothing
Set http = Nothing
This is lovely and outputs the HTML source code of the page I need. I can call this .vbs with cscript and have it output to text file nicely as well. But I'd rather keep it all in one place, so I'm looking for a way to parse the xmlhttp.responsetext (http.responsetext in the above code) and pull out the first URL of "http://......SBR.sgn". As long as its the first hit, that's what I want.
Is there any way to do this? I've tried mucking around but I'm a newb with this stuff.
Any reason in particular you're using vbs? You can probably do this far more easily with any language of choice. I can probably whip something up but it sees silly as I'm sure you'll expand this in the future.
not a doctor, not a lawyer, examples I use may not be fully researched so don't take out of context plz, don't @ me
If I was doing it, I'd just do it like you're doing, but instead of writing the HTML parse it till you get to Available Full Definitions, find the next instance of .sgn, back track till a href, then make another get to download the file. Should be easy.
Does PADev.net support Tomcat, MySQL (could be any DB really) and JAVA Servlets? Right now I have a GWT Project, and its mainly an NFLPicks website. And its been over 24hrs since my current site went down with little to no help from tech support. With a Game on Thursday, that's a problem.
If it doesn't, I'm sure @infidel would be able to help you. It does have MySQL, and I don't see why Java servlets wouldn't work (though the port may be nonstandard for things like tomcat?)
not a doctor, not a lawyer, examples I use may not be fully researched so don't take out of context plz, don't @ me
MySQL yes, java servlets probably not with the current config. But it's just a linux machine that @Infidel admins - he can probably get most stuff up and running pretty quickly
So I'm writing an equals method that accepts an Apples object as an argument, then if the argument Apples object holds the same data as the calling Apples object the method returns true, otherwise false.
My problem is that I keep getting an error that says 'int cannot be dereferenced'. If I use = instead of equals it tells me 'Incompatible types. Required: boolean; Found: int', then if I change the type in the method it gets mad because I return a boolean instead of an int.
Also, you're making the most common mistake, using the wrong signature.
boolean equals(Object)
That is the only signature you should have and implement.
If you add equals(Apples) then that is fine and dandy, but no one else gives a shit. They'll call equals(Object) form, which is the one they are supposed to, with some instance of an Apples object. Because you didn't override it, it will return false because it is not the exact same object you are comparing to, when what you wanted to happen is have them considered equal because applesNumber was the same.
How to write equals:
@Override public boolean equals(Object other) {
boolean equal = false; // just set the expected case is often easier when you get more complicated stuff happening
if (other instanceof Apples) { // we only consider an object to be equal to this Apples object if it is also an Apples object
Apples that = (Apples)other; // we know it is safe to cast it now, and easier to write what follows as "this and that" instead of constantly casting other
if (this.applesNumber = that.applesNumber)
equal = true;
}
return equal;
}
Also, you're making the most common mistake, using the wrong signature.
boolean equals(Object)
That is the only signature you should have and implement.
If you add equals(Apples) then that is fine and dandy, but no one else gives a shit. They'll call equals(Object) form, which is the one they are supposed to, with some instance of an Apples object. Because you didn't override it, it will return false because it is not the exact same object you are comparing to, when what you wanted to happen is have them considered equal because applesNumber was the same.
How to write equals:
@Override public boolean equals(Object other) {
boolean equal = false; // just set the expected case is often easier when you get more complicated stuff happening
if (other instanceof Apples) { // we only consider an object to be equal to this Apples object if it is also an Apples object
Apples that = (Apples)other; // we know it is safe to cast it now, and easier to write what follows as "this and that" instead of constantly casting other
if (this.applesNumber = that.applesNumber)
equal = true;
}
return equal;
}
This article on this issue is one of my bookmarks (coding->java).
Monkey Ball Warrior on
"I resent the entire notion of a body as an ante and then raise you a generalized dissatisfaction with physicality itself" -- Tycho
Posts
Like open up a spreadsheet and assign clients certain cells and all that, sort of like a peer to peer network.
Beaten by the batch file #82 : Variable Expansion
Guess the output.
That's right - it's:
"Where did "generated" go?", was what I screamed, when the list of files that it was deleting scrolled past.
Turns out it was a simple whoops - I needed delayed expansion.
Edit:
Sorry, I didn't mean to page you, Echo!
Hubris. =P
Turns out that CI tries to be helpful and add some backticks for me in the SQL it generates!
Even if I added backticks myself in the query, CI cheerfully adds one more outside of the parenthesis.
In the end I had to write "lastname )" with a space before the parenthesis, which works, and has the side effect of disturbing my sense of aesthetics.
Peer-to-Peer CRC/hash test of the dataset?
Sounds like you need to be on our linode!
I was actually looking for a SqlExpression-like class for strings as what you described made no sense, but this was the first thing I ran into.
If you can develop that skill you'll become exponentially more valuable. :P
Doing summaries and all the paperwork part tends to be fun at times and gives you a nice break, especially if you don't decide the kind of stuff you work on.
e: This is also cutting into my current iteration's development time.
Say whaaaat?
Can you describe it outloud? Do that. I also tend to be very visual, so all of my papers have tons of graphs and illustrations and such. I use GIMP more in my papers then I do Word. Makes it much more fun and more my style.
Been thinking about it! Five hours now since I showed them a simple .jsp that worked on Sunday, doesn't work now. No word.
On a project I've never even heard of is next to impossiburu for me to do.
I'm trying to automate the process of downloading virus defs from a particular webpage and applying them via a command line tool. I need some help isolating the url of the download from some web page source code. So far what I have is this:
This is lovely and outputs the HTML source code of the page I need. I can call this .vbs with cscript and have it output to text file nicely as well. But I'd rather keep it all in one place, so I'm looking for a way to parse the xmlhttp.responsetext (http.responsetext in the above code) and pull out the first URL of "http://......SBR.sgn". As long as its the first hit, that's what I want.
Is there any way to do this? I've tried mucking around but I'm a newb with this stuff.
PSN - sumowot
It's http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/Definitions/
Source is here for your viewing pleasure:
Hope that doesn't rape the page....
PSN - sumowot
If I was doing it, I'd just do it like you're doing, but instead of writing the HTML parse it till you get to Available Full Definitions, find the next instance of .sgn, back track till a href, then make another get to download the file. Should be easy.
@bowen
Does PADev.net support Tomcat, MySQL (could be any DB really) and JAVA Servlets? Right now I have a GWT Project, and its mainly an NFLPicks website. And its been over 24hrs since my current site went down with little to no help from tech support. With a Game on Thursday, that's a problem.
So I'm writing an equals method that accepts an Apples object as an argument, then if the argument Apples object holds the same data as the calling Apples object the method returns true, otherwise false.
My problem is that I keep getting an error that says 'int cannot be dereferenced'. If I use = instead of equals it tells me 'Incompatible types. Required: boolean; Found: int', then if I change the type in the method it gets mad because I return a boolean instead of an int.
boolean equals(Object)
That is the only signature you should have and implement.
If you add equals(Apples) then that is fine and dandy, but no one else gives a shit. They'll call equals(Object) form, which is the one they are supposed to, with some instance of an Apples object. Because you didn't override it, it will return false because it is not the exact same object you are comparing to, when what you wanted to happen is have them considered equal because applesNumber was the same.
How to write equals:
:P
(Just in case someone ends up copying that code or something and not noticing that)
3DS Friend Code: 3110-5393-4113
Steam profile
This article on this issue is one of my bookmarks (coding->java).