« first day (2196 days earlier)      last day (2753 days later) » 
00:00 - 17:0017:00 - 00:00

12:05 AM
where are you getting your input from?
 
powershell, I'm writing a binary cmdlet to change my service passwords when my AD password expires - I always forget to do it
this is what I have done. So I can use -Password PlainTextPword or -Credential $(Get-Credential)
the latter gets a securestring via a credential pop up (if you arent familiar with powershell)
actually, I could do a GetNetworkCredential on the PSCredential object which gives a plaintext password
 
 
2 hours later…
2:42 AM
Does anyone know of a C# Library That can be used to read/write the Actionscript inside a swf or fla file (Preferably Flash Projector exe Files as well But that ones optional)
I know of swfdotnet.io, Goa Project and swf.net But im unsure if any of the do what I need (Read/Write the as inside a swf/fla file)
 
 
1 hour later…
3:54 AM
I thought flash was good and dead these days
 
 
1 hour later…
4:55 AM
Its only semi dead people still use it for some things
 
fair dues
 
problem is no one updated any of the disassembly tools
 
yeah
there are thousands of taxis in australia running some very old embedded windows systems
 
Jw but if i wanted to replace the strings, and I were to do it manually after decompressing the swf files and reading in Hex. If I replace the string with a longer string would it break everything?
due to data not being in the correct position within the file?
apparently it would break the file... Any solutions to that though?
extend the swf file and change the data so it retrieves the variable in a different place then pad the original data so its the same length?
 
5:15 AM
argh I was gonna try rabcdasm but That doesnt support As1/2
 
5:39 AM
i have my technical interview today
and i felt so dumb
 
i always feel dumb in interviews
they asked me about direct injection and I waffled on about something else entirely
then last second realised
and make a joke about monkeys
 
mine is an actual coding with dependency injection
and mock testing
and i need to mock asp identity API
feel so dumb man
 
I hate interviews
when I am at my desk i have the internet to look at things
 
6:24 AM
@hsimah I guess that was an epic turn around. :)
 
7:04 AM
Morn all
 
Morn all
 
Morning
uhmm has anyone worked with swf2xna before? github.com/debreuil/Swf2XNA
im having trouble iterating through the SwfCompilationUnit.Tags
Im just want to iterate through the DoAction tags and access the Values in them. However I cant find a way to do that
 
~~ohayou~~
 
I can go through each DoActionTag in my swfcompilationunit, then i go through each IAction in the DoActionTag but the IAction doesnt contain the values... even though im looking at them in vs debugger
 
Morning.
 
7:11 AM
I would have expected to be able to access the values I want with SwfCompilationUnit.Tags[1].Statements[1].Values[1] but no luck with this. :(
 
good morning
 
morningaa
why would I really use moq for testing repos
 
7:31 AM
Why would you test repositories?
 
me?
 
@Squiggle I don't know, people does
here it is happening
 
Is it a database-backed repository? Possibly using EF or something?
 
That pluralsight vid looks like they're just talking about testing when EF6 is involved - but I'm not sure what functionality they're asserting.
 
@RoelvanUden yes
@Squiggle in this demo, getting a customer...
 
7:43 AM
Then how do you suppose you'll be mocking EF?
 
why would I mock EF at first place :S
 
To test the repository of course.
 
ah i really need to get a fking passport :| it is needed for almost everything i wanna do sometimes ... but stupid country will not give it till i have finished Military Service card lol :\
 
seriously?
So you can't leave the country until you've done military service? That's all kinds of balls.
 
yes it sucks ...
 
7:48 AM
where are you from @Pedram
 
i can still leave at some limited situation like i get an invitation from a university out of country
 
Iran, right?
 
but not for working i guess only study and comming back
yes Iran
 
I love that there's folk from all across the Middle East here in this chat :)
 
i can also pay a really high amount of money as grantee and leave country for a few day i guess , if i don't come back, they take the money for themself :|
 
7:50 AM
at least you are free* then
 
what, post your own bail?
 
lol but thats a lot of money wasted xD
i gotta waste 2 year on military service tho
sigh
 
:-/
 
just wanted to make a webmoney gateaway in my site and it need passport too, wanted to get code signing certification and it need passport too ( why ? idk )
 
@Squiggle same with Korea,,,
 
7:52 AM
well i can get code signing one if i just join another company through them though but not for myself in my name
 
@RoelvanUden it would be a integration test
and to test if DB is sending data
 
gotta get ready going capital city today, brb few min
 
^ how come
 
He's going to the capitol to participate in the 76th annual hunger games.
 
8:08 AM
oh, been there done that... 28th winner
 
He's going to be doing the running
or to put it another way, "teh ran"
 
I guess the way out of compulsory military service is to make yourself unfit for it
 
guys i need a bit of help... its a simple question but i'm stuck
so i have a list of object and each object contains another list
and i have problems displaying data from the inside list on wpf
 
what problems?
 
i dont know how to bind the data from the inside list (how to display it)
 
8:21 AM
@Mathematics not work related actually :D just gonna go see my sister since it's been a long time and got some free days :D
 
Don't do a lot of WPF but...can you bind to an IEnumerable<T>, anyone?
 
she live in capital city with her husband
@TomW it is possible but it's quite hard here since a lot before me tried it and goverment start making it harder and harder ...
 
@Pedram hmm most of the approaches I'd try are probably illegal there
like claim to be an alcoholic
 
lool yeh we can't drink alcohol even 1 time and it's illegal let alone being a full fledged alcoholic xD
 
@TomW Sure, that's no problem, but binding to it is pointless since it won't change anyway :P
 
8:26 AM
@RoelvanUden good point
@Proxy do you have to move or delete any of the elements, or just display them?
 
@TomW i have to display them but they are being updated periodically
 
@Proxy the approach I'm thinking of is a SelectMany LINQ statement but as mentioned, an IEnumerable is immutable
clearing and re-binding every time it changes is probably not great
 
yeah il try to figure something out
 
Hey everybody ! I need help for my AES ECB encryption for UWP ! Who can help me ?
 
ECB? Get out.
 
8:32 AM
^^' ! My key is encrypted in SHA256, and ECB it's not my choice but my company
 
Literally on the WIKI:
> it doesn't provide serious message confidentiality, and it is not recommended for use in cryptographic protocols at all.
Also, SHA256 isn't an encryption. It's a hashing algorithm. Use correct terminology.
 
I was going to be like, I bet that's a college course and the prof hasn't updated the notes in 25 years
 
Hell, why are you even working on cryptography?
 
I know, but I can't change this*
 
And I can't help implement broken security by design. It goes against my principles.
Feel free to ask me again when you are after actual security.
 
8:35 AM
It's an application for grassavoye.fr/… ;)
I continue this app, developped for IOS, Android and UWP
And i working on UWP, and now, the encryption... in ECB
 
je ne parle pas francais but, that looks like a major company website
what sort of damage could a hack do to that company - I'm betting a lot
 
You can translate the website
 
Is this an insurance company? And they use ECB?
 
Yes...
Aha
 
well cya guys and have fun on your projects :P turning my laptop off after a week or 2 :P
 
8:38 AM
I knew most companies don't give a shit about security but that's taking it a bit far.
 
so anyone used swf.net C# Library?...
 
@Pedram Have fun with your sister :-)
 
Lol
 
That sounds worryingly wrong..
 
Yep no way am I helping to implement a solution broken by design
 
8:38 AM
lol even tho that sounds weird but thanks :D
 
Well, nobody can help me ? ^^'
 
2 mins ago, by Tom W
Yep no way am I helping to implement a solution broken by design
 
@RoelvanUden work for UWP ?
 
what exactly do you need help with(not that i can help)
 
8:43 AM
To create a AES Encryption, I already have the SHA256 hash for my key, but not my AES. In UWP, i can't use AesManaged and lot of code example not working for me
 
Why are you SHA hashing a key?
 
Because customer do ^^
 
What?
 
Is a full fucked project dude, I don't like this project. The customer hash the key and use AES ECB encryption
I hash the key, because the customer hash the key, and i can't change this thing
Do you understand ?
 
8:51 AM
Yup, this is what i use, (in my code in my question)
 
9:14 AM
rip
 
+1
 
☠
 
today nx will be revealed
 
War
nx?
 
yeah new console from nintendo
 
War
9:17 AM
oh they've been on about that for years
finally!!!
 
yes!
 
War
I like nintendo ... as a company they produce some cool stuff
 
they will just do a short presentation though... around 3 minutes
i always liked their games, ton of fun. especially the n64
 
War
shame they aint embraced the pc market a bit more I feel like that would make them more competitive
 
even now when we gather we play mario tenis, kart etc
even people who usually dont play get hooked to it
 
9:20 AM
Good god this open source project documentation is terrible.
TSLint: Where new rules are documented, and renamed/deleted rules are not.
 
10:00 AM
lol
 
War
@RoelvanUden I thought that was the point to most open source projects
write some poor code and let it loose
whitch the outrage when people can't get it working
fix a few bugs
then abandon
 
It's not.
 
War
12 projects later ... start a new project that does the same thing but a bit better
rince repeat
 
TSLint has a lot of traction. I'm using it in three projects here.
tbh I haven't really looked at the documentation. I just use the default settings and it tells me if I've fucked up bad.
 
I've always made my own configuration, but their docs are awful in regards to upgrading.
I am going from 3.13 to 3.15 and shit is FUCKED>
So I'll be registering the docs commit now so I can see their changes
Because they dont have a goddamn changelog that is sane
 
10:14 AM
@War I looked at the word rinse for like fifteen seconds before I could put my finger on what exactly the typo was
 
War
@kush lol should it have been with a W
 
 
1 hour later…
11:51 AM
Is this still working
??
 
@NoughT Didn't we conclude that it wasn't?
 
Yes
How I prove to someone else that this is not working ???
 
Show it.
 
12:09 PM
MVCE
 
 
1 hour later…
1:26 PM
figured out that EF core cascading thing from the other day, apparently even if you specify DeleteAction.Restrict with the ModelBuilder in your DbContext it doesn't matter. It still specifies the cascade in the migration:
migrationBuilder.AddForeignKey(
    name: "FK_Settings_Settings_ParentId",
    table: "Settings",
    column: "ParentId",
    principalTable: "Settings",
    principalColumn: "Id",
    onDelete: ReferentialAction.Cascade);
so if you want to do anything crazy, you might want to just write your own migration
 
Trying to model Product entity/aggregateroot, what will be better to make it aggregate root and let the Product control its PriceHistory, or model product as entity that it cannot control its price
 
@QuietNaN think about how that data will be expressed in the view/api and decide which you think will be more efficient
 
behavior ChangePrice requires only last price to exist
 
also ReferentialAction.NoAction is a thing, but DeleteAction doesn't have that D:
 
1:45 PM
I keep turning around
 
@Mathematics Every now and then you get a little bit lonely and MoonOwl never comes around?
 
@juanvan I don't get lonely though lol
 
Shadow is my best friend too :)
but she is a Cat
 
wow I had a best friend too, but lost it decades ago lol
what really frustrating me right now is, why devs are not tempted to use OData
EF + OData wcf services = what a beautiful combination
 
the devil is in the details
 
1:51 PM
it eliminates stored procedures, data access, service layer (mostly) for simple queries
 
if you eliminate Data Access how do you get the data?
 
@juanvan You ask the DB politely for it
 
could someone help me figure out why the swf2xna Library Breaks somewhere in reading and writing a swf file...
Im only using its swfFormat project files, Im reading the file then writing it back into a 2nd file. And the 2nd file breaks. When its a compressed swf it loads a white screen. When its uncompressed it Seems to play the first couple frames then crashes/closes
 
2:07 PM
@Failsafe be polite to the profiler not the query
 
anybody have a general way of organizing interfaces in a sln?
 
im super lost at tracking down the problem with the library and not really sure what to do... Im wondering if its breaking due to japanese characters in the swf file, so the strings are incorrect sizes... however the file appears to be same size...
 
usually in the same area as the Service @Nathvi
 
@juanvan, how do you do that in a sln?
 
The interfaces are going to be used across multiple projects?
 
2:09 PM
Well, how can you know that they aren't going to in the future?
If they are, then I'd say put them in a seperate interfaces project
I think this answers my question, mostly
10
Q: Organizing interfaces

Thorsten LorenzI am just reading Agile Principles, Patterns and Practices in C# by R. Martin and M. Martin and they suggest in their book, to keep all your interfaces in a separate project, eg. Interfaces. As an example, if I have a Gui project, that contains all my custom Gui classes, I will keep their inter...

 
ya a separate project with just the interfaces
 
but make sure that the interfaces themselves only take in other interfaces, to avoid circular deps
 
2:27 PM
@JasonBrown what version of Flash / and Flash Player is it published for? I'd imagine much has changed since swf2xna was last updated
 
Im tweaking a v8 flash version
Ive been looking at the messed up Bytes
its Fine up till Late then the written code is all offset compared to the original
The header is wrong as well
Edited 0x0000004 = C2 EC 3B
Origin 0x0000004 = BE CF 41
And it appears to write 06 instead of 26 in many places
And then Way down in the swf file it gets all fked up I think its reading the Text in the incorrect Format as the language in the swf file is japanese which uses 2byte text
but I cant confirm that until I look at it a tiny bit more
hmm Il have to convert a tiny bit of this hex into text just a sec
 
@JasonBrown is it AS3? It honestly might be easier to migrate it to Flash CC so you can convert it to canvas and then use a webview in xaml to show it
or do you not have the project file?
 
no Project file
 
swiffy sothink makes a swf decompiler, it works okay
 
Ive tried decompiling with sothink Decompiler but it takes Forever, and the exported fla file doesnt contain any Actionscript
so the project isnt playable
 
2:34 PM
it saves the scripts out separate, and only if you have a license
 
I have license
but it doesnt Link the FLA to the AS files :S
 
might just be able to set the document class to the root file or paste it all in the first frame
it can't recreate the FLA as it was because of the way the Flash compiler mangles the scripts
 
yeh, the main issue is I need to modify the swf files using C#
 
is the project complex enough that it would be impractical to just re-create it?
 
yes
its like 400mb
split over 8 swf files
 
2:37 PM
I've got Flash projects that big that are almost purely video
so what is the target platform?
 
this is game lol
trying to write a C# program that can machine translate flash projects
Ive got the translation functions done, but only on exported .as files from sothink
 
so is the product you're trying to create the translator itself?
 
sort of
 
targetting XNA?
 
nothing to do with xna
Its just theres no other librarys for C# that support read/write bytecode actionscript
 
2:39 PM
I mean what is the expected output of your program?
 
a swf file
 
isn't a swf the input though?
 
its both
 
what is happening in between?
 
it gets a swf file, Translates text to english, then outputs a swf file
 
2:40 PM
OH, that kind of translate
I get it
sec...
 
I was looking for a good dissassembler but there isnt really any.. theres SwfDotNet Supports up to Flash v7
then theres swf2xna which I decided on, But it seems to be either broken with japanese text characters (I think It would be unicode strings but not sure)
Could someone link me to a Hex to Text Converter?
 
have you tried this one? github.com/bef/erlswf the source code is available so you should be able to glean some more information about how/where text is stored.
 
Well the problem is the only way to write the swf back properly is to write the entire swf from what I understand, as any actionscript custom functions will point to the wrong locations... Could be wrong about this though
 
I think a handful of the swf decompilers also allow you to directly edit the text within the UI, but I doubt that is something you could plug into your own program
 
ya... thats an issue lol
I dont feel like Manually Changing 2000 lines of text 1 at a time lol
 
2:46 PM
@JasonBrown right, when you translate the text most of the strings will get longer and offset all the addresses so it does need recompiled after
 
yes.. So as of right now Im simply Trying to Read the swf file into memory via the library, Then write it back to find out where its broken
 
that is about the limits of my knowledge, Adobe was never very forthcoming about any sort of Flash tooling outside of Flash Professional/Flex Builder
 
Once I figure out why its breaking the file Partially, it only breaks after what is either the function to display text or the text is displayed. Im currently not sure which is breaking it
Yes but the entire Flash File system is available
gives u everything u need to decompile and recompile a swf file. As long as You write all the code Lol
 
oh nice, I've never been able to find this
 
Ive been looking EVERYwhere for whatever info i can find lol
I already know Im going to have to heavily modify the library I grabbed as, yes it can read/write byte code. But it doesnt let u modify the bytecode as it currently is
but that shouldnt be 2 hard to tweak if it does the other things correctly
Oh... Welp I cant open the Swf file in sothink either lol, crashes it
 
2:54 PM
might be too big
once I approached about 60MB per swf it started becoming unstable
 
the file im working with right now is only 4mb
its the smallest out of all the files from the project
 
maybe there is something wrong with the swf file then? That should be fine
 
most are 30-90mb
 
might even explain the issues
 
the Modified one breaks, the original opens fine
so the swf2xna again is breaking something or I didnt write the file correctly
 
2:55 PM
flash player is pretty forgiving
 
ya...
 
so there could still be something wrong with it
 
hmmm
well the original opens in sothink
err Got a link to the online .net collaborative coding/testing page...
Dangit someone linked me one a day or 2 ago, and it was exactly what I would need right now lo
found it so nvm
CuddleBunny could you tell me if this looks correct?
wondering If Im using memory stream incorrectly
or if im reading the file into a byte array incorrectly
cause id be pretty angry with myself If i screwed up something like that lol
 
3:14 PM
hey yall
if you are a pinvoke expert, i'll take all the help I can get: stackoverflow.com/questions/40158240/…
 
@Kevin normally I'd bitch you out for posting a question in here 5 minutes after asking it but wow that is weird
69
A: A call to PInvoke function '[...]' has unbalanced the stack

Scott MorkenI had a _cdecl c++ dll that I called without any trouble from Visual Studio 2008, and then the identical code in Visual Studio 2010 would not work. I got the same PInvoke ... has unbalanced the stack error as well. The solution for me was to specify the calling convention in the DllImport(...) ...

 
what does "unbalancing the stack" even mean? O.o
is it going to fall over?
 
yeah. i spent too many hours on it yesterday and i used to be a room mod, so I figure no one could get too mad, especially because I didn't one box it :)
Yeah, I use the same props in my signature, so that didn't work either.
 
oh, expected stack depth mismatch
 
Cuddlebunny not sure if its the syntax u gave me but Its creating 0sized files lol
 
3:27 PM
@JasonBrown I probably wrote it wrong
 
lol fair enough I dont know much about filestreams so il look into it a bit
 
I'm sure it would be easy enough to find a good filesteam > memorystream > filestream sample though
 
Lol got it, didnt need example just wasnt flushing the filestream to disk, and needed to Preset the size as it was initializing with a length of 0 I believe
Lol nvm I just created a 4mb worth of nothing in a file xD
Most useful file ever xD
well the file stream read/write works fine... identical files...
onwards to find out where and why its breaking my file... off to the header byte code I go :D
 
4:22 PM
Does anyone know why struct out performs class when accessing fields in a for loop?
 
You've got one less pointer dereference?
 
hmm. dereferencing is enough to cause significant performance difference?
 
Probably not. I wouldn't worry about it.
If you're in a tight enough loop that one more pointer op is killing you, you've got bigger problems.
 
That's what I said. Someone is converting classes to structs for this reason, and I suggested may be something else has to change especially if the class is not simple container.
Thanks btw.
 
Did they benchmark before hand? Turning classes into structs for performance reasons is pretty crazy, especially if you didn't test first.
 
4:35 PM
They said they did, but I know these guys would test it one way and that's it. Not considering the consequences in other areas.
 
For one thing, every time you pass a struct into a method, it'll make a copy. That's a performance impact right there, not to mention that it totally changes the semantics people expect.
 
yeah, seems like a witch hunt scenario
if it is too slow then there is a different problem for sure
 
That was the very first thing I said. I just hate the feeling that I have to code-review to prove something else could be done.
especially if this is being done by an experienced c# programmer.
 
Best of luck. This is one of the worst parts of the job.
Someone's being crazy and someone has to stop them.
Hopefully one of the people being crazy isn't your boss.
 
Thanks. haha, no it's not my boss, but it doesn't help when your boss doesn't know the fundamental differences between struct and class in c#. So, my boss tells me that "Well, they tested it. Maybe you need to review their code".
 
4:50 PM
Godspeed. Show them who's boss.
(It's you)
 
make a MVCE of the example
 
00:00 - 17:0017:00 - 00:00

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