« first day (4051 days earlier)      last day (899 days later) » 

1:28 AM
 
 
1 hour later…
no, now go back to sleep
 
mr5
Look at this abomination. Those static variables won't get initialized until a certain locale has been set. How does that work?
It seems you don't sleep at all
wiet is a bot confirmed
an aws bot specifically
trying to mine data here for their benefit
 
> until a certain locale has been set
what do you mean?
 
mr5
Those static vars are null at unit testing env (JVM) but not when it's executed on a device env (ART/Android)
 
3:22 AM
I doubt
 
should be iDoubt
 
mr5
I was thinking it maybe Pattern.compile() that is returning a null but it doesn't seem so: android.googlesource.com/platform/libcore/+/…
iDunno
iDoubt
wiet products
or maybe...
that particular library only gets bootstrapped on a certain condition
Art {
   bootstrap() {
      load('Patterns')
   }
}

Jvm {
    bootstrap() {
       // do not bootstrap Pattern!!
       // let those idiots suffer
    }
}
 
they are static fields, they will be initialized by the classloader
 
mr5
I think it's only part of Android das why
 
maybe your whack unit test override the classloader with a börk version
 
mr5
3:29 AM
but why is it visible on unit testing though
 
normal JVM will initialize the static fields
 
can you reproduce?
 
mr5
in Android, 16 hours ago, by Ivan Milisavljevic
if i remember correctly its using a Locale under the hood
yeah
 
7
A: 'private static final' member of Android unit test class changes value to null

David HarknessIt appears that AndroidTestCase uses reflection to set all non-primitive fields to null after each test in scrubClass. It doesn't check to see if the fields are static or final, so this seems to be the source of the problem. To solve it, change the field to non-final and set it inside setUp. Als...

or that
 
 
4 hours later…
7:08 AM
Hey guys!
In a BTree, where is the addNode function usually written?
In the BTree class or the Node class?
 
 
1 hour later…
8:11 AM
@GK we have nUnit + Moq + fluent assertions. That's not an excuse.
 
Morning all
 
that Verify that Wiet mentioned have Times.Exactly and the likes assertions
good morning
 
[Squirrel in Training] GoOoOoOoOoOoOoOoOoOoOoOd Mornin' pleberinos!
 
8:34 AM
@kesarlingHe-Him the Tree class as the tree is the collection
you add to a collection, not to a node
this means that the collection (which might be auto-sorted) can determine where your value needs to be inserted
this means that the collection could auto-balance the tree to retain as much horizontal growth and keep as little vertical growth as possible
this counts for any tree
 
On the android device, I went to MyFiles > Network storage and added a network drive manually.
Within my C# code, should I be able to access the drive? :/
 
9:05 AM
nvm will host a server and create some methods
 
9:31 AM
@Wietlol K, thanks :)
@Wietlol wrong room :D
 
what do you mean? :D
 
10:25 AM
My curiosity
Recovered msg from my bot log
 
nyconing reads the message
curiosity intensifies
 
no, I had a looot of nonstatic class
 
11:03 AM
not in the context I was talking about
 
 
3 hours later…
1:57 PM
I have this class:
public class AuditGroup : List<AuditSchedule>
{
    public ScheduleType Schedule_Type { get;}
    public AuditGroup(ScheduleType scheduleType, List<AuditSchedule> auditSchedules) : base (auditSchedules)
    {
        this.Schedule_Type = scheduleType;
    }
}
I am trying to create a group in a foreach loop
foreach (var audit in audits)
{
    if(audit.Schedule_Type == ScheduleType.OneOff)
    {
        Audits.Add(new AuditGroup(ScheduleType.OneOff, new List<AuditSchedule>().Add(audit)))
    }

}
Audits.Add(new... doesn't work, what would be the right method?
 
new AuditGroup(ScheduleType.OneOff, new List<AuditSchedule>() { audit })
 
Audits.Add(new AuditGroup(ScheduleType.OneOff, new List<AuditSchedule>() { audit }));
will this create a new list each time? :/
 
yeah, you could improve your code a bit
as a rule of thumb you should never inherit from List<T>
 
why?
 
Using composition instead of inheritance helps understaning the code and naming stuff. Usually a Group is not a list, it usually contains a list.
your group already has ScheduleType, it could also have a list of items instead of be one
 
2:10 PM
@Jacek got it
 
2:24 PM
also, if you want to group your audits by `Schedule_Type ` then you could just use Linq:
var auditGroups = audits.GroupBy(x => x.Schedule_Type).Select(x => new AuditGroup
{
ScheduleType = x.Key,
Items = x.ToList()
});
 
ew, such dirty docs
 
mr5
2:53 PM
@EdGzi you're using inheritance wrong, unless you are extending List<T>'s feature.
But it looks like you want to utilize it.
I take that back =P
oh
just remember.
you could use IGrouping for that instead of extending the list.
 
3:41 PM
roger that
I have just dived into creating Web API
I feel like I'm more on love with coding :D
 
 
3 hours later…
6:19 PM
Hi all
 
G K
7:04 PM
Hi,
Sure. I'll try to get the sample code in sometime.
This is how my utility works.
We have developed a framework that generates some data, compares with some other data, generates a report and fails if the comparision data has some mandatory fields which are not supposed to have any differences.

This tool is an Unit test kind of thing. Most of the if/else conditions are made with Assertions i.e. if the value is null then I assert it and fail my test case, because I expect it should not be nulll value.

Verification is something very important to me here. Just calling to check no. of times called or something similar is not a right assertion
 
 
1 hour later…
8:17 PM
'evening
 
8:38 PM
Hi all,
anyone knows, on what basis the browser gets the available certificates to authenticate itself?
https://i.stack.imgur.com/K9zG8.png

or, why it gets only those certificates?
 
8:53 PM
does it cost to run Web Api on local network as a windows service?
 
9:28 PM
[milleniumbug] your electricity mostly
[milleniumbug] (if all you need to do is serve requests to device on your local network, then you're pretty much ready to go)
 

« first day (4051 days earlier)      last day (899 days later) »