« first day (1461 days earlier)      last day (3478 days later) » 

2:50 AM
hi guys..
appreciate any help regarding send key to other programs..i'm currently work use vb.net but still not working.if anyone have tried used c# please share..
 
 
4 hours later…
6:52 AM
@zira P/Invoke SendMessage and PostMessage ;-)
 
@RoelvanUden ???
 
Then you just need to queue WM_KEYDOWN and WM_KEYUP
 
7:10 AM
lol
 
8:06 AM
@Pheonixblade9 I prefixed it with LSE: - I see how you're getting that result now, but they're not on the NASDAQ
 
 
1 hour later…
9:11 AM
hello handsome beautiful souls of internet, I have a quick question regarding method. Is it possible to hide inherited method with different signature?
ex) class Parent(){public void init(int id);} class Child:Parent{public void init(int id, int somethingElse);}
 
@BlueBug One way is to have the parent method virtual, and the child method override without calling into its base function. It's the best way. The second way is to use the new keyword, but if the class is accessed by Parent and not Child definition, the parent function will be invoked.
 
I see but I have different parameters, shouldn't parameters be the same if I want to use "virtual override" or "new"?
public void init(int id); public void init(int id, int somethingElse);
 
u may override old function with private access modifier
 
9:34 AM
SUP NERDS :D
 
@FLCL can I change the access modifier of inherited function from child class? Is that what you are suggesting me? I did a bit of googleing. From my research, it says "we can not change access specifier while overriding a method from base class." stackoverflow.com/questions/6236909/…
 
@BlueBug You can't. Think of your approach strategy again. A child cannot 'delete' a method, which is effectively what you are trying to do. If you can provide a meaningful defeault for somethingElse, you can route the init to your new method with a default.
Otherwise it's just a matter of re-thinking your architecture. I've personally never had to 'delete' or 'hide' a method.
 
true. I originally had constructor calls instead. My function "init" does what a constructor does. I had to give up constructor calls since the "parent class" my class drives from forfeits constructor calls.
"parent class" is builtin class from engine, Unity.
 
@BlueBug can you dosomething like pastebin.com/S4k9Fedw
 
Are you trying to remove the method from the child after inheriting from the parent?
 
9:45 AM
#FLCL hehehe that's mind bending solution there. xD but not so in my favor.
@Sippy almost... yes. I want to delete a signature from parent ..... I guess I just can't.
 
@BlueBug Why?
 
eh, here I am using my function "init" almost as my constructor call (can't use constructor call) It would be in my favor to have something like...
class Parent{public Parent(int id){}}
class Child:Parent{public Child(int id, int id02):base(id){}}
 
@BlueBug What's wrong with that?
 
but I can't. So I am using my "init" calls as my constructor, but since I keep using init as my constructor, the deeper I inherit, more "init" calls I stack.
The class I drive, MonoBehavior(from Unity Engine), prevents usage of constructor all together.
 
Huh? It prevents constructors? How?
 
9:51 AM
"Never initialize any values in the constructor. Instead use Awake or Start..." answers.unity3d.com/questions/32413/…
 
So use the awake or start?
 
Awake or Start being function calls just like my "init"
 
Honestly though if you're just passing in things like identifiers and owners etc
It's not bad, you need that data anyway
 
yes. It's not bad. Ah. I tried to do this mainly because it just looked ugly when my intellisense lists all the available function calls. Then while I was coding, it just came up to my mind.
"what if I could delete signature calls?" then it got me here.
I try to do... crazy stuff if it comes to my mind, get excited. >< ><. But I guess this time, my crazy idea is just plain crazy. But ty all. My curiosity has been solved.
 
Well.. if you want to do full-on crazy, go for proxies. :-/
 
9:56 AM
hahah proxy, web stuff. shivers
 
No.
Proxy classes.
In computer programming, the proxy pattern is a software design pattern. A proxy, in its most general form, is a class functioning as an interface to something else. The proxy could interface to anything: a network connection, a large object in memory, a file, or some other resource that is expensive or impossible to duplicate. A well-known example of the proxy pattern is a reference counting pointer object. In situations where multiple copies of a complex object must exist, the proxy pattern can be adapted to incorporate the flyweight pattern in order to reduce the application's memory footprint...
 
that looks absurd woooo...
looks super professional's need related.
but ok. Cool.
 
@BlueBug Are you a student?
 
I was, but not now. On "vacation" since August; my army service starting this December.
 
Army service... they still do that somewhere huh?
 
10:08 AM
Denmark
Actually quite a few still
Military service is service by an individual or group in an army or other militia, whether as a chosen job or as a result of an involuntary draft (conscription). Some nations (e.g., Mexico) require a specific amount of military service from every citizen (except for special cases, such as physical or mental disorders or religious beliefs). A nation with a fully volunteer military does not normally require mandatory military service from its citizens, unless it is faced with a recruitment crisis during a time of war. == Summary of countries == In this summary, 195 countries are included. ...
 
South Korean, mandatory here.
year and 10 month, Just some basic training.
 
It's a silly thing IMHO :P
 
eh I'd rather not go, but I have no other option >< ><
 
In some countries you can buy your way out of it... that works there? :-P
 
Is 108k won a lot?
In South Korea I mean
Not worth shit in my country lol
 
10:15 AM
nnnnno. Because we are still at war with north Korea... I mean on document, it is. 108k Won is not a lot. With 20K won, you can have nice dinner, with 10K won you can have satisfying meal.
with 100K won, you can buy super fancy virtual hat for your Avatar. Or two cool items, like particle enhanced cloth.
 
Someone really needs to end the whole korean divide shit
I just wanna call it Korea.
Not north and south
Wish Kim Jong Il would eat so much cheese he died!
xD
@BlueBug wat
 
There is always endless supply of fat ass dictators waiting to be on throne in North.
 
true
 
fat ass, I mean literally.
 
It's cos of all the cheese.
 
10:19 AM
dictators spending all the money importing cheese! grr!
Game of The Cheese.
 
And threatening to nuke people with fireworks, too.
Kimmy gets very mad when people insult him
 
xD
 
He tried to get rid of a hollywood film about his assassination LOL
 
Hey, cheese is good.
 
with cheese, may good but also bad comes, as there must be light, so should shadow follow it's trail. Cheese; seed of all violence, but piece of heaven.
 
11:11 AM
@Pheonixblade9 although Buffett thinks it's junk bbc.co.uk/news/business-29640117
 
 
2 hours later…
1:26 PM
Hi anyone skilled in github here?
Trying to publish project so I allocated directory in GitHub and moved there the files (several html, .obj, jpg, dae and js libraries) but cannot see it in github repo manager?
 
@Marek Use GitHub for Windows.
 
I do use that.
 
Make the repository on GitHub. Go into the desktop app, clone it.
Add files into the directory, then go into the project in the desktop app and you see new files.
Commit them with a message on the left side into local git
then press the button at top to sync to github site
'sync' which pulls and pushes
 
I cloned but I cannot see the files when I copy them :/
 
You need to push files to it
If you just put them in your folder on windows it won't just upload them to the website
 
1:40 PM
And as well I got button saying Publish instead of Sync as a result of that I receive error that: it must have atleast one commit before publishing.
Yes that is what I did. How do I push them?
 
30
Q: Github "Failed to publish this branch" error on windows

user1706538I'm new to git, and I just downloaded it yesterday. As a test for my first online (not local) repo, I committed a useless text file and then hit publish. After a short while, I got this very non-descriptive error: So I know that I can't publish to this branch. There's only one and it's the ...

 
@Marek So make a commit. Git is a distributed system. Your own machine is a Git server, too, so if you push stuff from file system into your own Git, it's JUST on your machine.
It's not on GitHub's git server yet..
 
Failed to push some refs..
Dont know what is wrong here. Reently published project were working fine
 
Start with screenshots then
 
user2620028
Has anyone here ever decided to try and publish a game to a platform (Xbox, playstation, computer, web)?
 
1:49 PM
@HatterisMad A team I was in at Uni did one game to a store :-P
 
user2620028
To a store? like a local game store?
 
Google Store harr harr.
 
user2620028
Oh like android? lol gotcha
 
user2620028
How did that go for you? What was the name of the game?
 
Yep, Android.
It's one of the million Sudoku apps. All very smooth sailing.
 
1:55 PM
I have got: everything is up to date after doing command: git push, after the files were copied to GitHub Repo directory
 
user2620028
Gotcha. someone had to pay to submit that to the app store :P
 
Any idea on this please? i.imgur.com/t3Xj4UQ.png
 
@HatterisMad University accounts. But yeah, there is some fee (20$ a year?)
 
I fixed it.
 
user2620028
Gotcha yeah that wouldn't be as bad then
 
2:11 PM
@RoelvanUden That pattern is the coolest solution to some weird corner cases.
 
2:33 PM
anybaaady play on that brainwars app?
 
I'm getting an empty line in the start of my code generated with T4, reduces my quality of life significantly
 
!!wiki T4
 
T4 or T-4 may refer to: == In airports and airlines == Madrid Barajas Airport Terminal 4 London Heathrow Airport Terminal 4 == In biology and medicine == T4 phage, a bacteriophage Thyroxine (T4), a form of thyroid hormones the T4 spinal nerve the fourth thoracic vertebrae of the vertebral column A non-small cell lung carcinoma staging for a type of tumour == In entertainment == T4 (Channel 4), the daytime teen-aimed slot on Channel 4 in UK Terminator Salvation, sometimes referred to as Terminator 4 Transformers: Age of Extinction, the fourth film in the live-action Transformers film series ��2...
 
Dumb question, how would you get this in code behind:

<input type="hidden" id="hfTotal" />
 
@JohanLarsson Double check the header lines. Amusingly (actually not amusing at all) T4 will attempt to read a newline out of them
 
2:46 PM
@NETscape T4, everything pretty broken. Been hacking and prototyping for a while.
 
<#@ header #>
<#@ header #>
 
ty sir, will look
 
Convert that to
<#@ header
#><#@ header
#>
@Greg What do you mean by "get this in"?
When you save the ASPX page it should generate the designer file automatically for you
then create a protected member in the codebehind with a name that matches the ID
Make sure the type is compatable.
 
@MrDoom Well, I have an asp:Label which holds a value. The problem is, anytime the postback occurs it only takes the default text in. It doesn't take the modified Javascript text version back to the server side on the control.
As soon as the page does a postback, the value is lost.
 
Check the POST for the postback (oh god you're using postbacks) and verify that the value has been changed in the POST
Use the NET tab in Chrome to check that
 
2:54 PM
@JohanLarsson Y U check in generated code?
 
The whole point is the generated code
 
@MrDoom I'm not using Postbacks, that is the problem. Everything is done client, then it calls a service that returns values to the page. But when they hit the process button it calls an actual Postback on that .aspx page.
 
@JohanLarsson the point of what?
 
the lib
 
what lib?
And why do you use this.Write instead of directly putting the string in?
 
2:57 PM
don't know any T4
 
this.Write(string.Format("Read Settings found {0} units", settings.Quantities.Count));
vs
#>Read Settings found <#= settings.Quantities.Count #> units<#
 
@MrDoom Does that make sense?
 
wut is dis @JohanLarsson
 
@Greg Vaugely it does, but your issue still applies. Confirm that the data being sent out of the web page is what you're expecting it to be
 
@NETscape code generation, ugly stuff
 
3:00 PM
If it isn't then it's something on the page. If it is, it's something on the server
@JohanLarsson Ugly!? How much time are you saving?
 
is this common to do? ew
when would be an appropriate time to use it?
 
Don't think I will save much time, hopefully reduce bugs
 
╔═════════════════ ೋღ☃ღೋ ════════════════╗
~ ~ ~ ~ ~ ~ ~ ~ ~ Repost this if ~ ~ ~ ~ ~ ~ ~ ~ ~
~ ~ ~ ~ you are a beautiful strong T4 template ~ ~ ~
~ ~ ~ ~ ~ ~ ~ who don’t need no man ~ ~ ~ ~ ~ ~ ~
╚═════════════════ ೋღ☃ღೋ ════════════════╝
@NETscape Repetitive crap that you don't want to write by hand.
 
nice ascii, star for that
 
I have a large number of reference classes that I autogenerate via T4 into code files based on information in a database
T4 connects to the MSSQL DB, pulls relevant information and then spits out classes
 
3:03 PM
@NETscape usually for generating data access code, UI code, that kind of thing where it can be read from external information
@JohanLarsson that's no ascii :)
 
@JohanLarsson Have to agree with @Kendall here, it's just copy/pasta that jumped to mind when you said ugly.
 
@KendallFrey ha correct
 
@MrDoom What would be the ideal way to detect that, I mean I see the value all the way until after the confirm.
 
@Greg The confirm?
 
@KendallFrey actually I fing git helpful when generating, nice to diff the output after changing stuff
 
3:07 PM
@MrDoom
        function Submit() {
            var value = $("#lblTotal").text();
            if (!confirm("Are you sure you would like to submit your order for " + value + "?")) {
                return false;
            } else {
                console.log($("#lblTotal").text());
                eval($("#<%= btnProccess.ClientID %>").attr('href'));
                return true;
            }
        }
 
I have extremely poor names as it is now, confuses myself with them
 
<asp:LinkButton ID="btnProccess" runat="server" Text="Proccess Credit" OnClick="btnSubmitReturn_Click" OnClientClick="return Submit();" />
 
What is a good (free) editor for T4?
 
@JohanLarsson FourTea, if you have ReSharper
 
I have R#, will try
 
3:13 PM
@Greg Why the eval?
 
@MrDoom The enter key wouldn't work on the enter key press for the confirm. Basically wouldn't postback.
@MrDoom Didn't like the LinkButton.
 
@Greg Sounds like the form had incorrect setup or something.
 
@JohanLarsson why would you need to diff them?
 
There's probably a better fix than eval
 
EVAL IS EVIL
 
3:15 PM
@RoelvanUden I know it is evil, wasn't sure of the best way to solve.
 
@KendallFrey to see what changes, not as important now when the outputted stuff builds. I outputted .txts for a while
 
IME, generated files in source control is a PITA
 
@ton.yeung Hidden Field still didn't fix, still same problem.
 
If you put a timestamp in them or anything like that, HELL
 
@ton.yeung Yeah. Above is the LinkButton, the return Submit(); where it initiates the Postback.
 
3:18 PM
@MrDoom can't find it link?
 
It'll be in the resharper extensions library
@Greg I agree, it's weird and out of my depth. Sorry brah.
 
@MrDoom Sigh, okay.
 
@MrDoom found it and installed it, looks REALLY nice.
The difference from my previous editing them in the dark is huge :)
 
@JohanLarsson Yeah, your life just got a lot easier. Also helpful damieng.com/blog/2009/11/06/…
@Kendall will yell at you, something about maintainability, but I like having T4 spit out standards compliant files.
 
Is it better than the one I use now?
Downloaded some nuget package
 
3:23 PM
Oh, if you're currently using one it might be the same. I've no idea.
Also, are you referencing non-generated code to generate other code?
 
yeah, wanted to do as little as possible in T4
 
What are you using to get existing classes and such?
 
how do you mean?
 
Are your T4 files accessing information from non-generated code in the Visual Studio project, or are they just generating code that is then used?
As in, are you polling for classes in a namespace, or looking for attributes, or something like that?
 
It reads everything from the GeneratorSettings.xm
 
3:27 PM
Ah ok, you're using an XML file.
 
The Ui thing is an editor for the xml file
 
There's a way to directly use T4 to read the code project using the EnvDTE objects, just curious as to the route you took.
 
I googled my way using zero skill.
 
@ton.yeung Yeah, was thinking about that and maybe a repeater to see if that fixes it.
 
Yep, sounds about right :D
 
3:30 PM
posted on October 16, 2014 by ericlippert

Last time we saw that producing all the subsequences of a given size k from a given sequence of size n is essentially the same problem as computing all the sequences of n Booleans where exactly k of them are true. How do … Continue reading →

 
is there an active angularJS chat?
 
@JohanLarsson i know you're lying because it takes skill to google... just look at the question on SO for proof.
 
@MrDoom I would really appreciate if you flame the code if you have time. At least the T4 stuff, the wpf stuff is more of a quick hack and I know where I have cheated.
 
@JohanLarsson I could take a look at some point. Got a link to a specific file you'd like feedback on?
Keeping in mind I have just a few months on you as far as experience goes.
 
The two *Generator.tt files are probably the most packed with dumbs
The class templates are pretty straightforward I hope
 
3:46 PM
@ton.yeung Found a way to circumvent, incredibly odd though.
Created a new field, forced the Javascript object into a hidden field control. Then used it.
 
4:16 PM
only in Kerbal Space Program
what
I didn't say anything about Minecraft
 
I heard Docker was pretty cool. You can dock minecarts directly with spaceships to transfer kerbals and push them straight into Azure.
Or something like that.
 
@MrDoom funny thing, you can actually 'dock' minecarts in MC
You can't dock with Kerbals though
unless the claw counts as docking
 
Better? ;)
 
HAPPY FRIDAY BITCHES.... jk its thursday, suckers
4
 
so... installer v1 installs 5 libraries. i merge a library, installer v2 only has 4 libraries... how to handle extra library in install path?
have installer v2 remove the file?
 
4:44 PM
Hello, Does anyone know where I can find information on how the default binding handler works in C# (specifically MVC; This kind of binding. name="MyObject.MyList[0].SomeProperty").

I know how to do it, I'm just having performance issues and would like to know more about how it works on the back-end.
 
@Shelby115 you talkin web?
 
@NETscape Yes
 
@NETscape Thanks, but I've read that. I'm not sure if that's how it is done or if that's how you make your own (slight difference).
Are questions about how something specifically works acceptable for StackOverflow?
 
not really, I don't think. you want to rewrite the binding mechanism that is made to work with the framework?
 
5:00 PM
No, I just want to know why it's so freaking slow :(
Figured how it works would give me some insights
 
posted on October 16, 2014 by Visual Studio Blog

Visual Studio 2013 Update 4 RC is now available to download. This release has lots of small features and fixes for ASP.NET and web platform, Team Foundation Server, Visual C++, JavaScript Editor, Testing Tools, and some other areas. Specifically for updates to the web development tools checkout this new features announcement on .NET web development and tools blog. The release notes have the co

 
morning guys
 
morning
 
5:19 PM
mf'er, i just did Update 3 yesterday -_-
 
rant: angular pisses me off so bad, why the fuck can't i just pass in a 'model' into partial views, i'm either stuck creating bullshit extra controllers, or creating additional partials
dude i am
and its really making me hate angular
its like i have to add an entire extra partial just to change the header text
what the fuck chuck
 
Hey, why won't this:

string price = ((HtmlGenericControl)item.FindControl("ProductPrice")).InnerText;

Find this:

<td><span id="ProductPrice" class='Credit-Container price<%# Eval("ProductNum") %>'><%# ConvertToMoney(Eval("Price").ToString()) %></span>
 
@ton.yeung help me do it right
 
@ton.yeung In the repeater that the code is apart of.
        <asp:Repeater ID="creditRightItems" runat="server" DataSourceID="sdsOrder">
            <HeaderTemplate>
                <thead>
                    <td>Qty Returning:</td>
                    <td>Price:</td>
                </thead>
            </HeaderTemplate>
            <ItemTemplate>
                <tr>
                    <td><asp:TextBox ID="txtQuantity" runat="server" PlaceHolder="0" CssClass="txtQuantity Credit-Check" data-item='<%# Eval("ProductNum") %>' /><span class="creditX">X</span></td>
 
@ton.yeung I have 2 ng-includes including the same partial. On one of them, I'd like "Default Billing Address" in the header of the partial. On the other one, I'd like "Default Shipping Address"
i can create a separate controllers for each of them so the same binding would map to different data
or I can create 2 separate partial views with the header text hard coded in
but I can't figure out how to do what I want without adding extra files
@ton.yeung yup, you're right
@ton.yeung idk, could be, but i doubt it
oh no shit
googling brb
 
5:43 PM
@ton.yeung I'm on .NET 4
@ton.yeung Well, if I do runat server it will break the repeater element.
@ton.yeung My only hindrance at the moment.
 
oh i'm already using directives
just didn't know the umbrella term
directives are like ng-include, ng-repeat, etc
are there some specific ones you're thinking of?
 
@ton.yeung ?
 
ng-hide, show, etc
ahhh
okay let me research it a bit, thanks for pointing me in the right direction
 
@ton.yeung I'm certain I am though:
                    foreach (RepeaterItem item in creditRightItems.Items)
                    {
                        //string product = ((HtmlGenericControl)item.FindControl(@"ProductNumber")).InnerText;
                        TextBox inputQuantity = (TextBox)item.FindControl("txtQuantity");
                        string quantity = inputQuantity.Text;

                        string price = ((HtmlGenericControl)item.FindControl("ProductPrice")).InnerText;

                        TextBox inputSKU = (TextBox)item.FindControl("hfSKU");
??
Because this is data displayed on the page.
I don't want to constantly double down my controls.
So wrap this in a literal?
<span id="ProductPrice" class='Credit-Container price<%# Eval("ProductNum") %>'><%# ConvertToMoney(Eval("Price").ToString()) %></span>
Won't let me gives me compile error.
 

« first day (1461 days earlier)      last day (3478 days later) »