« first day (1077 days earlier)      last day (3868 days later) » 

12:04 AM
???
what country?
or are you being a sneaky hobbit?
 
What do you mean by sneaky hobbit?
in the US
So naturally the county website doens't work
so I can't actually VIEW any of the court data
404's all around
NSA, please tell them to fix this
 
how old is your friend?
Is she in MS, CO, TN, or Florida?
 
Not my friend, my classmate. Let's see, according to her DOB she's 13. Texas.
 
she deserves it then
she's under age, she knows she's under age. Maybe this will scare her a bit into growing up
Or maybe my hard-ass'ery is showing
 
Rumour has it in my school that she had it at a school dance. I haven't seen her at school since, and this was last year when it happened. Naturally, I can't know hwat happened for sure because the STUPID GOVERNMENT won't let me view the docs. I emailed the district clerk (I'll bet they'll charge me like 5 dollers a page)
 
12:08 AM
Well alcohol isn't a laughing matter. If my kid had alcohol at school and I found out I'd phone my police friends to scare the piss out of her, but not arrest her
and make sure she never knew I did that
 
Well they actually did arrest her. But according to this the charges were "dismissed"
 
They wouldn't be able to do much as she's 13, but they will try to scare her straight.
 
Hopefully so.
 
There's no point in consuming alcohol at a young age. It is horrendous on your system, and the only reason people do it is to look cool
when in fact it leads to so many brutal things it's disgusting
anyways i'm out, hope the best for your old classmate. TEll her to find a nice nerd to settle down with.
 
Only reason I'm looking at it NOW is because I was researching a theft from my school, and I just randomly decided to see if her record was still there.
 
12:10 AM
ah
cheers.
 
Cya later Ryan
 
12:29 AM
Mark of the Ninja is the most exciting game I have played in a long time.
 
that an old school-ish Side scroll-er
 
12:44 AM
could you pls tell me what I'm doing wrong in this binding? imgur.com/a/8oPOJ
as soon i hit F6 everything changes like in the second image
 
Ew. Image code.
 
 public class CEVAViewModel
    {
        public List<NodeViewModel> Inputs { get; set; }

        public CEVAViewModel()
        {
            Inputs = new List<NodeViewModel>();
            Inputs.Add(new NodeViewModel() { NOD = new ion.NetworkGraph.Nodes.GreenNode() });
            Inputs.Add(new NodeViewModel() { NOD = new ion.NetworkGraph.Nodes.GreenNode() });
            Inputs.Add(new NodeViewModel() { NOD = new ion.NetworkGraph.Nodes.GreenNode() });
            Inputs.Add(new NodeViewModel() { NOD = new ion.NetworkGraph.Nodes.GreenNode() });
<UserControl x:Class="WpfApplication1.TEST"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:PPP="clr-namespace:ionWpfUserControlLibrary;assembly=ionWpfUserControlLibrary"
             xmlns:local="clr-namespace:WpfApplication1"
 
 
6 hours later…
6:17 AM
hey silent room
hws u doin
 
hi @Neha
 
@JasperManickaraj hey
 
How r u..? How ur work is going on?
 
@JasperManickaraj am good
dnt ask about work
 
Ha ha... Heavy Work.. i know..
 
@JasperManickaraj ha ha no work do you know ?
 
I dont know @Neha...
 
@JohanLarsson seriously this is wat life is now, ma parents say y dont u sleeep eevn in office :p
 
I need to fix an issue..
Server Error in '/' Application.
Could not load file or assembly 'System.Web.Razor, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.
 
@JasperManickaraj say
mvc?
 
6:24 AM
s s
 
@Neha :)
 
not working in javscript
alert(id);
var a = "<% =Delete_marker(id)%>"
error : Input string was not in a correct format.
 
:) @JohanLarsson
 
I'm out of words now
 
6:26 AM
0
A: Server Error in '/' Application resource cannot be found error only for aspx page in mvc4

AthibanIf you need to set the default startpage you just need to set the action name and controller name in the RouteConfig, routes.MapRoute( name: "Default", url: "{controller}/{action}/{id}", defaults: new { controller = "yourContollerName", action = "YourActionN...

 
what value u needed.... var a = "<% =Delete_marker(id)%>"
 
@JasperManickaraj similar problem ?
 
No.. The problem/Culprit is the MVC.. have added mvc reference in my project.. in local it works perfectly.. but in sever it gives an error..
Server Error in '/' Application.
Could not load file or assembly 'System.Web.Razor, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.IO.FileNotFoundException: Could not load file or assembly 'System.Web.Razor, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one
 
@Nileshpatel is it the way you can call
I guess we use ajax or pagemethod or webmethod
if such needed
 
@JasperManickaraj can i see your routeconfig ?
 
6:29 AM
@Nileshpatel give var a=Delete_marker(id);
 
@JasperManickaraj @Nileshpatel is calling a server method not javascript method
 
   public static void RegisterRoutes(RouteCollection routes)
        {
            routes.IgnoreRoute("{resource}.axd/{*pathInfo}");

            routes.MapRoute(
                "Default", // Route name
                "{controller}/{action}/{id}", // URL with parameters
                new { controller = "Account", action = "Logon", id = UrlParameter.Optional } // Parameter defaults
            );

        }
So simple to call a server method u need to use ajax and specify the controller name and action and pass the parameter id.. @Nileshpatel
 
ehhh @JasperManickaraj how u come to know he is using mvc
 
@Neha.. i did not think that thing.
 
7:23 AM
Morning folks
 
@Markus gud morning..
 
can anyone please help me with this stackoverflow.com/questions/19044635/…
 
So I'm not up to date on LINQ.. can someone help me... I want to do something on all items in a ObservableCollection<T> simple, but how do I do it?
of course I could do a loop or something, but I want to learn this LINQ
no wait, maybe it's not LINQ
So I don't know what there called then but, the myCollection.All(???) for instance
the thing that I want to do is to go though all objects in a collection and get a property from each one of them
 
.Select
 
beat my highscore :D
 
7:37 AM
162
399??
that was good
 
hahahaha
thanks @Markus ;)
 
how did you manage that? cheating? ;)
 
nope
timing is the key :P
+speedhack
 
.Select you say... I would like to do something like the following:
StringBuilder sb = new StringBuilder();
sb.append(myCollection.All().toString());
// or maybe
myCollection.All(x, sb.append(x.toString());
 
all doesn't do what you think it does
 
7:44 AM
hehe no, but what is it that I want?
now that you see what I want :)
 
it's still Select
 
// ok so
myColl.Select(x => sb.append(x.toString()); //?
is that the way?
 
Nope
rtfm
 
geee
 
Ive never seen someone just try to guess the signature of a method and then ask someone else how close they are
 
7:54 AM
 
8:06 AM
hello all can i ask
i need your opinion
 
// so from the tfm I get this:
var result = myColl.Select(x => x.toString());
foreach (String s in result) { sb.append(s); }
// is that the best way? because then I can just as easy make a
foreach (myClass o in myColl) { sb.append(o.toString()); }
// right?  I was more looking for a one liner, but maybe that's not possible? or did I get tfm wrong?
ok that's also a one liner :S
 
it is possible that i can detect a char typed any in richtextbox?
particular in '('
i mean if i type ')' in richtextbox or ';' it will be detected?
i need a good parse :/
 
8:28 AM
@Markus A one liner can be string.Join(string.Empty, myColl.Select(x => x.ToString()).ToArray()); but I don't see why you would absolutely want something intentionally harder to read.
 
nae, I didn't think that it would be harder to read :) but thanks.. still I don't understand why my last example doesn't work (chat.stackoverflow.com/transcript/message/12041789#12041789), is it because it's deferred execution?
ahaa ok so if I run .toArray() on the end, the func is executed... maybe the foreach is simpler to read anyway...
 
hello
anyone can help me?
i need a good logic for this
 
8:56 AM
@Markus since you are just operating on the object itself, then yeah a foreach probably makes more sense
but if say you wanted to get some property from all your objects, you could do mycollection.Select(x=>x.Name)
@Markus fyi, linq is more about transforming collections into new collections.
if you just want to perform some action on every element in a collection, a normal foreach is probably your best bet.
 
9:46 AM
yo
 
Hllo everybody
 
Hey
 
yo yo yo
 
is MS Surface is good to buy ?
@Nileshpatel What is it ?
@Elegiac Hey man
 
yo @codebrain
zup
 
10:00 AM
0
Q: What is the source encoding for this string or how to determinate encoding of string?

Gelo VolroI've read several questions at SO and other topics, like: Determine a string's encoding in C# Jon Skeet's http://csharpindepth.com/Articles/General/Strings.aspx But when I have tried to determinate it with the: http://www.codeproject.com/Articles/17201/Detect-Encoding-for-In-and-Outgoing-Te...

 
I liek this Surface from MS, thinking ot buy one. what do you say ?
 
@codebrain Waste of money.
 
@RoelvanUden haha why ?
 
www.google.com --- is addictive today
 
@codebrain There are much better alternatives to a heavy tablet with semi-poor keyboard attachment.
It doesn't work as tablet, it doesn't work as notebook. I don't like the surface at all due to that.
I'd spent 150 euro on an ASUS tablet and the remainder on a decent ultrabook.
 
10:09 AM
okay, if you suggest some alternatives what could they be ?
 
Hi, I have POCO entity class Order in namespace MyCompany.MyProduct.Entities This class has property OrderStatus Status , where OrderStatus is enumeration. Should/can I declare OrderStatus in the same namespace MyCompany.MyProduct.Entities?
enumeration is declared in your own file
 
@codebrain Asus Memo Pad HD (~140eu) with an Asus Vivo Book (~490eu) for example.
 
@RoelvanUden ll check :)
 
The big problem the Surface has is that it isn't quite suited for either mode.
Perhaps the Surface 2 remedies that, but unless that magically happens, separate devices are better.
 
Yeah, They're launching surface pro ?
 
10:17 AM
I think so yeah, not sure when, or what weight or form it will have.
I doubt it will be comfortable for anything tho :D
 
I haven'y thought about buying one. I just thought it looked better than samsung tab or whatever. they didnt lauch surface in india yet. I had to make someone bring it for me from US or UK. otherwise i would buy ASUS or IPad.
 
10:31 AM
How can I pass a reference of an unknown type to a method? Like

void ToggleContextWindow(ref Window windowToToggle) {...}
and then
ToggleContextWindow(ref logWindow);

logWindow is not of Window class
ToggleContextWindow(ref logWindow as Window); doesn't work
 
logWindow is not of window class ? Then how does it work ?
@Nanako It wont work.
 
@codebrain public partial class AppLogWindow : Window
 
so log window type is derived from Window ?
 
@Nanako why ref?
 
yeah ref in viod method is not necessary too.
 
10:34 AM
ref is usually not necessary ever unless you want to actually change what that variable actually points to
 
ToggleContextWindow doesn't have any idea of what window to create, destroy or activate, so it needs a ref
 
that doesn't really make sense. Why wouldn't it work without ref?
void ToggleContextWindow(Window windowToToggle) {...}
 
I'm rewriting code right now, it worked earlier, but accepted a window class and returned a window, and also there was a Nullable window parameter, if window is already created
 
in any event, if you have some object, you cast it before calling the method.
ToggleContextWindow((Window) myWindow);
altho i dont think you can do ref and cast in the call, so you might have to do:
Window myWindow = (Window) someObject;
ToggleContextWindow(ref myWindow);
 
Gud Afternoon Folks..
 
10:44 AM
jasper you are in a lot of rooms with caprica6
are you cybersexing the bot?
 
Right now it looks like that:
logWindow = ToggleContextWindow(logWindow, typeof(AppLogWindow), new EventHandler(logWindow_Closed)) as AppLogWindow;
public Window ToggleContextWindow(Window windowToToggle, Type windowClass, EventHandler closedDelegate) {...}

I'd like it to look like:
ToggleContextWindow(out logWindow, new EventHandler(logWindow_Closed)) as AppLogWindow;
public void ToggleContextWindow(out Window windowToToggle, EventHandler closedDelegate) {...}
 
well you can't cast an EventHandler to a Window
public void WalkTheDog(Dog dog) { }
WalkTheDog(new Potato() as Dog);
doesn't make sense.
 
why? it is a working piece of code, actually
 
the first part should work but not the 'id like it to look like' part
new EventHandler(logWindow_Closed)) as AppLogWindow; will always be null
unless there is some implicit cast I am not aware of.
 
ToggleContextWindow(....) as AppLogWindow;
the're two brackets
 
10:52 AM
ahh righto. soryr
well your new method is void
 
out Window windowToToggle
sry, ref
 
yes... but it doesn't return anything
so you can't cast its return value when it doesnt have one
 
i'd like it to be public void ToggleContextWindow(ref Window windowToToggle, EventHandler closedDelegate) {...}
ref, I pass a reference
 
sure that makes sense
 
I don't need a return value
 
10:54 AM
well you have '... as AppWindow'
 
ToggleContextWindow manages windows in my app, stores coordinates, checks if windows are already created, checks uniqueness and all thjat stuff
 
public void ToggleWindow(...) { ... };

you can't do `ToggleWindow() as Something` because ToggleWindow() doesn't return anything
just like you cant go:
var foo = ToggleWindow(...);
 
and It is called by Application Data Context object, which have it's properties bound
so right now I have to write logWindow = ToggleContextWindow(logWindow... instead of passing a reference
Is there any way to pass a reference of another type?
 
of another type? no, not unless it is a Window
or subclass of Window
 
subclasses don't work, that's the point
ref is damn strict
void toggle(ref Window window) {}

AppLogWindow logw;
toggle(ref logw);

Argument 1: cannot convert from 'ref Perfect.Windows.AppLogWindow' to 'ref System.Windows.Window'
 
11:00 AM
well yeah because ref can change the object...
 
class AppLogWindow : Window
 
yeah i misspoke on that one
cause you could in theory change the actual class in the method
 
I need to pass an oldschool pointer
 
        static void Main(string[] args)
        {
            Animal dog = new Dog();
            ChangeToCat(ref dog);
            Console.WriteLine(dog.GetType());
        }

        public static void ChangeToCat(ref Animal animal)
        {
            animal = new Cat();
        }
 
my head ache :/
 
11:04 AM
so if you did
Window someWindow = myWindow;
ToggleWindow(ref someWindow, ...);
it should compile
 
oh, that's the way)
 
BUT
if someWindow is changed in the method
myWindow will still point to the old object
and someWindow would point to the new one
        Dog dog = new Dog();
        Animal animal = dog;
        ChangeToCat(ref animal);
dog and animal are now 2 different objects
 
yeah, i got it
that's exactly what i need
 
cool beans
i personally think that the original method is more clear.
when you return the created type
 
I like it and it works, but it is too long to write)
The problem with the second method is that I'll have to write (logWindow as AppLogWindow) all over the code
because all my stored windows properties will be Window class
I guess I'll stick with my old code, but thanks for clarification
 
11:10 AM
well you could isntead make it a generic method
public T ToggleContextWindow<T>(T windowToToggle, Type windowClass, EventHandler closedDelegate) where T:Window {}
then you do ToggleContextWindow<AppLogWindow>(...)
and you could drop the type from the method as well since you can get it from T
public T ToggleContextWindow<T>(T windowToToggle,EventHandler closedDelegate) where T:Window {
   Type windowClass = typeof(T);
}
 
I'll try it, looks very good
 
then you have a strongly typed call
AppLogWindow window = ToggleContextWindow<AppLogWindow>(...);
 
still talking :o
 
Yep
 
i think this guy has a picture of Angela Merkel above his desk but i don't want to ask cause it might just be his mom
 
11:16 AM
I'm from Russia, actually
windowToToggle = Activator.CreateInstance(windowClass); can't use T
ok, I guess I'll pass on this on, thx for help
 
@Nanako why can't you use T ?
windowToToggle = Activator.CreateInstance(typeof(T));
 
Doesn't work, "T is a Type not a class, blah blah blah"
 
i need a good parse that detects every ; and ) in richtextbox
anyone has an idea how to do it ? :/
or easiest way to do
 
@Elegiac use RegExp
 
this is scenario @Nanako
im working on my intellisense for javascript
and i already have regex expression for matching correct syntax
and i need to detect ; and ) to end it
then if its correct i add my syntax (typed word in richtextbox, that ends in ) or ;) then automatically add in my list
 
11:33 AM
Regex for intellisense? Sounds like a recipe for disaster.
 
then get values and return in autocomplete
yes @RoelvanUden
so i need parse for detecting ; and )
thats the hardest thing for me
and getting the whole line/ adding it into list
:/
what do you think?
 
You shouldn't have a single regex for matching such a complex language.
You shouldn't have a simple check for those characters. What about comments?
You need a proper parser to be able to get it right.
 
yes thats another thing @KendallFrey
 
JavaScript is a recursive language. Do you want to know what the (non)regular expression looks like for a recursive language?
^(?:\<(?<T>[A-Za-z][\w:.-]*)(?:\s+[A-Za-z][\w:.-]*=(?:""[^""]*""|'[^']*'))*\s*(?<-T>/)?\>|\</(?<-T>\k<T>)\>|(?:[^<&]|&(?:[A-Za-z]+|#\d+|#x[\da-fA-F]+);)+|<!--(?:[^-]|-(?!-))*-->|<!\[CDATA\[(?:[^\]]|](?!]>))*]]>)*(?(T)(?!))$
It looks like that.
And that's only XML.
 
looks almost like

echo "test... test... test..." | perl -e '$??s:;s:s;;$?::s;;=]=>%-{<-|}<&|`{;;y; -/:-@[-`{-};`-{/" -;;s;;$_;see'

DONT RUN, IT'S RM -RF
 
11:45 AM
Indeed, you need a lexer and tokenizer to get even something remotely representing intellisense for JS
 
Not even Visual Studio has decent Intellisense for JS.
 
ok ... so what should i do for that?
any advice? :D
 
Don't bother with intellisense for JS. You're never getting it right.
 
lol
but i think my solution can be for now right?
 
It's 'something remotely representing some form of autocomplete', it's not intelligent at all.
If that's your goal, then that is fine.
 
11:48 AM
but the thing time pass regexshould be flexible
main problem was for parser
and saving a syntaxline into list if the expression was correct
:/
 
I'm still not sure what your company hopes to achieve by making you write a code editor.
 
but i think i can use this in the end :D
msdn.microsoft.com/en-us/library/system.text.regularexpressions.matchcollection.aspx
@RoelvanUden they want to make an intellisense like visual studio but javascript
 
@Elegiac That is not possible.
 
haha i know
but we should do the impossible
 
"they" as in your bosses?
 
11:53 AM
yep
 
@Elegiac: @RoelvanUden is right, at first place you need a lexer, like in a linkers. Writing a linker is such a problem they're even separated from the compilers
 
actually were making multi language editor
 
Oh, in that case they need to learn something.
 
c# and javascript
 
Make a very basic one that is wrong half the time (using your existing code)
 
11:54 AM
but separate controls for both
because we already have our own c# - js translator
 
When they complain that it's broken, estimate that it will take several months to fix.
 
so they want editor for both
 
@Elegiac The best resemblance to autocomplete for JavaScript relies on JSDoc and extracting the type parameters. Due to the nature of the typeless JavaScript system, static analysis is not possible. TypeScript solves this by adding type declarations and that's how you can get closer. Otherwise, JSDoc reading all the way and doing lexing/parsing and basic type inference, but that is incomplete and not worthwhile (IMO).
 
they want me to make it complete for lessthan a month
 
@Elegiac when I had to wrote some kind of auto refactoring tool for C I used a gcc linker to build and get the dictionary
 
11:55 AM
@Elegiac Yup, it's gonna be shitty.
 
C# to JS translation is a terrible idea :|
It's just an idea some people came up with because they don't want to invest a week to properly learn how JS functions. In the end, you get an incomplete and broken translation from a language not really suited to become JS at all (Look at all the examples, from Java to C#, all translations are failing).
 
@Elegiac It might be an overkill, but why not to use v8 engine to parse JS fro you
 
CoffeeScript and TypeScript are the best to-javascript compilers.
 

« first day (1077 days earlier)      last day (3868 days later) »