« first day (902 days earlier)      last day (4271 days later) » 

17:00
or still i will face any performance issue ?
The question should be, why would you want to load that many rows at the same time?
cos i am creating an accounting soft . and for every new entry it will fear an select query .
What does that mean?
If you have problems with frequently accessing your database, you need to redesign your database, or use a different engine.
1 message moved to recycle bin
17:03
ok lat me try
Have you faced any performance problems so far?
yes i am facing
Do you have appropriate indexing?
cos i am not giving an button for fair an INSERT query
I can't understand your English.
17:05
ok 1 min
Hello
i am firing an INSERT QUERY when the cursor Leave the last TextBox on the form
edc
edc
ouch
and form will ready for inserting the next entry
edc
edc
17:07
this spells madness
You should do an insert either before or after entering the data. With a button.
i am firing an INSERT QUERY when the cursor Leave the last TextBox on the form
and form will ready for inserting the next entry
and i have only 2 second for this
2 seconds for what?
edc
edc
maybe better if you fire it when textbox loses focus
Please don't repeat yourself.
17:09
cool... cool cool cool.
for Cline and got the auto generated new free id form the database . from 5 5 million records
lol
wow
Please don't repeat yourself
instantly repeats self...
1 message moved to recycle bin
@sourabhdevpura Please spell your words correctly.
edc
edc
sourabhdevpura is like a cat - whenever you tell him not to do something, he will do it to piss you off.
What is a Cline?
edc
edc
17:11
The term cline was introduced by Julian Huxley in 1938 to describe a gradation in a series of subspecies with continuous change in characters over a geographical area.
Or, (mathematics) A generalized circle, also referred to as a "cline" or "circline", is a straight line or a circle. The concept is mainly used in inversive geometry, because straight lines and circles have very similar properties in that geometry and are best treated together.
@KendallFrey sorry clear
clear the windows form
What do you mean you 'have' two seconds?
because this soft . will insert 100000 new entries every day . and user take 2 seconds for every new entries .

and the biggest this is my competitor software taking 2 second for this
and i never want to loss my client just because of bad performance
@KendallFrey ?
And are you saying your database takes two seconds to insert a record!?
...trigger hell?
17:20
Is your Database MS Access?
no my database takes more then two seconds for retrieve the new uniq id for this new entry
and hw will find this ID from 5 million records
Two seconds to generate a simple number?
@sourabhdevpura are you using non-indexed keys?
let me explain
System.Database.Properties.Speed = long.MaxValue; // speed that shit up!
17:21
if you're using an identity column that is non-indexed... you're gonna have a bad time
@rlemon misleading API. That property actually determines 'slowness'
hence the problem
Speed = 0;
@rlemon yep. Speed is actually a number representing the time between queries.
Infiniteh!
@KendallFrey you just solved the halting problem!
17:22
s/long.MaxValue/long.MinValue/
BAM, negative time record lookup
@MiłoszWierzbicki is your name pronounced "mee lowsh"?
i generate a new number for every new entry
also user can insert his on chose. but the sequence will still remain the same
like
for each lookup you actually GAIN an hour. Tardis.vsproj
1,2,3,5,6,7,8
the my query find that witch no if free from the old entry
on this no 4
and he give 4 as an new ID
17:24
That's bad.
@MiłoszWierzbicki cool, I always wondered how that would spell :)
That is bad.
it he do it in 5 million records
@MiłoszWierzbicki cześć jak się masz (google translate because I can only speak polish, not write it :/)
17:25
You should use a normal incrementing identity.
@sourabhdevpura you should be using an identity column. Manually selecting your identity column is a really bad idea.
but in india account system the sequence should be the same
oho rodak:)
@Pheonixblade9 ya i used it but tell me what happens when a old entry will deleted by user
It will just not have that number anymore.
17:26
and i have to find the free old no an use it like new ID
@sourabhdevpura yeah, if you use an identity it will just keep incrementing, not insert where rows are deleted. what's the problem with that?
@MiłoszWierzbicki zła dziewczyna była polską, niesamowite jedzenie.
yes that's the problem
hard to tell because again, I cannot read it only speak it. Not sure if some of these are wrong... can't even tell you what they sound like :s
17:27
@rlemon hey, I don't mean to be "that guy", but... this is an english chatroom. if you're just making fun of us for a second, it's cool, but please don't have alternative language conversations :D
also, Polish is weird. :D
@sourabhdevpura why is that a problem? do you have a requirement that there can be no "holes" in the list of records?
@Pheonixblade9 but you are "that guy" and i'm just seeing how good my polish is. relax
:P
in the context of the discussion it was clear :P
You yourself said you are using Translate -_-
@rlemon hehe, it's cool. Just wanted to remind you. Some people like to come in here and start conversations in Spanish/Hindi/French
@KendallFrey Indian is not a language.
17:29
i am using goole Translate
I thought so.
But I have no idea what they speak in India.
var message = function() {
  return "Is javascript conversing ok? Or should be stick to C#?";
};
i am weak in english but good in c#
17:29
@KendallFrey many different dialects of Hindi, mostly. But there's over a billion people there, I think there's a ton of languages spoken.
For example, the language/dialect spoken in Delhi will be different than that spoken in Pondicherry
They speak Tech Support ahahah
@KendallFrey You bastard.
in india more the 180 language
I come from Canada... and to make it worse I'm native american. I don't know my native language, or even what it's called. I can't tell you how many of my people are left but I know it's less than the number of kids who went to my highschool....
sucks. because I have tried to find out more information on my people but they are all dead or young like me and have no knowledge of our tribe
and i also can speak 14 from them
is there any solution for my issue ?
or should i leave ?
17:32
You haven't explained why you should fill in holes in the numbers.
As far I as I can tell, the answer is not to.
@sourabhdevpura it's usually a bad idea to re-insert rows into identity keys that have been previously deleted. If somebody has a record of them elsewhere, they could pull incorrect information from your database. Just use an incrementing identity.
GUID FTW
@KendallFrey GUIDs are slower than identities.
in indian accounting standards . the sequence of all the accounting voucher should serialised
Who cares? lalalalallallallallaalalalala
17:35
@Pheonixblade9 i am not inserting it in insert rows . i am using an new column for this
with indexing
@KendallFrey i know . but i have to do it for my client
@sourabhdevpura yes. I am talking about the future. What if someone has printed out their accounting ID and it's old paperwork? They will get pointed through to the wrong person if you reuse old identities.
@sourabhdevpura lol, I wasn't referring to you X|
in any case, I think this is what you need if you REALLY want to do what you're talking about:
2
Q: Reuse identity value after deleting rows

JeremyIs it possible to reuse an identity field value after deleting rows in SQL Server 2008 Express? Here is an example. Suppose I have a table with an Id field as a primary key (identity). If I add five rows, I will have these 5 Ids: 1, 2, 3, 4, 5. If I were to delete these rows, and then add five mo...

the accepted answer also says "THIS IS A BAD IDEA YOU SHOULD NOT DO THIS"
You can use the following to set the IDENTITY value:

DBCC CHECKIDENT (orders, RESEED, 999)
That means you'll have to run the statement based on every DELETE. That should start to highlight why this is a bad idea...

The database doesn't care about sequential values - that's for presentation only.
I highly suggest that if you need contiguous numbers for accounts, use a column different than the identity column.
17:38
ya got it . i am finding it from last 5 days .
and still i am confused
what to do for it
thanks for your help
@Pheonixblade9 thanks for your help
@sourabhdevpura make the column you are keying on an identity.
@KendallFrey thanks for your help
make the account number column different, and handle that independently
exactly i am doing this . but i have 5 million records and they goring
day by day
I have finally come back >:D
17:42
does anyone else miss the VB.NET ability to return a value inside a function by referencing the function name. EG inside function Foo which returns boolean, I can do Foo=true or Foo=false to set the return value.. Is there any C# equivalent.. I mean, what's the work around here? It's been bothering me for years and I never bothered asking anyone
I dunno what that means :')
@dferraro no. And that's a good thing.
int Foo() {
  int ret = 10;

  ... stuffs

  return ret;
}
why not just do this?
I don't see a point to that type of functionality
that's my issue... it seems so many of my methods have this
edc
edc
@dferraro It's a better design to have the function itself determines its return value.
17:44
'var ret' thing at the top of them.. seems like a common pattern could fix this.. like the VB.NET functionality ;)
edc
edc
@dferraro having the caller determines that... usually yields spaghetti code
@dferraro What's wrong with return theValue?
@dferraro if you have such common stuff like this then make it a class and have them all as class functions
store some return properties for the class and ref them in the methods
@edc the function itself still returns the value in the VB.NET scenario
edc
edc
maybe the out parameter?
it does a similar thing
e.g. see the TryParse method
17:49
@edc I don't think it's an issue of functionality... It's more like a piece of syntatic sugar I miss from VB.NET... and I never thought I'd say those words :D
I'm not sure how you can call code that is inherently difficult to read "syntactic sugar"
well.. maybe It's just from doing VB.NET for a few years.. but I enjoyed it
@dferraro VB.NET was meant to strongly resemble VBx and VBA - and presumably various iterations of BASIC before them
I wonder whether it's like, a shorthand for setting some pointer to the return value
two DJs got suspended for saying the local water was full of dihydrogen monoxide
(on April's Fools)
I remember that. I think.
17:55
It was 3 days ago
I prefer "hydroxic acid", it sounds scarier
I remember hearing something like that a long tim ago.
yeah it's a very old joke
edc
edc
"The DJs' joke was totally immature—think grade-school level—and yet remarkably successful."
i don't see why it's immature. I mean, people that don't get it are just uneducated - it's their own problem
I think that was a funny joke
anyways, how would you prosecute them for false water report?
that shit is 100% factual
and also who would benefit from a law suit?
18:00
The county or wherever they said the 'problem' was.
edc
edc
those who wear suits and talk laws.
What is the word for when you sue someone even though you know you are in the wrong but know that the trial etc. will be so expensive that you will break your opponent?
'Typical'?
@edc yes but someone has to pay for them, like Apple owners help paying for a bunch of lawyers discussing rectangles etc. In that case the incetive is clear though.
edc
edc
true that
18:10
Wearing a suit is just like using a tool. It is important to know when to use it and when not to.
@zneak except water isn't an acid. It's an amphoteric liquid.
Apparently my employing company has, in the past, run into some trademark/brandname legal hiccups over some of its product names being already used by other companies somewhere.
I suggested we use GUIDs as product names, and come up with jingles to help people remember.
2
♫ b d three f zero three six eight nine ...
edc
edc
good idea
GUIDs that sound better will naturally cost more
@MikeF Our system is called Eagle. IKR?
18:25
On a related note, I hate it when programming concepts use common English words, thereby making googling difficult.
@KendallFrey You work for the company that invented EAGLE schematics?
edc
edc
I once work with a ASP.NET tool called... Survey Project
i.e. looking up tutorials for LaTeX
edc
edc
It was really hard to google it
18:25
@ShotgunNinja no lol
Hi guys
@MikeF I googled latex. Nowhere on the first page was anything unrelated to LaTeX.
How to add cc's and BCC's and distribution lists to the email programatically
@nirudyogi We can't read your mind, sorry.
18:28
  Dim SimpleSMTP As New SmtpClient("smtp.gmail.com")
            With SimpleSMTP
                .Port = 587
                .EnableSsl = True
                .Credentials = _
                New NetworkCredential("test@gmail.com", "Test123")
                .Send(AnEmailMessage)
            End With
I tried this...now I want to add cc, bcc and distribution lists to the email functionality
The message itself needs to have the addresses. Not the SMTP client.
Smells liek VB to me
I hope that isn't going to be used for spam. Automated spam emails are the worst.
@TravisJ hehe
there is not much spam these days (for me)
18:34
I built an automated email spammer.
The unfortunate thing is that it is really simple to implement.
lol, I'm dumb
hehe yeah
I changed some of our framework code so that this class recompiles regexes for every single row instead of reusing them
me = dumb
Indeed.
this is much better.
18:35
Not even an equality comparison either. Just a straight assignment of dumb to yourself.
AnEmailMessage.CC.Add("myname@yahoo.com", "myothermail@hotmail.com")
is not working though
@TravisJ what is the warning? Unnecessary check before assignment or something
9_9
HOW is it not working?
"Assignment in conditional expression is always constant; did you mean to use == instead of =?"
not that one but maybe it also applies
18:40
I am not sure. It was just my successful attempt to turn some nerd wit into a joke.
'Redundant check before assignment' was a R# thing
ah, well not everyone with a # in their name is equivalent :P
Retard#
Cool#
room topic changed to C#: C#: There can be only one! More info at csharpchat.com [.net] [asp.net] [asp.net-mvc] [c#] [entity-framework] [linq] [visual-studio] [wcf] [wpf]
makes another C# room
18:43
Oooh, call it D flat!
haha
Not this again.
Calling C♯ D♭ is like saying i++ is the same as --i
That makes no sense at all.
Exactly.
Sauna.
Violent Pizza.
18:48
Explosive Diarrrrrrrrrrrrrrrrrrhea.
edc
edc
well i++ is not the same as --i :P
i++ increments i after the line is run, --i decrements i before the line is run
@KendallFrey whereas C♯ and D♭ are enharmonic
@ShotgunNinja LMAO
Sometimes I climb into a laundry basket and tickle my ears. Sometimes I do not.
18:52
how to add config file to a console application. I want to add environment variable in the config file????
Sigh, I just used dynamic. I hope I can remove it somehow.
The message filter is hard at work today.
So I can see it too.
Anybody here good with WinForms?
18:53
In theory
i want to define the smtpenviroment variable in the config file....help me out here...How to add config file to a console application.....
We should just give up and rename the room WinForms.
Well, I wanted to make a form that is overlayed over all other windows - check - and that has no controls/titlebar, or perceivable window - check.
However, I still want it dragabble.
I was thinking, on mousedown/mouseup, set a bool, and if it is down and you move the mouse, move the form.
Yeah.
But if the user can't perceive the window, they can't drag it either.
I calculated the form movement as click's location - the form's top left corner.
This is for homemade use, only I will use it.
Anyway, it seems to jitter terribly to and fro...
18:55
@nirudyogi add one..?
@Pawnguy7 how about this logic...
@Pawnguy7 Maybe because moving the form triggers a mouse move.
if(mouse position above a certain point)
    titleShown = true
    showTitle()
else
    hideTitle()
Are you saying, make the title appear when the mouse is near in order to drag it?
What the actual fuck.
oh...
I think I know what you mean.
18:59
if (someDbField == "E-mail")
me moving the form my the mousemove triggers a mousemove to move it back :\
Failed, because it's actually " E-mail"
Likewise, every other value in the field is padded with one space.
This is why we trim().
Indeed. Everywhere it's used.
Except one place I've found so far.
19:04
@KendallFrey, how do you propose I do the forms to avoid this?
And that place seems to be broken.
@ShotgunNinja I usually trim() before I go out with girls. You should do it when you get stuff from the db, too!
Oh, and guess how we swap the position of two records in the UI?
Yeah, we just put all the values from A into B and vice versa.
'System.Collections.Generic.List<T>' does not contain a definition for 'ToList' waat?
I only trim() when my girlfriend is in that funny sort of mood, and wants to make my evening special.
19:10
@TravisJ using System.Linq;
@Kendall - "using System.Linq;"
It was thrown during runtime
or use R# and just alt+ enter
Oh, haha
Stop using dynamic, you dumb shit.
dynamic does not support extension methods.
dynamic is only one of the arguments, it is not the list
dynamic defaults = GetDefaults<T>();
var list = repo.Get(include: defaults.exp).ToList();
By passing dynamic to a method, you are making it return dynamic.
19:14
hm
stupid dynamic
signature of get method?
defaults is dynamic, which makes defaults.exp dynamic, which makes repo.Get(include: defaults.exp) dynamic
The problem is that when I don't use dynamic, then it says there is an improper cast from ConcreteClass to T
where T : class
Kendall, I think I see why it doesn't work, but I don't know how to fix it...
Don't worry, I don't either.
I did once, though.
19:15
i have created a task scheduler service. How to stop that service .....
every 5 min that task scheduler service is executing....I want to stop it...how to do that programatically ..
delete *.*
@TravisJ can you share code?
I think I might have figured it out
ok good I'm getting a lil drunk here :D
why synced?
@KendallFrey Any recommendations?
19:42
Only in JS does this make sense:
if (ssl)
{
    this.UseSSL = true;
}
else
{
    this.UseSSL = false;
}
this.UseSSL = ssl ? true : false;
Does JS not have the trinary operator? Or what do we call that...
If you want to go that route, I win:
this.UseSSL = !!ssl;
hm, negating a cast to bool, not bad
Did you know JS has a null-coalesce operator too?
||
Works with more than just null.
19:47
well, it isn't really null-coalesce, it just goes to the next value to look for true if the first condition of the or statement's truthy value is false
so things like return undefined || 5 return 5
shush
But even cooler, you can do a non-null coalesce
x = y && z;
yeah, x gets assigned to the last evaluated value I presume
unfortunately the last value can be undefined and then x can get that one
function &&(a, b)
{
    return a ? b : a;
}
var x = 5;
var y = 10;
var z;
var a = x && y && z;//a = undefined
Of course.
Presumably that's desired.
19:51
hah :)
Ok i need to get back to figuring out why this implicit cast has the hate
Lets all write functions for operators!
function +(a, b)
{
    // Oh, god, I won't even start
}
Wait... how can you name a function &&?
@Pawnguy7 You can't
private static gslDefaults<T> GetDefaults<T>() where T : class
{
 switch (typeof(T).Name)
 {
   case "Product":
     return new gslDefaults<Product>();
  default: break;
 }
 return null;
}
19:54
"Cannot implicitly type gslDefaults<T> to gslDefaults<Product>"
You silly boy.
Where did I go wrong?
You're returning a specific type from a generic method.
I lost a friend, somewhere along in the bitterness?
@TravisJ why generic in the first place?
19:56
@Johan - This will allow me to reduce a large section of slighlty one off code
or is it a short version?
You should just do return new gslDefaults<T>(); and take care of the logic in that class.
This is one method of 7, but this is where the issue lies in
I need the full type in order to pass back a Func<object,int> lambda expression
p => p.ProductInfo
sorry, Func<T,int>
This person didn't get JS:
if ((to != null) && (to != undefined))
is null == undefined, or?
19:59
Yes.
Oh. Good to know.
but not ===
null == undefined, but null !== undefined

« first day (902 days earlier)      last day (4271 days later) »