« first day (2053 days earlier)      last day (2900 days later) » 

12:15 PM
 [Route("DownloadZip")]
        public HttpRequestMessage Post([FromBody] string value)
        {

        }
and thats how am posting from fiddler
{
"value" = test
}
why its always null in the controller?
its hitting the controller but value is always null?
 
And what content type did you set? ;)
 
that's not url form encoded
 
Content-Type: application/json
 
test is not valid json
 
yeah i got it working now
thx
 
12:35 PM
@Squiggle he should try certain supermarrkets in France
 
@TomW "certain supermarkets"? Most French supermarkets sell horse meat. It's delicious :9
 
Or Tesco
 
I wouldn't know; never had it, never bought it. Wouldn't be averse to it provided it wasn't formerly a racehorse or a pet
 
I bought some last week. Marinated in a garlic / balsamic sauce, fried up on top of a raclette grill. Delicious.
The horse they previously mis-sold in the UK was mostly from livestock. The problem wasn't the source, it was that nobody could prove it wasn't from drugged up racehorses.
 
12:39 PM
Most people don't realise this but the reason the horsemeat scandal was a big deal is that there is a drug sometimes used to treat horses, I think it's an anti inflammatory or something, has a potentially fatal toxic reaction with paracetamol
So the horse passport thing is there for a reason and flouting it is quite, erm, bad.
That kind of shittery is how we got BSE
 
can i create html file in c# with no need to save it locally?
 
@Kob_24 if it's not saved in what sense is it a file?
 
It is utterly impossible to create a file without saving it.
Regardless of language. ;-)
 
@TomW truth.
 
memory mapped file maybe
 
12:47 PM
I thought most files are just an interface with read/write/seek methods
 
hello everybody
 
@TomW i want to create if first then add some other files zip it and then save it
 
@ntohl that sounds like a file descriptor, not a file
@Kob_24 so you want to create a zip archive?
 
client is sending html content to the api as string, what iam trying to do is to create a html page then add a readme file then create a zip archive from the html page and the readme file @KendallFrey
 
Right, so... what have you tried?
 
12:55 PM
Creating zips on the fly is quite trivial.. have you googled it?
 
i am trying to create the html page now from the string @KendallFrey
 
what does 'page' mean?
 
but i dont want to save it locally, i want to create it then add another file then add them to the zip arichive which is going to be saved locally
 
3 mins ago, by Kendall Frey
Right, so... what have you tried?
 
pages means transform returned string into page.html
div class="banner-top">
            <img src="assets/img/banner/900x250_2.jpg" class="banner-img">
            <div class="banner-text">
              <h1 class="h1">Welcome to the Husqvarna pages of (dealer name)</h1>
              <div><p>Your garden is your sanctuary. It’s a place for rest and play. But it’s also where you can set your creativity free to shape and recreate your surroundings. At (dealer name), we’ve got your back with tools and experience you can rely on.</p></div>
 
12:59 PM
that's horribly unclear to me
 
like this html code i should create an .html page so i can create zip archive of it
 
Have you googled it? You know.. "in memory create zip C#" or "streaming zip C#"
 
@Kob_24 'page' isn't a term I understand in this context
 
@Kob_24 what's the actual business requirement for this?
 
@KendallFrey lets say .html file
 
1:03 PM
you want to stick a string into a zip archive? good for you. have you actually tried it?
 
"Users must be able to download a zip containing all blog articles"?
 
iwant this content to be writen to .html file
 
@Kob_24 No, you said you don't want to make a file
make up your mind
 
i dont want to save this file locally but i want to create it so i can add to zip file
is it possible to do so?
 
to call a function using Task, the function needs to return something like Task<int>?
is it obligatory?
 
1:07 PM
Hello
Anyone used sp_configure before?
(SQL)
 
@Froxer I think so. What's the problem?
best to avoid using it entirely, tbh
 
Well, basically I am executing a batch file through SQL environment. And i set the values of sp_configure 'xp_CMDShell' and sp_configure 'show advanced options' to 1 in the beginning of the script and back to 0 in the end.
 
y?
 
Is there a way to instead of forcing it to 1,0 simply getting the current value down in the beginning and keeping that value if it is already set to 1 for instance.
 
what's the actual difference between those two approaches?
 
1:10 PM
@Kob_24 yes
 
exec sp_configure 'show advanced options', 1;
GO
Reconfigure;
GO

EXEC sp_configure 'xp_CMDShell', 1;
GO
Reconfigure;
GO

DECLARE @CMDSQL VARCHAR(1000)
SET @CMDSQL = 'F:\RailEvents\ReadyBag\FillDBWithMSTabFiles'--Keep in mind, path needs to be correct.
EXEC master..xp_CMDShell @CMDSQL

EXEC sp_configure 'xp_CMDShell', 0;
GO
Reconfigure;
GO

exec sp_configure 'show advanced options', 0;
GO
Reconfigure;
GO
that is the current script
 
@KendallFrey any good tutorial that explains that? , actully what i can do is create the html file and then i delete it after i create the zip file what do u think about that??
 
The idea was to simplify as much of the installation as possible, the script calls a batch which in turn calls for two stored procedures that creates and fills all databases with 2 tables of data per database.
 
@Kob_24 I think that's a terrible idea and you're way overthinking this
 
but if said path has a space in the adress, then ofc the batch file needs to be used directly.
 
1:13 PM
  var t =
                Task.Run(() => new FuncoesUpdater().ConnectionStrings(Global.NovoServiço + @"OrcaService.exe.config"));
            t.Wait();
will "t" be equal to what the function "ConnectionStrings" returns?
 
is it doable @Squiggle ?
 
@Froxer so this is just a round-about way of running some CREATE and INSERT scripts?
 
@Mr.Toxy no, it's a Task
 
Yes, exactly @Squiggle
 
@KendallFrey How can I execute the task async but getting what it returns?
can I just use await?
 
1:15 PM
OK... can you explain why sp_configure is needed in this context, then? I'm not entirely following
 
maybe
what does "getting what it returns" mean?
 
the function returns a List<string>
 
you can't access the result of an async operation synchronously
 
@Mr.Toxy read that link I sent you earlier. Understand what Tasks are and how to use them.
 
I didnt know how to run a batch file from SQL Environment and found out i could use the CMDShell approach @Squiggle
 
1:15 PM
this has been done to death by countless idiots
 
@Kob_24 I literally just googled it for you, this stuff is easy to find if you look
 
@Squiggle I've read it. it says in the function I need to return a Task<T>.
 
@Froxer you're executing a .bat file from SQL command line? That feels... backwards?
 
I know, and i thought so too :P but one of the requirements asked me to do so to simplify end user usage.
 
oh I get it, I can use to execute things that will output "directly" like Console.WriteLine, but I cant access the value it returns
 
1:17 PM
@Mr.Toxy sure. That means your function contains an asynchronous call and that it returns a task, instead of a normal response. If the code you're using to call an async method isn't async it's self, there's very little benefit in using async.
 
async: Elephants all the way down
 
@Mr.Toxy You don't need to, there are other overloads
 
damn that cat went ham @JakobMillah
 
@JakobMillah one... two... thr...
 
1:18 PM
@KendallFrey such as?
 
@Mr.Toxy the one you're presumably already using
 
I only wanted to use async because Im reading from a file, if theres too many items read can that present a problem? like blocking UI?
 
so @Squiggle can i get the current value of xp_cmdshell, show advanced options easily?
 
@Froxer Yeah, that cat knew its moves xD
 
1:20 PM
@Mr.Toxy if you do it synchronously, yes that can be a problem
 
@KendallFrey oh so synchronously not async.
how can I run "ConnectionStrings()" function in such a way that I can prevent such cases ?
 
uh, asynchronously
 
@Froxer Perhaps? I don't know. It still fells like you're doing something weird. Why not just execute the batch scripts via cmd instead of SQL?
 
with task right? but If I cant access the values returned by the function its not useful for me
 
@Mr.Toxy so why are you using it? O.o
communication is hard today :(
 
1:26 PM
@Squiggle Im not, Im trying to run it async to prevent thos cases
 
which cases, sorry?
 
for example locking the UI
 
@Mr.Toxy the idea of async is to do the rest of your work after the task is done, not wait for the task to finish before continuing
 
is this a WinForms app?
 
@Squiggle gonna keep my problems for tomorrow then
 
1:27 PM
reading from and writting to a file should always be async correct ?
 
@Proxy THE MORE THE MERRIER (but I'm going to need more tea)
 
@Squiggle it is a winForms app
 
@Mr.Toxy async only works if the entire stack supports async. WinForms isn't async at all.
 
@Mr.Toxy not necessarily. file access is generally pretty quick, so it depends on your situation
 
Windows Forms has a backgroundworker concept that allows you to do long tasks without locking the UI.
 
1:28 PM
yeah I used that previously
 
@Squiggle async as in the keyword, or async as in the concept?
 
but someone referred that Tasks would be better
 
@KendallFrey async
 
@Squiggle tomorrow it is. Im leaving today for toxy
 
@Proxy what?
 
1:29 PM
@Proxy Don't let toxy hog the room!
 
that's because winforms doesn't have a scheduler, but I imagine there's probably a way to configure one yourself so you can use async
 
im a nice guy
 
Proxy and Toxy. They fight crime!
 
hahah
more like cause it
 
@TomW their arch-nemesis is Doxy, obvs
 
1:32 PM
ohhh T.T XDDD
 
hm toxy is silente
il go ahead then
sorry buddy
its the continuation of my datatable problem (if anyone rememebrs) anyway i have managed to implement almost everything(i load 50 by 50 entries from the database when user clicks next/previous page and that works fine)
however i have a problem when i want to sort those collumns
when i sort them it's sorting the current avalible bunch
but i should sort it regarding the entire database
i know that the soultion is simple i just should query the database
 
exactly
 
but im using datatables
and that ruins the concept of it
 
How many columns in your results?
 
10
 
1:41 PM
And you're working with pure SQL and DataTables? Then you basically need to translate your UI sorting definition into your SQL's ORDER BY clause
 
but i dont know how to do it exactly with datatables( I suppose when clicking on collumn i shoud submit its name to the query but again its kind of dumb')
entity framework
 
your UI knows data like "I'm on page X" and "I'm sorted by Forename and Surname". You just need too know that information when you create your SQL, and... translate it?
 
@Proxy why are you sorry for XDD? np :P I was reading a news hehehehe. hope someone can help you
 
ooh EF
then that's easy
it's just an .OrderBy(X) before you .toList() the response
 
I solved it @Squiggle :) Thanks anyways.

DECLARE @advanced_options sql_variant
DECLARE @xp_cmdshell sql_variant

SELECT @advanced_options = value_in_use
FROM sys.configurations
WHERE name = 'show advanced options'

SELECT @xp_cmdshell = value_in_use
FROM sys.configurations
WHERE name = 'xp_cmdshell'
@Squiggle ^
 
1:44 PM
@Froxer Well done! But it still smells.
 
I have a sketch about .OrderBy
 
sorry
 
fuck the smell :P
 
i know but the part that troubles me is that i dont know how exactly should i send the call from collumn click to the server
 
1:44 PM
the criteria is fulfilled.
 
@Proxy how are you triggering the loading of pages right now?
 
@Mr.Toxy :P
 
@Proxy :D
 
when loading i just submit the nextpage index and skip the previous recordes
next / previous buttons
 
i've done literally jack shit today. Cleaned my PC from old files
 
1:49 PM
@JakobMillah hahahahaha XD well thats something
 
@Mr.Toxy yeah.. I am getting close to done with this place. So much time wasted
 
dunno i'm thinking of doing everything manually
and droping the datatable here
 
@JakobMillah Im sure you could find a nicer place, being stopped without doing shit for hours its horrible imo
honestly I would be more thrilled to work then to go to uni
 
Neither is perfect.
 
but well I wont get an offer from here, or its that or I'll be stuck 1 year just studying and I sure dont want that
 
1:56 PM
@Mr.Toxy truest me uni is better
trust*
 
morning
 
@RoelvanUden message for me or :D?
 
@Mr.Toxy Ye and the work I do just ends up at customers end. never get to develope something
 
@Proxy Ik that I dont have any real world job experience but if its anything like this, then work is better than school XD. School (my course) was harder than this, and had a lot more pressure as well
@JakobMillah wow that sucks imo :\ so you're not actually doing what you like, ur not developing nothing
 
@Mr.Toxy well i just started working (4th week) and its all for now bug fixing and it seems it will be for a longer time... altough im done with them now and now im stuck on this banal problem maybe im too dumb anyway
 
1:59 PM
@Mr.Toxy Havn't really written any code for 6 months, but a few lines... Not really what I applied for
 
the only thing that kinda annoys me is that Im here like an employee doing everything for free and they are always on top of me to see if they can get more time of me to to their work for jack shit
 
@Mr.Toxy portuguese?
 
@Proxy naaaah im sure thats nothing to do with you, when I started here was just with crystal reports, some desing and optimization for their app, now doing the damn updater and writting an installation document for clients
@JúlioMurta Sir yes Sir 07
 
well i got my share of problems with the datatable as wellp :P so i dont know
 
My motivation is dropping. MOTIVATE ME
 
2:02 PM
but I feel that they jsut wanna squeeze as much time as they can from me staying here so I do their work for jack shit
I haven't exactly learned nothing new from being here
 
@RoelvanUden Motivate meeeeeeeeee, I wanna get myself out of this place. Captivate meeeee
 
@JakobMillah Let's write your resignation letter today :D
 
@JakobMillah What the fuck
 
@Mr.Toxy how is the I.T field in Portugal nowadays?
 
That is garbage. :P
 
2:03 PM
@RoelvanUden That's my childhood.. Please
 
Sorry bro.
 
it will start like this: "Dear fucktard employers I wanna do something productive with my life, please get me some real work to do or I'll get my ass outta here"
 
@Mr.Toxy Well, I am working on it pretty much. Need to find somewhere else to work first
@Mr.Toxy 1 project leader pretty much knows I'm omw. I think he speaks with my boss about it too. Or hinting him abit
 
@RoelvanUden be like panda
 
That is.. strangely cute.
 
2:05 PM
@JúlioMurta it really depends on the company, some companies are really strict and only care about production, others actually care about you and give you some opportunities. the IT market well generally speeking it has been increasing, the same for programation, as the years pass more employees are required and offers tend to be better.
 
oh well im off
enjoy the rest of day
 
@JakobMillah I dont think that's good :\ better not to give any hints to anyone b4 you figure everything out, well imo ofcourse
 
o/ Proxli
 
yes?
 
@Mr.Toxy wow interesting. a friend of mine, the scrum master of my actually, is thinking about immigration and i guess Portugal is an option for him.
 
2:10 PM
@JúlioMurta honestly you have 3types of companies here, the giants that tend to be a shitty place to work, they just care about production but they give you some opportunities, for example NovaBase and Critical Software, then you have smaller companies that have great environment and give you a great deal on opportunities such as Quidgest and Arquiconsult (they are big companies of the sector).
then you have companies like mine that are really really focused in what they do (here is construction management apps) that give you also some good perks.
 
@Mr.Toxy Well, I am an honest guy and the project leader dude is someone I am to speak to about everything. I think it was a good idea speaking to him. Then if he takes it with the boss, fine, then they know they need to fight a bit harder
 
@JakobMillah oh yes that changes the perspective, if they want you and need you Im sure the project leader will step in in your behalf
 
@Mr.Toxy Yeah, no doubt they want me around. Especially since it would suck donkey-schlong if I left
 
@Mr.Toxy not so much different than here. we have companies as ibm, accenture, everis, totvs, capgemini (i work there), stefanini and etc... these places can be good places to learn and gain experience. we have some interesting companies that began as start ups as Minuto Seguros too.
btw you are welcome if you'd like to try something here :)
 
2:14 PM
fml..
 
@JúlioMurta generally speaking the market is only increasing year by year. And companies are also getting bigger and tend to get involved in pretty big projects, Critical Software creates apps for NASA and Armed forces all around the world, honestly one of the best companies to work in if you can bare with some "limitations".
@JúlioMurta where are you from?
oh portugal?
o.O
 
How do i convert the value of:

SELECT @advanced_options = value_in_use
FROM sys.configurations
WHERE name = 'show advanced options'

with the help of:
CONVERT ( data_type [ ( length ) ] , expression [ , style ] )

Trying to solve error message:
Implicit conversion from data type sql_variant to int is not allowed. Use the CONVERT function to run this
 
@Mr.Toxy brazil
but my name is portuguese, as you can see
 
@JúlioMurta yea I was thinking about that :p and it also popped up Portugal offices when searched for it :p seems a gr8 company indeed
I know an engineer that works at citrix I dont know why but that company always cought my attention, from what I know of it, seems a really really good place to grow as a professional and also seems to be really interested in giving the employee an opportunity to learn about new tech and all
 
i know a portuguese company that has a branch here. bold international. do you know?
 
2:19 PM
@JúlioMurta yes I know it :D also a big company and one of the best in the sector
 
wow good to know
 
mine is CDP-SI
 
never heard, unfortunatelly. is a big or small company?
 
@JúlioMurta its a company of the MSF group wich is the biggest civil construction group in Portugal, works all over the world.
 
looks like any other brazilian it company. we really have a lot in common haha
 
2:22 PM
I actually think we borrow each others models hahahahaha
oh god I thnik they will have me refactoring the damn website
hahahaha
 
do you know totvs? is a brazilian company. they have a branch in portugal too
but i never heard about international customers
just some companies in argentina or uruguay
 
" Angola, Bulgaria, Burkina Faso, Cape Verde, Cameroon, Equatorial Guinea, Gabon, Ghana, Kazakhstan, Malta, Mozambique, Moldavia, Namibia, Poland, Qatar, São Tomé and Principe, Senegal, Sierra Leone and United Arab Emirates, and is studying further investments in other countries of Africa, Europe, Asia and Middle East." this it "our" working area
@JúlioMurta I've actually heard of it in a how is it called those events damn I forgot the word hahahaha
 
they work with a big erp as sap. the curious think is that they use a proprietary language based in clipper.
 
honestly the biggest references here come from quidgest quidgest.pt critical software criticalsoftware.com/pt/homepage arquiconsult arquiconsult.com and novabase novabase.pt/pt and plus 2 or 3
 
a have a friend that work there, it's curious by i wouldnt like to work using something to strict as advpl :p
 
2:28 PM
@JúlioMurta thats their management software right ?
 
yeah
 
@JúlioMurta have you heard about this one citrix.com.br ?
 
no, unfortunatelly.
 
it is a relly really good company
 
i just heard about bold international because i sent my cv for them years ago.
 
2:30 PM
citrix has offices in brazil as well
 
wow they are at faria lima
i was there last saturday
 
hahahaha XDD
 
when i came to sao paulo to go to children of bodom show hahaha
 
:D
hope u had fun xD
 
i currently work in sao paulo at sao paulo militar police
but im a capgemini employee, a french outsourcing company
but im thinking in get something away from sao paulo, im not a fan of this city
to much people here
it scares me
 
2:33 PM
@TomW i think memory stream class and ZipArchine would solve my problem
 
@JúlioMurta Brazil seems a cool place to work tho, the random violence in the other hand is scary :\
 
@Mr.Toxy yeah, this is the biggest problem here
 
@JúlioMurta yeah I have several friends from brazil that say even that they dont enjoy portugal that much, brazil was becoming a "warzone in the streets" as they mentioned, sometimes couldn't even work
 
last saturday, for example, i was going to home and i almost was stolen. after this i saw two beggars fighting
but sao paulo isnt the worst place. the northeast is the most violent in my opinion
in the others hand, the south is pretty pacific
 
my friend was from minas gerais
 
2:38 PM
and have a lot of IT companies too
cool my father is from Minas Gerais
 
and the other is from itaíba
he is exactly from coronel fabriciano or something like that
 
there asre a lot of murtas in minas gerais
as you can see, there are a city called coronel murta there
i think that coronel was my grand grand grand father
 
wow :o
thats awesome
 
and murta is a portuguese name too. i already saw some portugueses called murta.
 
probably was original from Brazil
 
2:41 PM
but my desire is to live in the countryside of sao paulo.
 
that does sound very cool
 
in campinas, for example. has a lot of it companies as ibm, ci&t, etc
and the unicamp, the university with the best course of computer science in brazil
 
my desire is to be living here in Lisbon somewhere in the Parque de Nações area, beautiful area
I actually hear a lot about campinas, due to the gr8 concentration of huge companies
 
campinas is a pretty big city actually
but near sao paulo every city is small haha
 
hahahaha XDD
here the only IT place where is worth to be is right here in Lisbon
Porto has some but not good companies imo
Lisbon has the greatest concentration of IT companies, the biggest and better companies are all here.
IBM and microsoft as well
sony
samsung
many many many more xD
 
2:47 PM
same here
brazil is a giant but at least 70% of the companies are here
you can find some job in other place but generally the companies are smaller and dont pay very well
 
yeah its exactly the same here
the other companies outside Lisbon tend to be really really weak and a place thats not worth to work at
however there can be some exceptions of course but generally its like that
 
Are there smaller companies worth working at that aren't based in Lisbon/Campinas? Or are all the small/good places also in those cities?
 
you can see good companies in other places
but it's hard
 
@JeffBridgman all the small/good places tend to bere here in lisbon
 
in sao paulo there are a place called alphaville, for example
 
2:54 PM
in lisbon or in the surrounding area
 
that have 10 big IT companies in each street
in the other hand, if you live in ribeirao preto
you can get some good job if you are lucky
i dont understand why the things need to be too concentrated in sao paulo
i can be wrong but i have the impression that you can find a good IT job in anywhere in the united states
 
Interesting. Yea, I work as a C# dev for logistics company in a small town (<100,000 people) in the US and find it a nice place to work. Maybe I'm just lucky though ;)
 
hmmm but I would say the US IT industry is more developed and its a bigger area than currently here
 
That may be true. Interesting hearing about what things are like elsewhere :)
 
yes I think the same
:SD
:D
 
3:39 PM
Hey y'all I actually have a technical question woo!
I've got OAuth2-authenticated WebAPI. Token bearer authentication. AngularJS front-end.
I need to download files semi-securely.
 
mail a thumb drive
 
It's not possible to pass headers tokens when downloading stuff via links.
@KendallFrey that's too insecure.
 
mail it with whatever the secure option of your postal service is
 
is there a recommended approach to generating one-time download tokens?
 
@Squiggle make it unguessable and make it expire
 
3:42 PM
@KendallFrey there's no such thing as a secure postal service. The spies are everywhere.
 
@Squiggle you said semi-securely
 
yeah :)
 
Brinks?
 
Should I just a generate a GUID, record it in a short-lived server-side cache along with the file to download?
that seems like a sane solution
*along with the ID of the file to download
ah arse no I can't do that. I need to do pass-through authentication to SharePoint to actually grab the file
unless I record the bearer token along with the guid and file, when they fetch the download link.
OK let's give that a go
 
3:56 PM
@Squiggle perhaps you could represent it as a claim
http://business.solution.module/claims/download-file/a-guid-asdfasfdvsad
Probably strictly speaking an abuse of claims
Then do claims authorization as usual in the action method
 

« first day (2053 days earlier)      last day (2900 days later) »