« first day (3259 days earlier)      last day (1672 days later) » 

6:14 AM
@Grace The facts of life for a programmer
 
6:27 AM
\o
 
o/
hoping the coffee kicks in before someone makes some loud obnoxious salutation to the chatroom
work, damn you!
 
Loud and obnoxious? Well, give me a minute, I just got here.
 
Noooooooooooooooooo
At least wait for Wietlol
 
I have an xsl file & data in xml/json formats and i need to convert it to pdf,
What is the best option can anyone suggest
 
6:40 AM
Output it as HTML to get a layout you like and print that to PDF using a headless browser.
 
when i'm generating it to html i'm just getting the plain text, layout is missing
 
@Hariprasadkasavajjala well does the html page look the same as the printout?
in other words, is it an issue with pdf or an issue with your html layout?
 
issue with html, i'm just getting the text like paragraph in html
 
well how are you designing your html?
 
Then style your HTML :-)
 
6:44 AM
can you give us a simple example?
 
morning o/
 
            XPathDocument myXPathDoc = new XPathDocument(@"C:\Users\Hariprasad.TLPRODUCT\Desktop\response.xml");
            XslCompiledTransform myXslTrans = new XslCompiledTransform();
            myXslTrans.Load(@"C:\Users\Hariprasad.TLPRODUCT\Desktop\thermalpdf.xsl");
            XmlTextWriter myWriter = new XmlTextWriter(@"C:\Users\Hariprasad.TLPRODUCT\Desktop\response.html", null);
            myXslTrans.Transform(myXPathDoc, null, myWriter);
 
That tells us absolutely nothing.
 
Is myXslTrans supposed to be transforming something? As of now you're not using it
oh my bad you're calling the transform on it
Show us what the response.html looks like
 
AIRANS RETAIL LLP State: GSTIN: 27AACCT****HTax Invoice****Original Copy****Phone Number 1800-121-9377*********************************************************Bill No: Dad02280819/0003Bill Date: 28/08/2019 16:18:00Counter: 02Customer : hitenCustomer Phone : 961*****Customer Address : , A-1, 806, Empire Mahal, Dr. Ambedkar Rd, Dadar TT, Maharashtra, 400014User : Nayan*********************************************************DescriptionMRPDiscRateQtyAmount
 
6:48 AM
@Hariprasadkasavajjala ok, well hopefully you can see why this wouldn't be structured in an html page
it isn't enough to print the data with indentation in an html document
 
Actually i just used xsl to html converting code sample and executed this, But in HTML i'm just getting plain text not like the style sheet which i defined
can you suggest me how to do this
 
1
Q: Convert XML to HTML using xslt

ljed23I developed a java based command line utility that transform an xml into another xml file and generate HTML. In this program I used SAX parser to read the content of source xml into my java object then use JAXB to generate the XML. Right now I'm creating the HTMl file by populating a string for H...

use this as a template for converting xml to html
it can get complex, so fair warning
 
7:26 AM
gutten morgen people, a couple of questions
       public class TreeNode<T> : IEnumerable<TreeNode<T>>{

    			public IEnumerator<TreeNode<T>> GetEnumerator()
    			{
               		 yield return this;
                	 foreach (var child in Children)
                	 {
                    	foreach (var childOfChild in child)
                    	{
                       		 yield return childOfChild;
                    	}
                	}
            }
   }
I have this thing
so what does exactly tree.Any() or tree.Where mean?
 
google: C# .Any .Where
 
is there some magical thing here to find all the nodes that apply to where or any
 
what
 
do you see the treenode I posted?
 
yes, code is compiled by magic and runs on the magic JIT engine
 
7:30 AM
I just mean why would it work
 
It requires pixie dust.
 
maximum
it seems I am just returning the second child
 
Disney owns the rights
 
god damn it
 
do you know how yield return works?
please ask a more specific question..
 
7:32 AM
well in general yes
if I look at the code it only yields 2 levels down
am I missing something about yield?
oh well forget it, I clearly am missing something about yield cause I dont understand the first line where it says "yield return this;"
 
ie. at what point does a child start the process (foreach) over again? no idea :p
 
this article is explaining well on yield functin
 
7:47 AM
good morning.
 
its alright :^)
 
Could be better, you say? Yes. But could be much worse.
 
nah nah I voted merez I dont give a fuck
 
VOted?
 
We had an election yesterday.
 
7:50 AM
Oh cool, did it go your way?
 
everyone won
and no one won
 
I don't understand
 
Results still aren't in, but we who voted for the left are having our regularly scheduled moment of hesitant hope that it won't turn out totally terribly. Of course, once the final results are in we'll have those hopes dashed, as usual.
 
me neither
 
You can go your own wayyyyyyyyyyy ♫ ♬
 
7:50 AM
let me dream for 5 minutes pls
 
Results aren't in yet? I thought you were like 3 timezones ahead of us?
Do you not get fast results
 
Nope. Last count on the official election committee has ~45% of the votes counted. It'll trickle in throughout the day.
 
results dont really matter since neither can get a coallition
 
what election on yesterday?
 
Wow trash. In the UK the vast majority of the results are in withing 6 to 8 hours after polls close
 
7:52 AM
Generally speaking there was no big winner. The two biggest parties are almost tied, probably. No smaller party got wiped out. No-one grew. There's no clear-cut majority or coalition.
 
In italy, you can't even vote for one freakin' party, because in theory more than 50% needs to rule, so you end up getting situations where like the left and right parties will side just to reach the >50% quota and then NOTHING GETS DONE ANYWAY
 
If there's any reasonable majority it can usually be called by about 3am
 
what's the freakin' point
 
technically the results arent fast because some of the voters are in arab villages (correct me if I am wrong) and it takes time to gather the votes from there
 
The only good thing that can potentially come of it is that Netanyahu and his corrupt cronies will finally get kicked out. It won't happen, but a guy can hope.
@misha130 Nah, all the actual ballots were collected last night.
 
7:52 AM
well its what ynet told me
 
It's just a matter of checking and rechecking, counting and recounting, verifying and so on/.
 
alright
 
just throwing this out there, is it possible Putin is throwing wrenches into things politically so that brexit no-deal actually happens?
It honestly seems that of all the possible endings to this, that would truly be the worst for Great Britain
 
foreign interference is forever possible
 
I can't see why anyone would ever push a no-deal brexit, since it's basically the political equivalent of accelerating when confronted with a brick wall up ahead
 
7:56 AM
I don't think a no deal benefits anyone
 
yea probably same as trump
people want to hit the brick wall
 
Like literally nobody
 
I don't doubt that people would have voted Trump anyway, but maybe all that was needed was a push to get him elected
Unfortunately, you can't deny the benefits of money in an election campaign these days
 
thing is if they called a gen elections right now in brit tories would win
 
Heck, you won't even be on TV to propose your ideas on national television in the debates if they don't think you warrant it
my idea is that the only way this is going to change is if the queen herself forces a one-time revote
 
7:59 AM
@Neil Read up on "disaster capitalism"
 
@misha130 Debateable
 
@AvnerShahar-Kashtan buying short stocks and leading your country to destruction seems like a conflict of interest to me
 
I would say nobody would win, I think it would (for the first time in a while) be a roughly even split between the 3 major parties, but labour and libdems would have historically got together, but thye're saying they absolutely won't this time
 
@Neil Not just short stocks. When the economy collapses, there will be people to pick up the pieces. See what happened when the USSR collapsed - oligarchs stepped in and took over things that were public before, became billionaires.
Sure, the country suffers. They don't. They have private planes and money to live anywhere they want.
 
when the country suffers, this is how you get bloody revolution and nationalist dictators
bad things happen when countries suffer. It changes for the worst
 
8:01 AM
um not if that it is already a result of a revolution
 
Not for the ultra-rich, no. They live just fine in symbiosis with nationalist dictators.
 
@AvnerShahar-Kashtan Basically just pawn shops: country edition
 
You can see it in a lot of the rhetoric of the hardcore, rabid pro-Brexiter politicians. The Leave rhetoric is interleaved with "cancel worker protections, remove the minimum wage, stop environmental regulations". There's an underlying pro-business agenda there.
 
The country is poor so sells infrastructure to the pawn shops (the oligarchs) for massively undervalued sums because they just need dolla
 
it depends on the underlying idea that your average joe would agree to these things
 
8:03 AM
And there's nothing underlying about it (the business agenda)
 
There are those in Italy that would leave the EU as well.. go back to the lire
"Things were great then"
that may be true, but they have no idea what kind of debt and turmoil that would cause if it was attempted now
those who say the contrary have something to gain by such turmoil
 
honestly think uk can probably take a brexit and survive but italy lol no
 
there was a party which is very very nationalist with a clear leader of this party that had grown in popularity this last election
He wants to leave the EU and full halt to immigration
He had to share the space with another party leader, but I think he saw an opportunity to get all >50% and be the genuine leading party in Italy, so he called for a vote of no confidence (forces re-election)
the president nipped that in the bud real fast, fortunately
he's still very popular, which scares me, but he's not in any position to be making all the decisions yet at least
no doubt that's his end-game
 
can I just post a tweet from bibi netanyahu here? is it ok if its a lil political here? we shouldn't drag c# to politics but its really small thing
lets just stop here cause I'll just get sadder
 
Don't get sad, get angry.
 
8:17 AM
see you in 4 years, space cowboy
 
Last time I was in Italy, about a year and a half ago in Venice, I saw that, like in Spain, there were a lot of voices calling for the dissolution of the Italian union and independence to the northern provinces. I gather that since the 70's the local-patriotic/nationalistic voices calling for independence were getting stronger in Veneto and Lombardy.
I mean, there was a referendum. Non-binding, and only 40% turnout, but the results were almost unanimous for more autonomy, if not outright secession.
 
This is because most of the PIL derives from the northern italy
the southern italy is a money pit and full of corruption
I don't think italy should divide, no, but there are some serious issues which need to be addressed, certainly
There's a sort of news show where they investigate scandalous news stories here, and in one episode, they investigated the typical work times of civil servants in the south
they come in at 10 o'clock and take a two hour lunch break, then leave at 3, all the while getting paid the full 8 hour work shift
nobody complains because everyone expects this
My wife deals with shipments, and often times, companies who purchase the product which come from the southern italy, they try to negotiate receiving the product and then paying at a later date
you'd think that would never be acceptable, but apparently it is quite a normal occurrence there, and often times companies are 3 months+ late in paying
not exactly a good reflection on Italian quality
 
8:39 AM
morn humans,roaches and squirrels
and all other animals
 
Squirrel Online
 
hmm
cpt not on board yet
probably hangover again
from emptying all those rum barrels
CaptainHangover
 
Nah he's just lazy
 
hehe
 
Don't forget the anime waifus @Hans1984
 
8:52 AM
Another Captain!
 
I'm assumign you mean the other one
 
there can't be two captains.
 
@RoelvanUden yeah, my bad
 
Yes there can
 
We need to settle this once and for all.
 
8:53 AM
@JinLee Captain America and Captain Marvel want a word with you.
 
squirrels already settling it
!!squirrels
 
Shall we draw a lot? or death match?
 
Wait, was she a captain?
 
Oh, yes, yes she was a captain.
 
8:54 AM
Sorry there is no girl captain
at least not among animal realm
let's not be politically correct. Accept nature.
 
Accept nature, run around naked.
 
Cap(t) Six
!!Are you a cpt ?
 
@Hans1984 Definitely
 
Oh, managed to stop myself in time. Yay me.
 
stopped from what ?
 
8:57 AM
getting naked?
 
ahh no ...nvm
nsf
 
Commenting on the "politically correct" comment.
 
sometimes its better to let it go
saves energy
 
well /dinnertime
save energy for earth
 
alright
 
mr5
9:02 AM
o/
Is Timedout a valid word?
Timeout is
Timeout past tense is timed out (with space)
 
@mr5 The construction is valid but that doesn't mean it's actually in use. It looks weird to me. I wouldn't use it in any documentation or official texts.
Actually, the construction is a bit unsure. timeout, single word, as a verb, is of course a natural construction in the "every noun can be verbed" school of thought. But would the past tense of that verb be "timedout" or "timeouted"? That depends on how much conventionalization that verb had undergone. "Not much", I would say.
Stick to "timed out".
 
mr5
So I'll let it become popular first?
 
mr5
Say, we have these enum entries for the purpose:
public enum HttpErrorType
{
    Unspecified,
    Authentication,
    Server,
    Request,
    Connectivity,
    Cancelled,
    Timedout
}
It's used to indicate different HTTP request errors
 
Ah, it's for an enum. Screw linguistic convention, use whatever is clear enough for the people reading the code.
 
mr5
9:07 AM
Should I name it TimedOut instead?
 
So in the end, it's a question of the capitalization of a single word?
 
mr5
yeah
 
Both will be clear and convey the information you want to convey. I wouldn't lose sleep over it.
 
mr5
if you were me, what would you use?
 
TimedOut, probably
 
mr5
9:08 AM
That sucks
well anyway
I'll use it
 
mr5
haha
 
If there's existing code with Timedout, I wouldn't go changing it.
 
timed out
 
mr5
@AvnerShahar-Kashtan this is actually a new entry and first ever to exist in our code base
@Hans1984 how would you name it in enum?
 
9:10 AM
difficult
because capital letter makes no sense
timedout doesnt look right
idk
 
@Hans1984 Why doesn't it make sense? It's a class Title Case.
 
mr5
yeah agree. I'll let it become popular first
 
oh its a class name ?
 
mr5
no
an enum entry
 
hmm
 
mr5
9:11 AM
Oth, I have another question
In TaskCanceledException, how can I determine if the Task was cancelled by CancellationTokenSource?
cts.CancelAfter(Timeout)
 
@mr5 As opposed to what?
 
mr5
@AvnerShahar-Kashtan I reworded the question
probably a time out issued by HttpClient I think?
 
An exception inside a task won't be propagated as a TaskCanceledException.
That's a failed task, not a canceled task.
 
9:31 AM
oh cpt finally arrived
time to leave the haven
 
should I add extensions to assert for collections like Assert.Contains
 
@CaptainSquirrel Stop lurking, we can see you here
 
yeah
blackbat?
a new user
arent bats always black ?
 
@CaptainObvious im eating breakfast >:(
 
never seen a yellow bat
 
9:39 AM
Also i had a hassle getting my laptop to connect to the internet so
 
@Hans1984 bats can be in any colour
 
harry was chewing on the cables again
 
especially when they flew into a bucket filled with dye
 
No the wifi is just shite @Hans1984
 
oh,k
@Wietlol good point
i want a purple bat now!
 
9:40 AM
It's half 10!
 
YEAH
I GOT IN LATE TODAY
 
for me it is half 12
 
Lazy bastard
 
AND THERE IS FREE BREAKFAST
 
but we are only 1 hour apart from each other
 
9:40 AM
@CaptainObvious I did get up late to be fair
BUT
Uber was also fucking me around
took me 10 minutes to get a driver
who was then on the other side of town so like 15 minutes away
 
Uber, I thought you lived like a 10 minute walk away
See
 
so i cancelled and had to wait another 10 minutes
 
51 secs ago, by Captain Obvious
Lazy bastard
 
I don't walk into work because i don't want to be sweaty and stinky all day
I will however walk back
ALSO
@CaptainObvious its 20 minutes walk actually
 
so you glide into work
 
9:42 AM
It's not warm out, how would you be sweaty and stinky
 
@CaptainObvious i run hot 95% of the time
 
@CaptainSquirrel does that mean you moved? or did you become slower?
 
@Wietlol no its always been 20 minutes walking distance
 
I used to walk to my old job
20mins one way
but my new job is on the other end of town
no more walking possible
unless i want to walk 3hours..
 
I used to be 15 minutes away from my workplace and would walk
I've since relocated to another part of the city and am now 30 minutes away
I still walk though :)
Assuming no adverse weather conditions
 
9:47 AM
30mins is ok
i would still walk if it was 30mins
im a good walker
 
I'm narrowing my job hunt down to two leading candidates. One is a 30 minute walk. One is a 30 minute drive. :(
The :( is because the 30-minute-drive one has a lot of other things going for it.
 
they've done studies, and interestingly enough, people seem to be willing to dedicate at most 2 hours towards commuting to work, after which it falls of quickly
This is independent of the means of travel, so if it took you 2 hours by plane, you'd have just as much tolerance as 2 hours by bicycle in theory
 
2 hours a day is insane.
And yes, I know many people live like that. It still seems insane to me.
 
well it is the upper bound
I went quite a while at an hour and a half commute time
 
I spend about an hour on commuting and I feel it's a meaningful drain on my quality of life.
 
9:51 AM
Can confirm
long commutes are the literal worst
 
That's why I stopped. I fought tooth and nail to not have to commute anymore, and they didn't want to see me leave, so they actually opened an office in my city for me and others like me :)
 
apparently a lot of people felt the same
 
Good for them, and good for you for insisting.
 
I used to walk 10 minutes to my car to drive to work in 5 minutes
then I got an electric skateboard which does the job
then the law busted in and now I have a semi-electric skateboard
 
9:52 AM
I do wonder what it would be like to commute by plane every day
 
silly dutch laws
@Neil pilot?
 
I know there are those who do that, obviously they must be well-paid to justify that
 
hmm... no, they dont go to their work by plane
 
@Neil ask any area 51 worker
 
also pilots I'm sure
@CaptainSquirrel speaking of which, when did they want to storm area 51?
has that happened yet?
 
9:53 AM
@AvnerShahar-Kashtan yeah i also need 1h now
 
@Neil Sounds terrible, because I can't imagine a flight, even an internal flight, taking less than 2 hours each way, simply because of the security theater and bureaucratic logistics around flights.
 
it sucks
1h drive
both ways
its just lost time
 
@AvnerShahar-Kashtan my guess is the actual flight would be under an hour for it to be anywhere near 2 hours total
 
if you walk its atleast somewhat healthy but driving just sucks
pure stres
 
but an hour of plane can easily fly you to a neighboring country
 
9:54 AM
@Neil i think its like in a few days or something
 
@Neil My mother used to fly down to Eilat once a week for work - it's a city about 5 hours by car, or 45 minute by air, from Tel-Aviv. But those 45 minutes are net time in motion - it would take at least 1:30 hours each way, because airports.
 
@CaptainSquirrel the 20th of this month in theory
god it'll be a massacre
@AvnerShahar-Kashtan probably more nowadays
 

« first day (3259 days earlier)      last day (1672 days later) »