|
class Mates
{
private Random rand = new Random();
private bool wifePermitting = false;
public virtual bool GoForADrink()
{
return (rand.Next() % 2) == 0 && wifePermitting;
}
}
class BetterMates : Mates
{
public override bool GoForADrink()
{
return true;
}
}
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
|
|
|
|
|
is our browser at work. Of course, no other allowed. And firefox "protection" function sucks : at least twice a day I cannot open a website because FF thinks it is unsecure or whatever they call it, and I cannot add an exception, etc... Oh mozilla, just let me turn this nonsense off with a setting, pleaaaaaase....
|
|
|
|
|
I asked that in the Moziall official FB page and was bashed by a lot of people telling me "you want to put at risk millions of people just because you know what you're doing?".
Apparently my response that people who didn't know what they were doing shouldn't be allowed near a computer wasn't well received...
GCS d--- s-/++ a- C++++ U+++ P- L- E-- W++ N++ o+ K- w+++ O? M-- V? PS+ PE- Y+ PGP t++ 5? X R++ tv-- b+ DI+++ D++ G e++>+++ h--- ++>+++ y+++* Weapons extension: ma- k++ F+2 X
If you think 'goto' is evil, try writing an Assembly program without JMP. -- TNCaver
When I was six, there were no ones and zeroes - only zeroes. And not all of them worked. -- Ravi Bhavnani
|
|
|
|
|
Well, I do not need it to be standard, but at least be able to switch it off would be interesting.
|
|
|
|
|
That was what I was asking, an option in about:config. The answer: "every user will enable it and it will be useless".
1) If every user would disable it maybe it is an unwanted feature?
2) It's my fraking browser.
I don't want to use Chrome as I find it more cumbersome and less intuitive than FF but soon I'll be completely sick of all FF blockades. No access to port different form 80, with obscure configuration options to add in order to whitelist specific port numbers, asking each time for the "obsolete" plugins...
GCS d--- s-/++ a- C++++ U+++ P- L- E-- W++ N++ o+ K- w+++ O? M-- V? PS+ PE- Y+ PGP t++ 5? X R++ tv-- b+ DI+++ D++ G e++>+++ h--- ++>+++ y+++* Weapons extension: ma- k++ F+2 X
If you think 'goto' is evil, try writing an Assembly program without JMP. -- TNCaver
When I was six, there were no ones and zeroes - only zeroes. And not all of them worked. -- Ravi Bhavnani
|
|
|
|
|
den2k88 wrote: I find it more cumbersome and less intuitive
Could you elaborate on that ? I find Chrome much more intuitive, so now I am curious about what FF can do better. (the separation between navigation and search bar is one thing that belongs to the past, for instance).
|
|
|
|
|
Cumbersome as it kills the RAM on every computer I use it, and since I multitask a LOT (several VS instances at work, on 2GB of RAM, and videogame+download+browser at home) stealing over 2GB of RAM in any given moment is crippling. I had up to 2.5 GB of memory footprint for Chrome, with FF I rarely surpass 600 MB.
Less intuitive as I want an easy way to save images from the web, a usable menu bar and yes, I prefer search bar and address bar to be separated but that does not concern me much. Private navigation in Chroe is heavier, opening tabs is slower and loading pages too. On every workstation/pc I used, with very different configurations - form the EeePC 701 to my trusetd i7 laptop.
GCS d--- s-/++ a- C++++ U+++ P- L- E-- W++ N++ o+ K- w+++ O? M-- V? PS+ PE- Y+ PGP t++ 5? X R++ tv-- b+ DI+++ D++ G e++>+++ h--- ++>+++ y+++* Weapons extension: ma- k++ F+2 X
If you think 'goto' is evil, try writing an Assembly program without JMP. -- TNCaver
When I was six, there were no ones and zeroes - only zeroes. And not all of them worked. -- Ravi Bhavnani
|
|
|
|
|
den2k88 wrote: memory footprint
OK, I've heard about that but never paid attention, mostly because when I use Chrome @ home, I do not do something in parallel. I have never used it in a working environment.
den2k88 wrote: easy way to save images from the web
? Right-click "Save Image as ..." ?
OK, so I get performance is an issue. As a said, I don't (can't) use it at work, so it never occured to me. Thanks for the feedback !
|
|
|
|
|
Rage wrote: ? Right-click "Save Image as ..." ? On the versions I used there wasn't the option, maybe in subsequent versions it has been added.
GCS d--- s-/++ a- C++++ U+++ P- L- E-- W++ N++ o+ K- w+++ O? M-- V? PS+ PE- Y+ PGP t++ 5? X R++ tv-- b+ DI+++ D++ G e++>+++ h--- ++>+++ y+++* Weapons extension: ma- k++ F+2 X
If you think 'goto' is evil, try writing an Assembly program without JMP. -- TNCaver
When I was six, there were no ones and zeroes - only zeroes. And not all of them worked. -- Ravi Bhavnani
|
|
|
|
|
Firefox is the "new Internet Explorer" (the sick browser).
BYOD...
Press F1 for help or google it.
Greetings from Germany
|
|
|
|
|
I've not yet come upon the with FF. Could it be my A/V gets there first?
Maybe it's time to revisit SeaMonkey ?
Ravings en masse^ |
---|
"The difference between genius and stupidity is that genius has its limits." - Albert Einstein | "If you are searching for perfection in others, then you seek disappointment. If you are seek perfection in yourself, then you will find failure." - Balboos HaGadol Mar 2010 |
|
|
|
|
|
W∴ Balboos wrote: I've not yet come upon the with FF
COuld be also linked with the way my company (and the proxy etc) handles security. I might be blaming FF for the incompetence of my IT department.
|
|
|
|
|
Now there you've hit on something.
My box at work goes through the company SPAM filters. As part of IT, I'm supposed to be completely unblocked. Mostly yes. Once in a while, oops.
My box (95% of my time) has a static IP and is relatively well behaved in this respect. The VM, however, does not. Let's just say it's a bit shaky at times, dropping back to standard user settings.
Hopefully, if your IT dept knows you by the same name we do, they'll comply quickly.
Ravings en masse^ |
---|
"The difference between genius and stupidity is that genius has its limits." - Albert Einstein | "If you are searching for perfection in others, then you seek disappointment. If you are seek perfection in yourself, then you will find failure." - Balboos HaGadol Mar 2010 |
|
|
|
|
|
|
Presumably you've visited about:config and checked the safe browsing settings?
- browser.safebrowsing.enabled
- browser.safebrowsing.allowOverride
And also tried changing the Options ⇒ Security ⇒ Block dangerous and deceptive content setting?
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
|
I love C#. The only time I really struggle is when looking at a new codebase, with datatypes. So, for example, I'm now learning a lot of Identity/OAuth related stuff, and code which is actually quite simple, becomes harder for me to understand when I am not familiar with the data types used. See this example:
public class ApplicationUserManager
: UserManager<ApplicationUser, string>
{
public ApplicationUserManager(IUserStore<ApplicationUser, string> store)
: base(store)
{
}
public static ApplicationUserManager Create(
IdentityFactoryOptions<ApplicationUserManager> options,
IOwinContext context)
{
var manager = new ApplicationUserManager(
new UserStore<ApplicationUser, ApplicationRole, string,
ApplicationUserLogin, ApplicationUserRole,
ApplicationUserClaim>(context.Get<ApplicationDbContext>()));
manager.UserValidator = new UserValidator<ApplicationUser>(manager)
{
AllowOnlyAlphanumericUserNames = false,
RequireUniqueEmail = true
};
manager.PasswordValidator = new PasswordValidator
{
RequiredLength = 6,
RequireNonLetterOrDigit = true,
RequireDigit = true,
RequireLowercase = true,
RequireUppercase = true,
};
var dataProtectionProvider = options.DataProtectionProvider;
if (dataProtectionProvider != null)
{
manager.UserTokenProvider =
new DataProtectorTokenProvider<ApplicationUser>(
dataProtectionProvider.Create("ASP.NET Identity"));
}
return manager;
}
}
What this code is doing is actually very simple, and I get that. But, there are a lot of types thrown around that I'm not familiar with... And then when I learn this particular codebase, the same thing will happen with another when I'm new to it. This was just a small example, but for example with the standard value types like int, double, string, it would be much more straightforward.
That said, my current strategy is usually to just hit ALT+F12 in Visual Studio to take a peak at the code and just try to memorize it... But sometimes, for example, I'll implement something like this and then not even have to mess with it for a while (month or more), then start to forget it... Especially when it is code in a totally customized codebase that is not part of any standard library.
Any tips appreciated!
|
|
|
|
|
It is just a fact of life.
Nobody expect you to hit the ground running when you are dropped in a totally new project!
|
|
|
|
|
I understand and sympathise with you being dropped in the deep end, but creating and using custom types, or classes, is a very fundamental rennet of OOP. Even C allows the use of custom types via the use of struct , even if that is miles from OOP.
Do what thou wilt shall be the whole of the Law. - Liber AL vel Legis 1:40, Aleister Crowley
|
|
|
|
|
That is the real complexity in any project. It's not the 40ish C++/Java keywords or the standard Bohm-Jacopini flows, nor usually are the algorithms.
It's the net of data types and their relationships, which must be learned and should be well documented.
GCS d--- s-/++ a- C++++ U+++ P- L- E-- W++ N++ o+ K- w+++ O? M-- V? PS+ PE- Y+ PGP t++ 5? X R++ tv-- b+ DI+++ D++ G e++>+++ h--- ++>+++ y+++* Weapons extension: ma- k++ F+2 X
If you think 'goto' is evil, try writing an Assembly program without JMP. -- TNCaver
When I was six, there were no ones and zeroes - only zeroes. And not all of them worked. -- Ravi Bhavnani
|
|
|
|
|
TheOnlyRealTodd wrote: I'll implement something like this and then not even have to mess with it for a while (month or more), then start to forget it.. It is for this reason that I am really starting to like Sandcastle. It requires a lot more effort when writing XML comments but the end product is worth it. I love having a code documentation website with the exact look and feel of MSDN but features my code. It even links forward to the official documentation of .Net classes.
if (Object.DividedByZero == true) { Universe.Implode(); }
Meus ratio ex fortis machina. Simplicitatis de formae ac munus. -Foothill, 2016
|
|
|
|
|
I got so many deploy / debug issue (as in: app not building, app not deploying, app not debugging) every time a new version comes out..
I had hope they do a better job since acquired by Microsoft, but latest version were even more problematic...
|
|
|
|
|
Super Lloyd wrote: since acquired by Microsoft
There you have the answer
|
|
|
|
|
Not really, when did a .NET framework update caused you any trouble?
Yeah, I can't remember either....
|
|
|
|
|
I use Firefox and the only setting there is concerning redirection is an all-or-nothing checkbox in which when selected any attempted redirection causes there to be a bar added at the top allowing the user to select Allow (or close the bar to not allow). Because I typically do not notice this bar, I logically do not get informed of the redirection. For most websites, all that happens is I don't see whatever part of the website I was supposed to see and just presume that the website is broken and I move on. However, just today I was at my financial institution's website trying to access a feature and it resulted in a redirection that the all-or-nothing setting blocked, and since I did not notice the top bar asking to Allow the redirection, I became frustrated, almost to the point of calling up the institution to do what I wanted to do with the feature by a representative. (I eventually did notice the bar and once I allowed it, everything worked fine.) I should say that I don't remember this feature being blocked in the past.
So my question is whether there is ever a legitimate reason to do a redirection that Firefox would catch (i.e., if the selection were to do so), or if having such a redirection is the result of poor programming somehow. I understand perfectly that an evil website would want to do such redirection, but obviously I do not want to have that be done.
|
|
|
|
|