« first day (1069 days earlier)      last day (3894 days later) » 

8:03 PM
Microsoft says,
> The GetFile method does not support the use of wildcard characters, such as ? or *.
Although the page I'm looking at doesn't even mention a two argument method, so maybe I'm looking at something unrelated but coincidentally named?
 
@Kevin Hmm, let me find the online resource I was using. But this is asp classic I guess - which you may have already known
 
Perhaps you could use GetExtensionName on each element within the loop, to skip past non-pdfs.
Yeah, it's a little different from what I'm used to. We use C# and most of the code goes in the codebehind.
Putting a loop in the HTML is a corporal offense. Ten lashes for poor separation of data and presentation layers! Hiyah! whip crack
 
So, something like For Each objFileItem In objFolderContents With objFileItem.GetExensionName(".pdf") ?
@Kevin I don't comprehend where else I could put it, before the HTML but then how do I call it in the table?
 
I'm not too familiar with VB syntax, but I was thinking:
for each objFileItem in objFolderContents:
    #                          vvv  might need to append the full path here
    if objFSO.GetExtensionName(objFileItem.Name) != "pdf":
        continue
    #do stuff with pdfs here
I don't actually care where you put your loops, that's just a corporate overlord mandate :-)
Might be unavoidable in classic ASP for all I know.
 
Thanks, I'm trying to get it to work...but not quite sure what is wrong. I have:

For Each objFileItem In objFolderContents
If objFSO.GetExtensionName(objFileItem) = ".pdf" Then
#do stuff
End if
Next
hmm, messed up that code
code wrap
 
8:16 PM
Yeah, backticks don't work for multiline posts.
Gotta use the "fixed font" button.
 
Ah thanks
 
Perhaps it should be If objFSO.GetExtensionName(objFileItem.Name) = ".pdf" Then
 
Also tried "pdf"
 
that too, I think
 
Nothing working, just getting 500 server errors on the new code additions
 
8:21 PM
I don't suppose there's a stack trace?
 
OH got it.
I left the second argument in Set objFile
woops.
 
@Kneel-Before-ZOD Man. How'd I miss your ping?
 
@Code-Guru lol.....because we are different time space dimensions? :-P
did you finally fix the issue yesterday?
 
@Kneel-Before-ZOD not really. Just posted an update to my SO Q about it.
0
Q: How does Python (or MonkeyRunner) locate imported modules?

Code-GuruUpdate: Following @dtmilano's suggestion, I added import sys print(sys.path) to the beginning of my MonkeyRunner script. This results in ['e:/path/android-sdk/tools/lib/monkeyrunner.jar:e:\\path\\bbct\\android\\functional-tests', 'E:\\path\\android-sdk\\tools\\lib\\Lib', '/E:/path/android-sdk...

 
@Kevin Any idea how to display something if the loop has no return values?
...if the IF statement in the loop has no returns
 
8:29 PM
is the monkeyrunner installed on the computer or phone?
 
Simplest way I guess would be to set a flag to true whenever you find a pdf:
pdfs_exist = False
For Each objFileItem In objFolderContents
    If objFSO.GetExtensionName(objFileItem.Name) = ".pdf" Then
        pdfs_exist = True
    #do stuff
    End if
Next

if not pdfs_exist Then
    print "no pdfs found!"
end if
gotta go, have a nice day everyone
 
see ya Kevin
 
have fun @Kevin
 
Alright thanks man, see ya
 
@Kneel-Before-ZOD computer
It's a Android dev tool on the computer-side
 
8:40 PM
the reason I'm asking that is that did you check the delimiter on the paths for Linux and Win? The code you pasted suggested that they are the same when they should.
so, maybe using the same tool on different OSes might be the problem
 
@Kneel-Before-ZOD yah, that's a possibility
need to check out how the paths get parsed.
 
okay.....completed any project on Euler of late?
 
rhubarb o/
as of late no
 
@Kneel-Before-ZOD no ;-(
 
rhubarb?
 
8:43 PM
I'm off to bed
 
alright....have fun :)
 
guys help I'm too skinny
 
@Kneel-Before-ZOD Did I tell you that someone joined the open source project for my app? She gets the same error I do with MonkeyRunner. Not sure what OS she's on, though.
 
@Code-Guru still working nights?
 
@Crowz eat more
@Kneel-Before-ZOD not this week
 
8:44 PM
@Crowz Lift heavy things and eat lots of good food
 
@Code-Guru someone forked you? :)
@JohanLarsson nah..... McDonalds should do the trick :)
 
@Kneel-Before-ZOD not yet. I've been hosting on SourceForge. Thinking about porting to GitHub, though.
 
ahh....sourceforge; I've never used it though
 
@Kneel-Before-ZOD McDonald's products should not be confused with food :)
 
for free private repo, you can use bitbucket
 
8:45 PM
@Kneel-Before-ZOD Different model than GitHub.
 
SourceForge is horrific these days.
 
@JohanLarsson well, they still increase your waistlines :)
 
Terrible design, crapware installers, poor usability, annoying policy.
 
@Kneel-Before-ZOD yah, there are lots of services. Looking at GitHub because of its "pull request" feature.
 
I've downloaded software from it, but never used it
 
8:46 PM
@Lattyware yah, it's certainly gotten a bad name lately.
 
@Code-Guru I've never used its pull feature; I use command prompt :)
 
@Kneel-Before-ZOD A pull request isn't a pull.
 
@Kneel-Before-ZOD true but not my waistline, think it might be five years since I had a meal there the last time
 
@Kneel-Before-ZOD oh mcdonalds is way too hard to eat, I can barely eat meat
 
8:48 PM
@JohanLarsson but he wants to increase his :)
 
you sure he targets the waistline only?
 
@Lattyware oh okay.....my bad; that's actually handy
@JohanLarsson waist, boobs, every nook and cranny fat can creep into :)
 
@Kneel-Before-ZOD yah, the whole code review thing is what we are looking at. Currently with the repo on SourceForge, we email a patch and then discuss it via email. I think GitHub will be better just for that feature.
 
that'll certainly come handy
emailing is soo......last millennium?
 
email and lava-lamp was invented the same year I think
email is a poor fit for most things
 
8:56 PM
@Kneel-Before-ZOD it's the attaching-a-patch part that's a PITA.
 
often wish there was a forum on the intranet
 
email isn't just good for collaboration; and while we are on that, Yahoo's new mail feature is just terrible for collaboration
 
@JohanLarsson And I'm sure you have one in your love shack.
 
@Code-Guru :) don't think I ever owned one
 
maybe I should get one :)
 
8:57 PM
@Kneel-Before-ZOD email is fine for the back-and-forth discussion. It is kind of kludgey for long-distance code reviews, though.
and labor intensive...at least compared to other tools out there.
 
when the back and forth reaches a particular level, it just becomes more confusing
 
email is fine for notifications and simple q&a, not for discussions ime, explodes in complexity quick
and then add a few more to the back and forth
 
once you have more than two ppl on a discussion, there goes your email
 
@JohanLarsson Currently my project is just two ppl, but yah....for more than that email doesn't scale well.
even with a mailing list
 
I guess most discussions would be moving towards chat-like or reddit-like discussions
 
9:01 PM
Hi everyone
 
hey beautiful
 
hi @brano88
 
Guys, this sense for humor makes me facepalm: In Soviet Russia, C# write you! :D
 
I think it is fun
 
Because you are using C# too :P
 
9:04 PM
I don't get it
 
I don't get it either but like it any way :D
 
I don't get it either @Kneel-Before-ZOD
 
lol....anything to boost C# ego :-P
 
you guys hate C#?
 
lol...nope
 
9:05 PM
I never ever met so proud people like .NET devs
I like C# tho
 
we don't hate any language
 
Just communities :D
 
we hate java in C#, love to hate it at least
 
@brano88 and thee C++ guys too
 
You guys are making your identity by hating java
yes
I'm totally neutral when it comes to C++
 
9:07 PM
@JohanLarsson I know that .NET guys (and C#) specifically love to jump on Java guys
 
Like atheists on religious arguments :D
 
they are probably too similar
 
Way too
C# is Java's clone
 
C# is a world of warcraft clone
 
C# is Java and Haskells beautiful child :D
 
9:08 PM
Hahah
Oh Haskell
Haskell, Haskell
 
haskell so naaaaughty <3
 
well, thinking about it, most MS products are clones of other products anyway
 
Hahah true that @Kneel-Before-ZOD
 
in Functional Programming, Jul 11 at 19:56, by FredOverflow
> Haskell programmers don't like making products. They prefer writing monad tutorials. I assume there must be some Haskell products around. I'll be happy to use them, and even try to understand the source code. But while Haskell keeps being used to show quicksorts and write monads tutorials I don't think it will ever be a real contender in the language war for popularity.
 
I like C#, but fact that I depend on a single OS disturbs me
 
9:10 PM
yeah
 
Hhaha Haskell lives from it's "coolness" :D
Btw, that guy Fred is No. 1 Java hater
 
one particularly annoying thing about .NET programmers is that they don't frequently praise the languages; it's about the Visual Studio and then, more bashing of other languages; just chillax, guys
 
Hahha yes. Just try to write C# in some text editor :)
 
@brano88 you think so, number 1 is pretty hard to reach I think
 
Yep, I'm sure
 
9:12 PM
@Kneel-Before-ZOD I don't understand this
 
Btw @Kneel-Before-ZOD TBH, VS is really lovely IDE
What you don't understand. It's short: 1. OMG VS rocks! Best IDE eva! 2. Java sucks!
 
I understand that it's lovely and productive; but that shouldn't be the selling point of .NET
 
It's so good that JetBrains has to help their "superior" IDE by pluging it with ReSharper.
We all know what technologies JB is using :)
 
1. Talk about the languages. 2. Don't bash others to make yours better
ooh....Jetbrain's beautiful
 
9:16 PM
Yeah
 
probably the most beautiful IDE out there for everyone
 
Recently I shown WebStorm to my friend
He lost his s..t
 
I've tried PyCharm and PHPStorm
 
He was totally stunned
I tried PyCharm too
Niiiiice
 
they look so good you are motivated to write code just to stare at them :)
 
9:17 PM
Agree!
They aren't just nice. They are extremely functional
They will probably crush down XCode with their own Obj. C IDE: AppCode
 
I know that PHPStorm4/5 had some shortcomings though;
 
Such as?
 
30 days was too short for trial. Maybe 90 days
 
Yeah. And some free version would be really welcome
 
when I tried PHPStorm, I created some classes that the IDE could find, all in the same project (different files)
I had to keep the files open to use them
 
9:21 PM
Weird..never encountered issue like that in Intellij
 
also, the autosave feature; I like to manually save my files.....
I haven't used IntelliJ
 
And PhpStorm is basically stripped Intellij
Yeah.. there is no save option at all.
 
and they also open each project as separate applications
 
Well...It's similar with VS
 
yeah...that's true also
I mainly use NetBeans; it's like a workhorse though.
 
9:23 PM
_o/
 
NetBeans is just awful!
 
high @Paco
 
Hi @Paco
 
@brano88 extendable is a bad thing?
 
I don't understand @JohanLarsson
 
9:23 PM
@brano88 it's plain and dependable :)
 
NetBeans is kinda slugish. I don't like it TBH.
 
I use it for multiple languages
 
You can use Eclipse too
 
yeah...it freezes once in a while
 
user1786283
eclipse is awesome.
 
9:24 PM
and many times, consumes memory
 
Interesty how's Eclipse written in SWT, while Intellij is written in Swing
And Intellij is faster
 
user1786283
I have like 32 gigs doesnt really apply to me.
 
Lucky you @enginefree
 
@enginefree lol....stop bragging :-P
what OS are you running?
 
user1786283
Windows 7
 
9:25 PM
vim all the way
 
64-bit?
 
user1786283
ypu
 
user1786283
*yup
 
lol.....vim is an OS?
 
no, but you were talking about IDE before
 
user1786283
9:26 PM
No its an editor. Very simple
 
but vim isn't an IDE
 
Sorry Paco, we are sissies. We don't use Vim :)
 
user1786283
I think its just a text editor right
 
It is
 
It's more then text editor
 
user1786283
9:27 PM
I like emacs
 
really? any diff between vim and vi?
 
It is simply the best text editor ever
vi now is almost always an alias to vim
 
Indeed! But user exp. is awful while on Windows OS'es
 
vi is just an editor though
 
It's too old, and not maintained
 
user1786283
9:28 PM
i really like vi, commands are simple
 
vi is cool too, but if you don't remember the commands, damn!
 
You need to practice
over and over
And then, you won't be able to switch to something else
If you have to use gedit, you'd cry
 
@JohanLarsson Are you using WPF?
 
@brano88 yes, not very good though
 
I use gedit as well; it's actually my default text editor on Ubuntu
 
9:29 PM
Nice @JohanLarsson. Have you ever considered JavaFx 2.0?
 
user1786283
I use gedit but sometimes sudo permissions are wierd on gedit
 
@Kneel-Before-ZOD that's weak :P
 
@enginefree what do you mean?
 
@brano88 no, I'm new to programming and C# and Xaml is the only thing i know a little
 
A ok. Keep going
 
user1786283
9:31 PM
Like if i try to edit a system file, sudo gedit file.txt, sometimes it doesnt not commit/write when I save, gives me an error
 
hey, I'm still learning more commands to put in this brain; excusing for not adding vi commands to that list :-P
it shouldn't, if you already typed in the password
 
user1786283
Its not very difficult, I caught a lot of the commands in like a day, just by using it. Check out the cheat sheets they are so useful.
 
the only error I usually receive is readonly
 
user1786283
No, it was a wierd error, can remember. It was after I typed in my password.
 
@enginefree Are you possibly from Georgia?
 
9:34 PM
it's not difficult; just hard to remember somethings (especially since it's customary to use the scroll keys for everything)
anyways, just saved the cheatsheet; will try using it some more
 
user1786283
@brano88 Yes, I am. Im assuming you mean the one in Europe.
 
@Kneel-Before-ZOD Okay, fixed the problem with sys.path.append("."). Now for the next problem...
 
In Asia :)
Yes :D
Wait.. Is it in Asia..
 
user1786283
Are you?
 
It's near to Europe - Asian border
 
user1786283
9:36 PM
Its the crossroads of Europe and Asia.
 
Yes yes
 
@Code-Guru lol...what is the next problem?
 
@Kneel-Before-ZOD java.io.FileNotFoundException: ..\screenshots\start.png (The system cannot find the path specified)
oh...proabably don't have the screenshots dir on this flash drive
 
@Code-Guru Show us more. That should be easely solved.
 
I think I got it
 
user1786283
9:38 PM
I java arent you supposed to use \\ for the path
 
the stack trace is too long to paste here
 
One note @Code-Guru
If you wan't to use those images as icons
 
@enginefree / is more portable
 
do you?
 
not necessarily
 
9:39 PM
If you wan't to use them for icons in your Java app
save them inside of some package
within your project
they will be preserved in jar file
 
why not use absolute paths?
 
user1786283
Yeah, thats how I would do it.
 
and loaded as resources
And what if you lose your folder @Kneel-Before-ZOD
Your application won't work just because you lost icons
It's always better to save icons in some package
 
@brano88 I'm talking about generally; I try to avoid relative paths unless when unavoidable
 
Yes. Good thinking
bye all
 
user1786283
9:45 PM
later
 
@Code-Guru fixed the problem?
have fun @brano88
 
@brano88 The files are screenshots of my Android app to post on Google Play.
@Kneel-Before-ZOD portability. If someone clones my git repo, absolute paths will cause problems.
 
make it absolute path from the application root; you can simply define a variable from the drive to the root, and then, use the path from the root to anywhere you wanna go :)
so, anyone that downloads it will simply change that variable to their own drives and they can then use it anywhere
 
user1786283
If you are using spirng define it as a java bean.
 
relative files will change based on the calling script, and if you needed to change it in multiple locations, .................... :)
 
9:53 PM
Like this?
#The directory where screenshots will be saved
screenshots = '../screenshots/'
...
result.writeToFile(screenshots + filename, 'png')
 
yeah....something like that. but let screenshots = 'path from root to screenshot/screenshots/' :)
 
hardcoding the path is not very friendly for version control
maybe I could use an external config file instead
 
user1786283
later fellas
 
I don't understand what advantage that would give me over a relative path, though.
 
good idea; you should define the paths in a configuration file
have fun @enginefree
 
9:57 PM
5 mins ago, by Kneel-Before-ZOD
relative files will change based on the calling script, and if you needed to change it in multiple locations, .................... :)
I don't understand what you mean by the first part.
As you saw, I use a variable to mitigate the second part.
 
look at it from this perspective; if you every change the location of the picture (or folder) , you have to hunt down everywhere the picture was referenced to change it
 
This script creates the pictures.
 
@GamesBrainiac and he has an abominable temperament :/ lolzing
 
It probably should create the folder if it doesn't exist, too...
well, I fixed the run time errors, but it still doesn't work right ;-(
 
okay....maybe not for the pictures; however, I think it's easier to manage when using absolute paths in a config file
 
10:00 PM
at least I'm back to where I was, though.
 
hey @sehe
 
@Kneel-Before-ZOD mkay...I'll consider it ;-)
@sehe what you doing here? =p
 
Sorry, I lost my way.
<scurries to the exit>
 
wrong turn at Albequerque?
 
lol.....no one's chasing you away............unless you are a spy :-P
 
10:04 PM
@sehe I'm sure he is!
@sehe What was that "one sided" bit? I missed it before you deleted it ;-(
 
@Code-Guru Erm? I didn't delete anything
 
oh...nvm...
 
Someone made it sound as if the lounge was inhabited by pure gods.
Minds of a philosopher in the bodies of a olympic gymnast etc.
 
lol.....what lounge?
 
@sehe i must have missed that...or are you referring to the link I posted from here?
@Kneel-Before-ZOD THE Lounge
 
10:07 PM
The truth is, C++ tends to attract the real weirdos. You have to be a bit mad to put up with the craziness. But it's not all glamour. It's just, unhealthy fascination mostly.
 

Lounge<C++>

Today we're daydreaming about C++26 reflection
 
what's The lounge?
 
@Code-Guru Yup, can't find it back now, but yeah.
 
oh okay
 
@sehe And the lounge attests to that
 
10:08 PM
oh yeah......I've been there a while back
 
Suddenly: epiphany!
There were more ---caves--- universes, parallel to this one
@Code-Guru We do our best, sir
 
didn't most folks on there have about 100k rep and work for NASA?
 
I didn't read the whole history. Just got a laugh out of the comment about talent in the lounge.
 
@Kneel-Before-ZOD s/NA/N/
@Code-Guru Oh, I scanned ahead.
3 hours ago, by Games Brainiac
And he's good at both :P
TIL Looks are highly relevant for nerds.
 
@sehe oh...that's right... I saw the starred message and linked it to the lounge.
 
10:10 PM
3 hours ago, by Kevin
90% of my computer aptitude comes from my willingness to press every button and see what happens.
 
@sehe designer pocket protectors?
 
^ I more agree with the pedestrian explanation
(psst. starring quoted messages doesn't really work that well on the star-board)
 
@sehe Ain't that the truth. I would add the observational and deductive skills that help me understand what happens, too.
 
@Code-Guru I'm happy to inform you that I'm not familiar with the concept of pocket protectors
 
@sehe me either...and I've ruined countless shirts because of it ;-(
 
10:12 PM
@Code-Guru One thing follows the other. It's a response of the "WTF" response, given enough time and boredom
 
I've had the sad experience of being a TA for a computer literacy class. One student kept accidentally clicking the New instead of Open (in Word) and couldn't understand why "nothing happened". He didn't see the stack of buttons building up on the task bar...
In my experience "nothing happened" often means "what I expected didn't happen"
 
@Code-Guru lol; adult literacy class?
 
@Kneel-Before-ZOD yah
 
@Code-Guru Too true. Same for many devs.
 
was a decent job, actually, but frustrating some days
 
10:17 PM
if you don't have patience, you certainly cannot teach adults; they are probably worse than kids
 
@sehe yah, I'll give you that. I just encountered one such problem. Even after adding a print, my brain originally parsed the output the way I wanted not the way it was.
@Kneel-Before-ZOD /nod
talking about teaching...I have 10 mins before a tutoring session for physics.
 
Go!
 
dude! you teach physics? what level?
 
I'm already at the library, so I should see my student walk by.
 
10:19 PM
@Kneel-Before-ZOD PHYS211-Physics for Engineers. Not very high.
 
Problem with kids: getting their attention. But, stuff sticks. Problem with adults: they're overly clingy, yet nothing sticks.
 
uses a bit of calc...but that actually makes it easier.
 
isn't that a college level?
 
yah
 
@sehe lol.....very true
 
10:20 PM
@sehe I don't know if college students are better or worse than either of those. Many just want to get the grade.
 
@Code-Guru my boy's a genius :)
 
@Kneel-Before-ZOD pfft...far from it.
@Kneel-Before-ZOD Aren't you in college?
 
yeah....but I'm not taking Physics
 
what's your major? CS?
 
lower than that. MIS/CIS :(
 
10:21 PM
Okay, I'll be in my own cave for now. I'm getting neck strain from switching chats
 
@sehe lol, dual head? I'm jealous
@Kneel-Before-ZOD you could take a physics class for fun ;-)
of course, some of those business classes aren't exactly easy.
 
@Code-Guru yeah....if it won't count towards GPA :)
 
@Kneel-Before-ZOD all you have to do is ace it!
 
learning isn't hard; knowing enough to teach is hard :)
 
knowing how to explain the material is very different than knowing the material
 
10:23 PM
@Code-Guru lol....not when there's some programming stuff to learn
you can only explain cearly what you know well :)
 
@Kneel-Before-ZOD true...I'd much rather code than do physics.
@Kneel-Before-ZOD sure. At the same time, just because you know something doesn't mean you can teach it.
 
true, but you cannot teach it well if you don't know it either
 
in other words the converse isn't true. You can't always explain something clearly just because you know it well. Academia is full of examples of that.
any way, I'd better log and take my cryptography book with me...*sigh* just what I need is another textbook to study when I haven't finished three others yet.
 
definitely; a good tutor must be better than a teacher; a teacher has salary
nice....crypto, huh. NSA calling you yet?
 
well, i hope I'm half as helpful as some of my students say I am.
@Kneel-Before-ZOD soon
okay...I'm out for real...TTYL
 
10:27 PM
have fun, buddy
 
10:47 PM
I'm so bored in class that I'm on reddit and I hate reddit
 
11:15 PM
/r/spacedicks will make you less bored in class
 
@ThiefMaster hai
@ThiefMaster If a question should be tagged as [status-bydesign] on meta, can I ask you?
 
Depends.. if it's something that doesn't require a dev / SE staff member to respond then maybe yes
 
It's this: meta.stackoverflow.com/questions/197490/… . It's a closed question though. Do they get edited?
 
I don't think a dupe needs a status tag
 

« first day (1069 days earlier)      last day (3894 days later) »