« first day (1320 days earlier)      last day (3854 days later) » 

00:01
@TravisJ I have
also, woohoo, got speakers for my user group
@TravisJ - I want one for a bitcoin wallet generator.
I could print bitcoin bills that way. :D
00:19
Guys, should I be worried that the working memory is being allocated in the stack? pastebin.com/6tK8Eimx (Line 86+)
@RodrigoSilva - Are you asking the right room?
Data might get a bit big, it doesn't seem like its place
@SpencerRuport Hm, you have a point :P
I'd love to help but my C# doesn't translate into C++ skills I'm afraid. :)
But if you were to do it in C#, doesn't allocating such data on the stack feel wrong?
Also, he called it "HEAP_ALLOC" which is wrong, unless I'm reading the code wrong
Memory management isn't something that's commonly done in C#.
room topic changed to C#: For those who prefer a little bite to their C syntax. [.net] [asp.net] [asp.net-mvc] [c#] [entity-framework] [linq] [visual-studio] [wcf] [wpf]
00:28
Efficient ways to kill?
I'd like to kill a process and I'm not sure about...

By Alex. M on C++ chat
They are dangerous :O
I'm about to purchase a tablet computer.
I don't think I need anything fancy I just want to pirate, I mean borrow, college textbooks on it.
The JS room is currently enjoying this comment thread: recoding.blogspot.ca/2013/04/ihateyoush.html
@猫肉かわいい get a Nexus 7.
Dude
I -just- ordered the Nexus 7
I was thinking of getting the note 10.1 2014 buts it's almost 500 bucks and I could not justify it.
01:10
@KendallFrey Wow... that thread is... um... hilarious?!
@EvanL yes
rlemon and SomeKittens were shitting themselves
posted on May 28, 2014 by Scott Hanselman

My new startup has data centers on three continents, utilizes global load-balancing, traverses networks with ease, has both an iPhone and Windows application, was written a simple high level language, and enables an amazing scenario to help people get more done, faster. But the real story - the real mindblower for me - was not the hours and hours of software that my partner and I wrote, i

 
2 hours later…
03:27
@TravisJ you still there?
03:51
!!google how to learn web development lyke a n00b
Server error (status 500) occured (message probably too long)
04:20
@Pheonixblade9 do I need certain amount of rep to vote to close?
 
2 hours later…
06:30
@KendallFrey: lol, fun read. Made my morning slightly better :)
07:25
Morning
Hi every one
can I ask my sql question here?
Heya @Elahe
You can always try :)
:)
ok
But not sure if some of the sql guru's ae online yet... It's still early
ok, I ask
its not difficult
07:26
=]
in my above result, I want to have some changes
I want to have just 3 columns in my result: QMSCode, QMSSerial and new column
new column?
What should the new column contain?
I want to group the results by QMSCode
and new column result is this : if there is any DefectDone = 'true' my new column should be true
else it should be false
for example for QMSCode = 2 it should be False, bcz there is some records which their efectDone = 'False'
ok?
so the results should be like :
2,366,true
8,36,true
9,13-256,false
?
07:30
yeah, exactly
what is the name of the new column you want?
its not important, it can be "Test"!
actually its my reault of view
I sent my view code here, maybe useful for ur answering :)
do you want it in a new table or would all QMSCode = 2 have the Test column with it set to false?
SELECT DISTINCT
                         dbo.QMS.QMSCode, dbo.QMS.QMSSerial, dbo.DefectReport.done AS DefectDone, dbo.[Order].done AS OrderDone, dbo.QMS.model, dbo.QMS.controlType, dbo.QMS.connectionType, dbo.QMS.generateType,
                         dbo.QMS.isCamera, dbo.QMS.centralMonitorRowCount, dbo.QMS.TV_LCD, dbo.QMS.callNumber, dbo.QMS.monitorNumber, dbo.QMS.centralMonitorNumber, dbo.QMS.description, dbo.QMS.lastUsedBranchCode,
                         dbo.QMS.lastUsedCompanyCode, dbo.QMS.warrantyStartDate, dbo.QMS.warrantyEndDate, dbo.QMS.warrantyType, dbo.QMS.lastCheckDate, dbo.QM
I didnt get u @NETscape
I think (someone correct me if I'm wrong) you need to have that column in one of your tables to begin with
07:36
I dont know...
I'm no sql expert
SELECT
QMSCode
, QMSSerial
,MIN(CASE
WHEN DefectDone = 1 THEN 'True'
END) AS TEST
FROM <YOUR_TABLE>
GROUP BY QMSCode, QMSSerial
What is the question?
A bit further up, some sql grouping
the description does not match the data, for QMSCode 2 it should be true according to the description and data, not false, because there is a row with true there.
yeah, u r right @LasseV.Karlsen
all these 3 records should be false
07:42
Why?
That's the opposite of what you requested?
I repair my request :
if there is any row for each group with False Value, the new Column should take 'True' value
so the result should be like this:
ok, so if any False --> true, else --> false?
WHEN DefectDone = 0 THEN 'True'
?
yeah yeah
07:46
guess you should convert that to a bit
:)
Will DefectDone only have True or False, or will there be other values there as well?
2,366, True
8,36,True
9,13-256,True
And which database system is this?
DefectDone type is bit
sql server
if it's bit, shouldn't it be reported as 0/1?
07:48
it reported true and false
that's management studios way to present the bit type
is there any body here how get my question?
ok, I'm out then, you must be using a different version of everything than I am, because SQL Server Management Studio shows bits as 0/1 for me.
Still, mine shows them as 0/1
07:52
Mine too
:)
I used v. 11 @LasseV.Karlsen
Hehe
I use "v. 11" too, which is 2012.
But anyway, you want true/1 for all those rows, because they all have at least one false/0 in DefectDone, is that correct?
If so then you can use this expression for that column:
1 - MIN(CASE WHEN DefectDone = 1 THEN 1 ELSE 0 END) AS X
Could put that into a CAST(MIN(...) AS bit) AS X
07:56
ok
CAST instead of 1-? What's the improvement?
ah, yeah, you get bit out again, right
So this then:
just to obey the type
CAST(MAX(CASE WHEN DefectDone = 1 THEN 0 ELSE 1 END) AS BIT) AS X
07:58
sorry guys I should go, Its my breaking time. Im in work
I'll back
thanks for all ur helping :)
I'll back so soon
 
2 hours later…
09:33
Hi every one
I tested ur code @LasseV.Karlsen but it didnt work
SELECT DISTINCT
                         dbo.QMS.QMSCode, dbo.QMS.QMSSerial, dbo.QMS.model, dbo.QMS.controlType, dbo.QMS.connectionType, dbo.QMS.generateType,
                         dbo.QMS.isCamera, dbo.QMS.centralMonitorRowCount, dbo.QMS.TV_LCD, dbo.QMS.callNumber, dbo.QMS.monitorNumber, dbo.QMS.centralMonitorNumber, dbo.QMS.description, dbo.QMS.lastUsedBranchCode,
                         dbo.QMS.lastUsedCompanyCode, dbo.QMS.warrantyStartDate, dbo.QMS.warrantyEndDate, dbo.QMS.warrantyType, dbo.QMS.lastCheckDate, dbo.QMS.isActive, dbo.Branch.name AS BranchName,
what was your result, show/explain what didn't work
Column 'dbo.QMS.QMSCode' is invalid in the select list because it is not contained in either an aggregate function or the GROUP BY clause.
Hi guys !
09:56
hi @bhuvin
Hello, anyone please experienced to answer stackoverflow.com/questions/23906821/… ?
That is really, really specific knowledge. Not many can answer that AFAIK
I'm not even sure where to post that o_0
Not sure though, because it IS implementation specific..
You can't say you tested my code and it didn't work when you modified it so that it didn't. The code I posted did what you asked in a small example. The fact that you have other problems with the SQL is hardly a fault with the code I posted.
10:17
ok
10:47
hay guys can anybody tell me when i open a .exe file from bin it will be opened with random prefix example i have testTool.exe in bin and when i open it ,it is opened with 80001batesttool.exe
what is the reason behind this
11:07
Virus?
no9
no9
hey @RoelvanUden I would like to hear your opinion on something
got a minute?
Yeah, go for it.
no9
no9
well i have some problems when i moved my app to server 2012/iis8/64bit
dont laugh ...
its not working ok in IE8 :)
Well, IE requires some special treatment as always. What's wrong?
no9
no9
some redirects are just not working and I cant figure out why
for instance
11:15
Using meta, JS or HTTP redirects?
no9
no9
HTTP
Ok, show me the code :P
no9
no9
to get things even stranger
on some IE8/xp its working allrite
I cant show you the code atm, I am using terminal
i suspect iis8
because same browser works ok calling the app hosted on iis6
you need to speak in terms of http =]
^ That. Fiddler works wonders.
12:16
Hi @scheien , @RoelvanUden , @Rovak !
hi
hi
i got TNS:could not resolve the connect identifier specified errow
whn i use Oracle.ManagedDataaccess
how to solve this
i have tnsnames.ora
Sup @bhuvin
12:29
whatup
@RoelvanUden - Man day long long Meetings / Discussions ... Its like more of a pariliament :P
Sounds tedious.
precisely ...
So whatUP on your side ?
Doing something tedious, too, converting ASPX to Razor :P
And that is with views, templates, custom templates, extensions for rendering, etc. Fun oh fun. :/
But hey, it's easy. I got that going :)
12:46
hehe
it's great to have some mindless work every now and then
absolutely, brain off, music on, and go :)
hello everybody, im really despaired.....
are you programming in php?
Oi oi, PHP is an elegant solution for a lot of software. Don't bash it :P
oh i agree, i still use it sometimes for some smaller projects
12:50
i have a datagridview with 7 colums. each colums contains double values that are convertet to string E16 format. My prof wants to have ever "," in each row to have the same poisition. for 99% of the values displayed it is established but some values are deferred by one space... is there a way to formatting them properly?
more of a getting things done language
@JulianHerbold You can just right-align and use a set number of decimals?
@RoelvanUden Ive tried this : dataGridView1.DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleRight; but for some reason, some values at the last or first row are deferred by one space....
13:12
@RoelvanUden - Man ... I have been thru that Pain !
I can start a Community ILoveMVC
:P
13:40
hi all, in my asp.net mvc5 application, I can see the custom error 404 page if I try to hit localhost:xx/asdf/asdf but when i enter localhost:xx/asdf/asdf/asdf it shows me the default iis http 404 page. any idea how to resolve this? I'm running this using Visual studio
one is /asdf/asdf/asdf and the other is asdf/asdf
I wanted to bind some string to the Div in serverside.but it's still not successful. Here is my Div <div id="leftpanel" runat="server"></div> my code behind is leftpanel.InnerText = '<html><p><b>Hello</b></p></html>';
But the problem is in here Bold & other text formatting like italic & something not working
bind.. serverside.. to a div? What the hell did I just read?
@NETscape yeah but none of those routes exist in my app.
hmmm, no idea
13:45
@RoelvanUden I wanted to just show some string in divs..
Hello all
@NETscape how are you ?
busy
okay , when you back
please help me if you have expirence with parse this JSON to get the int value
{"d":"\"280047\""}
never had to do anything in-depth with JSON sorry
@Jordan Use a JSON library :/
13:58
i use it
and its working fine and i get the string value
but when i convert it to int
it give me error input string ?
the received value when i make break point like this "\"280048\"" string
then i use mystring.Replace("\"", "");
i got this "280048"
that would screw up all non-numeric values
What.. you should map the JSON to a POCO
JsonConverter.Deserialize<MySillyDPoco>(inputString)
@Jordan use json2csharp.com to create a class from your json data and then change the type as you need
i have crated the class
this is the clas i use public class RootObject
{
public string d { get; set; }
}
then i use this var outerRoot2 = JsonConvert.DeserializeObject<RootObject>(reader.ReadToEnd());
make d an int
14:04
and to get the D value i use outerRoote2.d
it give me error
when i make it int
What error
because the response is string
something like can not insert string into int
any suggestion ?
just try a simple int value in your json data like "10", just to try
cox newtonsoft should do it for you.
if that doesn't help then may be you will have to write a custom format converter for it...but this is available out of the box.
i have no control on the response
the webservice response like this :(
Like Yoda said, Newstonsoft.Json will handle conversions etc.
14:11
i think your service is wrapping all the response in d so as to instruct you that this is json
format
coz By default WCF service wrap JSON response in "d" wrapper
okay i will check
14:31
posted on May 28, 2014 by ericlippert

No computer stuff today; since I am actually in Hungary today on business and it is the the anniversary of the happy event mentioned below, today’s FAIC is a rerun. Enjoy! I’m back from my fabulous adventures in Austria, Romania … Continue reading →

14:47
Hey everyone.
hey greg
i have a string like this:

string cmd = "der|med|abcdefgrtshh"

and cmd[0] is der and cmd[1] is med

an how can i get the rest of that into a string? so from cmd[2] to all without cmd[0] and cmd[1]
cmd[2]?
@user3313264 Are you trying to put them into an array? And reallocate the index?
from cmd[2] to cmd[n] without cmd[0] and cmd[1]
explain please
14:56
@Greg not to index, to string
You need to clarify, as [0] or [1] indicates an array.
yes
this is all an array
so cmd[0] is a word
cmd[1] another word
so i need to get a string
from cmd[2] to cmd[n]
without cmd[0] and cmd[1]
i tried like this:
var b = string.Empty;
for (int k = 0; k < cmd.Length; k++)
{
b += cmd[k].Substring(Convert.ToInt32(cmd[0]),
Convert.ToInt32(cmd[1]));
}
i wanted to remove the cmd[0] and cmd[1] from cmd
It's not at all clear what you want. Can you explain what exact output you want from a specific input?
with my english not really but i will try
there is a string like:

« first day (1320 days earlier)      last day (3854 days later) »