I'm not sure this is the right place (if there is one, I'm an SO newb basically), but this question... sometimes I worry: stackoverflow.com/questions/36994604/…
I've never used CodedUI, but it seems that it is for testing the UI flow, input fields, validators and other things related to the view itself. If I'm wrong, someone will arrest me shortly :)
yeah I've written Chrome extensions in the past, but I've never used any in a corporate environment. I was just wondering if it's a valid platform to target for a corporate app.
@Shift nah. It's still not clear exactly what you're asking. Do you mean to ask "please advise on the most efficient algorithm to solve this problem"? if so, it's not really a C# question - and one that has already been answered on SO or Programming SE before
@Squiggle You should check out how ChromeOS is doing and work from there? I am pretty sure that chromebooks could be a great supplement for many mac users.. Pretty damn sure
The knapsack problem or rucksack problem is a problem in combinatorial optimization: Given a set of items, each with a weight and a value, determine the number of each item to include in a collection so that the total weight is less than or equal to a given limit and the total value is as large as possible. It derives its name from the problem faced by someone who is constrained by a fixed-size knapsack and must fill it with the most valuable items.
The problem often arises in resource allocation where there are financial constraints and is studied in fields such as combinatorics, computer science...
@JakobMillah yeah I really like my Chromebook for travelling
@Shift nah, the question is waffling and vague. stackoverflow.com/help/how-to-ask - it's difficult to know what the right answer is. Also yeah, stop spamming?
Hey guys. We've got multiple computers and a mysql-server in here. For my desktop app I would like to restrict a special edit-function (datagridview) to one-edit-per-time to avoid multiple users editing the same data simultaneously which could cause problems. Whats the best practise for this?
Should I just add a new table to the db and save the lock-state with a bool and a referrence to the member who's locking the datagridview?
keep the state an relase lock when the app is back but it will be frustrating for other users the stare at a locked table until the crashed app releases the lock
A friend was brought in as a consultant a few years ago for a credit card company here, to help with performance issues. His analysis? "You shouldn't be loading the entire account table to memory every time someone tries to log in so you could compare the password to the password in the DB. Also, why the hell is the password stored in the DB?!"
The UK Data Protection Act has wording along the lines of 'all reasonable technical measures'. So it doesn't explicitly say you must do this or that, but laws about negligence don't specifically say you must not let pushchairs roll off cliffs either
@TomW It's actually a good thing that the law doesn't explicitly state what technical measures are necessary. Laws change very slowly. Technical best practices evolve faster.
In security engineering, security through obscurity (or security by obscurity) is the reliance on the secrecy of the design or implementation as the main method of providing security for a system or component of a system. A system or component relying on obscurity may have theoretical or actual security vulnerabilities, but its owners or designers believe that if the flaws are not known, that will be sufficient to prevent a successful attack.
A system may use obscurity as one layer of a defense in depth strategy, which involves layered security. While all known security vulnerabilities should be...
An implementation which is obviously deficient technically and contributes to a breach, you could be liable for if you wrote it. Even though the law doesn't prescribe an approach.
@Sippy storing passwords in plaintext so that they can easily be stolen, for example
Oh well. The web shops we manage does not contain any credit card information or anything. It's all just order / point based, so not like they could steal peoples money. We have hashed passwords for customers that really demands it. Like SAS
@JakobMillah You can't hash addresses and phone numbers, because you need their plaintext, not just comparisons. You should consider encrypting the whole DB in case a hack resulted in someone copying your DB store files, rather than gaining process execution privilege and copying the data out.
@scheien @wadry The client was enraged when we took this feature away from him, but less so after we reminded him that he'd just had to fire 2 staff for stealing from the business and manipulating warehouse stock levels.
@Squiggle If dixons group (the people that own pcworld, and currys) still use the same point of sale system and intranet I can probably still login to theirs
@Squiggle My current project has a feature which allows admins to upload any PowerShell script (and possibly python as well, in the future) and configure the server to execute it as part of a triggered workflow process. I call it the Code Injection feature.
@Squiggle The client can be as enraged as he likes, get him to put it in writing that he wants to keep the feature and let him keep it, at least you won't be liable
@AvnerShahar-Kashtan yep. I've been both the developer and consultant in these situations - I said the exact same thing in both cases, and got predictably different responses.
Consulting++
you basically get to tell people what they're doing wrong, and they'll sometimes actually listen to you
hi i want print svg file (taken from hosting website with url) to pdf... using itextsharp... how can i do it? Thanks i'm going to use SVG Rendering Engine.
I've seen situations where companies will change their entire way of thinking because a friend of the CEO is going to provide some system that can't do what they need
itextsharp can't convert svg but i read for this plugin svg.codeplex.com and i want any help to convert image svg taken by url to png and print to pdf.... thanks
@Shift it's a web application, build using dnx/dotnet.
and no, that's not so handy - that talk is about pushing data. I need to publish a web application.
I'm informed that there's a powershell extension I need to use, so I can do it from the commandline. However, relies on there being a .cspkg created (via MSBuild).
dnu publish doesn't have the ability to create a cspkg
I loose a textbox value on postback, any simple workarounds / solutions ? This textbox value is datetime specific & gets inserted by user input into a Ajax CalendarExtender that targets the textbox.
I'm waiting for the "Well the box is in a winforms component loaded in to wpf and the value comes from a COM call that gets requested on the other side of a pinvoke in to a c++ lib"
mind you if its that bad just put a seriously ugly hack in on top of it and then put a recommendatio nthat they get you to rewrite it later
they either choose to follow the advice or not ... but that recommend could come with a side comment of "unmaintainable going forward, required action"
I handle loads of crap that way, and when they ignore me I put in ridiculous quotes like "2 weeks to restyle that text box"
then when they complain im like ... well you were told about the ball of mud and haven't resolved the situation
how can i wanna convert with c# image taken by url and convert it into a into iTextSharp.text.Image object or image png to use here instead image directly:
iTextSharp.text.Image jpg = iTextSharp.text.Image.GetInstance(IMAGEOBJECT);
How can i do it? Some one can help me please.
Thanks very muc...