« first day (1013 days earlier)      last day (3939 days later) » 

12:00 AM
you can't even highlight on the page from the lag produced by the rendering algorithm
 
so your divs are all fixed width?
 
the spans are
 
interesting
I will have to try this tomorrow, thanks
 
ViewBag.ExtraStyles = ".listData > div > span, .listHeader > span{width: 7.5%;}";
 
neat
 
12:02 AM
It hasn't been automated yet to automatically determine the width. But that 7.5% is basically from having 12 columns
 
var autoWidth = 100 / colCount;
var autoWidth = colCount < 100 ? 100 / colCount : alert("WTF is wrong with you?!?");
 
100/12 = 8.5%. However, 7.5 was the correct answer. There are other factors that need to be accounted for and I didn't feel like identifying them.
I wanted to remove as much calculation from the page as possible
 
Currently where I work there are two solutions. One solution for back end stuff, one for front end stuff. Each consists of several projects. The back end solution never utilizes any projects from the fronend. I agree having seperate solutions helps ensure we never accidentally reference a frontend library/project from a backend library and dirty the backend's encapsulation
Main problem though is often when modifying the backend I have to compile that solution, then compile the other solution so it picks up those changes
Since there is no way to create cross-solution build dependencies(at least on the developer machine, we have it automated on the build server)
Curious on what others impression of this is
 
12:20 AM
Sounds correct to me.
 
it sounds like your front end solution is tightly coupled to your back end solution
you should fix that issue
 
It would seem the "other solution" contains controller code which probably references the "backend" service layer.
At least to me
 
separate solution should = separate dlls
separate dlls = no need for tight coupling
 
so I'm implementing an interface I designed for the intern to write
it's kinda cool :)
 
1:00 AM
hey any of you guys pretty good with mvc ?
@TravisJ - you still here?
@Pheonixblade9 , you here?
no one ? or is it just no one likes me?
 
ask your question, it's faster
 
lol
I want to use memcache to store userinformation - I used to use session , but moving to server farm and have to move away from sessions
So I am trying to figure out where in the mvc framework to get the user , like should I override the controller class and add properities like name , id etc , then in each controller I could do this.FirstName
 
1:19 AM
you should not
but I've never done what you're doing, so I'm sorry I can't help you. Google it
 
ok dude, thanks
 
1:50 AM
Hi, question: I have a custom VScroll Control, and I want it to work with a rich text box
how would I set it up so my scrollbar can scroll the rich text box?
 
what is vscroll control? @Link
 
It's just a seperate vertical scrollbar
In this case is just themed for the rest of the UI
 
is it jquery or css ? is this even a web app or windows
 
C#, winforms
 
ooohhhhhh , have no idea man
 
2:02 AM
Ah, it's okay.
 
2:12 AM
anyone here?
 
@ScottSelby WHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAT
 
what up man
I have a question
I'm switching from Session to memcache
and I want everycontroller to be able to get the user data , i'm just storing the in a cookie
So where could I get this from memcache , I was thinking of a base controller and storing it there , or adding an action filter to get user data from cache , or maybe in the controller factory
 
2:53 AM
@ScottSelby In a server farm environment, we have a session state server so that when you are retrieving session information, it is retrieved from the session server. So even if the user's request is served by different servers in the cluster, they are all getting session information from the shared sessions erver
Maybe not an option in your case, but something to consider
that way your code the deals with sessions can stay the same and be decoupled from the mechanism that backs it
 
@AaronLS - I did consider that , I was warned that there is a good chance that will fail when you start getting millions of users within like an hour
 
"makes session state available to multiple Web servers in a Web farm"
 
I even quoted that exact line today at lunch when talking about options , and we laughed that we can not trust that line , we need something more powerful
 
@ScottSelby You can setup multiple with partioning to balance the load: stackoverflow.com/questions/74190/…
 
no , memcache is the way to go, changing the session location may work , but tghis is definetly the way to go as far as scalability
 
2:58 AM
Well we use it with about million users and have had no problems
if we ever get into the multimillion we will probably need to partition
 
3:38 AM
Hello
Anyone have experience with writing auto-updaters?
 
4:11 AM
0
Q: Google TTS string issue on c#

Sutharshan SuthanI am using google text to speech (TTS). Guys you all know it has only 100 character string support at a time. I have implemented TTS part correctly but not for greater than 100 characters. So as I said I'll get exception. public void Read(string text) // Lets say text has length 250 (>100) ...

 
4:23 AM
2
Q: Can I force a build to produce identical file hashes on different computers?

Jonathan BastnagelI'm currently in the process of writing an auto-updater/patcher for my application. The issue I'm having is that even though the Project files and Solutions are identical on my computer and the build server, the resulting binaries are producing different hashes. This makes it much more difficult...

 
4:48 AM
Hi @Elegiac
 
5:47 AM
hi @MRS1367
 
5:58 AM
Hi @Elegiac
I checked ur problem
can u gimme a dll file for ur created custom control from SyntaxHighlightRichTextBox?
I've not access to the AddHighlightDescriptor() method
I created a new instance from HighlightDescriptor for checking it
but I don't know how to use it
cuz HighlightDescriptors property of SyntaxHighlightRichTextBox is readonly
 
im currently working a temp solution now sir
to justmake 2 rtbs for separate controls for c#and js
but i got a question regarding "active control"
 
ask it
 
senario was
when program runs 2 diff buttons will appear ... (c# and js)
then if i click c# rtb_cs will appear and dock(fill) in form
(since i got 2 rtbs also , rtb_CS and rtb_JS)
now i got controls for counting lines (the one that we fix before) and some other control
for code editor
 
so..
 
now my question was how to change my ctrls to active control RichTextBox instead of rtb only
something like this:
   int line = 1 + rtb.GetLineFromCharIndex(rtb.GetFirstCharIndexOfCurrentLine());
            int column = 1 + rtb.SelectionStart - rtb.GetFirstCharIndexOfCurrentLine();
            lblcountline.Text = "ln: " + line.ToString() + " , col: " + column.ToString();
how to change all rtb to rtb_Separators.RichTextBox Active Controlsir?
 
6:32 AM
wait @Elegiac
 
ok sir
 
rtb = RichTextBox control?
 
yep
 
do u want to convert all System.Windows.Forms.RichTextBox controls to rtb_Separators.RichTextBox controls?
 
i want to change it for rtb that was actively visible
no totatally convert sir ... i dont use System but the rtb_Separators ...
 
6:45 AM
I confused.
what's rtb?
rtb = System.Windows.Forms.RichTextBox or UrielGuy.SyntaxHighlightingTextBox?
 
the UrielGuy
 
aha
 
^^
2UrielGuys rtb
 
do u try casting?
 
you mean case?
 
7:02 AM
I played with syntax highlighting in rtb yesterday, can't believe how slow it turned out.
First time I used rtb really.
 
@JohanLarsson i see ... hehe
 
wait @Elegiac
hey @JohanLarsson
@Elegiac -> u can't convert them
 
what do you mean ?
 
u can create 2 new instances of rtb_Separators.RichTextBox and set all properties of UrielGuy.SyntaxHighlightingTextBox to ur new instances
casting of different control types isn't possible -> (rtb_Separators.RichTextBox)rtb
why do u want to do this (convert UrielGuy.SyntaxHighlightingTextBox controls to rtb_Separators.RichTextBox)?
 
HI
anybody familiar with ASP.NET MVC3?
 
7:13 AM
@MRS1367 i just rename it thats all ... and to make all codes clearer for me to identify ... but its attribute was based on System.Forms.RichTextBox so i use some of controls
 
@Elegiac -> can't u use rtb_Separators.RichTextBox controls instead of UrielGuy.SyntaxHighlightingTextBox?
 
it can be sir
ok lets stick with the rtb_Separators and forget the name UrielGuy hehe ...
 
so, instead of using UrielGuy.SyntaxHighlightingTextBox controls and converting them rtb_Separators.RichTextBox controls, only use rtb_Separators.RichTextBox controls.
 
yes
the thing was im using 2rtb_Separators.RichTextBox control at a time
1for c# highlighting , and the other 1 for javascript
what do you think sir?
 
so, in this situation, u shouldn't face with any problems.
 
7:18 AM
why sir
 
cuz u're using two instances of rtb_Separators.RichTextBox control.
and changing properties of one of them, don't affect on the other control.
 
yes sir but how about those controls before?
like i only use 1P.L before(javascript) so i use only 1rtb
then i have controls that connected to rtb
 
what's P.L?
 
programming language
1highlight descriptor (j.s) thats what i mean sir
like thenumber lines before ...
(the one you help me to avoid flickerring)
 
so, lemme say something
 
7:23 AM
ok sir
 
u have used a rtb control for C# and another rtb control for JS
 
yes sir
 
and u have used a combobox control for selecting programming language
 
sorry for i cant explain clearly and my english was kinda bad i guess ... :(
 
my english is very bad :)
 
7:25 AM
yes sir... but now i change it to buttons .
w8 sir can i upload ss for i can explain more clearly?
 
HI
anybody familiar with ASP.NET MVC3?
 
when end-user selects a language from the combobox, all keywords in rtb must highlight in related colors for selected language
right?
@Elegiac ss?
 
screenshot sir
 
yes
 
ok sir wait ... ill put some description on screenshot also
 
7:28 AM
tnx

ASP.NET MVC Oldskool

You can ask your question. Responses may take a while. Please ...
@ProgrammerIT -> u can find more experts in that room
 
not much activity in that room I think
 
tomorrow is weekend :)
 
this sir @MRS1367
 
7:46 AM
aha
if I understood correctly
 
wat sir
felt sleepytoday got no sleep from yesterday till now
:/
 
wait
 
what does the mrs part in your name mean?
 
u want to connect ur statusbar and lineNumber-bar to current active richTextBox
yes?
 
yes exactly sir :)
 
7:53 AM
MRS1367 = Mohsen (My FName) Rostami Sarlardi(LName); 1367 = My birth year in Persian Calendar (Hijri Shamsi)
 
so, it isn't very difficult.
 
how sir
 
@MRS1367 actually no one is there to answer
 
sample how to do that in here sir?
int line = 1 + rtb.GetLineFromCharIndex(rtb.GetFirstCharIndexOfCurrentLine());
            int column = 1 + rtb.SelectionStart - rtb.GetFirstCharIndexOfCurrentLine();
            lblcountline.Text = "ln: " + line.ToString() + " , col: " + column.ToString();
lemme try something^
 
8:01 AM
hey
 
hehe sorry i dunno whats happenning to me @MRS1367
 
sry @Elegiac -> I was a bit busy
 
its ok sir
its ok now ... ill just ask another1 again if something i dont know how ^^
 
lemme check it
 
i just put basic if else condition lol
my mind not working fine :/ i think becausei got no sleep haha
 
8:12 AM
;)
 
sorry hehe
 
8:45 AM
@Elegiac -> do u want something like this:
 
im already done with that sir ... but i got new 1 to solve again
but really thanks for the help :/
btw sir you know if how a class include a control in form? i mean i wonder why "rtb" in class doesnt exist
 
9:13 AM
@Elegiac -> u want to use one of ur rtb controls in a form in a class?
I wrote ur codes in this style for calculating current cursor position:
private void comboBox1_SelectedIndexChanged(object sender, EventArgs e)
{
    switch ((comboBox1).SelectedItem.ToString())
    {
        case "C#":
            label2.Text = "C#";
            rtb2.Visible = true;
            rtb1.Visible = !rtb2.Visible;
            rtb2.Focus();
            CalculateLineNumber(rtb2, label1);
            break;
        case "JavaScript":
            label2.Text = "JavaScript";
            rtb2.Visible = false;
            rtb1.Visible = !rtb2.Visible;
            rtb1.Focus();
if u want to use one of ur controls on the class in ur form
u must add it to ur form as follows
 
nice ... thanks sir :D
ill copy it
 
public partial class frmCodeEditor : Form
{
    private void button1_Click(object sender, EventArgs e)
    {
	Sample sample = new Sample();
        sample.AddControl(this);
    }
}

public class Sample
{
    private void AddControl(Form frm)
    {
        SyntaxHighlightingTextBox rtb8 = new SyntaxHighlightingTextBox();
        rtb8.Location = new System.Drawing.Point(500, 100);
        rtb8.Name = "richTextBox3";
        rtb8.Size = new System.Drawing.Size(100, 96);
        rtb8.TabIndex = 10;
this code lines is a sample (u can change them with what u want):
SyntaxHighlightingTextBox rtb8 = new SyntaxHighlightingTextBox();
rtb8.Location = new System.Drawing.Point(500, 100);
rtb8.Name = "richTextBox3";
rtb8.Size = new System.Drawing.Size(100, 96);
rtb8.TabIndex = 10;
rtb8.Text = "";
 
9:43 AM
i see ...
sorry sir for late response doing multi task now ... but im copying those hehe
 
so, did ur problem resolve?
 
yes for now sir everything was fine i guess ... and ill move to next updatesby tomorrow ... i might update the autoindention by tomorrow ... really thanks again for the help sir
 
@Elegiac -> np
hey @AndréSilva
 
0
Q: Observe PropertyChanged on items in an ObservableCollection using System.Reactive

Johan LarssonI have: public class Vm { private ObservableCollection<Thing> _things; public ObservableCollection<Thing> Things { get { return _things ?? (_things = new ObservableCollection<Thing>()); } } } And public class Thing :INotifyPropertyChanged { private string _value; ...

 
10:10 AM
hi all
 
today isn't a good day for me... :(
 
@MRS1367 Ctrl+Z?
 
lol :)
my undo isn't available. dammit... ;)
 
@MRS1367 git reset --hard HEAD~9001?
 
10:26 AM
I must update my days codes with adding a new feature to it for Undo ;)
 
10:49 AM
<3 dynamic
 
S M T _ _ _ _?
find the relations and fill four blank spaces
 
MVC question ?
 
no
 
@MRS1367 ?
 
IQ Test
 
11:00 AM
What do you mean by "find the relations"?
 
<button type="submit" name="UOMAdd" value="AddUOM" class="MasterButton">ADD</button>
this doesnt fire a HttpPost Method with (model mdl, string AddUOM) action.
What makes it not ?
 
@codebrain Is it in a form?
 
I followed accepted answer of this link stackoverflow.com/questions/13644492/…
@dav_i Yes ..
The form has different post action when submitted. I want to invoke a different method on this button click.
 
@dav_i -> relation = the logic of the letters sequence
 
It fires the action i mentioned in Beginform. But i want it to fire some other action.
 
11:14 AM
@JohanLarsson hey bud, did you get your problem sorted?
re: observable collections and property changed events
I would take a look at this @JohanLarsson stackoverflow.com/a/3478581/315711
 
@StuartBlackler I saw that one, playing around with rx though
but ty of course :D
 
im not sure whether it would work with RX because the IObserver only supports OnNext/OnCompleted/OnError
you would also need an OnValueChanged
 
ok maybe I'm just plain wrong/dumb
Have you used rx much?
 
or, you could pass the object back through OnNext when the property has changed and handle that in the receiving event
no I haven't :( not really had the time. Looks really good though
 
 
1 hour later…
12:51 PM
Morning
 
Mawnin' yo
 
\o.
 
afternoon
 
Morning y'all
 
12:57 PM
hey j
 

« first day (1013 days earlier)      last day (3939 days later) »