« first day (2432 days earlier)      last day (2518 days later) » 

1:12 AM
shuddup jab
 
mr5
2:03 AM
\o/
M
C
A
how f*cking ridiculous they have used the JSON format: en.wikipedia.org/wiki/VCard#jCard
/rant
@Sometowngeek do you really think they will read that dump? they'll just be laughing and find another way to change the topic
also. apple maps redirects to google maps on browser. how ridiculous
because some data in apple maps are provided by tomtom
 
Apple and Google arent enemy.
You can see they always co-op in product
Hapenned on Samsung also
Since theres some lawsuit about Infringement still not stopping them coop to make products
 
mr5
2:51 AM
but I'm impress with apple map's flyover
it renders 3d model of a place and its accuracy is 98%
 
 
3 hours later…
5:56 AM
ohayou
 
hey I have a collection view and I am not able to access in cell.imageview how to solve it??
0
Q: appending array with url iOS objective c

AkshayI have a base url and I have the image names in a array extracted from there server .I am using a collection view, I have to display all the 23 images in the collection view I have two problems when I try to access cell.imageview.image it says no property image view in cell but in custom cell.h...

 
eyo
 
yo
 
6:10 AM
good morning
 
MY SUNBURNS F*ING HURTS! ASDHFKJLAS7HAHKHK
 
i'm guessing you've already tried ointments and they don't work
 
mr5
you need to put garlic and onions on it
 
@AdiMohan they do, for like 2 minutes, and I don't have the bottle at work.
 
you're still on the marinade aren't you @mr5
@satibel uh, bad move. Do you have the option to run over to a pharmacy and get some?
 
6:16 AM
@mr5 tomato, salad, and yogurt too.
@AdiMohan nah.
 
mr5
wasabe
 
Though I put some cloth with tea on it.
 
Not sure if sarcastic, joking, or serious (insert back to the future meme here)
 
mr5
scrub it
with steel wool
!!
 
@mr5 That didn't make much sense. Maybe you meant: 3, d, y, ^, !, π, ?
 
mr5
6:22 AM
:D
!!3, d, y, ^, !, π, ?
 
@mr5 That didn't make much sense. Maybe you meant: 3
 
mr5
!!3
 
Good morning.
 
6:31 AM
!!2
 
@satibel That didn't make much sense. Maybe you meant: 3, d, y, ^, !, π, ?
 
!!sandbox
 
@satibel Please go and play in the Sandbox
 
!!?
 
6:36 AM
@satibel wat?
 
fail ><
 
6:48 AM
http://blog.superuser.com/2011/05/16/windows-7-network-awareness/
interesting. you can set which server and which string windows checks for connectivity.
 
have any of you used the zen.barcode nugget pack ?
 
mr5
7:00 AM
@satibel great! we could even make an app that creates an exclusive site to track where your PC is
 
Morn all
 
@mr5 that app already exists, its called microsoft
 
mr5
7:17 AM
@misha130 but that feature is available on win10 only afaik
 
o/ guys I'm trying do some linq in my seed method but it's not really playing ball as expected.

I'm basically getting lets say People (context.People)

Trying to loop through those people so based on some properties I can insert records (context.Something.Add(new Something etc.) into another table but it's not really letting me loop through the people.
 
@satibel i watched ubisofrt press conference yesterday
 
Is this an issue someone else has faced? Is not possible to foreach on DbSets within the seed method of EF?
 
its amusing seeing a japanese and french parson communicating on english
 
7:30 AM
I've also tried to debug the seed method but adding the migrator in a different controller and trying to run it there
 
@JARRRRG code pls
 
"parson" ...
iSuck
 
good morning
 
            var potatoIdsMissingVegetableOwnersOwners = context.potatos.Where(
                r => !context.VegetableOwnersOwners.Any(
                         o => o.EntityId == r.OrganisationId && o.EntityType == potatoFullName)).Select(r => r.OrganisationId).ToList();

            var potatoIdsMissingLookupListOwners = context.potatos.Where(
                r => !context.LookupListOwners.Any(
                         o => o.EntityId == r.OrganisationId && o.Entity == potatoFullName)).Select(r => r.OrganisationId).ToList();
 
7:39 AM
People who own vegetables are, themselves, owned?
 
@KamilSolecki - I've tried a few variations, I know this looks nasty but it should explain sort of what I'm trying to do
@AvnerShahar-Kashtan - that's me just changing the actual entities 😛 Ignore the concept
 
@JARRRRG It will look better if you format your code. :)
 
It's formatted in vs :(
 
@JARRRRG Just commented on the OwnersOwner name.
@JARRRRG Ctrl-K will format it in chat.
 
@AvnerShahar-Kashtan Frieza owns Vegeta...
 
7:40 AM
@AvnerShahar-Kashtan - lovely thank you
 
:) @ntohl
 
@ntohl That's a Dragonball reference, right?
 
@AvnerShahar-Kashtan yes
 
@Proxy "ubisofrt"
 
wow
i'm terrible
 
7:44 AM
@JARRRRG The problem with your code snippet is that the names are so long and convoluted that it's hard to understand what the entities are. potateIdsMissingLookupListOwners is pretty impossible to parse without effort.
 
oui, ze franch pipole or bad ette ingliche.
 
potatoIdsMissingVegetableOwnersOwners is a variable name that actively hinders me from understanding what it does, which makes it hard to help you.
 
mr5
omellete du frumage
 
well seems i'm bad as well :P
 
@AvnerShahar-Kashtan - that bit of code is somewhat relevant. Lets just take this for example.

            var addresses = context.Addresses;

            foreach (var address in addresses)
            {
                if (!context.Countries.Any(c => c.CountryId == address.CountryId))
                {
                    // then insert into the Countries if it's not found
                    context.Countries.Add(bla bla bla);
                }
            }
 
7:49 AM
Ok. That's pretty clear.
 
That is what I'm doing, that should make more sense to you @AvnerShahar-Kashtan - I just did a find and replace on an already somewhat bad naming convention in my previous example and I'm sorry for that.
 
If an address has a country that isn't in the Countries table, add it to the Countries table.
 
yep
 
Not very efficient, but should work.
(Because you'll pulling every single address into RAM here)
 
This I'm doing in the Seed method of the Entity Framework Configuration.cs and it's not letting me
 
7:50 AM
Define "not letting me".
 
(The actual tables I'm pulling from won't have more than say 10 records, ever)

Let me try run it and see if I can spot the error, give me a moment.
Right, I think I know the problem @AvnerShahar-Kashtan - we have some dynamic entity framework filters which filter the specific DbSet I'm trying to access. They are basically filtered to prevent unauthorised people accessing them.

Now because I'm doing this in the migration Seed method a person isn't going to be authrosied so it would mean that they won't have access to them and therefore throw a wobbly.
So I need to be able to give the Seed method a clear to get all/any retailers from the database :(
I didn't write this dynamic global filter logic and the person who has probably won't know how to do so either
Going to be a fun day o/
 
Actually, context.DisableAllFilters();
context.EnableAllFilters();

Done. :)
 
Nice.
I AM MIGRATION CONTEXT! YOUR FILTERS ARE AS NOTHING TO ME! HEAR ME ROAR!
 
8:06 AM
^
 
mr5
ARRRRG
 
senpai kamisama how are you xd
 
K..kami-sama?! This gets ever more extravagant
 
No. Not going to hear you ROAR @AvnerShahar-Kashtan
 
yeah i know, things are getting weird
team lead invited me to a coffee after lunch
 
mr5
8:15 AM
o.O
are those words similar to onii-chan?
yamete
 
i hope nothing is wrong .\
 
proxy, if the team lead is a she. I'm proud of ya.
if its a he. I'm sorry for ya.
 
mr5
are we speaking of tentacles here?
 
you? no, no no... we are not
 
Did i read Hentai?
 
mr5
8:18 AM
proxy is doing it I guess =P
 
@Proxy At a job, years ago, the CTO popped one morning into the office and asked me to join him out to lunch. Was... stressful.
 
yeah he just sent me a message over slack so...
 
Am I going to be fired? What's happening? What does he have to tell me that he needs to take me out to lunch for? Do I need to be far away so others won't hear the gunshots?
 
Any suggestion for Node JS video proxy?
 
this is my 2 week hopefully i wont break any records
nah, i only worked once with node js
 
8:20 AM
@Proxy He ended up saying they were pleased with my work and wanted me to move up to a team lead position.
 
@Steve'saD is the "space book" any gouda?
 
that is something that surely wont happen to me @AvnerShahar-Kashtan :P
 
I am trying to proxy videos hosted on s3.
 
oh :D
 
@Proxy If you've been there for only 2 weeks, chances are he wants to do a status meeting, to ask how you feel things are going and to tell you how things look from his end.
 
8:23 AM
i hope so
 
That seems the most reasonable thing. How is it going? Do you like working here? Are there any difficulties? Can I do something to make work more pleasant? Stuff like that is a real possibility
 
i know but still weird, never had it happened before :P
but that should be a normal practice
when you get started
 
at least You got some feedback
 
He wouldn't take you out to coffee to fire you.
That's done in offices.
 
yeah i suppose so.. maybe i'm to paranoid
 
mr5
8:28 AM
why do you think they would fire you though?
 
i talked last week about it, basically we are publishing a react native app
and i have no experience with it
its a bit chaotic
 
They knew you didn't have the experience and went with it.
 
i know but still i feel useless... for the last 3 days i have been changing the app design
 
Yea, dont worry! @Proxy! Hopefully what your team leader says might change your view on yourself ^^
 
Ahoy mateys!
 
8:32 AM
so besides what little i have look into react at home
that is basically it at the moment i cannot find time to read/practice at the work
 
mr5
what more I am? I've been schooling for an entire month and will continue for this next month!
half of my time was even spent here in chat rather than in my schooling xD
 
8:47 AM
@Proxy as long as You are producing value, there is nothing to fear. I doubt that You have been rude or anything to colleagues.
@Kieran nice rum to You
 
@ntohl lmao
what is the word rum a stand in for today?
 
morning/evening/afternoon/daypart
 
i see
I like it
 
9:03 AM
@mr5 *Schooling dem girls !!lenny
@Kieran rum-a-licious!
!!rogue
 
@KamilSolecki And yet again, the chat has descended into the depths of silence
 
@KamilSolecki a bottle of rum a day, keeps the doctor waiting at the bay
 
mr5
@KamilSolecki girls are waay too far from our area :(
 
9:23 AM
Life isn't easy is it and if it was it wouldn't be fun :)
 
@KendallFrey I challenge you to a duel, legally in Canada now.
 
Life isnt that hard
 
-1
Q: who to add mousDown event in chromium browser c# wpf

talyaI use in chromium webBrowser WPF in my program c# and when I tried to add a mouseDown event it doesn't work. my chromium control in a userControl. any idea?

Quality questions
 
+1 question
 
at least he/she doesn't loose rep...
btw I don't like the -rep flow. It's so bad to downvote without a reason mentioned...
 
9:37 AM
I downvoted but i was typing the comment :D\
 
it's ok
 
but yeah I agree @ntohl
 
@ntohl That's an age-old discussion in SO. The answer that always ends up is that downvoting isn't there for the asker, but for the site.
 
Public shaming, loving' it. Downvoted~
 
mr5
Kamil commenting like a pro
 
9:39 AM
the fact that the asker is a fukwit for not reading the rules is one thing, other thing is it happens everywhere on the internet and in many places is not enfoced by the site' members is another. Which just heats up the not-reading-rules mentality
@mr5 lol
LOL he made an edit
Changed WHO to HHO
 
mr5
XD
I think he/she mean to type "How"
 
"You ho!"
 
:D much clearer now...
 
mr5
"Hey ho, how to add mouse down event"
 
EF is being c-c-crazy. Just built me a 12MB SQL query.
 
9:42 AM
Yo ho!
 
Now it's complaining my query is nested too deep.
 
mr5
there you go pirate
 
Really? You think?
 
mr5
yohohohoho
 
I have a relatively complicated IQueryable<MyObject> (which has an Id property). I have a separate process that gets me a list of relevant Ids (not from the DB), and I want to filter the IQueryable by those IDs. Seems straightforward, right?
 
9:44 AM
Yo ho ho! Aaand a bottle o' rum!
 
@AvnerShahar-Kashtan yeah
 
The original code (not mine) used a Join:
queryable.Join(relevantIds, obj => obj.Id, id => id, (obj, id) => id).Distinct().Count();
This caused EF to take every single ID in relevantIds, create a subselect that queried a constant value, UNION them all together, and JOIN with that union:
SELECT cast(49 as bigint) AS [C1]
FROM ( SELECT 1 AS X ) AS [SingleRowTable947]) AS [UnionAll946]
Repeat hundreds of time, nested as deeply as there are values in relevantIds.
 
@mr5 yohoooooooooooooooooooooooooooooooooooooo
 
When there are a lot of ids, it got as big as 12MB of SQL.
 
@AvnerShahar-Kashtan neat obfuscator implementation
 
9:48 AM
Now I changed it to something simpler:
 
way to EF
 
queryable.Where(obj => relevantIds.Contains(obj.Id)).Distinct().Count();
 
glory to the gods of micro ORMs
 
Result? An 8k query, half of which is casts numeric literals to bigint, because T-SQL treats numeric literals and int:
 
#define x (8-8)
#define y (9-8)
#define Z (8-6)
s[      ]=  {Z,6,Z,Z,6  +4          ,Z          ,Z,58,Z,58
,6      +4  ,-          3,          Z,          6,      Z,
Z,      Z,  58          ,Z          ,6          +4      ,Z
,58,Z,6,Z,  -3,Z,6,Z,Z  ,Z          ,4          +6      ,Z
,5      +5  ,Z          ,4          +6          ,Z      ,6
,Z      ,-  3,          58          ,Z          ,5      +5
,Z      ,Z  ,58,Z,58,Z  ,6,Z,-3,Z,  6,Z,Z,Z,58  ,Z,58,Z,58
,Z   ,6     ,Z  ,-  3,Z,6,Z,Z,  Z,58,Z,58,  Z,          58 ,Z,6
^ LOL
 
9:51 AM
does it compile?
 
WHERE ([Extent1].[Id] IN (cast(11 as bigint), cast(12 as bigint), cast(13 as bigint) (etc)
 
So yeah, a JOIN probably wasn't the right choice there. But the different is staggering.
 
because reasons
 
@AvnerShahar-Kashtan relevantIds were of type IEnumerable<long>?
 
9:54 AM
@ntohl Yeah.
And obj.Id is long as well.
 
... bad EF.
 
Maybe it's just an artifact of the query logger.
But it's weird - if I just type query in Management studio, SQL has no problems with using numeric literals.
 
hmm. Maybe some hint, or setting would solve it. I would google it.
 
mr5
@KamilSolecki I think it's missing the #include <stdio.h> where printf is defined
it compiles though
 
@mr5 possibly, its just the code body
no main() as well
 
mr5
9:57 AM
there's a main
 
Oh right
 
@ntohl In this case, simply replacing the Join with a WHERE ... IN is not only faster and smaller, it's also more correct.
 
mr5
main(_){_^448&&main(-~_);putchar(--_%64?32|-~7[__TIME__-_/8%8][">'txiZ^(~z?"-48]>>‌​";;;====~$::199"[_*2&8|_/64]/(_&2?1:8)%8&1:10);}
@KamilSolecki
which prints, something likes this:
!!  !!!!!!              !!  !!!!!!              !!  !!!!!!
!!  !!  !!              !!      !!              !!  !!  !!
!!  !!  !!              !!      !!              !!  !!  !!
!!  !!!!!!    !!        !!      !!    !!        !!  !!!!!!
!!      !!              !!      !!              !!  !!  !!
!!      !!              !!      !!              !!  !!  !!
!!  !!!!!!              !!      !!              !!  !!!!!!
 
@mr5 That didn't make much sense. Use the !!/help command to learn more.
@mr5 say '<([a-z]+) [^/]?>
@mr5 That didn't make much sense. Use the !!/help command to learn more.
@mr5 say '<([a-z]+) [^/]?>
 
10:10 AM
@mr5 That didn't make much sense. Use the !!/help command to learn more.
 
You're freaking Cap out!
 
mr5
wtf caprica
 
well shit
 
mr5
I can't compile it though
this [online compiler](coliru.stacked-crooked.com), way back 2015, allows to run a number of sensitive commands on it's server including pkill
what I did was to pkill the apache server
then I got no response. until I realized I shutdown their server
 
10:31 AM
in react what is the best way to store api keys etc
i generate a new object holding the data
or is it recommended to use store/props
 
mr5
is anyone using paypal here? does it deduct money every month even if there's no transaction?
 
No it doesnt
They take a % off transactions though
 
It can be set up for a recurring payment.
Ah, you mean deduct money from the account holder?
No, there's no fixed fee for holding an account.
 
Also, even though They have fairly high fees for transactions, They are really fair when it comes to them. Ive often had situations where I lacked 10-20 cents for a transfer, and They would cover it.
 
mr5
Ooh. Is anything I need to know more before proceeding to register my bank account in paypal aside from being deducted about $1.95 for the registration?
 
10:36 AM
You arent deducted
It will be put back inyour account
 
mr5
They also said that I need to wait for at least 5 banking days for that "Expanded Use Enrollment"
ooh
 
Its for account check - They take a varying low amount of money from your account, and ask you to check how much they took
Then they give it back
This way they validate that this bank account belongs to you
 
mr5
1. Personal Accounts: You can only accept payments monthly and up to five credit or debit card payments annually with your Personal account.
2. Premier Accounts: This account allows you to accept credit or debit card payments for only 3.4% plus $0.30 per transaction.
damn
once in a month only?
for personal accounts?
gtg
 
@AvnerShahar-Kashtan I mean, can't EF handle long keys well?
 
@ntohl I think it can, but the problem is with the feature that exports an SQL query to the log.
 
10:49 AM
@AvnerShahar-Kashtan oh. So the presence of the observer modifies the event?
 
When the observer is buggy? Yeah. :)
 
I mean does it cast every element to bigint, when You use the function, not log the query?
 
Maybe.
Haven't tried watching the SQL profiler to check.
 
It shouldn't. It should know that the .NET type is long, the database type is bigint, so no conversion
 
@mr5 you can receive gifts more often than that afaik.
 
10:58 AM
@ntohl Yeah, just checked in SQL Profiler. No conversion.
 
@AvnerShahar-Kashtan oh. Neat. But very concerning about how should one prove that EF built the right query...
 
@ntohl I'm fine with EF not always building the most efficient query. If I really need optimization, I'll drop to SQL and build a query myself. But I expect it to be decent, even if not perfect.
I'm fine with the extra level of abstraction and convenience, and I know that just because I can write efficient queries by hand, doesn't mean that any hand-written queries are necessarily efficient.
 
@AvnerShahar-Kashtan how do You merge the 2 mindset? (DB first write my own SP) and (code first, optimize what query is generated, paper thin DB layer)
 
11:43 AM
I don't merge them. I simply go code first. :)
 
than how You drop to SQL and build a query Yourself?
 
I don't. I construct it in code and execute it via EF's ExecuteSql methods.
 
ok
 
For instance, when bulk updating a field in many entities, it's much quicker to construct an SqlCommand for the UPDATE statement rather than load, modify and save all entities.
In fact, for large entities, it's much more efficient even for a single entity.
 
I see
 
12:19 PM
guys
I am looking for a List<T> to ByteArray converter
i've tried 20 different methods none works
on deserialing i get
Exception thrown: 'System.Runtime.Serialization.SerializationException' in mscorlib.dll
class is marked with [Serializable]
 
Not sure what you're serializing here.
Naturally, you can't assume that any T will be Serializable.
 
[Serializable]
public class ScanSessie
{
    public string UserId { get; set; }
    public int TotalScanned { get; set; }
    public string Status { get; set; }
    public string DeviceId { get; set; }
}
List<ScanSessie>
 
Have you tried BinaryFormatter?
It's old, but for simple classes marked as [Serializable] it should work.
 
    public static byte[] Serializer(this object _object)
    {
        byte[] bytes;
        using (var _MemoryStream = new MemoryStream())
        {
            IFormatter _BinaryFormatter = new BinaryFormatter();
            _BinaryFormatter.Serialize(_MemoryStream, _object);
            bytes = _MemoryStream.ToArray();
        }
        return bytes;
    }
    public static T Deserializer<T>(this byte[] _byteArray)
    {
        T ReturnValue;
        using (var _MemoryStream = new MemoryStream(_byteArray))
        {
            IFormatter _BinaryFormatter = new BinaryFormatter();
            ReturnValue = (T)_BinaryFormatter.Deserialize(_MemoryStream);
        }
        return ReturnValue;
    }
 
Ah, ok.
And what's the exception message?
 
12:28 PM
@Shift move the index to the beginning. _MemoryStream.Index = 0;
 
private void Sc_NewDataReceived(byte[] scanner)
{
var result = scanner.Deserializer<ScanSessie>();
}
here it goes boem
Exception thrown: 'System.Runtime.Serialization.SerializationException' in mscorlib.dll
 
btw the naming convention is nothing like standard...
inner exception?
 
sec
 
so hot on the seven seas
 
12:44 PM
its null
innerexception
boss was here hahaha
 
And Serialize works fine, it's just deserializing that crashes?
 
yes
innerexception is null nothing usable
try catc block on on the method also doenst give any usable debug info
 
Works fine here when I set the _MemoryStream.Position = 0 before deserializing.
Hmm. Works fine even without.
var formatter = new BinaryFormatter();
byte[] bytes;
using (var ms = new MemoryStream())
{
   formatter.Serialize(ms, new ScanSessie { UserId = "test"});
   bytes = ms.ToArray();
   bytes.Dump();
}

using (var ms2 = new MemoryStream(bytes))
{

    var obj = formatter.Deserialize(ms2);
    obj.Dump();
}
 
one object is ok
 
12:53 PM
List<ScanSessie >
 
Works fine there as well.
var formatter = new BinaryFormatter();
byte[] bytes;
using (var ms = new MemoryStream())
{
   formatter.Serialize(ms, new List<ScanSessie> { new ScanSessie { UserId = "test"}});
   bytes = ms.ToArray();
   bytes.Dump();
}

using (var ms2 = new MemoryStream(bytes))
{

    var obj = formatter.Deserialize(ms2);
    obj.Dump();
}
 
wth
am sending it over sockets
List<ScanSessie> scannerCl = new List<ScanSessie>();

TcpClient statusSocket = tc.Key;

NetworkStream broadcastStream = statusSocket.GetStream();

Byte[] broadcastBytes = SerializerDeserializerExtensions.Serializer(scannerCl);

Debug.WriteLine("Geserializeerd object is " + broadcastBytes.Length + " groot");
broadcastStream.Write(broadcastBytes, 0, broadcastBytes.Length);
broadcastStream.Flush();
need to go to meeting
brb
 

« first day (2432 days earlier)      last day (2518 days later) »