« first day (200 days earlier)      last day (2980 days later) » 

00:27
Well @Mat'sMug. Looks like my VBA & Git post is quickly rivaling my top post. Guess I know what feature set is next.
00:42
@RubberDuck on WordPress?
I must have missed it... but yeah, adding import/export functionality will unlock the rest of the milestones
00:59
Yeah. On Wordpress. It gets almost as many views and search hits as the progress bar I built for Access
01:36
ooh got an answer!
> Extract methods, extract methods everywhere, PLEASE! It's embarassing
 
2 hours later…
03:20
> added a few scoping tests
> Update Parser.cs
> Merge pull request #128 from Hosch250/patch-1

Update Parser.cs
> Yep. Scoping tests still pass :)
 
2 hours later…
05:18
> syntax fixes
TTGTB
> `Let` as an instruction is a long deprecated syntax for value assignments:

Let foo = 42

Quick fixes:

- Remove obsolete 'Let' keyword from assignment
ah, just one more little issue...
allright.. TTGTB :)
'night!
06:17
44 commits?
Dang.
06:55
> config reflects code inspections for defaults
> added Config.CodeInspection overload ctor
> Config.CodeInspection implements IInspection
> Revert "Config.CodeInspection implements IInspection"

This reverts commit 0a79891c47c93d380e3fdc5511bac58c34c44fda.
07:18
> removed unused using statements
> Unit Testing notes
> new code inspections use resource file for names
> Merge branch 'master' of github.com/retailcoder/Rubberduck into settingsUI
07:37
> UI for configuration is fully functioning.

This pull does break Rubberduck due to a change in the XML Serialization of the Config file.
Deleting any existing Rubberduck.config file fixes the issue.
Rubberduck will use a built in default configuration until the user modifies the configuration via the Options dialog. At that time the file is created and used.

Also made a change to implementations of `IInspection`. They now use `InspectionNames.resx` to get the string representing thei...
r names.
@Mat'sMug leaving that for you to pull. You'll need to delete your Rubberduck.config file and let Rubberduck recreate it.
> Pull request #130 closes.
> I used leveraged the code mentioned here. I moved it into the ConfigurationLoader. Closing issue.
> Code Inspections are configurable via the Options Dialog. Implementing new IInspections automatically adds them to the config.
 
3 hours later…
10:38
0
Q: Trouble with nested Ifs

Rajan Tupinambai'm having serious trouble with those nested Ifs, Here's what the code is for: it looks at the number of the transaction and verifies if it belongs to that "j" after that, searches the date of the transaction and verifies if it was yesterday or not, if it was, the cost (which is in the column E...

 
1 hour later…
11:50
Don't get excited about @StackExchange
 
4 hours later…
15:33
Sub HelloWorldMessage()
    Dim msg As Outlook.MailItem
    Set msg = Application.CreateItem(olMailItem)
    msg.Subject = "Hello VBA!"
    msg.Display
    Set msg = Nothing
End Sub
Debug.Print "Hello @Phrancis"
16:06
@RubberDuck should Rubberduck just create the default config file if it blows up reading the existing one? What happens if the config file gets tweaked and borked by the user?
@Mat'sMug Good point.
(morning!)
Or... better, ask the user if they want to repair it at the risk of losing their settings.
What's the other option?
If the file cannot be read, aren't the settings already lost?
@Mat'sMug Not necessarily. You could attempt to fix it by hand if the file is just borked and not entirely missing.
16:11
true
Writing up my Xmas post now. Will submit the issue in a minute.
your xmas post?
oh for the xmas bounty hat?
Yup.
Nope.
> Got a tablet for Christmas
And On the Road.
isn't it a bit early for these ones?
347 lines, 12031 characters... I'll be putting a bounty on that I think.
Saving a *.md file to my drive. Copy paste bam.
16:16
Your life will be easier when you use meaningful names for your variables. Code that uses single-letter variables everywhere is more error-prone... by design. — retailcoder 7 secs ago
^^ @ticker
> Migration to codereview.stackexchange.com seems appropriate. Even the existing answer is a good Code Review answer.
0
Q: Join two collections by date with no duplicate

Matteo NNZDATA I have 4 Collection objects of the following kind: dates1=(12/01/02, 15/01/03, 17/01/03, 25/04/04...) dates2=(15/02/02, 17/06/07, 10/05/10, ...) numbers1 = (3,5,2,7,...) numbers2 = (1,-3,-1,...) The rules of the game are: a) "dates1" will always have the same length of "numbers1", "dates...

flagged for migration. let's see
This code I wrote may be of interest to you. I was attempting to build a better collection. It has a Merge function, but your sort looks far superior to the one I implemented. (Happy to accept Pull Requests.....) — RubberDuck 8 secs ago
16:31
> If the *.config file is missing, Rubberduck uses a default configuration that is more or less hardcoded into the system and then later creates a new *.config file.

If *.config is simply corrupted, then Rubberduck blows up and the add-in doesn't load. Catch the exception and give the user the option to repair the *.config file with a warning that any customization will be lost.
just felt like it
lol. All righty then. =)
Need food. bbl
16:49
@Mat'sMug °-°"
o_O
o.O
¬.¬
'~'
17:09
@Phrancis UNION removes duplicates does it?
(T-SQL)
awesome
UNION ALL doesn't
I just removed an ugly select distinct from a nasty query
704,814 rows from 3 sources
select distinct is pretty nasty, indeed!
17:13
Possible migration pending.
-1
Q: vba - speed up the vba code

pexpex223It takes around 5-8 seconds to a stock previous closed price & dividend rate from US yahoo finance. If I wanted to retrieve 10+ stock price, it would take me more than a minute with below VBA code. Is there any other way to speed up or improve the code? My VBA code: I input multiple stock code...

501,109 + 173,375 + 30,756 = 704,814
and slllllloooooooooooooooooooooooooowwwwww
4:38 without the select distinct
want to see the query?
When you say 3 different sources you mean 3 tables / schemas / servers?
tables
17:14
Sure! Always down for reading some SQL ;-)
prepare for a heart attack
with cteInvoiceDetails as (
 -- YYFH98 with BodyTypeCode in [f8]
	select
		 upper(ltrim(rtrim(f2))) InvoiceNumber
		,cast(f5 as int) InvoiceLineNumber
		,upper(ltrim(rtrim(f32))) OrderNumber
		,cast(f41 as int) OrderLineNumber
		,h.InvoiceDate
		,h.InvoiceBatch
		,calendar._Id CalendarId
		,bodies._Id BodyTypeId
		,upper(ltrim(rtrim(f3))) InvoiceTypeCode
		,upper(ltrim(rtrim(f6))) ModelCode
		,upper(ltrim(rtrim(f7))) MaterialCode
		,upper(ltrim(rtrim(f28))) SubCategoryCode
		,upper(ltrim(rtrim(f23))) SizeRangeCode
Glad to see I'm note the only guy using cte Hungarian notation!
I'm running it without the order by to see how long it takes
oh, I can't help that one
I'm sticking that into an SSIS OleDb Source component
lol at upper(ltrim(rtrim(f2))) I keep forgetting how weird your dataset is!
yeah.. it's a freakin' PITA
17:18
What's cross apply for?
the source is storing size-level units in a single field that looks like "00000 00000 00001 00000 00000 00000 00000 00000 00000 ..."
so I have a function that's called for every row, that returns a table with a row for each size cluster
/bucket
but depending on which table I'm looking at, it's as above, or "0001 0000 0000 0000", or sometimes it's " 1 "
lotsa fun
@Phrancis it's a system running on an AS-400, written in 1988
0
Q: Retrieving stock prices

pexpex223It takes around 5-8 seconds for me to retrieve a previously-closed stock price and a dividend rate from US Yahoo! Finance. If I wanted to retrieve 10+ stock prices, it would take me more than a minute with the below VBA code. Is there any other way to speed up or improve the code? I input multi...

@Mat'sMug Holy carp!
17:23
if you saw the source code...
actually, it was originally written in 1988. Some parts were written just yesterday!
(I'm not touching that source code with a 10-foot stick)
3
@Mat'sMug Awesome..... Sounds familiar.
What language(s) is the source code in? C?
nope. some primitive version of BASIC. Lines are numbered and all..
17:57
Ohhhh @Phrancis! @ticker has some HTML + Regex
"unrecommended" is putting it gently. — retailcoder 15 secs ago
Is there a newline character that can be used within an Excel formula?
@RubberDuck COM-Visible backgroundworker FTW codereview.stackexchange.com/a/74663/23788
I'm trying to parse a spreadsheet into some HTML (because the "Save as -> Web page" function sucks balls)
Nvm, I found a website that does it much better
18:14
No obligatory link? Let me fix that. stackoverflow.com/questions/1732348/…RubberDuck 13 secs ago
18:27
@Mat'sMug I have a schema with a number of INT columns. They will be used for calculations, but some of them will not always have a value. Would it be best to use '' (empty), NULL or 0 in your opinion?
Depends on what the semantically correct value is
Either could screw you over ;)
ugh. the query generates duplicate keys.. must have overlooked something
CREATE TABLE card
(
    id SERIAL PRIMARY KEY,
    version INT NOT NULL,
    name TEXT NULL,
    description TEXT NULL,
    effect_description TEXT NULL,
    type TEXT NULL,
    attack INT NULL,
    health INT NULL,
    mana_cost INT NULL,
    scrap_cost INT NULL,
    scrap_value INT NULL,
    sickness INT NULL,
    attack_available INT NULL,
    create_date TIMESTAMP WITHOUT TIME ZONE DEFAULT NOW(),
    delete_date TIMESTAMP WITHOUT TIME ZONE DEFAULT NULL
);
^^ This is the table in question. All the INT columns from attack down can potentially not have a value
Just a guess, but I would think that, semantically, if there's no value, it's not really no value. It's a zero.
I'd leave attack with a null value for cards where attack is irrelevant, and 0 for cards where attack is zero-valued, if that exists (or could exist)
2
Which means that they shouldn't allow nulls.
Good point Mug.
18:32
Makes sense
Well.... I don't know. If attack isn't relevant, then it's attack power is 0 anyway.
@RubberDuck but a null attack conveys that attack is irrelevant - 0 would be ambiguous
I'm saying attack, but I mean it for all columns
I wouldn't make the text columns nullable though
but that might be my .net background talking - String.IsNullOrEmpty covers that, not sure about Java
Java hates nulls, right?
no idea
mortals hate nulls
3
18:56
I love nulls - especially when my program doesn't work because something is null.
Back
Front
Center.
in TCG Creation, 45 secs ago, by skiwi
@Phrancis Depends on how much you make Java hate them!
Just checking in ;)
19:04
@RubberDuck ^^
hey @skiwi :)
LOL. Hi @skiwi.
in TCG Creation, 4 mins ago, by Marc-Andre
If you try to acces a method on an object and that object is null then your programs goes boom
2
19:52
Soo few starred messages here
2
It's been quiet in here since @Enderland got a new job.
Who is @Enderland?
Malachi?
He's a mod over at the Workplace.
He hung out in here for a while with us.
Ah okay, I've never seen the name
it gets busier at night when Rubberduck gets worked on ;)
20:03
LOL. Even then, Duga does most of the talking these days.
20:17
Hey, anyone who is not too busy, I would like input on this general question!
 
2 hours later…
21:49
0
Q: Karate Chop Kata

RubberDuckI had some time to kill today, and I found the Karate Chop Kata. Specification: Write a binary chop method that takes an integer search target and a sorted array of integers. It should return the integer index of the target in the array, or -1 if the target is not in the array. I...

@StackExchange That was fast.
22:44
QA Engineer walks into a bar. Orders a beer. Orders 0 beers. Orders 999999999 beers. Orders a lizard. Orders -1 beers. Orders a sfdeljknesv.
This made me LOL.
22:56
> Orders a beer';DROP TABLE users;--
LOL! RT'd :D
23:17
bbl

« first day (200 days earlier)      last day (2980 days later) »