« first day (1593 days earlier)      last day (1587 days later) » 

8:01 PM
because from what I see, the 16th digit will get truncated to 0.
 
@KySoto Well, not quite :)
 
@MathieuGuindon It's usually OK to open it, but whatever you do don't save it again as a CSV.
 
We are making tons of tanks because they are made in Ohio.
Nobody wants these tanks, but nobody wants to take hundreds/thousands of jobs from Ohio.
Because Ohio is an important swing state for elections.
 
@Comintern but.. merely opening it in Excel will lose any leading zeroes...
 
@Hosch250 i didnt wanna go too political about it
but yeah, pretty much that, and i didnt know where they were made
 
8:04 PM
Not in the source file. I tell people to treat Excel as a CSV viewer, not an editor.
 
I tell them to open it with notepad
 
That too, although it can be obnoxious when the column widths are all over the place.
Or when you need to filter.
 
yeah, well.. tell 'em they're lucky it's not JSON
 
@MathieuGuindon i like json... #AmINuts
 
JS monkeys ruining all the text formats. Sheesh.
 
8:07 PM
@mansellan you wouldn't like it as much if you dealt with the stuff we have over here :)
 
Heh, probably not...
 
Although you don't know hell until you've tried to sort out a CSV file with missing text qualifiers...
 
@Comintern btdt, and charged many dollars for it :-)
Well, pounds actually...
 
Rupies. I'd outsource it.
 
8:11 PM
Frankly, I'd rather import a JSON or XML over CSV anytime.
at least the former 2 has some standards. The latter has none.
 
^^
CSV doesn't really even qualify as a convention, more of a vague idea.
"Uh, you know... commas and stuff. Or maybe tabs. Or pipes. Oh, and maybe we should do something about quotes. Single, double, it's all good."
 
semicolons are the usual delimiter in Germany..
 
You know, I had to do a series of text strings in a human readable format in a single field.
So, I figured CSV, right? Because JSON is impossible to write by hand.
Well, turns out one of the strings I had to support contained a comma.
So that field got delimited by double-commas.
Like "Foo,,Bar,,Fizz, Buzz"...
Hey there, @KarlJohanKleist.
 
@Hosch250 That's just evil.
The sad thing is that there's even an ASCII "record separator" character (0x1E).
 
8:27 PM
Is it typable on a normal keyboard?
 
@Comintern nobody uses printers to output the data so of course nobody will use it
@Hosch250 I don't htink so. Not without some keyboard-fu
or maybe api-fu
 
Who types CSV by hand?
 
It wasn't a full CSV, just one line of values.
That in a different place were parsed and turned into a radio button sequence.
 
CSV is not separated by commas... Learned that one. Downright lying semantic.
 
Oh?
 
8:35 PM
More like Something Separated Values (SSV).
 
That's semi-colon seperated values.
If you want the generic one, it's called DSV (Delimiter Separated Values).
 
I guess proper pedantry is to say CSV isn't mandated to be separated by a comma.
 
Sounds to me like you are giving your files bad extensions.
 
@Hosch250 i've seen plenty of CSV files that were tab-delimited
IOW, CSV as a format is #Doomed
 
^
 
8:38 PM
Yeah, just don't expect a CSV reader to understand it.
 
Wasn't me. I had to deal with the file that someone else provided. Learned that it was separated by semi-colon. Also seen em tab, pipe bar | and a couple other character delimited.
 
Native CSV support in VBA though. :-P
Although I have to say nothing annoys me quite as much as "CSV type" database fields...
 
0NF :)
 
-1NF?
 
NaNNF?
 
8:42 PM
LOL
XML fields are only slightly better IMHO. Slightly worse if they have CSV elements.
 
@Vogel612 mod ping
0
A: Materializing any ADODB Query

Allen MattsonIs there any reason you don’t use a disconnected record set and just close the connection in the function you opened it? I wouldn’t keep a connection open any longer then you need

I'd flag as NAA
clearly it's a comment IMO
now if the mod team disagrees, I understand
I'll never flag anything on CR ever again though
 
I'm not 100 % sure. As it stands I think I would convert it to a comment if you had just flagged.
 
I'm not inclined to flag, see
because apparently I can't tell my ass from my elbow anymore
 
But now that you replied that it is a good point I'm tempted to just add a post notice so they flesh it out a bit more
 
(yes, the mod team response to my last meta really pissed me off)
 
8:48 PM
Would a more extensive answer to that question be useful to you? probably not
would it be useful to someone that reads the code you posted and is learning VBA? likely
 
> As it stands, your answer reads like a comment. Please [edit] it to flesh up the valid point about disconnected recordsets, otherwise it will have to be converted to a comment, which can't be upvoted.
^ that would be my diamond-comment, if I had it
the valid point is literally worded as asking for clarifications
which is what comments do
 
I agree with Mathieu here. As it stands this is not really an answer and more of a clarifying comment. If you could expand a bit on the point you're making and change the tone of the text to something more "answer"-y, that'd be appreciated. If you prefer to keep it like this, I can convert this to a comment for you. Just give me a heads up. Thanks! — Vogel612 ♦ 23 secs ago
 
thanks
 
@MathieuGuindon something something "flags should not be used to indicate technical inaccuracies or an altogether wrong answer"
 
I'm not having this discussion again. "answerer" posted an "answer" boiling down to "I'm too green to understand what's going on here, so I broke your code because I can't copy-paste and I'm making up Implements statements that aren't in the OP, so it doesn't work. Help!" - and if that's considered an "answer" by today's standards, the future is grim for CR. unlike the oh-so-important number-of-downvoted-answers metric.
"let's be welcoming" doesn't have to equate to "let's accept all kinds of garbage"
 
9:07 PM
@MathieuGuindon This is not just a CR problem. Somebody made a comment on SO Meta about question votes to the effect that "One is the new zero.", and I'd probably extend that to "Zero is the new negative four".
 
@MathieuGuindon this and that are two different things.
 
@Hosch250 can github.com/rubberduck-vba/Rubberduck/blob/… ever be non-null? From what I've understood to date I'm saying no since CodeExplorerItemViewModel : ViewModelBase and ViewModelBase : INotifyPropertyChanged.
 
Yes.
And wut?
 
I may be missing something since hovering this it is of type CodeExplorerCustomFolderViewModel
 
Yes?
 
9:13 PM
I'm still trying to figure out folder annotation and keep hitting walls.
 
So where does ICodeExplorerDeclarationViewModel come in there?
 
That's what was originally in the code. I'm not understanding something.
 
Agreed :)
So, this is ICodeExplorerDeclarationViewModel.
 
isn't this CodeExplorerItemViewModel?
 
That returns true iff the concrete implementation of CodeExplorerItemViewModel implements ICodeExplorerDeclarationViewModel.
The abstract CodeExplorerItemViewModel doesn't implement it.
Nor do all the concrete implementations.
 
9:15 PM
Hrm....
 
(FYI, iff is shorthand for "if and only if", if you didn't know yet.)
 
I did but thanks for clarification.
I'm trying to use GetSelectedDeclaration() to grab the folder but it's not working.
 
Because a folder isn't a declaration...
The declaration is a literal instance of the Declaration class.
Like, module, project, sub, etc.
 
The folder is an Annotation that's in the Declarations section.
 
Umm, what declarations section?
 
9:20 PM
The modules declaration.
 
And how in the world is that relevant to this tree?
 
I think what Hosch wants to say is that the folder in the CE window is not a declaration/annotation.
 
No. It's a virtual directory.
It's almost as if we are saying "here's a folder on your hard drive, and here's a file".
Except it's all imaginary.
 
It seems I've been going down the wrong path.
 
It is relevant to the issue because he requires the annotation from the module declaration to change the folder.
 
9:22 PM
So, what problem are you actually trying to solve?
 
I'm trying to figure out what the virtual folder it belongs to when its being imported.
 
Move to folder, I think.
 
OK. So, you have a node.
And you want to find the folder of that node.
 
This is for the import but also applies to moving to a folder.
 
Your options are like so:
 
9:22 PM
Ah, for the import.
 
1) you have a declaration (sub/module/project). Get your declaration and get the folder annotation from there, walking up to the parent scope declaration if it's a sub, etc.
 
I think the idea was to know before actually importing.
 
2) you land on a folder. From here, you need to get that folder and all its parent folders and concatenate the names with the separator set in the settings.
 
^
 
@M.Doerner Yes, the node you click on.
So, I right-click the CE.
At that point I have the node.
Call GetSelectedDeclaration().
If you have a declaration, work from there.
If you don't, it's a folder node, IIRC.
Do note that this isn't guaranteed, but we have other code that relies on it, IIRC, so don't worry about it for now.
We'll cross that bridge if we ever (unlikely) need a new node type.
 
9:25 PM
protected override void OnExecute(object parameter) is where I'm attempting to get the information from.
 
I figured.
Well, follow the steps I outlined just above.
You have the node. If that node has a declaration, work from there. Otherwise, assume it's a folder node and concatenate the names of that folder and its parent folders.
 
That's what I've done so far. I think it was the lack of knowledge about the CodeExplorerCustomFolderViewModel that was causing the problem. I'm working through it right now.
When I right click on the virtual folder (the type is CodeExplorerCustomFolderViewModel) and use GetSelectedDeclaration() that's when the return value is null.
 
welp today was an exciting day. Hanging upside down by the gonads would be better than this. I hate powershell....
 
That's what I'm at present unable to resolve.
@this That's risky business there.
 
9:55 PM
@Hosch250 Thanks. Looks like I'm getting the import to work as intended and expected.
Still more testing to go.
 
10:07 PM
@this whats wrong with powershell?
 
@KySoto everything?
 
oh wow, we're getting vulnerability alerts for Rubberduck now
Github is really stepping up their game
 
where?
 
it might just be visible to repo admins...
 
Duck check: @Comintern mentioned using a try-catch block since I'm using IO input to write to a create a temp file, write to it, import it, and subsequently delete it. How do I go about adequately logging if something barfs? I've looked at Logger.Log() but have never done any actual logging before.
 
10:15 PM
just copy-pasta from other example - we just usually want to log the exception
 
I can see it
I am pretty sure this used to be blank
 
yeap. used to
 
it used to require you to upload ... a gem file or something ... for javascript
nice, though.
 
@this Would the LogLevel be warn or error?
 
10:18 PM
error
@Vogel612 but i'm still missing something I htink - where are the vulnerabilities reported? Those seem to be just a simple listing of dependencies the RD has
 
they get shown if they are detected
 
Hm, I cannot see Alerts.
 
Ok but you said we have vulnerabilities alerts already?
 
I also cannot see Releases.
 
@this welp thats helpful :P
 
10:32 PM
sorry but that is how I feel. Obscure and unintuitive syntax, unhelpful error message, crappy documentation and various samples that don't work as-is. need I go on?
Today I had to basically combine pieces from 3 different samples just to put together something that'd work, with lot of documentation lookups and googling up the nonsensical error messages only to find out that Microsoft has been changing their APIs.
so yeah, not a happy camper right now
 
What used to work now is broken?
 
no, i'm trying to automate stuff with Azure, and they love dem poewrshell for automation, so I have to go as the Romans goes.
so they're just new scripts but the process of developing a script in powershell is far far more painful than doing the same task in C# or even VBScript would be.
 
Duck check: I've inadvertently brought in commits from an already merged PR. Do I need to remove them in my local branch via rebase?
 
I think that should not really be a problem.
 
mkay
 
11:15 PM
> Close #4282. I've tested with `.bas` and `.cls` modules and had them import successfully, forms I've not dealt with.

I plan to encapsulate whatever crossover logic there is for #3332. Are there any glaring issues with what I have so far?
 
@Duga @pond I'd prefer to get some feedback before going too far into a prickly thicket before realizing it.
 
[rubberduck-vba/Rubberduck] build for commit 8ba1fc2c on unknown branch: AppVeyor build failed
BUILD FAILURE!
 
11:38 PM
:click: Finally understood what a RAID is. Much cool stuff I've learned because of this pond.
 
11:51 PM
> New! Suggest specific code changes that the pull request author can immediately commit. You will be attributed in the commit.
wut
 
@MathieuGuindon Where is this?
Found it.
 
Thanks again for the help pond.
Home time.</iven>
 

« first day (1593 days earlier)      last day (1587 days later) »