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

12:14 AM
@Global depends on the design
I'd say generally speaking though Users having its own class is always a good thing
just like you would with a database. You wouldn't put users data and chat messages in the same table
or if you did, you desperately need some professional help
I think it might be time to upgrade... constant CPU usage of 80%+ during heavy disk usage is getting old.
 
The functions is in their own cs file as well, and only have User variable in User file/class so,.. feels kinda.. useless... but still
That sucks... I bought this new Torshiba 3 weeks ago, just got it back from service >_<.
Sounds like someone is dying inside when the fan goes on,.. and that's about all the time.
 
12:35 AM
@Global hard to say without seeing some code
@Global ewww had that before. Is the CPU overheating or is the fan just noisy?
 
I guess so.. Have to read more :)
The CPU is about 40-50 C now, thats OK. But the fan is something I never heard before. Thought Torshiba were good stuff, apperently not.
Looking for every good reason to return it.. Good night man!
 
1:08 AM
I'm interested in learning about how to use IEnumerable<TResult> and also yield. I can't get this to compile.. and I want to turn this into a working example. What is a simple amendment I can make to the yield return line, or the header to get this to compile. I want to keep <TResult> there in the header.
public static IEnumerable<TResult> testYieldc()
{
yield return new TResult();

}
 
1:27 AM
ok i've figured it out..
public static IEnumerable<TResult> testYieldc<TResult>(TResult t)
{
yield return t;

}
 
1:48 AM
0
Q: Too many arguments to Public Sub New( ) error in vb.net

J.S.OMy application uses SecuGen Hamster IV Fingerprint scanner All of my code runs correctly except this line: m_FPM = New SGFingerPrintManager(device_name) my code: Imports SecuGen.FDxSDKPro.Windows Public Class Form1 Inherits System.Windows.Forms.Form Dim m_FPM As SGFing...

 
2:24 AM
hello friends\
 
 
4 hours later…
6:21 AM
>get to work
>realize forgot my laptop and on all my work on it
help me jesus
 
6:40 AM
Good morning, everyone.
@misha130 The holidays made you forget what work is, I see.
 
10 days of vacation has made me lose it
but it was nice ;)
 
6:55 AM
I only had Thursday off, really. And half days on Tuesday and Wednesday. But was still good.
Mostly because Tuesday and Wednesday were convention days.
 
convention days?
 
Olamot, the yearly scifi/fantasy convention in Pessach.
Sister-convention to ICon in Sukkot.
 
Hmm, I didnt even know we had those in Israel
Always wanted to go visit such things
 
Olamot's been happening every Passover since 2005. Icon since 1996 or 1997.
I try to give at least one talk in each. I'm also pretty closely related to the organizers.
 
I'll probably never have the courage to go to such things but looks neat
 
6:59 AM
Why not?
 
Just going to end up feeling out of place
 
They're fun, though a bit overflowing with sweaty teenagers.
In cosplay, often as not.
 
Yes...the sweaty teenagers...thats my main concern
 
They can be easily sidestepped, especially if you actually go into lectures and events and don't spend all your time outside.
 
what kind of lectures?
 
7:00 AM
Also, in ICon in the last couple of years there's an event in the first day for first-timers - one for teenagers, and a separate one for adults. "Finding yourself around the con" and meeting other people.
 
>Why do hobbits don't go to school
>Aliens in the arabic society
Well, I'll check it out if I don't forget it in sukkot
 
I'll probably mention it again closer to October, stressing over writing my lecture.
I already have a topic, so that's good.
 
whats your topic?
 
"The Man Who Fell To Earth: Science Fiction and Fantasy elements in the works of David Bowie"
I'm still recovering from his death in January.
 
I didnt even listen to his latest album and you are probably talking about that
Blackstar
 
7:04 AM
I haven't either - couldn't bring myself to, yet - but I will, by October.
I really should get back to blogging about dystopic elements in his songs, which is a series I've started a while back.
 
Thats actually pretty interesting
I always liked his approach to it at all like ziggy heroes and the whole space thing he had
and I think you are talking about heroes
 
7:34 AM
(to be honest I started to listen to david bowie now at work and teared up..)
 
7:55 AM
Hi Guys
 
This is what I have so far. I still have four more posts planned but not yet written. :-/
http://blog.strawjackal.org/2012/10/1094/
 
?
Hey Avner
I have a quick question may be you will be able to help?
 
ziggy not picturing a dystopian world?
I sort of disagree and I sort of associate glamor rock with dystopia
 
Generally speaking, etiquette in this room is
1) Don't ask if you can ask, just ask.
2) Don't ping specific people unless you know that it's their specialty or you've discussed it with them before.

In other words, just ask.
@misha130 It's more pre-apocalyptic than post-apocalyptic.
 
it feels like a band that was made in the fallout games for me atleast
mostly because the lyrics about their hair reminds me of the fist of the north star series
 
8:01 AM
When do u say a Blind SQl injection has passed on your website ... i mean when is it successful
when u get the data from the website that you should be getting?
 
@Edi0 I'm not sure what you're asking.
 
i have an application that is undergoing security testing ... and i see lot of stuff is getting inputted in my database like 5=5 '1=1
stuff we usually use for sql injection
 
Seems so, yes.
 
maybe the security test is just inputting it in to fields and seeing if he can break the fields
 
but the system doesn't revel any information .. it just stores them in database as these value are passed through textboxees which are to be saved in databse
 
8:05 AM
if the data is saved as 5=5 '1=1 then there is no sql injection I think
if the data has been saved as 5=5 and he inputted '1=1 then there would be sql injection
 
System is just storing what is entered into the form
with out any modification
 
It's hard to say without knowing your system. There's a good chance that if you see it in the DB, it means you're successfully sanitized the inputs, and treated them as inputs rather than executing them as code.
 
and the form is just a contact us form ...
nathing major
Also i am using store procedures to save into databse
 
So i wanted to ask you guys .... do you think there is any chance system is going to raise the flag
 
8:10 AM
So what's your question? Whether this can be considered a "success" in the sql injection test? If you're doing some formal penetration testing with a professional pen tester, they'll be the one to give the approval. If you're doing it yourself, you should probably have some sort of clear checklist for each test to determine pass/fail criteria.
But from the very little information we have, I'd say yes, probably, this aspect seems to pass.
"Yes, probably, maybe, for this specific aspect" - seldom were weaselier words spoke.
 
yeah it is being done with a professional tester
and i was just going through my database and found these entries so i thought of asking
Anyways thanks for the help
 
9:03 AM
hi guys
 
we are the only people here on a sunday and we have a decent reason to do so ;^)
 
9:20 AM
hi..
 
10:12 AM
Hello
 
11:12 AM
anyone ever use streams in js?
never mind, websockets is what i need
 
11:34 AM
Websockets are totally 2015. Long polling is back in trend now.
 
cool, basically an http request without a timeout
 
long polling is all we use
our queries are so slow, every ajax request is long polling
 
And web forms.
If the C# chat counted towards the visit counter I'd have had Fanatic like 3 times already
 
user47589
11:59 AM
webforms is love. webforms is life.
 
@Sippy That's not a repeatable badge, is it? I forget.
 
@AvnerShahar-Kashtan well nah but you get my point
It should be repeatable lol
 
I got the Mortarboard badger in SO yesterday, for hitting the repcap. First time I hit it in SO itself.
 
Is that a silver badge
 
Copper, I think.
 
12:08 PM
lo
l
 
Or bronze. Whatever. :)
I need to reenable my SOBadger script.
Despite the risks.
 
the whatnow
 
I had a browser script that replaced all occurences of "badge" in SO sites to "badger".
Much hilarity ensued. Bronze badger. Necromancer badger. Fanatic badger. Funfun.
But then someone over on RPG.SE, I think, had the script running when he was editing one of the site's FAQ pages. The script auto-replaced the word in the textbox, and when he clicked Save, it got saved into the site text itself.
The userscript evolved, jumping out of the browser and into the real world.
Badgers multiplying.
 
it's not the first time something like that has happened
 
Cool.
At some point during development I forgot to limit it to SE sites only, so I had it run in Wikipedia among other pages. Ran into all sorts of stuff.
 
12:18 PM
roffles
 
Lol
 
Anyone here played Rust?
 
Yeah
 
The inspiration was xkcd's old "leopard" script idea back in 2012:
 
I just started. My entire experience so far has been mostly being naked and dead.
 
12:20 PM
I wrote a similar script, but had it replace, not "keyboard", but "text" with the word leopard. It was quite intense, since it replaced a lot of my online content.
 
@AvnerShahar-Kashtan you heard of the clbuttic problem?
 
It also had bugs. My first version broke every site, because it replaced the content-type to "leopard/html".
@Squiggle Yeah.
 
Rust is not an easy game to play alone.
 
@Sippy tru, but I don't have any friends :(
 
Lol
If you get garry's mod I'll play prop hunt with you :P
 
12:23 PM
Barnes & Noble had it when they started releasing ebooks for the nook. Someone went and search/replaced the word "Kindle" to "Nook", just in case there was some boilerplate text like "Copyright for the Kindle edition" and so forth. You ended up with books containing sentences like "He nooked the candle".
> The reader was enjoying his $.99 version of War and Peace on his Barnes & Noble Nook when he came across the sentence, “It was as if a light had been Nookd in a carved and painted lantern….”
 
serves them right for reading lev tolstoy
that hack
 
ZABIVAT' VREMYA!
 
@Sippy I got garrys mod - never really played/used it. add me on steam? > squigfried
 
@Squiggle "There are no users that match your search"
 
oh hang on
I aways forget
 
12:40 PM
Added ^_^
 
oh my gawd
 
user47589
i never understood the point of garry's mod
 
it's a sandbox, with some neat game modes tacked on
 
what is it
 
It's a creator game
So .. GMod is basically a toolbox
Players make all the game types
 
12:47 PM
hm
 
Can someone help me why I get a NullReferenceException here?
if(TrainingsViewModel == null & TrainingsViewModel.Sets == null)
{
Debug.WriteLine("TrainingsViewModel or TrainingsViewModel.Sets is still null, app will crash");
}
int requiredUnits = 0;
// requiredUnits = dbManager.getLastPushupTraining().RequiredPushups;
requiredUnits = 18;
if (requiredUnits <= 20)
{
TrainingsViewModel.Sets.Add(new TextBlock() { Text = "AAA" });
 
oh
 
it isn't null
 
it could be
you have && instead of ||
 
user47589
yeah
 
user47589
12:49 PM
it should be ||
 
yep, it is null
but how can it be null, I already added a value when the viewmodel is created
oh no :D only in the designtime
ty got it
 
np
 
Hey guys, I am getting a 500 error
 
user47589
ok
 
@Spiderix from your own service?
 
12:51 PM
Sorry forgot link
 
500 isn't an error, it's a status code, saying there was an error, what is the actual error
and you should really use a newer ajax wrapper, something like jquery
 
Yea, I am making delete user using Ajax HTTPRequest
 
@Spiderix 1. Understand what a HTTP 500 status code means. 2. Enable debugging on your server and fix the error.
 
9522a83f-9536-4f53-a150-76d360ee5a9c:81 POST localhost:53938/Users/… 500 (Internal Server Error)deleteUser @ 9522a83f-9536-4f53-a150-76d360ee5a9c:81 that is the error
 
user47589
you need to debug the method on the server
 
12:53 PM
^
 
how does one do that?
 
500 just means "something on the server broke"
 
user47589
using a debugger is the usual way.
 
Run the project in debug mode in Visual Studio?
 
^
 
12:53 PM
^
 
user47589
^
 
^
 
I did that, didn't give any error because it didn't load it
 
Is it mvc or webapi?
 
but in chrome it gives the the thing I posted earlier
MVC
 
12:55 PM
so put a breakpoint on line 1 of the endpoint, hit the end point with your browser, and see what part is breaking and why, step through it
 
it was breaking on xmlhttp.send();
 
thats not on the server, thats on the client
and you shouldn't do ajax like that, you have a very fragile client side ajax implementation
 
and this was my script pastebin.com/0ECiSaWT
It is my first ever implementation of a post
 
user47589
you understand that that script is not the source of the error?
 
user47589
your error is occurring server-side.
 
12:56 PM
well, a 500 is clearly not a client side error.
 
hmmmmmmMmMmMMMMM
 
go to this method, @Url.Action("Delete", "Users"), on your controller
start the mvc app in debug mode, and put a break point on line 1 of that method
and then post again from the browser and see what happens
 
If you by any means has some code that throws an exception within the controller constructor, it will never reach the specified action though (unless you've handled it).
 
good point
and, when you find out what is causing your error and fix it, read this: api.jquery.com/jquery.post
 
Jake Weary called, he wanted his library back.
 
user47589
1:03 PM
should use jicamajs
 
lmfao
 
Well the Ajax does work and user is deleted, however I am not redirected to the login page
 
how are you trying to redirect
oh i see
/Gallery
 
Ah, made it work :)
just set location to /
Hey, can someone suggest a new feature for my Gallery, so far I can upload/delete images, set title, delete/register/edit users
 
1:31 PM
you could make it more robust, with better error handling, better ajax, and safer (what if a random person wanted to post to that delete url with a bunch of random ids? could they delete other peoples photos?)
little things like that aren't as fun as a 'visual' feature, but you'll learn a ton of stuff thats applicable in the real world
thats required in the real world
 
Hey, I have prevented others from using other peoples id with [Authorize]
 
user47589
a good first step.
 
I just wanted one more feature before focusing on all the security aspect
 
yes, authorize makes sure they're logged in, but how do you verify that the images they're deleting belong to them?
 
to start with I have not attached an image to a user
it is more like a everyone can delete
and everyone can add images
 
1:35 PM
well, theres a feature you can do
 
user47589
that... sounds like an important feature
 
any feature that is smaller
I cba putting more work into this
 
user47589
I'm sure you'll come up with something smaller.
 
well it is a school project and I did the minimal requirements
so now I am half assed about the rest tbh
 
school projects have minimal requirements, but, you should really go above and beyond and learn not to write fragile code, or when you get to your first job, you won't be used to it and your co-workers will always have to re-do your work, and lets be honest, its not any fun being that guy
 
user47589
1:38 PM
I can't say I enjoy working with people who do the minimum.
 
user47589
Take pride in your work. Make it the best you can.
 
Honestly web development is really not me
 
user47589
Fair enough.
 
it's a mindset, of thinking "how can this break", not specifically what medium you're writing for
 
I love programming in Java and making android apps but webpages really kill me
 
user47589
1:40 PM
I can totally understand that. I didn't want to get into web development either.
 
i still don't, but some how i always get sucked into JS projects
 
I mean only reason I am doing the ASP.NET MVC stuff is because it is mandatory
but yea, obviously if this was my job I wouldn't strive for the minimum
but I have 3 other projects and one of the projects we are 6 guys and only I and another are developing
so it is very limited how much my brain can take before it flips the table
 
user47589
When I was in college I wanted to do thick client development, not web stuff. But you take the jobs that are available.
 
Yea of course. I could have probably made this website a lot better if I didn't have other projects to complete
 
user47589
Keep your options open. Learn some of the tech, just in case. Besides, knowing any programming tech helps with other programming.
 
user47589
1:45 PM
Is this an end-of-semester project?
 
No, just a smaller project
had a similar project in PHP
but yea I did learn something it is just if I wasn't overwhelmed with many other projects I could have put more effort
but oh well summer is coming soon, then I will have time for some more private projects. Maybe I can kindle a bit of interest for web development
 
not saying you didn't put in effort, just suggesting if you're looking to add more features, i'd spend my time making my existing code more stable, you'll learn a lot
 
Really like the security aspect of it
 
user47589
make the same app for your phone, then remake in in a website form
 
I did enjoy PHP when I was working on it
ASP is pretty cool too but I feel like it does a lot for me
like Session handling and whatnot
 
user47589
1:51 PM
pretty much every web framework does.
 
So anyway, I was thinking to hide Gallery, User List and such from people who are not logged in. Someone mentioned something about rendering but not sure what they ment by it.
Sec, I will imgur what it looks like
Like here for example imgur.com/ZPrtzj2 I have Gallery, User List is it possible to hide them from people who are not logged in?
and without making roles
in PHP it was rather simple
 
user47589
you linked to a picture of some planes.
 
yes but on top?
it says Home, Gallery, User List
 
user47589
i see, it looked like part of imgur
 
haha
I guess ASP.NET steals their colours from Imgur :D
 
user47589
1:58 PM
.... uh, asp.net predates imgur.
 
but anyway I have this for example: <ul class="nav navbar-nav">
<li><a asp-controller="Home" asp-action="Index">Home</a></li>
<li><a asp-controller="Users" asp-action="UsersList">User List</a></li>
<li><a asp-controller="Gallery" asp-action="Gallery">Gallery</a></li>
so, what I would like is to hide Users and Gallery from people who are not logged in yet
not sure where to start with it
 
 
2 hours later…
user47589
 
user47589
some guy installed Windows 95 on an Apple Watch
 
more evidence that apple copied from microsoft
this is taking UWP to a whole new level
 
3:50 PM
Hi guys
 
4:03 PM
Arent you guys enjoying weekends
Apart from messing with code
 
4:20 PM
Sure. I spent the entire day playing computer games and watching Kung Fury.
 
4:32 PM
sounds fun
i just ate like 5,000 calories of burger king, and not one fuck was given
 
user47589
4:51 PM
i've spent the day watching The Office and drinking orange soda
 
Am I the only one who spent some time outside today? yikes.
Though I'd probably be in front of the computer if it weren't for the kids.
 
user47589
no no, I sat outside this morning on the laptop, watching the Office
 
5:07 PM
+1
 
Indoors the whole day. Weather has been uuuugly..
 
It was quite windy here as well. No rain, but cold when the clouds covered the sun
so we made a fire, and grilled some sausages
I have one of these babies in my garden: landmann.co.uk/outdoor-heating/ball-of-fire-firepit.html
Which game did you play @Squiggle?
 
kungfu fury is neat
ohhh its that time travelling movie with that david hasselhoff
not that movie with the kung fu fighting cow
 
@scheien TF2 and a bit of Rust
but mostly TF2 because I'm slightly addicted to that game
@misha130 you're thinking of Kung Pow: Enter The Fist
 
yes
 
5:21 PM
@Squiggle oh, yeah played a bit the first one, based on the hl1 engine. much fun :)
then I found cs, and that was very very addictive
I havent heard of Rust. What type of game is that? The site doesnt reveal much either
 
Does someone know where to get the api key after Publishing a mobile backend on azure?
 
@Squiggle: if you fancy adding me on steam, it's my name at linkedin with dots, and (a)gmail (or maybe it was battle.net that required an email address)
 
@MatthiasHerrmann in azure itself?
do you mean the AD applications key?
 
user47589
its hot today
 
I want to include bitcoinjs-lib to my cordova project where I already ise bitcore-lib. When I add it using npm, and reference it in index.js and try to access it using require I receive error message cannot find module. with reference that it is looking for bitcoinjs in bitcore. Would someone please help me?
 
5:31 PM
@misha130 I got it, you Need to download the Publishing Information to see it
 
I guess you meant something else, like the password for publish maybe?
@Marek did you add it to your modules?
 
@misha130 it is saying userPWD
 
yes so password for publish
azure has a bunch of literal API Keys for its services, so you'll get confused next time you google
 
@misha130 When I'm calling XXX.azurewebsites.net after clicking try it out, I get a prompt which is asking for a username and Password, where can i find that :(?
 
inside of visual studio?
or inside the publishing interface?
 
5:39 PM
@misha130 when I'm Debugging on local host I can try the api, the publish Profile is containing the Username
 
sorry mate I am having a hard time understanding you
 
I added my Microsoft account to the owners of the api, now I want to try to Access the api, there should be somewhere an api key which I cant find and when trying to Access "http://XXX.azurewebsites.net/help" there is a prompt asking me for username and Password and the publish Password and username isn't working and my Microsoft account Login Information either
@misha130
 
if you go to azure mobile services
there is manage keys
are those the ones you mean
in the old portal
@MatthiasHerrmann
Click the button and then copy either the primary or secondary key. Now, click the Try me button and when the username/password dialog is displayed, paste the key into the password field (leave the username field blank) and click OK. And voila you get to the service as shown in Figure 4.
tried it and it worked
 
@misha130 yea, I added both, O think bitcoore-lib already contains it, because when I call require bitjoin-js the error is raised in bitcore
 
@misha130 in the new Portal it is showing up as a mobile app
and in the old as a web app
 
5:54 PM
it should mobile service in the old...
anyhow take the API Key from your publish profile and put it in the password and leave the username blank
 

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