« first day (1826 days earlier)      last day (3121 days later) » 

12:01 AM
what is the problem with either of those..?
you can just do await DbSet.ToListAsync
 
12:12 AM
Yeah I have a working solution with async, but in my requirement I am sure that I will get only 1 row back. So I feel like async is not really necessary
Looks like I can get an enumerator and access the data
Code looks simple if I use an enumerator instead of async. But does async scale better than enumerator? Given that I will not have more than one record returned from the query.
@Pheonixblade9
 
12:38 AM
@Pheonixblade9 which code? Did you find my github? o.O
 
12:50 AM
o/
 
1:14 AM
I am using a static utility method inside another static utility method. Is it a bad design?
For example, I have a static method called Add which takes two numbers and adds it and returns the result. I have another static class called Average which takes two numbers uses the Add static utility method to add and divides it by number of parameters and gives back the result.
I am not sure if having a dependency inside a utility class is good or bad.
 
thats fine
 
Out of curiosity.. is it normal to feel extreme "imposter syndrome" anytime one thinks about looking for a new employer?
 
huh
 
Like... I am typically the one people come to at work for help with debugging or they can't get something to work. But whenever a headhunter contacts me, I start thinking about the questions I see here on SO and I'm like "Yeah... you don't want me, I'm retarded about development. I promise I am."
 
why do you think you're retarded
 
1:27 AM
And that's the million dollar question... I'm not sure. I see the questions on SO and I feel like I'm still a complete newbie at this stuff. Although, I don't have a lot of years of experience...
I look at open source projects and it makes my head hurt trying to piece it all together.
 
1:39 AM
Open source projects are not easy to understand, that's normal!
 
So it's not just me?
That's a relief
I found bountysource last night and was feeling on top of the world, then I look at some of the code and my ego deflated very quickly
 
You will feel confident once you get something accomplished. You will get depressed you can't understand sh*t. Happens to me all the time :P
 
So... I should just jump in on something and break it, then try to fix it?
Thanks :) I'll give that a shot this weekend. Time to go spend some time with the family.
 
Broken things are easy to find. If nothing breaks, there won't be much developers indeed. So don't break things, just keep fixing the broken ones and create new ones. ;)
 
If you like oscillating between feeling like the stupidest person on earth and a fucking genius, you’ll love coding.
 
1:49 AM
Haha nice one Steve!
 
i didn't come up with it, that guy did
 
Nice share I meant
 
 
6 hours later…
8:01 AM
Friday.
 
woooo
 
Rebecca i miss u <3
That group description again xD
who makes this stuff?
 
I think that was @TomW
 
8:58 AM
hii all
Anybody have deploy .net project with AWS?
 
@vishuminhas EC2?
ElasticBeanstalk?
VirtualPotato?
 
Elastic beanstock
@Squiggle
 
I have never used that. Only EC2, and even that it was a while ago. Are the docs insufficient?
 
please tell me the procedure to deploy.
@Squiggle
 
@vishuminhas did you read the documentation?
it looks pretty comprehensive
 
9:06 AM
Right Click => Publish Website. Not that easy? Should've gotten Azure.
 
+1 for Azure
 
I need to access in AWS Explorer for this I need Access key id
 
@RoelvanUden: Indeed. It's almost too easy with Azure :)
 
Is Azure ok now? I tried it a few years ago and there was so much bullshit involved.
 
I'm only running a couple of sites, and it works like a charm for me.
 
9:09 AM
I'll take a look again then, may as well make the use of this bizspark plan
 
I don't actually use Azure, but when you're using a cloud solution, and you aren't using Azure for .NET, I wonder what went wrong in your brain when you made the decision.
 
@vishuminhas my advice is to do the thing.
 
I have a smarterasp account, was pretty simple and works with webdeploy
 
@AlexH: It's too damn easy to publish sites. Local diff to see what's changed, and it can also run your code-first migrations (if you're into that).
You can even integrate with VSO, and have it publish the site after it passes the build procedures/testing and whatnot.
 
@scheien cool well I'll have a look. If it supports webdeploy it will integrate with bamboo nicely
 
9:17 AM
1 message moved to Orphan GIFs
 
@scheien it's got too much microsoft-isms in the setup. Apparently I have 0.07 Apps right now. In what world does that make sense?
 
hehe yeah, I don't understand the reason behind those numbers either.
 
@RoelvanUden We use AWS because the AWS media transcoder is better than the Azure one, otherwise i would switch so fast
also the AWS plugin for VS makes the publish exp the same anyway
 
Wow this is expensive
 
9:29 AM
o/
 
o/ ?
 
\o
 
\o/\o/
 
<o_
 
<(*)-_-{ooo
 
9:40 AM
^ Joseph Merrick?
 
i have no clue
thats so rude lol
 
:P
 
:P
 
Hi guys
Does anyone know how to mute system volume using C#?
 
@Kuyo all you had to do was google
5
Q: Mute/unmute, Change master volume in Windows 7 x64 with C#

KalElHow can I adjust master volume in Windows 7 with C#? I have seen an excellent implementation using winmm.dll here, but it works with XP and not with Windows 7.

 
9:46 AM
@codebrain you beat me to it
 
Windows 8 my friend
Windows 8
Metro App too
 
you didnt mention any
 
Well i'm sorry
 
@codebrain What's a Google?
 
9:52 AM
brb
 
Alex, does it mute the system volume?
 
@Kuyo read it, try it
public static class SistemVolumChanger <--awesome codez
 
Its an odd thing to do, personaly i don't dont think its something a app should be doing outside of a busness enviroment and there are better ways to mute volume if you have a domain
in normal apps the correct thing to do would be to request excusive use of the sound device
 
because I'm trying to mute my background music from App.xaml.cs
 
... you are trying to mute music your own app is playing?
 
9:59 AM
I can't get the event handler on one of my pages to fire because the background music was coded from the App.xaml.cs - timeout
yes
sorry internet connection problem
 
ok muting system volume is not the right way of doing that, you need to get hold of the object playing the music and have that lower the volume or mute or stop
 
HAMMERTIME!
 
Yeah its not the right way, but its another solution to mute my background music
Yup i need to get hold of the object playing the music, but the thing is its on a different page
public async void PlaySound(string music)
        {
            var package = Windows.ApplicationModel.Package.Current;
            var installedLocation = package.InstalledLocation;
            var storageFile = await installedLocation.GetFileAsync("Assets\\bgm.m4a");
            if (storageFile != null)
            {
                var stream = await storageFile.OpenAsync(Windows.Storage.FileAccessMode.Read);
                MediaElementCommon.Instance.GetElement().SetSource(stream, storageFile.ContentType);
I want to make snd.Volume = 0 on the method
the method is this on one of the pages:

public void MuteMusic(object sender, TappedRoutedEventArgs e)
{
}
oops sorry formatting
 
well MediaElementCommon is a singleton by the looks of it you can just access it anywhere
i dont see the problem
 
Really?
Hmm then it must be the code i'm not sure how to get hold of MediaElementCommon
 
10:06 AM
@Kuyo Do you've a reference to the project/can you access the namespace?
 
No I cant
 
so its in a totaly difernt project and application?
as if its not it should just be a case of calling MediaElementCommon.Instance
 
Uhh no
 
unless its in another appdomain
 
Its a different page
 
10:10 AM
then MediaElementCommon.Instance should work, why doesnt it?
 
hold on lemme try
does not exist in current context
private void MuteMusic(object sender, TappedRoutedEventArgs e)
{
    MediaElementCommon.Instance
}
havent finished the code anyway
 
is MediaElementCommon inside another class
if so move it out
 
erm yes
its actually in a public partial class
namespace FYPPrototype1
{
    /// <summary>
    /// Provides application-specific behavior to supplement the default Application class.
    /// </summary>
    public partial class App : Application
 
yeah move it out of it unless there is a good reason for it being in there, or call App.MediaElementCommon.Instance to get the sound stuff
that will give you access to the object you need
then you just change the volume
 
ok i moved it out
the playsound also need to move it out?
 
10:15 AM
i would asume not
 
alright
lemme try it again
the MediaElementCommon is showing up on the page already
the music is gone now
lmao
Hmm okay alex
its working now but I still have to call it to mute
I'm trying MediaElementCommon.Instance.GetElement().Volume = 0;
 
10:37 AM
@RoelvanUden hello :)
 
Lol
TFS is in meltdown mode
RUN FOR THE HILLS
We let our build script run for an hour and cancelled it, attachments are totally broken
 
@Sippy restore from backup
you got backups, right?
Today's Awesome Factoid:
Gary Numan is 13 days older than Gary Oldman
 
Lol.
@Squiggle Fuck knows
We don't manage the TFS server
Capita does hahahaha
 
\o/
Well, then. Looks like you've got an impromptu "training day".
 
We're in code freeze preparing for a release lol
So it's not really ideal timing.
 
10:51 AM
d'oh
I'm implementing Asset management logic. I keep typing "ass"[tab-autocomplete]. ass ass ass ass
 
hi guys I'm have a survey questionnaire page where the answers are saved to localstorage (this is now including image questions). (its stored in localstorage in case of losing the page etc).

Now localstorage is only 10mb er domain, and they want to upload n number of high quality images now potentially.
any ideas on a solution
?
 
@MatthewFlynn not suitable for local storage. You could upload the images to the server, return a GUID and just store that guid in local storage?
 
yeah could do but what if they decide the reomove the image?
 
that way the local store will still be able to know which image they're referencing if state is lost
is space an issue? :)
 
they are storing the images as blobs in a db so adding removing shouldnt be an issue
I was just trying to keep it clean and submit in one hit
at the end
another option was for me to just store the file location from the image ocally
but then theres the issue if the idiots move the image
 
11:04 AM
@MatthewFlynn the only way to get around the 10MB storage is hacks involving subdomains, AFAIK :)
uploading images as you go is quite a nice solution because it means less waiting at the end
 
@Squiggle hahaha
as as as as as as
Is what mine would look like
 
cos I'm lazy yo
 
@Squiggle i suppose your right
 
@MatthewFlynn of course I'm right ;)
(seriously though, I could be wrong - and you're the only one here who really understands your requirements)
 
11:11 AM
@Slashy Hello :)
 
@Squiggle please let me know the steps for deploy application with EC2
I am reading the documentation
but if you help me then it will save my time
 
@vishuminhas ...srsly?
 
@Squiggle yes
 
So we have to sacrifice our time so you can save yours?
 
@vishuminhas Install software on an instance. Save the instance in a whatever-EC2-calls-it. Launch the instance.
 
11:21 AM
That's completely reasonable and not selfish at all. :P
 
@Squiggle ok
 
does each iis website has it's own app domain ?
 
and they can only have 1 at any time
 
11:25 AM
usually they only have 1 ?
if we don't change anything
 
That depends entirely on the configuration. By default, there may be more.
 
no where it mentions of creating more then one app domain
 
It's a bad diagram.
 
please show me a nice one :)
 
11:42 AM
 
Nitpick: Locality != Local realism
 
12:31 PM
happy friday! face, bitches
3
 
Just gave my PM an earful...(breathe in, breathe out)
@ton.yeung yeah, as a contractor
the "PM" is making it impossible for me to do the job
 
some PMs are total assholes
 
i mean, lets put it this way, I am doing his job constantly, he gives me half assed descriptions of what may be required and then scraps them and rewrites the whole thing, yet I'm expected to stick to deadlines...I don't need this shit, I can get other contracts
the problem is, the company is decent, they need this software to work and I don't want to leave them hanging, this guy is bad for both the company and me, so I'm trying to finish the work so they at least get what they've paid for
 
@SteveG This sentence confuses me.
 
;)
 
12:41 PM
@NicolásCarlo fluid requirements, fixed deadline. Always a recipe for disaster. What can be done?
 
woooo disastrooooo
 
@NicolásCarlo Go above him with evidence
And he won't be an issue for very long.
 
well I wrote a long description explaining how exactly this guy needs to give me requirements and that any change in requirements means change in deadlines...he goes "no we're not going to work like that, pfff, we're not a software company" (AYFKM?!??)
that's a real quote btw
 
kappa.
Tell him to get the fuck out.
In fact
Tell him to buy software instead of paying people to build it
 
12:44 PM
@Sippy I have a hunch it's military jargon
 
@KendallFrey Oo good hunch
 
@Sippy so that's what i'm thinking about doing, dude goes "out for beers with the CEO" so I'm not sure how much luck i'll have but I'm probably going to give it a try, been dealing with this for the last 6 months
 
@NicolásCarlo You'll tend to find money comes between friends fairly easily.
So, make no accusations but express concern for the state of the project, and base all your claims around money
 
wow OK
 
Make sure your evidence points generally towards the PM being a moron.
You don't just throw out accepted practice because you don't like it, how fucking thick can you be
 
12:46 PM
What projects has the PM done?
 
@Sippy oh, you would be surprised
 
While we're on it
Why the fuck am I still working here
This is exactly how my workplace works rofl
 
haha
 
@Sippy yeah I'm documenting everything, good point about money, haven't really made that part of the discussion at all but that's probably the most important one for the bosses anyway
 
Moneyz?
 
12:47 PM
LOL
 
Put the Money in the pocket walks out the door to the bar TGIF!
 
@NicolásCarlo As long as you come across as genuinely worried about the company and the project's success, you'll be fine
It sounds like you actually are.
:P
Rare trait for a contractor!
 
@NicolásCarlo I find heavy use of analogies when describing things can often make people understand software development better. "Wait, you want me to move the house 5ft to the left after we've already built half of it?"
^ @Sippy is on point today
 
lol if it weren't for the people genuinely trying to make their company processes better, i'm not sure i would that worried about the project...with this PM the effect is the exact opposite to "better"
@Squiggle haha, yeah they deal directly with construction but I tried that and was told "you can't compare REAL world development with software" ugh, exactly why am I still on this project!
 
hah
 
12:51 PM
but good advice, I'm going to add money and analogies (perhaps other than construction) to the document I'm writing and send it to the bosses, if it backfires their loss
 
thumbsup.jpg
 
@Squiggle \o/
@NicolásCarlo I love using "hours spent" figures, PMs tend not to realise how much each developer hour actually costs them lol
So when you build something for a month which needs to be rebuilt due to a spec change and takes another month
That's expensive.
 
yeah exactly, and boy do I have countless rebuilds of the same friggin thing
yeah i was thinking of using that to show them but not sure how much they'd understand code since its not "real world development" -_-
whats c-suite?
oh, nvm, i thought it was an application LOL
 

« first day (1826 days earlier)      last day (3121 days later) »