« first day (893 days earlier)      last day (4056 days later) » 

10:00 PM
 
edc
so nice that you can just leave at 5 straight :/
 
hehe i leave and arrive at diff time every day
always roughly 9:30-5:30 but diff times every day
 
9:00 - 5:30 here
with unofficial flexi
i.e. if you show up at 10 occasionally nobody cares as long as you make it up
 
(5~9) to (3~7) here, as long as I get my 40 hours in :P
 
is there a way to make a tag textbox?
where is makes tags
 
10:07 PM
yah 9am way too early for me
i need 9:30 min
 
like this
 
elite, tht's not a regular textbox
it allows for text entry
 
i know
i want to make that type of textbox
in wpf
 
isn't there a multi select textbox for jquery and asp.net control toolkit
oh in wpf no idea, i'm all web
 
ok
@KendallFrey what about it
i tried to do what that other thing said but it was way to complecated
 
10:09 PM
Story time: So I have an azure worker role that runs my own special IWorkerTasks.
It keeps track of each task's last attempt time and whether it had work to do. If all tasks had result "AttemptedButNoWork" and were attempted since the last sleep time, it sleeps for 10 seconds rather than continuing to attempt tasks.
But since currently the worker tasks' code is currently stubbed in with no work, it was able to attempt all tasks hundreds of times before the system clock's milliseconds changed.
Meaning the datetime comparison was not as meaningful as I intended.
So I was intending for 20 task attempts between sleeps, not 700.
 
what tasks?
 
Tasks that currently do nothing since they're WIP
 
ok
do you do wpf?
or winforms
 
I've dabbled in winforms once for a personal project.
 
no wpf?
 
10:13 PM
Nope
 
Anyway, these tasks do in fact do one thing: log4net debug messages that get queued for database insertion.
And so I hit the 1GB azure database limit apparently.
 
hi guys
Hi MikeF
0
Q: Binding a text box value with condition in aspx page

Peter JenningsI am using asp form view. I want to bind a text box value based on condition. <td style="height: 12px; border-right: silver 1px solid; border-top: silver 1px solid; border-left: silver 1px solid; border-bottom: silver 1px solid;"> <...

please answer this guys
@mikeF....i did the casting as u say...but it is giving error...
 
What are you even binding on?
 
<asp:TextBox ID="txtHaulZoneCodeLEM" runat="server" CssClass="cagText" Text='<%# ((frmFields) Container.DataItem).HaulZoneCodeLEM != 0 ? ((frmFields) Container.DataItem).HaulZoneCodeLEM : string.Empty %>'>
 
10:21 PM
where does HaulZoneCodeLEM come from?
 
from Databse query...<asp:FormView ID="frmFields" runat="server" AllowPaging="True" DataKeyNames="FieldID"
                    DataSourceID="SqlDataSourceFields" Width="664px" GridLines="Both" PageIndex="1"
                    EnableViewState="False">
                    <EditItemTemplate>
In the query i have written like this IF @HaulZoneCodeLEM IS NOT NULL
   BEGIN
     INSERT INTO tbl_FieldZones (fieldID,locationID,strStationCode,intHaulZoneCode,HarvestYear)
     VALUES (@fieldID,46,'36',@HaulzonecodeLEM,YEAR(GETDATE()))
   END
   ELSE
   BEGIN
   INSERT INTO tbl_FieldZones (fieldID,locationID,strStationCode,intHaulZoneCode,HarvestYear)
     VALUES (@fieldID,46,'36',0,YEAR(GETDATE()))
   END

 IF @HaulZoneCodeWIL IS NOT NULL
   BEGIN
     INSERT INTO tbl_FieldZones (fieldID,locationID,strStationCode,intHaulZoneCode,HarvestYear)
0 will come in form some times...so i don't want to see 0 rather i want to put space in the txtHaulZoneLEM field....
 
Ah, so you're binding it to a data source
 
yes...exactly....
 
Is there a way to add a custom label to a richtextbox in wpf?
programmatically
 
then maybe: <asp:TextBox ID="txtHaulZoneCodeLEM" runat="server" CssClass="cagText" Text='<%# ConvertHaulZoneCodeForDisplay(Bind("HaulZoneCodeLEM")) %>'>
and you add the method protected string ConvertHaulZoneCodeForDisplay(string)

to codebehind
and that method returns space if zero
 
10:33 PM
Function String ConvertHaulZoneCodeForDisplay(string)
End Function
?
 
Oh yeah, you're using VB.net, lol
Yes, IIRC, binding expressions should be able to access methods in the corresponding codebehind as long as they're not private.
 
Protected Function ConvertHaulZoneCodeForDisplay(ByVal str As String) As String

    End Function
 
yeah probably
 
how to grab that text box value though?
in the codebehind..
 
str is the value
you're now intercepting it with a function before displaying it.
if str is 0, return " ", else return str
 
10:42 PM
<asp:TextBox ID="txtHaulZoneCodeLEM" runat="server" CssClass="cagText" Text='<%# ConvertHaulZoneCodeForDisplay(Bind("HaulZoneCodeLEM")) %>'>
I am getting error here : Name : Bind is not declared....?
 
But Bind by itself worked before?
 
yes...worked before...
 
Maybe "Eval" instead of "Bind"?
 
The worked code is :  <asp:TextBox ID="txtHaulZoneCodeLEM" runat="server" CssClass="cagText" Text='<%# Bind("HaulZoneCodeLEM") %>'>
to and fro is there from DB ..so Bind is good compared to Eval
 
hello
does anyone know about ( facebook application send notification to users who allowed that application..in c#
 
HEY
is it possible to add a control inside a textBox...like a Border
@KendallFrey
@CCInc ?
 
<asp:TextBox ID="txtHaulZoneCodeLEM" runat="server" CssClass="cagText" Text=ConvertHaulZoneCodeForDisplay('<%# Bind("HaulZoneCodeLEM") %>')>
The server tag is not well formed...
 
@ReboKoye nope, you'd have to use a FaceBook App to do that.
 
I already created a Facebook application named (myfirstApp) ...
 
11:05 PM
Step 1: rename it
that should fix your problem
 
@KendallFrey i can not do that tag thing
it is too hard
ha ha
is there a way to add a control to a textbox?
 
No.
TextBox does not support the WPF content model.
 
what about a richtextbox?
 
Error 1 The server tag is not well formed. This is the error i am getting
 
@Winderps I already created a Facebook application named (myfirstApp) ...
 
11:07 PM
Then the codes should all be there in that app. Not really sure how all that works, never made a FB app before, so you'd have to use Google to find documentation or FaceBook probably has its own documentation.
 
That one would let you use a background brush, but not to interact with any 'tags'.
 
how would i do that?
 
@Winderps i tried alot of codes..but nothing helped out...
 
the tags?
 
@EliteGamer is it entirely necessary to allow the user to edit that textbox? Or will it be simply for display
 
11:08 PM
In the 10 seconds that I thought about it, I have no idea what I would do.
 
well, you will need to delete a tag
 
what exactly are you trying to do?
 
but that is about it
ok
 
I guess you'll have to think for once, instead of asking questions like a braindead monkey.
 
i have a textbox that captures the hotkeys you enter...like Ctrl+S
and displays them
i want a tag around each key
 
11:10 PM
Ok, you could use a WebBrowser element, and edit the document code to show the text/images/etc you want.
 
WPF
i am trying to do it in
 
Oh, I'm useless with that. Sorry. Good luck though!
 
My question is, do you need to display any sort of textbox functionality?
The user's not allowed to type in it, right?
So why even think of it as a textbox?
 
no
because it has to have a keydown
function
 
Doesn't UserControl have that?
 
11:12 PM
Weeeeellllll, anything can have a keydown function IIRC.
 
well, it needs ... hmmm
 
i guess you are right, but how will i make it look like a textbox?
 
Right there.
Why does it even need to look like a textbox?
All you really need that's similar to a textbox is to indicate focus.
 
yes
i need it to indicate focus
 
11:14 PM
Subtle background changes should do that quite nicely.
 
id turn it red and give it a shadow or something on focus
 
and i need to be able to delete these tags
sounds good
thanks
 
@PhillipSchmidt Typical programmer UI design.
 
but i'm talking out of my ass. I have no idea what you're doing whatsoever
 
Now then, who else here thinks String should have a * operator like in Python? Is that really just me? It can't be just me.
 
11:14 PM
You farted on your keyboard.
 
@KendallFrey what can I say. Other people can make stuff pretty -- I just like to make it work
 
@Winderps What would that do?
@PhillipSchmidt Same.
 
Like "5"*7 would end up with "5555555"
 
no it wouldn't
 
11:15 PM
it would end up with " "
kind of
supposed to be 7 spaces in there
stupid chat filters
oh you edited
nice
 
Hey they redid the design
Nevermind its just my new monitor
 
I wondered.
 
Meh, it'd be nice (imo) for console programs, like so you could format ascii "boxes" based on like a prompt length or something, I dunno, I just think it'd be cool.
 
I'd write my console apps in python anyway probably
sometimes
 
@KendallFrey i need it to act like a textbox
 
11:18 PM
Gotta flex your one-liner muscles sometimes yakno
 
so they can backspace and things
 
@EliteGamer Whyyyy?
Backspace?
 
yes, to delete the tags
 
I thought that was supposed to be picked up as a hotkey.
 
you can catch the backspace keydown event
 
11:19 PM
Make an x button to delete them.
 
oh, ha yes
 
and remove the last tag
 
ok
the last?
 
or whatever
idk what your business rules are hah
 
(There are none.)
 
11:19 PM
well, i do not have a job
 
You know what's fun? Creating useless classes for absolutely no reason aside from boredom, that's fun.
 
i am 16, i do this for a hobby
 
I have an algorithm question...
 
I'm good at those.
 
Oh no! EVERYONE RUN!
 
11:20 PM
challenge accepted
 
let me run first
just kidding
i thought people thought of this when i came in....but i am not Ellie
2 hours ago, by Shotgun Ninja
Oh shit, it's @Ellie.
 
though != thought
 
corrected :)
 
you missed one lol
 
ha ha
done
 
11:22 PM
@PhillipSchmidt Lies, though === thought.
 
Oh, look, a JS programmer.
 
@Winderps bring that crap to the javascript room :P
 
C#

We lied. It's actually JavaScript room. The JavaScript room is actually just trollbait.
 
C#

We lied. It's actually JavaScript room. The JavaScript room is actually just trollbait.
 
poopies
touche
 
11:23 PM
woh
 
inb4@EliteGamer
 
@Winderps good point :D
ha
 
:D adding a pointless === operator to my new pointless class. Just because i can. I can, can't I?
 
You should override the equals operator with a check for reference equality
 
You can't add operators in C#.
 
11:25 PM
That's one thing that I kinda do wish you could do. Nothing a method can't solve, but it'd be kinda nice
 
Darn. Kendall is right. Oh well, I can just override == with... random infinite loop? why not?
 
override it with a messagebox
 
If you were able to add any operator you want, C# would no longer be able to identify operators.
Take a ; operator for example:
var a = b ; c();
Totally valid to parse it both ways.
 
welll
 
yeah, true, but that one would be a reserved one
 
11:28 PM
I imagine it would be determined by the presence of an Object on either side of the symbol
 
What about ()[]{}?
Would those be reserved?
 
Yes
 
but you're right. I can forsee a lot of problems with that in a language like c#
 
So pretty much all single-character operators would be reserved?
So what about a ;; operator?
 
That would work
probably
 
11:29 PM
No, because it's still parseable both ways.
 
wait no. because ;; is already valid syntax, it's just pointless
 
They could get away with a list of approved characters to be used as operators
but then we're just splitting hairs
 
yeah.
 
^not the right figure of speech
too late and too little adderall for this
 
I take adderall. stuff tastes nasty if you don't get it down fast enough.
 
11:31 PM
I actually take vyvanse. I've just been taking adderall lately
vyvanse is intensely better
unless you're trying to tweak out, in which case adderall is a clear winner
 
Ok, so I am trying to find out the direction my character will be walking, and the animations require me to have the directions in different thresholds (left = 0, straight = .5, right = 1) and I can change those numbers, but not from the script so I can't personalize it to someones monitor at startup,so I was working on algorithm in school. I came up with something like:
 
holy huge pause between posts, batman!
 
Those are horrible threshold values.
 
C# Game making? Really? Well whatever floats the boat I guess.
 
Sorry I was thinking and texting my coworkers
 
11:33 PM
@KendallFrey a Border does not have a keyDown event
either that or it will not fire
 
@KendallFrey I can change them
 
-1, 0, and 1 would make so much more sense.
 
I can do that
 
@EliteGamer stop pinging me.
It's annoying.
 
@EliteGamer Either that or you didn't have focus on it.
 
11:34 PM
@CCInc
owned
 
i click on it
 
@PhillipSchmidt ...
 
@EliteGamer That doesn't give it focus.
 
@EliteGamer have the keydown event over the whole form, then have a clickevent on the box that sets focus to true. then on everything else that sets it to false, then on the keydown event test for focus.
 
11:35 PM
oh
 
For one thing, it has to be Focusable
 
Direction = mediumthreshold + ((rangeofthreshold/rangeofcoordinates) * currentcoordinate)
 
Preferably your UserControl would be what's focused though.
 
alrighty buh-bye guys
 
11:36 PM
yeah I'm peacin out too. later guys
especially @CCInc
 
So what do you think? @Kendall
 
@PhillipSchmidt peace out
@PhillipSchmidt ^
 
I think 0, 0.5, and 1 are horrible numbers to represent direction.
 
I'm gonna change that
 
Anyone know about wmi/secrity providers?
 
11:41 PM
Is my math right
 
@KendallFrey i can not set focus to a border
 
Why do you want to?
 
well, i am wrapping a textblock with one
to act as the border
 
Why do you need to focus it though?
 
well ,when i mouse down, the text does not change
sorry
keydown
 
11:43 PM
Why do you need to focus the Border?
Why is the UserControl insufficient?
 
because that is where the keydown function is
 
Why isn't it in the UserControl?
 
that did not work either
 
Is the UserControl Focusable?
 
oh
forgot to set focusable to true
 
11:46 PM
"Oh" :)
 
was that THE ellie?
or another?
 
shitiously?!
seriously*
 
@CCInc **shit**iously?!
nice touch! lol
 
2 hours ago, by Ellie
'Tis why I missed y'all.
 

« first day (893 days earlier)      last day (4056 days later) »