« first day (1872 days earlier)      last day (3066 days later) » 

12:02 AM
@barlop 2011, huh?
Although WinForms has been outdated since before then
 
12:17 AM
Windows apps in general are outdated. It's all about the cloud, man.
 
@KendallFrey the guy that made that 2011 blog post made a comment today saying the same thing
at that SO link
 
1:05 AM
the only reason to use winforms is
 
1:32 AM
Legacy
 
1:45 AM
You're a masochist.
 
2:35 AM
all the cool kids are getting paid more to support old crap..
 
 
2 hours later…
4:33 AM
Does anyone know how to store a Lucene.net Index In a single file, Rather then a giant assortment of folders?
Also is there anyway to query data that has been freshly added to an index, without querying the entire thing? (eg: Someone searches for a term, It returns 10 results. Another 100 Objects get indexed, 2 of which satisfy the Search term. And it adds those to the original 10 results)?
 
4:48 AM
@JasonBrown you want to maybe save the assortment to a database and the result number? I don't know anything about Lucene.net
 
4:59 AM
@juanvan I might look into if Lucene.net has a QueryRange function, that would let me specify the point to start searching.
thanks
... nvm the QueryRange function seems to return things like, From "date" to "date", and I dont use Numerical ID's, So I doubt that will work...
 
so the results returned have too much data, or an easy way to match results?
 
basically I have 10 results out of 100 objects, I add 25 objects every 10 seconds or so, and I need it to Search those New 25 Objects, For the same term that gave me the Original 10 results. But I don't Want to Have the Overhead of Searching through the 100 objects Every Time I add More objects to the SearchIndex
essentially I need to get Live Search Updates using lucene
Now if theres only 100 objects its easy but When you get Way up there in the amount of data being stored its going to start taking longer to get the results
I don't want to use a 2nd Lucene Index, Just to track the newly added Data.
I am trying to figure out a method, but I'm not having much luck. I might have to Create a custom Lucene Collector...
 
taking a look at it
building the index seems to be a process?
 
Yes
 
is that where you are trying to make this list off of?
rest seems to be searching those results
 
5:17 AM
? Confused what you mean by "Where you are trying to make this list off of". The Index is built, The [Search Results] (data returned by the Search) Return fine. But to get Live Results I need to Continually Search the Entire [Index] (Lucene Database). I want to avoid Querying the entire Index and only query the newly added.
sorry If I'm a bit confusing
I know what I would like to do, Just having trouble explaining it properly.
 
is there anyone here that can answer a question about arrays?
 
:| isnt there some rule about asking to ask a question, just ask it?
 
orly here i go then
so they say that you can access an element in an array in constant time
because you stored the location of the element
but if you stored the array in memory where do you store the location of each element? in the memory also?
 
good morning
 
wouldn't that lead to half of the memory filled up with element locations?
good morning
 
5:21 AM
morning
 
how's life?
 
tired, it's 9:22pm over here
 
I don't know in depth about arrays but, I think that It uses a pointer to the array, and then offsets of that to access the array's elements?
 
@JasonBrown that is ok - mean when the index is built, then that is what [Live Searched]
But then New results come in, so that Index process happens again?
 
Oh tell me about it. I totally understand that. During development my Windows 10 crashed, I had to redo the whole configuration.
 
5:24 AM
its 12:30 :)
 
oh true an array pointer
 
Last time that I did sleep 5 hours straight, It was on Friday
 
@JasonBrown yes an array has an index that points to a ref in memory
 
Hi Juanvan
 
Hi CodeMaster :)
 
5:24 AM
but once it gets to the start of the array how does it get to, for example the 1000th element in the same time that it takes to get to the 2nd element?
each element has an index?
 
arr[i]
if it is a single
 
@juanvan the index Process happens actively when it gets new data, (So if Its indexed 100 things then I add 25, It doesnt Re-index 100 objects. It just adds the index of the 25 objects I believe).
 
@juanvan if you're going to ask me about the issue, I'm still at it. The poor designer made a non-gulp version for me.
 
That was nice of him/Her
 
Very nice of him, but I'm getting other errors.
Since yesterday my ISP doesn't have any upload speed. I can't really upload anything for him in order to ask my next question.
I should wait...
I have 75mb download and 0.01 upload :D
 
5:27 AM
@JasonBrown Ya I don't know, that is why I asked if it was a process, meaning it can only happen once then, destroy the org index and do it all over again, not add.
For the Day? 24hrs or 12am-11:59pm?
 
actually since Sunday morning
I called them yesterday and they said we have some difficulties but we are trying to find a solution :D
 
am looking at this demo codeproject.com/Articles/609980/…?
@CodeMaster that is not the fun part of living in no where?
when my internet does not work, the cat is usually to blame
 
exactly :D
but other then that, I'm just starting to feel that I'm dumb that I can't add AngularJS theme into my current project
 
that can be hard
 
@AndrewHu Lets say the Array is stored at memory 0x0100, Well the Array points to 0x0100, and its contents are at 0x0101 0x0102 0x0103 etc so when you use arr[i] It gets the Array's Location in memory, (0x0100) and uses the [i] as the offset in a sense, Although C# Takes care of this stuff for us, So we don't have to deal with Memory Locations and pointers\offsets. This Is just my understanding of what happens under the hood. Not Sure how accurate it is.
 
5:31 AM
You mean it's hard to believe that I'm dumb? Or it's hard to be dumb? :D hahaa
 
@juanvan Ya, It doesn't need to reindex the entire thing each time, just the new Elements.
essentially I need to repeatedly press the Search button of that demo app, to get live results
 
har har hehe - hard to be doing the theme :) never be dumb, we are all smrt ;-)
 
:D thanks for giving me inspiration :D
I note that ;)
 
@JasonBrown that demo searches a known index that does not change, there documents on the Live update part?
@CodeMaster we are here to inspire
 
Ah... let me find the Guide I used to write my LuceneSearch.cs
 
5:34 AM
I said couple of days ago, I truly love C# room.
 
in labor job there is a saying "we do it nice because to do it twice"
meaning we did not do it right, but we will do it again right - or repeat the process..
 
Its the 4th Step in that guide that Explains adding a single Element to the Search Index
 
Oh my god.
I can't delete a file.
Windows simply won't let me delete a file.
I'm about to lose my shit over deleting a file.
 
safemode?
 
5:36 AM
Lol, Ahh good old windows Trying to Take over all use control so you don't get to do anything
You want a Desktop? NOPE: Heres your startmenu
 
@juanvan - It's an AWS instance. I can't boot into safemode.
 
o
 
@JasonBrown - Seriously. I'm using windows server.
Server as in I'd better know what I'm doing so why the hell are you trying to prevent me from DELETING A FILE.
Fuck the Microsoft OS team.
 
lol
 
I have wasted 30 minutes of my life on this.
And destroyed my whole git server setup in the process.
 
5:38 AM
Ya microsoft Keeps failing pretty hard. More User Friendly my ass. The last thing I found friendly was XP :
 
I'm so done with windows.
 
@JasonBrown that #4 does dispose of the old index and creates a new one
 
... bahahaha
renaming it works.
My god.
 
@juanvan errr Really?....
Crap...
 
ya that AddUpdateLuceneIndex
 
5:39 AM
Wait no it doesnt, It only Adds 1 Entry
 
I can rename it. Can't delete it.
So it's now named "CAN'T DELETE THIS FUCKING FILE" a testament to the bullshit that is windows security.
 
does a foreach loop
 
@SpencerRuport Move it where no one will ever find it :P
and then rename it to a BlankCharacter :P
Try using command prompt in admin mode?
 
@JasonBrown ohh you can
 
and juanvan The step 4 only adds it doesnt remove anything unless it already finds the same Data
// add entry to index
writer.AddDocument(doc);
step 5 is for removing "doc"'s
 
5:42 AM
the one replaced the index, then the 2 under it add to it
 
Anyway I still haven't actually gotten anywhere with my problem =) lol
 
lol no still reading
need to update the index it looks like
there is an optimizing function
 
I can live search....
The search works totally find for retrieving freshly added data
 
ohh
 
its the fact that I only want to search those 25 doc's
and append them to the original results
Otherwise I have to keep clicking the Search Button
err i add 25 docs every 10 seconds or so*
basically If I search 100 Entries, It returns the results fine. Then it adds 25 Entries. So Now I have 125 Entries I need to Search those 25 entries. Without searching 125 Entries
 
5:47 AM
overview - pulls the index to a file, you live search once, the index is adding more results while it is running, then you want to search only the new ones
 
yes
Thats Exactly What I need to do :) Lol
 
High Five
 
@juanvan thanks for the patience =)
 
So you want to Skip Results, or Skip.. err
 
ya... and thats where I get stuck
because I need to Skip results before they are collected...
or even Looked at
 
5:49 AM
Skipped Old Searched Results
 
yup, Since when I get up to 3million Doc's indexed, Apparently It does start slowing down
the initial search can take however long it feels like, But Getting new data Has to be fast...
 
get those 3million and keep them indexed? Do the sources change?
 
sources stay the same
but they will keep increasing
 
ok
 
i mean its not going up that much but, At lets say 1000-5000 new docs a day, after a couple years it will get messy
bad example of the amount of data im dealing with though lol
 
5:52 AM
Dear god help me
 
it will be much higher one im finished the program
 
Is there any way to undo a bounty?
I accidentally set one on the wrong question in the physics site:
 
uhh.... I don't believe so...
 
-17
Q: If there is no gravity on the moon why is the american flag waving?

ZaneIf there is no gravity on the moon, how could this flag be flapping in the wind? (see link) http://www.stumbleupon.com/su/2wD6eg/hea-www.harvard.edu/~fine/images/desktops/Armstrong.jpg

No...no....
 
Delete the question
 
5:53 AM
Ooooo That smarts....
Lol
 
It wasn't my question
I accidentally got this moronic thing up and bountied it without reading
Am I out of luck?
 
that Really Blows... I think you might be, Not positive though...
 
Think so Might have to ask in the java room
 
Non Refundable Under any circumstances
 
for a question that is 4yrs old..
 
5:56 AM
well there isn't an automated way of refunding, maybe if you find the right people?
 
Na, and he should ask in the Space.Exchange site not over here
 
is there a physics chat room?\
or possibly the Meta StackExchange?
 
ya but I think it got nuked? or something..
 
its back now. or was
 
5:58 AM
just a sec
 
I know, its sad I know that
 
I just lost 25% of my points
to a moronic question
 
That does suck...
 
find a new one to answer :)
I wanted to upload images, found one to get me over 100 to upload images
 
5:59 AM
now that puppy gets me all the points up to 300 b.c of 1 answer
-_o
 
only thing I can suggest is ask on meta.stackoverflow.com/questions there doesn't seem to be a meta chatroom
 
They will probably tell you that it can't be done though, But You never know Maybe someone who can undo a bounty might see it?
 
did not know there is a SO newletter
another thing to maybe read maybe delete
 
All right, I got an idea
 
6:01 AM
look at the bright side =) now you will be more careful about putting bounties on things? and you still got more points then me :P
 
Someone here answers the question
I give the bounty
then they bounty a question and give it back?
Anyone up for it?
 
Sorry sir that is not how we inflate tires
 
That seems Iffy :
 
Like that time my friend said if I opened the air valve on my bike and he opened his the air could go into his...
seemed like it would work to the 4yr old me, but I was walking after that
 
@juanvan well I mean If he said It COULD then he was technically right :), If its not in your tire then its possible for it to at some point be in his tire :P
 
6:04 AM
heads I win, tails you lose?
 
is there a coinflip command? cause that would be entertaining :)
 
So...what do I do .-.
 
tasty sir pie, I believe your outta luck...
 
Live life :) Answer questions - Be the Pie you were meant to be!!
 
6:06 AM
I am going to sleep dreaming of Pie - that is a cool icon
 
Thanks...so much... ;-;
 
pie or pi? :P
 
Ya both
 
hmm, well juanvan you got any thoughts for me with my lucene issue?
I was thinking maybe can try storing the freshly added doc's in an in memory index or somthing?
and write them to disk at the same time
query the memory get results, and wipe the memory?
could insert the code just before it uses writer.AddDocument(doc); to add the docs to disk
I gotta re-organize so much of my code Lol, I was new to c# when I started it so its a fricken mess of classes that should be static and arn't
Plus im using winforms when I really should be using wpf?(did i get that right?)
@juanvan Think I could use this? lucenenet.apache.org/docs/3.0.3/…
Fun... If I use that I get to write an event to go with it :'( I hate C# events
 
6:32 AM
Anyone here got any experience with Lucene.net? Im trying to search an index, And then Search Only Stuff that is added to it since "Search" Occured
 
6:56 AM
Morning everyone
 
Mornin
 
What's up
 
trying to get things to do other things lol
 
I feel your pain
 
Lol Nice :)
 
7:03 AM
Me doing C#
https://imgur.com/sRQNMHO
It won't link it dammit
 
it did link?
 
Not the image inside of here
 
How do I limit a variable?
For example : my integer 'sum' needs to count up but it cannot exceed 60
 
thats a little bit vague?... so the Int Sum counts up (im guessing in a loop of sorts) and you want it to quit the loop if it gets to 60? Or am I way,way,way off Lol
 
7:14 AM
 int incr, sum;

        private void btnBereken_Click(object sender, RoutedEventArgs e)
        {
            Random dice = new Random();
            incr = dice.Next(1, 7);
            sum = sum + incr;
            sl1.Value = sum;
            txbShow.Text = (Convert.ToString(sum));
            if (sum >= 60)
            {
                sum = 60;
                MessageBox.Show("You win!");

                //If sum exceeds 60 > then sum - overflow
                //If sum == 60, you win.
            }
 
Well, i'm Confused that Looks like it should work fine :S... Im terrible at this whole Helping others thing XD
 
I know it works :p
I'll try what i have in mind and then try to show you
 
7:41 AM
Ugh Crap, Anyone wanna rewrite a Super Messy Messy class, into a static class :D (jk)
*it shouldnt have been a non static class in the first place :
 
Unless Convert.ToString() does something special, I'd go with sum.ToString() instead.
 
I tried that @scheien but it throws me an error
 
@MaartenWachters: You can use a property.
 
sum.ToString(); doesn't work
 
why?
 
7:50 AM
Not sure
 
Is it possible to subscribe to an event in a static class, that doesn't make any calls to that static class?...
err
Actually Nevermind Figured out how to Work around my ugly code, by using Even Uglier Code :D Yay
 
@MaartenWachters What error does it throw?
 
Invalid argument
 
@MaartenWachters In the int.ToString() call? That seems... unlikely. What's the value of sum?
Have you tried separating the assignment from the conversion?
 
Fixed it
It works now
Idk why it won't work
 
8:05 AM
I still don't understand what you were trying to do lol :D yay
quick question but a static class is only instantiated One time right? Is it safe to subscribe to an event in a static class?
 
@JasonBrown Define "safe".
By subscribing to a static event, you're passing a reference to this to the static class. Since that class will never be disposed/GCed, and it holds a reference to your object, then that object will never be released either.
 
8:27 AM
@MaartenWachters sum += incr; is the same as sum = sum + incr; but it's shorter and better:P
 
I know but I did it to get a better overview for now
Because it doesn't work as it needs to, but it is math related.
 
8:51 AM
@JasonBrown A good rule of thumb is that static variables should be avoided at all costs, and static logic should never bleed out of a single isolated method.
 
9:08 AM
@Squiggle What about static readonly volue types for instance max input value that is used in a lot of places?
 
isnt how to override orderby ?
never mind
x=>x.id
i mean
odrderby(x=>x.id)
it should be instead
 
9:24 AM
@AlexL perfectly acceptable. That's basically a non-primitive const.
 
@Squiggle although i expect in this day and age it might be better to pull in from a config file and pass the value in some sort of DI singleton
 
I wouldn't object to that.
where 'singleton' isn't actually a singleton, but a lifetime instance managed by the DI framework.
 
9:45 AM
Hi all
 
can I compare my local change with my shelve set in VS2015?
 
Which data type would you use in SQL server to store the content of a file? The content is XML (it is a Telerik report format)
 
Is there any similiar answer for C# ?
673
Q: Examples of GoF Design Patterns in Java's core libraries

unj2I am learning GoF Java Design Patterns and I want to see some real life examples of them. What are some good examples of these Design Patterns in Java's core libraries?

 
@ErroreFatale: either as xml or nvarchar(max)
 
10:00 AM
@JasonBrown Why use WPF?
nothing wrong with winforms
they are both actively not developed on by MS :p
and If you hate custom events check Subjects in Rx
 
wpf is not developed?
 
its more in a maintenance mode
>>private void btnBereken_Click
Omg nederlands, foei foei :p
zwarte piet deze sinterklaas
 
@Change I'd suggest searching github.com/dotnet/corefx for keywords like 'adapter' or 'factory'.
 
@scheien why not VARBINARY?
 
@Dess It is its just a very mature product
 
10:18 AM
@ErroreFatale XML is text, not binary. Storing it as a text format allows you to query by content if you need to.
and storing it as an actual XML document I think allows you to XPath inside a T-SQL query, if you'd ever want to do that.
 
@Squiggle I don't have to query the text, only the id
 
@ErroreFatale my preference would still be nvarchar(max). It's more portable.
 
10:31 AM
oi
anyone ?
 
@NilakshaPerera nobody
 
@NilakshaPerera what's up? :)
 
Lol
our end of project party was supposed to be sunrise at stonehenge
 
@AvnerShahar-Kashtan Sorry I went away for a bit, When I say Safe I mean, Will Subscribing to and then un-subscribing later allow that class to be disposed of. And Will any trigger that causes the event to fire, be from the same Instance of the class? (Im not sure if a static class means that there is only one instance of it or not)
 
10:42 AM
apparently we're not allowed in stonehenge before 8am and they want us to be here for half 6 in the morning
I'm not being funny right but I'm not getting up at 5am to not see the sunrise.
 
@Sippy ...that's a "party"?
 
Help !
I want to append List<string> to dictionary's existing key, as it shows exception. So is there anyway to do this ?
 
@kanwarkakkar You mean you want to take a key from a dictionary<string,???> lets say the key is "ID" and append a bunch of strings to that key? so the key becomes "ID,String1,string2,string3"?
 
Yeah sort of, suppose I have
dict["one"] : {"car","bat"}
dict["two"] : {"ram","stuart"}

Now if I want to append one more item at index "one"
@JasonBrown
 
you want to add to the object not the key, I think. just a second
 
10:54 AM
@JasonBrown Yes I want to add an object to existing key.
 
so you have a dictionary<int,List<string>>? or something like that
 
yes dictionary<string,List<string>>
 
one sec
so, Your adding a List<string> right?
 
temp[0].AddRange();
 
10:58 AM
MSDN says Dictionary does not allow to append to existing key.
 
err
gonna do a quick test.
 
@Squiggle According to the peeps I work with
I am just gonna go to the pub.
Means I can get up at 10.
 

« first day (1872 days earlier)      last day (3066 days later) »