« first day (2753 days earlier)      last day (1649 days later) » 

2:16 AM
@Snow I dont like your new display picture.
 
 
6 hours later…
7:58 AM
It's so tempting to use my keyboard as a pillow. I lay awake until about 4am this morning.
 
mag
8:26 AM
morning
hands snow some coffee
 
9:01 AM
cracks open a can of red bull
 
<glugs>
It's now far too late. The longer this goes on, the harder this is to fix. It's like hitting a deer on the way home and then deciding that it's more important to fix the fender than take the deer to a vet. But the next day, the repair shop is closed, and the next day, they don't have the parts, and the next day the parts are on back-order, but you still can't take the deer to the vet until the fender is fixed."
(With apologies to non-Americans, I'm speaking to an audience after all).
 
mag
9:28 AM
@Snow I added my own musings there
there is no politically and PR tenable way to get out of this for them except doing nothing
now that the monica protests have been linked to the alt right by association even less so
 
 
4 hours later…
1:05 PM
another rep cap without trying.
 
1:16 PM
Good answers speak for themselves.
Seems to be remarkably good advice lately:
Well, good luck. I would just skip visiting meta myself, but whatever makes you happy. — Gimby 11 mins ago
 
1:43 PM
I just remembered why I don't come here much anymore. I got tired of the "omg, you told someone not to go to HR?! They should totally go to HR!!"
 
Blergh.
 
HR does not appreciate being called in for BS
 
I got pretty tired of edge-casers myself.
 
"I understand that this may apply in 99.8% of the cases, but why didnn't you include something for when a car hits a telephone poll, which causes a brown-out, which causes a power surge, which causes the circuit breakers to the refrigeration unit, which causes spoilage, which causes food poisoning, which could make the OP miss work"
voting-1
 
Exactly.
 
1:48 PM
@Snow better yet is the comment "-1, you failed to include {something actually very prominent in the answer] in your answer"
 
lol. Or "There's a rule against this in Germany, didn't you consider this?" When there's clearly a USA tag in the question.
 
Kilisi brings up a good point. Could all of this nonsense be rage-click marketing?
 
2:11 PM
Anyone experienced in MVC before I put my metal armour on and attack SO?
Trying to build the website for my new company myself before wasting a loada money and I instantly regret it
 
@RichardU No. But it doesn't matter anyway because it's not like there's an alternative.
 
@ChrisE that's what Tech Republic said.... just sayin
 
@Twyxz I assume .NET MVC?
 
Yeh
Framework
 
I'm a little rusty but know a reasonable amount - what do you need?
 
2:15 PM
I have a model that passes through a byte[] which I have confirmed is returning correctly
I'm trying to put this image into a table with other data. ALl the other data goes into the table but when it gets to my img src= it just skips that <Td>
 
Sounds like a job for Serialize()
 
@Snow that'd be my first thought
 
I've used that before for passing entire class structures of data between tier-level calls.
 
how are your doing your DAL @Twyxz?
also make sure you've got the schema set up correctly - the column will need to be a varbinary type in SQL
if you're wanting to store the byte[] directly
 
Oh
That might be the issue
I'm storing it as the Image datatype
Or is that not a problem
 
2:29 PM
@Twyxz yeah that could well be it - you're not passing it an image but rather a chunk of binary data that just so happens to represent an image
Image is deprecated anyway now
 
so much zzzzzing these tests, I have the backend launched since almost 20 min and I'm still waiting result. And I forgot to add logging :|
 
@motosubatsu It doesn't like that change at all
 
2:45 PM
how are you doing the DAL?
 
2:56 PM
I'm not
I literally only have the tables atm
 
are you using EF or are you going to use sqlcommands/stored procs?
 
3:12 PM
SQL Commands
well I have used them so far, just bringing back the data and trying to display the image to start with
in a table so its looping through an ienumerable of my loop and display a row
but skips the image
 
ahh.. so you're trying to get it out of the DB rather than insert it?
ok.. well to get it in using sqlcommands you'd do something like this:
byte[] img; //the byte array of the image

SqlParameter param = new SqlParameter();
param.SqlDbType = SqlDbType.VarBinary;
param.ParameterName = "TWIZZYWIZZZYPARAMETERNAME";
param.Value = img;
command.Parameters.Add(param);
to get it back out, once you've got your data row it should be relatively simple to translate that back into the byte array.. something like this:
byte[] myImage = (byte[])reader["MyImageColumn"];
 
maybe ive confused the question
But I've got the bytearray back from the DB
its correct, the only issue is displaying it in view from the model
 
ok.. so now you just want to display it.. gotcha
 
In a table
not a database table
like a display table
And I have the code but it jumps over my <td> with the img src in
 
I'm assuming you've got an ASP:Image control in your td
?
would probably be a lot easier if I could see the aforementioned code
 
 
2 hours later…
4:58 PM
Wow, They took down meta stack exchange!!!!!!!
 
@RichardU ?
Still up and running for me.
 
@Rubiksmoose wow. It just came back up.... I got the page to link to the @status and everything.
that's odd
 
115
Q: To reach out: on Monica, the Lavender community, and the future of the Stack Exchange network

heatherOver the past weeks, the uproar has been vast, spanning the new Code of Conduct, Stack Exchange's conduct over the years, and more. Gallons of internet ink have been spilled by everyone involved, including myself. If you don't know me, I'm heather. I am a moderator on Quantum Computing Stack Exc...

 
@Rubiksmoose saw that. Hopefully things improve.
 
5:28 PM
43
Q: GDPR request can take up to a month to process?

CerbrusOut of curiosity, I've submitted a GDPR request just now. (I live in the Netherlands, so the GDPR applies to me) The fact that I've had to confirm my request through my attached email is excellent, but I was a little surprised by the response time described in the request's status page: I...

its somewhere between scary and funny
SE risk 4% of annual revenue as a fine, or 20 million, whichever is highest.
 
5:42 PM
Well, back I go into the shadows.... I may or may not be back, but if anyone needs to reach me, my email is in my profile.
 
6:13 PM
@RichardU take care, man
 
 
1 hour later…
7:28 PM
anybody here ? there is a career recommendation subject that's one vote from closing
-2
Q: How to decide between two difficult career choices?

user323I'm a software engineer currently living in Cape Town(expat so no family here). Recently I got two job offers one from AWS, Cape Town and another one from Booking.com, Amsterdam. While initially, I was sure that I want to join AWS, the offer that I got from Booking is amazing. I am getting 2x mor...

 

« first day (2753 days earlier)      last day (1649 days later) »