« first day (663 days earlier)      last day (3652 days later) » 

00:00
I never actually resolved my problem at work today. Visual Studio still sucks.
@nhgrif Works fine for me, what is up?
I found a work around. That work around will satisfy me until the next time I need to create another inherited control... which may be before the end of the week.
I probably won't be able to help, but I can try.
I can't try anything at home.
00:01
But Visual Studio thinks my DLLs are not valid .NET assemblies.
Even though they are.
Did you compile them with VS?
@SirPython I read a quote related to that school of thought recently. "Don't ever become a pessimist... a pessimist is correct oftener than an optimist, but an optimist has more fun, and neither can stop the march of events."
@JeroenVannevel Nice quote. I'm an optimist myself.
@JeroenVannevel I'm assuming an optimist wrote that. ("oftener...")
Yes.
00:03
Also, depends on which has the better education.
Well, can you re-compile them?
I can't inherit from a form within the same project...
Hmm.
I've recompiled about a million times.
That is curious.
Give or take 2 or 3.
00:04
Did you reinstall VS?
And they compile without errors?
You said your coworker could use it just fine
Yes.
And the code runs perfectly fine without except.
And my coworker can do it just fine.
And if he commits and I check out his commit, I still can't and he still can.
If the code is running, what is the problem?
Are you missing a reference to something?
I can't create new inherited controls.
That's the problem.
00:05
maybe try git clean -xfd to remove any weird files lying around
Try cleaning and rebuilding.
If my job were to just make sure code someone else wrote compiles, I'd get paid far less... or far more.
I did clean and rebuild.
I have to do that occasionally.
I spent 9 hours on this today.
I tried all of the obvious things.
damn, that sucks
00:05
OK, my guess is you are missing a reference or something.
I have not re-installed VS. I need to get with boss to find CD.
No references are missing. If references are missing (and I manually checked them all) then something would break.
But nothing breaks when the code is actually running.
Visual Studio just doesn't think any of my DLLs are valid .NET assemblies even though they all are.
@nhgrif I had a problem similar to yours. Wait a minute while I open up VS and try to find where I found the answer before.
You didn't do anything with weakly named/strongly named assemblies?
@nhgrif I don't think this is what you are looking for, but you might be able to search in the area of VS that the answer is pointing to for the answer: stackoverflow.com/questions/12954821/…
@JeroenVannevel those are the bane of my existence. probably because i don't understand them
00:08
Here's how I know the DLLs are fine... my work around. If I use VS to launch VS, I can create inherited controls in the second instance.
@SirPython I favorited that so I can look at it sometime tomorrow.
I'll brb.
@mjolka I am lucky enough to have never had to look into them too much
When I had a glance some time ago, I told myself that I'll do anything to stay away from that
nothing good comes from the GAC and DLLs
@nhgrif I'd just post a question on SO. Big chance that Hans Passant will answer
He's pretty much my SO hero. Knows everything about VS, Windows, .NET, etc to the most miniscule detail
I don't even know what weakly/strongly named assemblies are... how would I even check that?
I only started working in this project in late December, and I was doing very little. Then my boss quit a few weeks ago... so now I'm doing tons in this project.
I assume strong names are default?
no, weak names are default
At least that's what I think I remember
let me check real quick
00:17
What are the advantages/disadvantages of using either?
And how would this impact Visual Studio thinking they're invalid .NET assemblies (except when I run Visual Studio from within Visual Studio).
Yeah, default is weakly named
I have no idea if that would be the problem since I'm not experienced with it myself
however, since it is apparently an environmental issue there must be something wrong with your PC locally
Right.
Tomorrow I will investigate the possibilities of re-installing Visual Studio.
You hadn't done that yet?
No. That's the only obvious thing that hasn't been tried.
This worked perfectly on Monday though. So I dunno...
But re-installing means finding the disc or whatever we need.
Disc? It's been.. years.. since I've put one in my pc
00:27
@mjolka have you got your own exception in your application?
Well, how many years? 7ish? We're on VS2008...
'@Mehrad like custom exceptions?
I'd say so
yes, a few
0
Q: Creating and saving blurred screenshots in iOS

PahnevI am trying to create a class that takes a screenshot of the screen, makes it blurry and saves it to NSUserDefaults. - (UIImage*)blurImage { UIImage* newImage = [[UIImage screenshot] applyBlurWithRadius:20 blurType:BOXFILTER ...

This can be upvoted (or downvotes removed at least)
00:28
My application only throws exceptions in un-reachable places, just to follow conventions.
@nhgrif good lord
I am catching this OleDbException which doesn't have much user friendly wording wanted to throw a new one but it's constructor is sealed and not public. read some solutions and people where recommending to throw my own @mjolka
I used to have return null;, but that is frowned upon.
@mjolka wanted to make sure this is the way to go
@Mehrad well what are you doing with the exception? displaying the message to the user?
or just logging to a file? or..?
00:29
@JeroenVannevel We write an entire ERP system. It's hundreds of thousands of lines of code. Maybe even 7 digits on the line count. We're contemplating upgrading but... yeah... this is a massive project...
@mjolka both
and the user side need to make sense you know
@Hosch250 In C#? Yes, probably, I'd say so. In Objective-C, we love return nil;
@Mehrad sure, then i guess i'd go with a custom exception, set the inner exception to the OleDbException
@nhgrif Yes, in C#.
I'll remember that in the event I port to OSX/iOS.
@mjolka cheers
00:31
np
@nhgrif WOW.
I don't even keep a database of anything.
So, I don't need an ERP yet.
User-end stuff doesn't have to make sense to the user. User-end stuff has to be very clear and distinct so that when the user reports it to your support, it's 100% clear what the exception was, where it happened, etc.
This sounds like it might be a better fit for codereview.stackexchange.com ... but then again you may not get much help keeping with this direction there as opposed to doing this with less shell and more python instead. — Etan Reisner 1 min ago
00:50
0
Q: 1/x scaled x axis in matlab plot

Jonas SteinWhat is the matlab way to create transformed scaling on the x axis? I use this workaround to plot an 1/x scaled axis. The problem here is, that plot does not plot data, but 1 ./ data in fact. So that one has to adjust fits, and all graphic elements in the plot later. data = linspace(3,10,8); pl...

1
Q: Looking for feedback on a port of the 1971 StarTrek game to Clojure

Marcus MartinI ported the Star Trek 1971 game to Clojure to help me learn more about the language and functional programming in general. You can see the entire game on Github. The game plays (you can start it with lein run). Instructions are i game or you can see the first link to get more details on the hist...

0
Q: add multiple data attributes to elements using jQuery

Blexylooking for some help on how I can optimize adding multiple data attribute tags to elements, and really, any feedback at all. Background Client uses a analytics tool through a tag management application (Ensighten) that picks-up data attributes when links are clicked. I'm adding attributes when...

01:07
ACTIVITY
@SirPython What's up?
Nothing much. How about you, @Hosch250?
Nothing much.
Just worked on my app a smidgen, and did school a fair bit.
Did you see my Marilyn Monroe?
I had to color her in with PS Elements.
But locking it for historical purposes or whatever may be more appropriate? I don't know.
It's over 2 years old.
@nhgrif What is wrong?
It seems to be a comparative review.
01:16
Example code.
Oh.
I don't know Objective-C, so I can't see.
It appears to be valid to my eyes.
Example code can still compile.
_viewControllerATabBarItem
This is basically: _fooInstanceA
Importantly here, he can't tell us any actual differences (besides what the code looks like) between the two snippets because he's never compiled and run either snippet.
01:33
@Mehrad it might make sense to throw your own, but make sure you pass the original exception into your custom one as an inner exception.
We are talking C# right? If not, I don't know what I'm talking about.
@RubberDuck Yes sir, yes sir :)
public TemplateFileUpdateFailedException(string message, Exception inner)
    : base(message, inner)
{
}
Heck. I don't know what I'm talking about anyway. =P
@RubberDuck you certainly do. and that's a great point actually
Lol. I really don't. Only been using it since Oct. everything I know I've learned since then.
@RubberDuck Have you ever had experience monetizing an app?
01:36
@RubberDuck I believe if you know how to code, learning a language is just the matter of memorizing the syntax or even Googling it :)
2
@Mehrad I completely agree.
@Mehrad Although, some languages may introduce new concepts(such as OOP), and others may be a lower level, forcing users to have to learn lower-level concepts. For example, when I started using a language like C, I had to learn all about pointers, memory, and what strings actually were.
If you're doing an OOP language, you should take the time to really learn about pointers...
And different languages do memory differently. It's not necessarily important to understand manual memory management... but you do need to have a pretty in-depth understand of how your language of choice handles memory management.
Agreed on all points gentlemen.
01:47
@SirPython sure. what I said was a little bit over generelised. Starting Python had some quite new fundamental changes for me since I always did languages which compile as a whole rather than one line at a time (forgot the name for these type of languages)
@Hosch250 no. I don't. We give away Rubberduck and my day job involves in house development.
I don't even know what that means...
Compiled vs Interpreted
DONE. that's the thing. word. :D
01:50
hardest part about English is that I have to learn the names of everything from the scratch. :)
@RubberDuck my brain was crunching numbers like crazy trying to remember :D
You're not a native speaker? Could've fooled me.
@RubberDuck not at all :) 1...,2.Persian(Farsi),3...,4.English :"(
I've been googling information about compiled versus interpreted... and I'm still confused.
Oh.
Now I understand. The explanation is that Swift is an amazing language.
@nhgrif how I remembered it (which may be TOTALLY wrong) is that interpreted languages such as Python run each line of code independently and at the point spot on. vs Compile types, as the name states compile the whole lot first and if it's a go, then they run.
@nhgrif haaaaaaaaaaaaaaaaaaaahahahah... if swift is a follower of objective C I would say it should be Compiled type
01:58
> Traditionally, there was a gap between compiled programming languages, such as Objective-C and C++, and interpreted languages, such as Python and Ruby and PHP. With compiled languages, after you wrote your code, you had to wait for your compiler to turn it into executable software, but once it was built, this executable software ran extremely fast. Interpreted languages let you test your program nearly instantly, but in the end, it didn't run as quickly.
Swift bridges this gap, giving you the best of both worlds. The new language makes it far easier to build and run something without sacr
Compiled languages generate machine code files, IIRC, like your .dlls.
Interpreted languages are compiled into a more advanced language, like Assembly, which is interpreted and run JIT.
Only, I don't know how similar to Assembly the interpreted files are.
Probably not very similar.
That actually sounds a lot like what VBA does @nhgrif. You can more or less freely modify the code as you're debugging, but it is actually compiled into binary as well.
What does "more or less" mean?
It means I don't know how similar to Assembly the interpretation is.
It means there are limits to what it will recompile on the fly.
02:01
So, it could be like Assembly, or it could be more like Python.
It won't let you remove declarations or change signatures while it's actively running, but most things are fair game. It's an odd hybrid.
Interpreted while debugging, compiled otherwise.
Apparently C# is interpreted. :O MIND BLOWN
02:06
Can we say Swift is for babies since it has a Playground ? :P
Without building Checkbox.swift even once, Xcode can draw it on any interface builder file.
still waiting to see how my assumption gonna fire back on me ;)
I don't know about VBA, but with VB or C#, I have to compile a project before I can even create an inherited control... never mind see a custom control that I popped onto a form.
@nhgrif is Nate Murray your Yourtube channel?
No.
I don't have a YouTube channel...
02:11
@nhgrif when you said "never mind see a custom control that I popped onto a form." I though you're mentioning something in the video that you did. my bad
Pretty cool @nhgrif!
No. I mean in VB or C#, if I create a custom control...
Yep impressive I should say
before I can inherit from that control
or before I can pop it onto another form and see what it'll look like, I first have to build it.
C# is definitely compiled. It gets compiled into an intermediate language that then in turn gets compiled.
02:13
@nhgrif not sure about that though
@RubberDuck then why this guys is saying "Also the interpreted languages like python and even Java, C# have a number of advanced facilities like dynamic typing," ?!!
I thought it should be compiled as well
Also, Objective-C gets "compiled" into C which is then compiled into... assembly...
Objective-C is a compiled language.
I don't see how logic dictates being able to safely land on the ground just because you jumped. If I stand on a table and jump up, I can probably land safely on the table. If I stand on a table and jump up, and the table is suddenly removed (my jump is suddenly several feet higher... the ground is suddenly several more feet away than normal), logic doesn't dictate that I'd be able to land on the ground just as safely as I'd be able to land on the table had the table been there all along. Physics tells us that after the peak of your jump, all you're doing is falling. — nhgrif 54 mins ago
@Mehrad that guy is misusing that word.
I think so.
I believe he's using it because there's an intermediary language.
@nhgrif is there such logic as being able to safely land on the ground just because you jumped
02:18
If you clicked "54 mins ago" it'll take you to the context for that comment.
@nhgrif kk... I guess I joined from the middle/end
0
Q: Use git to get SHA-1 of repo via python

pkambI've created the function below to get the SHA-1 of the repository used by my CI server. The hash is then used to update the pass/fail status of the commit on github. I'm a python amateur. What stands out below? def get_sha(): root = os.environ["PWD"] repodir = os.listdir(root)[0] #...

02:40
@Mehrad The force of landing is no greater than the force of leaping.
If you land on the same level you jumped from, yes, you can land safely just because you jumped.
Unless, of course, you killed yourself with the force of your leap.
0
A: Creating and saving blurred screenshots in iOS

nhgrifUltimately, it looks like your code has gone a long way toward being very convenient in the one spot you want to save a blurred screenshot to NSUserDefaults... but a long way toward being highly specific and not at all reusable. For starters, we don't need a class for this at all. Classes sho...

@Hosch250 That's not true.
F = MA
The best thing we ever did on our project was make use of queries containing % instant cause for failing a code review :-) That code gets sent back to be turned into a parameterised query. — paxdiablo 1 min ago
The acceleration of jumping is some value > 9.8m/s^2 (on Earth)
That is, in order to jump, you must accelerate at a rate greater than the pull of gravity.
On the way down, however, your acceleration is a constant 9.8m/s^2
And your mass is constant unless you had a bowel movement mid-leap or something...
This probably belongs on codereview.stackexchange.com. — jsve 1 min ago
@nhgrif You also decelerate at a rate of 9.8m/s^2 while going up.
So, you accelerate at the same rate going both up and down, if you land at the same height you jump from, you have the same force.
The upward acceleration takes place only while you are pushing upward off the ground.
@200_success I just reviewed your answer here:
0
A: Conditional callback for asynchronous file copy

200_successYou can write function(callback) { callback(); } as just callback

The system wants you to write longer answers, at least I'm guessing that.
Who else would flag your answer as low quality because of its "length and content"?
 
1 hour later…
04:07
> you're a thought leader for stupid ideas
> the logging and monitoring agents you installed are taking up all the CPU and memory. your parents must be so proud.
> Let's do something different today, like, your job.
> I don't know why you're giving me grief about downtime. In any given 24 hour period you're only functional for 6-12 hours tops.
Seriously, it's a goldmine
04:21
when a comment is 1000x more helpful than an answer stackoverflow.com/a/12843372/1220238
04:35
@mjolka hahaha... however I read this multiple times and still don't understand the whole thing
design time debugging?!!
encountered errors during design time
what does that mean?
0
Q: c++ switch statement help pizza order.

Dr StrangeIm having trouble with the code running. I am pretty new to this since you can tell that its a simple problem and this is for my intro class. I must use the switch statement to calculate the bill for the amount of pizza's ordered. I do believe the the code is right up until the bottom outside of ...

04:51
Anyone around?
I found an answer on SO that is guaranteed to get you approved flags.
-2
A: How to compare two Arraylist values in java?

evan cosgrovebitch bitch bitch bitch bitch bitch

And this post should be closed.
0
Q: c++ switch statement help pizza order.

Dr StrangeIm having trouble with the code running. I am pretty new to this since you can tell that its a simple problem and this is for my intro class. I must use the switch statement to calculate the bill for the amount of pizza's ordered. I do believe the the code is right up until the bottom outside of ...

@Hosch250 that was a great deal :)
Flag it as offensive.
It is my first offensive flag.
I have 4 spam flags, all accepted.
@Hosch250 how would you know if your flags are approved?
Go to your account page.
Once you have an approved flag, you can check there.
It will say: "Helpful flags: ###"
The ### is a link.
is it was says helpful flags?
nice
thanks found it. never noticed
04:57
@Mehrad so in design mode i've got a view that looks like this
looks fine when the app is running, so i'm trying to find out what the ViewModel is doing at design time
Oh...
that's right. now I understand. I've done couple of MockDataViewModel's and actually never thought about that you could debug what's happening
@mjolka good to know
"be sure to come back" - I like it :D — morbidCode 2 mins ago
0
Q: Tkinter multiple comboboxes, reference, <<ComboboxSelected>>

SteliosI am trying to create a Hearthstone tracker, i'm not experienced in Tkinter and i'm facing some difficulties. I want my Comboboxes' selected value to match with an icon on selection. I know there is something wrong the way i created the comboboxes, i cant understand how to configure specific comb...

05:21
WooHoo!
Passed the 50% mark at SO.
I'm position #115469
05:34
Monking
Monking
How are you doing?
Night, everyone.
06:16
Yaay I got the popular question badge on my one and only question! :D
<-- newb happiness
06:26
congrat @Gemtastic
Thank you :D
Now I just gotta write better things. I've made a webapp I wanted to have a CR on, but it's got too many flaws and since I know of them I don't want people to CR them :/ I'm gonna have to remake it before I do anything more >_>
0
Q: Rotating an NxN matrix

Omer HassanWhile working on solving one of CodeEval challenges, I came up with the following solution for rotating an NxN matrix 90 degrees clockwise. It looks elegant to me but can someone explain how its performance compares to the more common solutions mentioned here: http://stackoverflow.com/questions/4...

You could also start to answer questions ;-)
But I'm not good enough D;
You will get better with some practice.
06:33
Well, as long as noone hates on me :P
TTGH. have a good one guys
in VBA, 1 min ago, by Mat's Mug
http://www.rubberduck-vba.com is live! There's not much there yet really, but still... #makesmyday
Nice @Mat'sMug, pretty design
bye @Mehrad
thanks! :)
-1
Q: Recursive function calls with same parameters

vartikaI have a function "CALLER" which gets some variables from the application and then passes to a recursive function "CALLED". Some of these these variables are same for all the recursive calls to "CALLED" function. I think passing institution and user again and again is just a waste of memory. Sinc...

06:39
TTGTB
@Gemtastic There is no room for hate here on code review !
@Mat'sMug night
hey @Nabeel
@Heslacher Yaay
I wanted a little information about a problem on windows 7
06:45
Super User would be the site for that.
I did post a question on super user but no one was able to answer my question: superuser.com/q/882393/422478
It's only been 18 hours so far. SU is a large site, so it may take some time for others to answer.
That's true but more than 40 people have looked ad the question and have vanished....
Can anyone here answer it?
Because I'm in a kind of hurry here because I have to complete a school project and visual studio gave way
@Nabeel Are you running as admin?
@Nabeel can you reinstall it?
06:52
Yes I am the admin and no I cannot reinstall it because the stupid thing doesn't let me access any thing
if yes => do that and try revo uninstaller.
-1
Q: python tkinter reference in comboboxes created in for loop

SteliosMy code so far, i want to import images depending on combobox and selection. I need reference to self.box. e.g. self.box1, self.box2 etc or append them somewhere somehow from loop if possible from Tkinter import * import ttk class Application(Frame): def __init__(self, master): Fra...

if you are admin, is the system restore on?
with an istallation or deinstallation, the system will make a restore point
The restore point (I have no idea how) is after the problem started
don't you have earlier restore points?
06:54
this is blatantly off-topic here
you seem lost. This is the main chat room for Code Review SE
@janos correct, maybe we should create a temp room
Unfortunately no. I never thought my own computer would lock me out
@nabeel, there could be one solution. There is an hidden admin account
you just have to enable it
Yes I agree that this is off topic but this is the only room here with people who are actually programmers
06:56
And if you have any problems with C/C++/Java code I can help
brb in 30 min
Ok
If you'll read the question: superuser.com/q/882393/422478 you will get an idea of what I am dealing with
07:21
back
@Nabeel I did read your question
The build in admin has more rights then your account
but of course, you could format the whole thing also
And for the future use a virtual machine.
07:39
That is what I want to prevent, formatting the whole thing isn't there a kind of software to just correct the access permissions?
08:13
I have recently began removing from questions passively, as we may consider putting an end to it. Even 200 agrees and has created one replacement tag so far.
0
Q: Evaluation function for Connect Four

Tyler HouHere is some code I have written as a connect four negamax evaluation function. The state of the board is stored inside a class state. state.get() is \$O(1)\$, state.getBoard() is \$O(1)\$, and state.getWinnerColor() and state.getDraw() are also constant (although they have a higher constant coef...

@nabeel, do you have those messages also with th ehidden admin account?
if no => you could remove your default user and recreate a new user as admin
08:48
@Jamal I checked some of the question having this tag and it is mostly hard to figure out which sub tag to use. Mostly the tag is used like
> Our community is defined by a specific set of topics that you can view in the help center;
^ In this sentence, "view" sounds a little off :/
Otherwise, morning everyone :)
morning @Morwenn
> which are listed in the help center.
would be better ^^
or "which you can read about in the help center"?
english is not my first language but I like mine more
Well, let's ask a native speaker :p
08:55
how about @Jamal
09:50
o/
> Our community is defined by a specific set of topics that you can view in the help center;
sounds fine, tbh
both examples are fine
Though, when you say topics, do you mean rules?

« first day (663 days earlier)      last day (3652 days later) »