« first day (2024 days earlier)      last day (2923 days later) » 

10:00 PM
that's happiness
 
user47589
i'm glad you're happy.
 
are you happy?
 
user47589
Yeppers.
 
@Amy do you know C# using MVVM?
 
@Antoine still here xD
 
10:07 PM
@MatthiasHerrmann yes, grinding
 
user47589
nope
 
don't have the knowledge to put it workng
 
@Antoine just add your normal viewmodel in the xaml page.resources
give your viewmodel the page as a parameter
 
i'm using the Rachel Lim approach
adding view models
Can I do it that way as well?
 
create a new object for your afterauthentication viewmodel, add it to the page.resources
then Change the datacontext and here you go, your new viewmodel
 
10:10 PM
I have the object named
AuthenticatedUser
MainViewModel mvm = new MainViewModel(au);
?
 
no
just use some Code behind your mainpage.xaml.cs (just for understanding reasons)
:
MainViewmodel mvm = (MainViewModel)Page.DataContext;
add a method to your mainviewmodel like this:
public void createNewViewModel(Mainpage mainpage){}
call it from mainpage.xaml.cs: mvm.createNewViewModel(this);
@Antoine do you want to do page Navigation, thought you want to Change the same page?
viewmodel of the same page^^
 
its better to explain the arquitecture of my app
give me one min to draw in paint :D
 
Hello
i use java
 
@Antoine Why don't you use his example Project, if you want to implement the mvvm pattern like this mediafire.com/download/21g3er1ant6m99a/…
@LiquidPenguin and?
Java suckz?
 
10:18 PM
watches MS fanatics selfcombusting
Happy Easter guys
 
user47589
if you came in here to troll, just leave.
 
if you celebrate that is
 
I'm using that
But I need to pass variables
 
@Antoine LoginView and GeneralView are 2 different xaml pages?
 
yes
everything are different xaml pages
I want to do somekind of skype.
 
10:20 PM
@Antoine Your issue is simular to implementing a hamburger menue with page navigation
 
With authentication in the login. And then go to the generalview that opens immediately the friends I have "online"
@MatthiasHerrmann ahhaaha yes kinda
 
@Antoine you Need to create a page like Shall.xaml and nest the Frame in it
 
I've already managed to do the navigation
Using this :
Command="{Binding DataContext.SelectViewCommand, ElementName=MainWindowView}"
CommandParameter="LoginViewModel"
 
You can for example do something like this:
 
in this case I go back from a recovery page to the loginPage
 
10:23 PM
Create a new page called Shall
go to app.xaml.cs
shell = Window.Current.Content as Shell;
Frame rootFrame = null;

if (shell == null)
{
    shell = new Shell();

    if (rootFrame == null)
    {
        rootFrame = new Frame();
        rootFrame.Language = Windows.Globalization.ApplicationLanguages.Languages[0];

        rootFrame.NavigationFailed += OnNavigationFailed;

        if (e.PreviousExecutionState == ApplicationExecutionState.Terminated)
        {
        }
    }

    shell.DataContext = rootFrame;

    Window.Current.Content = shell;
 
Where I create that page and what is the outcome? Passing classes?
 
w8 I give my idea a try in vs
 
I put this approach: GeneralViewModel generalViewModel = new GeneralViewModel(auth); and pass an AuthenticationUser
but nothing happens and the view Model doesnt change
 
@Antoine got it in a sec
@Antoine you Need a page called Shell.xaml
In app.xaml.cs your OnLaunched Code should be:
Frame rootFrame = Window.Current.Content as Frame;

            // Do not repeat app initialization when the Window already has content,
            // just ensure that the window is active
            if (rootFrame == null)
            {
                // Create a Frame to act as the navigation context and navigate to the first page
                rootFrame = new Frame();

                rootFrame.NavigationFailed += OnNavigationFailed;

                if (e.PreviousExecutionState == ApplicationExecutionState.Terminated)
 
Sie
10:43 PM
So I'm trying to make a Data Logger/Reading application (full disc.: it's homework (surprise!)) however the dumbest thing is holding me back. I cannot seem to add to an int. I defined it, and then do "limit = limit + 1;" to add to it. It all always equals one which leads me to the conclusion that the value is being destroyed, re-created, and then added to which is why it keeps giving me the same value (1). How can I solve this?
The code in full context: pastebin.com/s3ejWSiA
 
Should I create a new page ?
 
@Antoine
yep
then delete Mainpage.xaml
after that
 
but without content?
But I have code in the MainPageViewModel :O
and Xaml as well :/
 
Create a new test application xD
 
too many errors. Window doesnt have a definition of current
invalid token in the == null
 
10:50 PM
@Antoine you mean uwp in sense of Windows 10 uwp?
 
I'm in windows 8
8.1*
 
fucking backbone
you son of a bitch
pick up god damned scroll events or i'm going to fuck your mother
 
@Antoine that explains many Things xD
 
@SteveG Steven behave.
 
10:52 PM
@MatthiasHerrmann I'm using MVVM
 
you have no idea how annoying this is
 
xD Now I'm done xD
 
and XAML + WPF
@MatthiasHerrmann this is the implementation I have
 
i mean how hard should it be to attach a scroll listener to a div
it's fucking barney stupid
 
I get the feeling you're doing it wrong.
 
10:54 PM
@Antoine Sry I'm to tired now, I tried to help you for 1h and now I know nothing is working because you are developing for Windows 8 and not for Windows 10 uwp
:D
 
i've tried it like 20 different ways
 
with the viewmodels working. I want to pass info to the other viewmodel after making (in the LoginViewModel) a webservice query
 
Sie
@Steve Same boat. I feel like a retard because I can't add 1 to a damned int. lol
 
int i = 0;
 
@Sippy it's backbone events and delegation that throws everything off
 
10:55 PM
@MatthiasHerrmann sorry man :/ thanks for your time anyway
 
and how the page is structured
 
string sqlQuery = "SELECT name, title, text, date FROM lb WHERE @column = @search ";
 
Sie
@MatthiasHerrmann Doesn't make a difference. Still stays the same. I think it's some how getting destroyed and then getting recreated.
 
How can I change so it search IN the column, not 1 = 1
I managed to do it without the parameters, but not with.
 
user47589
@Global you can't use SQL parameters in place of column names, only values
 
10:57 PM
It's an object that holds combobox + textbox
column = combobox
 
i hate backbone more than anything
give me trump for president
ban backbone
 
user47589
i'd rather give you death than trump
 
@Amy Any clue?
 
user47589
because thats the kind of friend i am
 
The problem before were the " " , but that was with variables.
 
10:59 PM
@Sie Wtf are you doing
 
Sie
@Amy Not possible. Trump is death so you'd still be giving him death.
 
self.tableView.$el.find('.table-holder').on('scroll', function () {
console.log('scrolling from tab view');
});

self.tableView.$el.find('.table-holder').scroll( function () {
console.log('scrolling from tab view');
});

tried bind too, i don't get it
 
your program is like:
limit = 0 -> limit = 1 -> new List -> some Random int value
that is all what it is doing
@Sie so what do you want to achieve?
it isn't even looping
if (limit <= 10) is always true because you get to the if condition only 1x
 
Sie
@MatthiasHerrmann Making a program that is meant to write 10 lines and after that erase that list and do it again. Here is the Main, and here is the method being called. Essentially it's job is to create a never ending list that is overwritten every second.
 
infinite Loop?
 
Sie
11:03 PM
More or less. Then I need to write a toggle-able function that takes a snapshot of the list and sorts it every 15 seconds but that is a separate issue.
This is home work for the sake of disclosure.
I'm an idiot. On button click I'm recreating the variable and that is why it is never changing. God damn it.
 
What is the random value for?
you are creating a random value which is never used
Random rnd = new Random();


25.                int rndINT = rnd.Next(1, 10);
 
Sie
I need to implement that still. The assignment is to generate a random value between 1-10 10 times and then take a snapshot of the data every 15 seconds and sort them from smallest to largest and then display it.
 
Anyone at all?
 
@Sie
  static void Main(string[] args)
        {
            List<int> MetricValueGenerated = new List<int>();
            Random rnd = new Random();
            for (int i = 0; i<=10; i++)
            {
                Console.WriteLine(rnd.Next(1, 10));
            }
            Console.ReadLine();
        }
 
Sie
Thanks.
 
11:10 PM
string sqlQuery = "SELECT name, title, text, date FROM lb WHERE '" + column + "' LIKE '" + search + "'"; Is working.
But Now I want to use the parameters @column and @search.
 
Is someone using his Monitor vertically for coding?
 
Sie
@MatthiasHerrmann My secondary monitor is a square lol. I still use an old spare VGA monitor for dual screens. I need to get a new monitor eventually or set of them.
 
user47589
11:36 PM
@MatthiasHerrmann i use one monitor vertically and a second horizontally at work. its fabulous for coding
 
@Squiggle shouldn't you be in bed
 
user47589
@Sippy shouldn't you be in the sea?
 
you trippin
 
user47589
me trippin?
 
yes
you should be careful, ponies get put down when they start trippin.
 
user47589
11:42 PM
good thing i'm not trippin.
 
user47589
you should still be in the sea.
 
My laptop never works when I'm in the sea
dunno why
 
user47589
hm
 

« first day (2024 days earlier)      last day (2923 days later) »