« first day (2417 days earlier)      last day (2516 days later) » 

1:21 AM
Is there a way to clear any traces of the URL after calling it with WebRequest.Create(url)? I am trying to make it slightly harder for people to grab my authentication URL, by hiding it to bytes, the string is originally an encrypted byte array, which I only decrypt during usage and re-encrypt back after usage, and dumping string in this scenario doesn't show it so far, but when I have to call it from a web request it will make it open maybe because of the returned headers of the request?
I already use SSL so you can't get the URL from wireshark only the IP AFAIK, but you can still grab the URL by dumping the strings after its called.
 
2:00 AM
facepalm, calling GC.Collect does the job lol
 
lol that reminds me of the issue I am having with a new neighbour about our garbage bins
 
tell him to get a new memory manager
 
I dont wanna talk to him
one of those busy bodies who single handedly bothers everyone else in the complex
 
do you live in an apartment ?
 
yeah
6 units in the complex
 
2:06 AM
mm right
i've always lived in houses so i haven't had the pleasure of dealing with these types of neighbours
 
ive been there 9 years now, never had an issue
now old mate moves in and has to leave notes on everything
i dont really care, I'm a good neighbour in most regards. what gets me is he writes the notes and claims they're sent from the body corporate, which they are not, as they're from him
 
what a weasel
 
and that sort of high and might crap pisses me off no end. if you have a problem, own it, don't pretend to have some authority to tell people what to do.
 
god i hate xamarin
claims to solve your cross-platform app problems, yet the xamarin.forms libraries are clearly very immature software,
 
ive been lucky enough to be able to stick to the web
 
2:13 AM
what good is a cross-platform app library when the most important part (GUI) sucks
 
mobile platforms look like a headache
 
exactly, it would've been easier to make this app in HTML from the start
 
2:24 AM
the xamarin element inspector is apparently broken at the moment too
 
3:01 AM
Hello
 
'afternoon
 
Good morning
I cannot add VBA6.dll in my project
why ?
 
`void* VbaLib = LoadLibrary("vba6")`?
i don't actually know C#, feel free to ignore me
 
you are a C programmer
right ?
 
a D programmer actually
 
3:07 AM
What is D programmer ?
 
D is a bit like C++, but much better
but i mainly use the C API in windows, so i guess you could call me a C programmer
(D can interface with C APIs natively)
 
@IccheGuri why do you need that DLL? Why can't you do it in c# alone? Maybe if u provide more information some one might be able to help you.
 
I want to use collections class of VBA
 
how about the collections class of C# ?
 
I want to pass a list from C# to VB6 projects function which contains collections of VBA
I know the collections of C#
 
3:11 AM
ah, so you have some existing VB code you're trying to interface with?
 
yes
 
im a VB hater so gl :P
 
well, is VBA6.dll a .NET assembly or a regular C DLL ?
 
maybe .NET assembly
How can I check that ?
 
you could try opening it with dotPeek
 
3:15 AM
i don't even have a vba6.dll on my PC ­¯\o/¯
 
I think its comes with some ms office package or w/e
 
well apparently VB6 is from 1998, so my guess would be that it's not a .NET assembly
in which case you'll probably want to use P/Invoke to interface with it
 
 
2 hours later…
5:14 AM
ohayou
 
welcome back to the wasteland
 
ok
now what can I do to use the following code :
VBA.Collection agentCollection = new VBA.Collection();
 
what have you managed so far?
did you load the VBA library?
 
to load the vba library , I have to import it .
I cannot do that
 
5:40 AM
good morning all
 
6:08 AM
mood gorning
 
Howdy, code farmers!
 
@IccheGuri You've been on this collection thing for a week. Have you considered changing approaches?
Can you modify the VB6 code?
@KamilSolecki Please, I am a code hunter/gatherer.
 
Yes I can modify the vb6 code
I am now using arrays
 
If you're spending a week just passing collections around, simply find another approach - pass a delimited string, for instance, and split it on the VB end.
I think you're missing something very simple and basic in the array marshalling, because I know I did it many times (back in the day), but if it's not working for days, find a workaround and move on.
 
Thank you man
I have solved this problem using arrays
VB6 is disgusting
I do not want to work in it
 
6:15 AM
It's a 20 year-old technology.
There really isn't much reason to use it.
 
Do you know how to inisert element in System.array
I am using this code :
System.Array agentarray=new int[5];
 
The only reason is if there's a large or complicated codebase that would be expensive to migrate. And even then, consider the costs of keeping it - look at the time it takes you to interface with it from modern code.
 
int count = 0;
while (reader.Read()) {
agentarray[count] = reader.GetInt32(0);
count++;
}
 
Migrating to VB.NET might be worth the effort.
@IccheGuri If you have more than 5 rows in your DataReader, it will throw an exception.
 
I am gettin gthis error :
this is the full code :
I am getting this error :
cannot apply indexing with [] to an expression of type 'Array'
 
6:19 AM
Why make two DB calls? Simply use a List<int> instead of an int array - that way you can call Add on it dynamically. When you're finished loading all the data, call ToArray to convert it to an array before passing it on.
 
That is a nice idea
 
 sql = "SELECT CUST_NO FROM EMOB.MB_CUSTOMER_MST WHERE CUST_TYPE = 'AGN'";
command.CommandText = sql;
reader = command.ExecuteReader();
List<int> agents = new List<int>();
while (reader.Read())
{
    agents.Add(reader.GetInt32(0));
}
var agentsArray = agents.ToArray();
 
This code is working
Many many thanks
I am getting this error
System.Runtime.InteropServices.SafeArrayTypeMismatchException: Specified array was not of the expected type.
System.Array agentarray = agents.ToArray();

FamServer.FamApp famApp = new FamServer.FamApp();
fingerMatched = famApp.FamIdentify(ref agentarray, ref name, SampleModel, REMOTE_ADDR);
famApp.Termination();
 
You're passing an int array, I assume. What's the VB side definition?
 
The prototype of FamIdentify function is as follows :
Public Function FamIdentify(ByRef numbers() As Integer, strName As String, strIdentifyTemplate As String, strIP As String) As Boolean
 
6:29 AM
This post seems to imply that VB and C#'s integers aren't compatible.
 
oh no
What can I do then ?
 
6:42 AM
Any idea ?
 
The link I passed in says they switched to using Dictionary.
Haven't integrated with VB since 2002 or so. :)
 
C# Dictionary and VB6 dictionary ar of same type ?
how about passing obj from C# to vb ?
 
I have a terribly complicated question
 
What ?
 
I have a table of rows that on each row there is a field and a table name and it may also have a connection field and and a connection table on the same row
I want to pass a function an array of rows and it will create an orderby from the highest point of needed entry
to the lowest
 
6:52 AM
@misha130 Have I already commented on how your database architecture is remarkably convoluted?
 
I WAS FORCED
ITS NOT ME
god damn CTO of a company on skype with me yesterday
"HEY MAN SHOW ME YOUR DATABASE"
"UGH OK"
"NO NO NO CHANGE EVERYTHING SO IT WILL BE ONE TABLE"
I got triggered
sorry
 
O...k...
/me walks backwards, slowly, smiling and nodding.
 
😅
 
no seriously though any idea how from an array of objects I can create a tree?
find out who is the top node
 
6:56 AM
@misha130 How deep is the tree? Arbitrary depth?
 
yes
 
And the "connection" fields - they specify a parent or a child?
 
I also need only part of the "possible" tree
yes
 
well I am given a couple of rows and from those rows I need to gather the possible start and ends
 
6:59 AM
Take the whole table and store it as a dictionary, keyed by Tuple<string,string> for tablename and field (or just a concatenated string, I s'pose).
 
like I have rows 1-10 and I am given rows 2-3 so I need a tree that represents 2-3
in an ordered manner
ok?
 
Wait, the connection field is forward, right, not back? So the start row isn't the row with no Connection field, but one that has no other row with its as teh Connection field?
 
no, backward
 
So the start rows are ones that have a null Connection fields?
 
no no
FORWARD
Sorry
 
7:00 AM
Ok.
 
here is a picture
sorry
as you might've guessed I am creating sql query joins
 
So TechnicianRoles isn't a a start row?
 
it might be
 
You're actually describing a join here, aren't you? This table describes a set of foreign keys.
 
I mean specifically row 6
yes
it literally does
 
7:04 AM
It's nice, you're using your database to simulate a database.
 
yes :^)
I mean specifically row 6 its not a starting row
I wish I could just look up some some sort of INFORMATION_SCHEMA or something
I wish something like TABLE_CONSTRAINTS existed
gosh darn it
 
7:26 AM
Hello.
 
Hello
 
That is cool. You're making your own database-in-a-database system?
 
yes I am up to my shenanigans :^)
 
Oh, that Misha. Isn't he a rascal, always up to no good with his relational hijinks.
 
  private IEnumerable<AttributesToReport> SortByPathLength(IEnumerable<Attributes> attributes, IEnumerable<AttributesToReport> reportAttributes)
    {
        int GetPathLength(Attributes parent, Attributes child)
        {
            int length = 1;
            if (parent.Table == child.Table) return 0;
            var childPrimaryKey = attributes.First(attr => attr.IsPrimary);
            var possibleParents = attributes.Where(attr => attr.ConnectionTable == child.Table && attr.ConnectionField == childPrimaryKey.Field);
I think this is an interesting read
 
7:37 AM
hi ho senpai
i was worried a bit about you
 
I appreciate that :-P, but why were you worried?
 
i have not seen you in a while here
:P
 
Oh yeah, Thursday was a free day, and most at the company would take Friday free, too. I worked from home both day, and I forgot to start SO chat :-D
 
thats nice
i was also busy with job interviews
 
How's that going?
 
7:43 AM
i think well
i got 2 offers
and am waitng for 3 more
but i have been looking at other stuff besides c#
 
Cool, going well then :-)
Stuff like Java or shudder PHP?
 
yeah
one of the offers i got was for machine learning/deep vision
in c/c+
which suprised me, never though they would even give me a chance
nah mostly js/mobile
 
go for the ml
for the fun of it
 
i would
 
Right. C/C++ for machine learning or vision is... hardcore. But very interesting!
JS/mobile is nice most of the times too.
 
7:46 AM
hovewer they are offering only
 
what is offering?
 
3 months contratct for the beginig
 
oh
 
Good morning felas
 
who cares mate take it as a chance to work in multiple jobs
 
7:47 AM
i was thinking the weekend about it but i cannot risk it
i don't have much backup money
if they decided they would drop me after 3 months
 
Do you not get some sort of wage from the government when you get fired?
 
are those 3 months free?
I dont get it
 
you get 50% for 6 months of you salary, if you don't find a job in the mean time. But you have to work for at least 6 months without a break
 
surely you'll be able to survive after 3 salaries
 
the salary they are offering would lave me barely with around 100 euors extra per month
 
7:50 AM
I guess you are not allowed to have fun then
 
@Proxy then don't take it, or take it and carry on searching in the mean time^^
 
yeah il think il take the other one.
 
congratz bro :)
We are still waiting for #2
 
i don't know about congratz though
i look more like a failure the success but yeah
 
it was repely to Kramb becomming a father for the second time^^
 
7:52 AM
Hi guys, please help me,when i want to ask question give me a message :
You have reached your question limit, I tried to edit question but still give me this message, please upvote my question to resolve it
 
the other one is react native
oh
xd
 
@Mustafa_K Don't ask for up-votes here. Just fix your bad questions then.
 
cong Kramb
 
7:54 AM
@Mustafa_K a7a ya mustafa, msh ma-uhl
 
Which is a terrible question evident of you not having read or understood a single damn thing about C#
 
that is an example class someone has provided
 
@Proxy anyway, i think you will get a gouda job in the end
 
i just hope i will fit with the team
 
Lower your priorities, thats how i met my wife :P
4
 
7:56 AM
that the most important part
 
@Mustafa_K may I downvote?
 
i have no priorities lol
 
@Mustafa_K It seems you both made no effort searching your problem online AND have spent close to no time learning about C#.

You also have not read How to Ask and Minimal and verifiable example.
 
ohh. Put on hold...
 
i just suck at hadnling with people. on a extreme scake it seems
 
7:59 AM
@Mustafa_K Read these: https://stackoverflow.com/help/how-to-ask
https://stackoverflow.com/help/mcve
 
@Mustafa_K btw do You know, not accepting right answers for Your questions, is same rude like downvoting?
 
Also, heya @Proxy, @ntohl, @RoelvanUden, @Nerdintraining :D
 
@Nerdintraining LOL
 
hey you @KamilSolecki
 
@Nerdintraining I am really glad you did not say standards :D
 
8:00 AM
Yes guys are right
 
he was implying it though @KamilSolecki
 
:/
I'm happy we have come to a consensus, @Mustafa_K
 
@KamilSolecki :D rather we forced our opinion on him.
 
Stack Overflow chat is probably what lifetime product support feels like
 
:)
 
8:23 AM
@KamilSolecki Oh, so that's why I feel so drained of life.
 
If life seems tragic, learn some magic! @RoelvanUden
 
mr5
o/
 
@KamilSolecki I will.
@KamilSolecki Good thing I'm white. Otherwise I'd be learning black magic.
 
fam that must be the worst joke of 2017
 
Aliester Crowley could have been proud.
 
8:32 AM
@KamilSolecki ^^ i was :) but ofcourse i was just kidding
 
Morn all
 
@RoelvanUden that is a perfect example for a monday-joke
god i hate laptops that have a numpad stuck to the right of the keyboarded, i always mistype everything!
 
mr5
What's the benefit of enclosing your delegate type with EventArgs<T> other than explicitly implement and control the add (+=) and remove (-=)? More constraint perhaps?
 
@Nerdintraining where else would you have one
 
@KamilSolecki none at all or as a usb-addon or as a FN-Button-Addon
like thinkpads have.
Anysolution is literally better then putting it on the right side of the keyboared
 
8:37 AM
I don't think I've seen a laptop with a numpad in years.
Then again, I try to stick to 13" and 14" laptops.
Thinkpads used to have "butterfly" keyboards that expanded outwards, bigger than the laptop.
 
i try to stick to desktops.
So more convenient
You need a big bag
 
But I think that was when the laptops had 11" screens.
 
+ car battery
+ convertor to carry it around
 
For some projects, I used a laptop almost exclusively. For the one I've been in these last two years, I use a desktop. My laptop has languished.
 
So you just don't do it and stay put
 
8:40 AM
It's relatively old, but I don't use it enough to justify buying a new one.
 
@AvnerShahar-Kashtan I have one, tho it also comes with 18" screen
Also, I would not buy a laptop that doesnt have a numpad
I simply use it too much
 
I use it as arrow keys.
 
I grew up on an 88-key keyboard that didn't have dedicated arrow keys.
 
88 keyboard
omg
 
8:42 AM
as you might now i am in training.
The first desktop they gave me broke down after like 2-3 months.
THey then gave me an old duo core PC wich i had to use for like 3-5 months until someone got a laptop and i could have their old desktop.
Since them i am using the old desktop from that guy but i managed to harvest the RAM of the old computer and put it into the new desktop.
No one noticed yet so i essentially have 16GB Rams while the rest have 8

#desktoppower
 
Can the windows version thats installed handle it though? :D
 
lol no arrow key :D
@KamilSolecki Win 7 so yeah it can ^^
 
Hey, even Windows XP supported up to 128Gb of RAM.
And now my DbContext is throwing StackOverflow exceptions in the constructor. That's... odd.
 
He is saying, "You chatted enough, now give me attentnion!"
That essentially the only time when StackOvflow Exceptions are thrown.
 
Ah, it was my fault after all.
Mutually recursive calls in constructors.
 

« first day (2417 days earlier)      last day (2516 days later) »