« first day (718 days earlier)      last day (3597 days later) » 

00:04
anyone here really familiar with firewalls and routing?
Not particularly, why?
So, yeah, extending that conversation on the value of named parameters, in C#... we could do something like this:
Work... I have about 7 networks I need to connect, and configure... and my one firewall rule is confounding me
But that last example then requires extra types to be created (unnecessarily), and now we have to instantiate one of these extra types just for the sake of passing an argument. And we're then actually back to the same problem I was mentioning earlier... where if the variable we're passing isn't so clearly named... how can I tell whether the overload that expects an RGB struct is being used or the one that expects the HSB struct?
Wondering if anybody setup a Git server for himself or his team and if so which protocol you went with?
Git or GitLab?
00:10
Git
git is not a server then, it is just a program you run on the far side of an ssh connection
not really a server
I have never heard of GitLab so I am not sure but Git server, is a sever you can set up to store your repos on the server you want and do everything you do with GitHub
Well that's what it's called. Any name you know which refers to the same thing and implying that it's called Git server setup but it's not really a server setup?
Git == git init
GitLab == personal GitHub
GitLab is a web-based Git repository manager with wiki and issue tracking features. GitLab is similar to GitHub, but GitLab has an open source version, unlike GitHub. It is available as Omnibus package, as a one-click install from Bitnami and on DigitalOcean. The software was written by Dmitriy Zaporozhets from Ukraine; the CEO, Sytse Sijbrandij is based in Utrecht. The code is written in Ruby. The company has nine salaried employees and more than 700 open source contributors. It is used by more than 100,000 organizations including Jülich Research Center, NASA, Alibaba, Invincea and O’Reilly Media...
Anybody setup a Git on the server? and if so what protocol you went with?
I would like to know why would you use GitLab and what would it have over a Git you put on a server?
Saying "...a Git you put on a server" is like saying "...a spreadsheet you put on a server".
git does not have issue tracking, wiki's etc.
00:17
I've put spreadsheets on servers...
What's wrong with that?
I am sorry I asked.
@Mehrad - I am not trying to irritate you here.
But... why does your issue tracking/wiki/etc., have to be managed by your source control...?
If you want something like Github, then install GitLab.
You can put just Git source control on a server so that multiple users on a local network can check in/out of the source control, right?
00:18
Yes, but that is like putting "excel" on your server.... everyone on the server can use it.
If all you want is just basic check in/check out stuff but want multiple users on a local network to use the same repo.
Yes, but if it's a local network...
and I am not getting irritated either. If you don't want to use GitHub (due to company policy constraints) and you like Git over Subversion and all, your choice (well one of them cuz I don't know allllll of them possibilities) you need Git on the Server to be able to do what you want instead of having a local repo on your harddrive
4 mins ago, by Mehrad
I would like to know why would you use GitLab and what would it have over a Git you put on a server?
GitLab gives you wikis, issue tracking, user permissions, tracking access rules, etc.
Git is a command on the commandline.
Not that argument again!
Jul 1 '14 at 17:33, by Simon André Forsberg
Anyone has experience with setting up git server on a Debian server?
So my question is, if you have done it you know what I am talking about so my actual question is which protocol you used
00:20
If you install Git on a server, your only remote option is effectively ssh.
if you install GitLab you have https,e tc.
You can use the "native" Git protocol, Git over SSH, or Git over HTTP.
meh....
@200_success Exactly. Sometimes I think most of people know what are you talking about but want you to say it they would. And I am too tired after 3 hours of sleep in the past 24 hours to do so
10 mins ago, by Mehrad
I have never heard of GitLab so I am not sure but Git server, is a sever you can set up to store your repos on the server you want and do everything you do with GitHub
You will not get that with git ^^^^ - git is a small part of that
Man... I hate having to figure out source control stuff. It's important, and I know how to use it (just barely) as an end user that just pushes/pulls/commits/etc., but the rest of it... I barely know where to start.
00:23
git-daemon(1) is a "Git server". It's not full-featured like GitLab or GitHub, but it is a Git server.
I am wrong about only being able to use ssh to get ^^^^
that.
@rolfl Git gives you HTTP and so an so options as well
but, if "you want everything you get with GitHub" then you want GitLab.
Creating multiple threads doesn't guarantee your CPU will actually use multiple cores, right...?
No matter how many cores you have, the user could have 20 different applications open each doing their own things...
And OS decides your app only gets to use one core.
The OS seldom works like that, but it could happen that way, yes
You will also be able to set the affinity manually
00:25
@Mehrad i'm assuming you've already seen git-scm.com/book/en/v2/Git-on-the-Server-The-Protocols but just in case
(probably on OSX, you can on Linux and Windows)
I'm just saying, it's no guarantee that your app will be using multiple cores.
> So I started to think maybe I could split the total number of objects out to each core (my computer has 8).
-1
Q: Processing 2 Sketch

David CoolI'm working on a processing sketch here. Main sketch: /* polyhedrons 3 david cool http://davidcool.com http://generactive.net http://mystic.codes April, 2015 based on: Spherical Coordinates Tutorial File April, 2008 [email protected] */ //import processing.opengl.*; // not needed for proces...

not a guarantee
@mjolka I am staring at that page for the past couple of days. and now that I made my choice want to know what others went with to see it from other angles
But individual cores can work on multiple processes at the same time anyway, right?
00:26
not at the same time, no
time-sliced, yes
I mean... ultimately, as a programmer, especially in a higher level language, you just need to put work on as many threads as make sense, and let the processor figure out how best to process all the work.
cores with 'hyper-threading' can do it, with a loose definition of "at the same time".
Yes, that makes sense.
Like, no iOS device has more than 2 cores. (I don't know if any have just 1... probably not?)... but I've got no problem spawning 15 different threads...
The more you enable parallel execution in your program the more likely yoyu will process things in parallel. You add overhead execution time (normally a small amount) to your individual thread's latency, but you more than make up for it in parallel execution.
@mjolka afaik you use GitHub and the VS git integration, is that right?
00:29
@Mehrad i use GitHub and git from the command line
@mjolka You access a repo on GitHub using command line or a personal Git sertup
command line
Repo on command line
i'm confused :)
me too :)
00:32
You guys are just saying words.
@mjolka I guess you meant you use GitHub and you access it through Git command line
I thought you meant two different methods you use
@Mehrad we have a private repo hosted on github. i use git via the command line, not the Visual Studio integration
Like saying I use GitHub and Subversion on a local server :)
@mjolka not confused anymore. cheers
@Mehrad cool, i see now that my original answer was confusing
Our company for some reason has this policy that his data can't reside in a non our company type of storage
so no dropbox no github and all
00:34
That's completely understandable, by the way.
Especially if you're a software company.
@Mehrad i think your best bet then is, as rolfl said, to host your own installation of gitlab. last time i used it, it was still rough around the edges, but it's a good tool
We got some massive servers here which makes it easy to cope with but as this one I need to setup something. Years ago I setup Subversion but want to switch to git as I enjoyed using it through VS
You can use Subversion through Visual Studio. It's what we use at my work.
And your server doesn't really have to be that beefy to handle a source code repository...
@nhgrif I don't think I said anything against it. I just enjoyed Git better and this is C++ compiler for MSP430 so need to version control it
We've got a pretty lame development server, and it has like 8 databases on it, plus a subversion repository tracking a 1.7million LOC application.
00:39
@mjolka I had couple of experiences of using open source tools and them getting ditched. Might be wrong but I doubt Git development would be ditched anytime soon but more risk on a 9 people code.
And we have a 3 electrical engineers and it's not like a 50 people team. I bet Git could handle it :)
Man... selfish people can be extraordinarily annoying...
01:14
I wish I had more downvotes.
I wish you were allowed up to 3 downvotes on anything marked as a self-answer.
@nhgrif Is it a selfie-accepted, with the presence of other good answers?
Yes.
-2
A: upgrade to swift 1.2 : String? is not convertible to 'stringliteralconvertible' cannot assign to immutable value of type String?

user2867432The following fixed it. Change: let photo = photos.firstObject as? NSDictionary to let photo = photos.firstObject as! NSDictionary

It needs a truckload of downvotes.
Answer alone, the number of downvotes are acceptable.
The fact that I've explained in comments why the answer deserves the downvotes and the user just argued with me (with no sort of rational defense) and then just now marked his own answer accepted is what makes me feel the need to give it about 30 downvotes.
the other answer can take an upvote (I'm only upvoter).
At least his answer is grayed out now. Never seen a grayed out accepted answer before.
@nhgrif Neither have I. I applied a downvote as well, after reading through the comments
You should consider rewriting get_URL_from_request() from scratch. It is much more complex than it needs to be and has major bugs. For example it allocates with strdup() but never frees. It iterates over 'copy' which starts 4 bytes on from 'request', yet the loop iterates strlen(request) times, so you are accessing beyond the end of the request string. It also returns URL which was populated using memcpy so is not necessarily a 0-terminated string, yet you use it as if it were. There are a lot of bugs here. I think you need to do a careful code review before you go further. — jarmod 39 secs ago
@sᴉɔuɐɹɥԀ Not something you see everyday, also applied a downvote
01:29
> Any input would be greatly appreciated.
^ Right.
Please check out the edits here: codereview.stackexchange.com/questions/87572/…
I'm in bed.
No man, It should be callable via http/https. It the best compatible method. If you want to directly call a script, your best bet is pcntl_fork. btw, this may help: codereview.stackexchange.com/questions/22919/…DQM 43 secs ago
0
Q: Manage Connection Without 'using' statement

reptildaratI try to replace this common statement: using (var connection = new MySqlConnection(connectionString)) { connection.Open(); // Do work here; connection closed on following line. } With this connection manager class that I made: public class ConnectionBase : IConnectionBase { pri...

02:05
0
Q: unit testing IValueConverter

dub styleeI am just starting to implement Unit Testing into my project and familiarizing myself with NUnit. I have added unit tests for encryption/decryption methods that I have implemented, and am looking for more things to start testing for in my existing code before moving forward. The most basic clas...

Welcome to Stack Overflow! FYI, if you're learning Java, you might want to check out Code Review where you can get lots of tips for improvement. — Nate Barbettini 30 secs ago
02:34
Activity
02:48
Where?
03:00
0
Q: Basic physics simulation

Ethan BierleinI've been fooling around in JavaScript again, and I've come up with this simple physics simulation. I think it has a pretty simple setup, here's "psuedocode" of sorts to explain it. Constructor PhysicsEntity Private method _calculateForces - Calculates forces to be applied. Private method _app...

03:38
SO got their mods.
Two of my votes made it, the other guy I don't think will make that great of a mod.
Not saying who, what, why, when, where, or how...
@nhgrif ^^^^ and vvvv
user image
2
Yup.
I just tried it too - just T Swift.
Apparently Apple Swift isn't worth being considered.
Swift > Taylor Swift
Yeah, I don't like T Swift.
03:51
Hello, would you try to ask on codereview instead? — User2012384 45 secs ago
-2
Q: Whether a nuber is divsible by 3 or not

user70934I was asked to write a program to check whether the inserted number is divisible by three or not in assembly language

@User2012384 - why would Code Review be a good place to ask? — rolfl 19 secs ago
@rolfl ^^
03:52
I'm feeling like saying "Good luck!", but I'm not going to.
@rolfl Write a program to do that.
Jamal got it.
He's quick that one.... ^^^
He's a smooth jamalinal
#badprogramming
I can't find the error preventing me from using header('location:index.php'), so I just echo a <script>window.location = 'index.php'</script> instead
add a space after the colon?
Nope, apparently it has something to do with white space in my files or something
10
Q: PHP Header redirect not working

Drewinclude('header.php'); $name = $_POST['name']; $score = $_POST['score']; $dept = $_POST['dept']; $MyDB->prep("INSERT INTO demo (`id`,`name`,`score`,`dept`, `date`) VALUES ('','$name','$score','$dept','$date')"); // Bind a value to our :id hook // Produces: SELECT * FROM demo_table WHERE id = '2...

 
1 hour later…
05:10
This is probably a better fit for Code Review. — royhowie 30 secs ago
@royhowie No, it will be closed if it is posted on Code Review because it is not working properly. — Hosch250 47 secs ago
It isn't my question, and I am a regular at Code Review, and I believe this question is off topic because the calculations are not working as expected. Code Review is for improving working code - it won't help anyone if we make his code be wrong better. — Hosch250 45 secs ago
05:39
This should probably be posted to codereview.stackexchange.com. Personally, I'd use std::bitset instead of std::vector<bool>. The prototype for the argument should be const char*, not char*, and you'll crash and burn if there is a character outside of the low ascii range. If you're going to use bools, use bools; !boolvec[i] is clearer then (boolvec[i] == false). — rici 15 secs ago
 
1 hour later…
06:43
Monking
monkin
Fun fun fun today, waiting for the development/test server to come online
 
1 hour later…
07:50
0
Q: yet another graph search

ToadfishSo, I noticed there were already countless implementations of graphsearch procedured on here, but there were a couple of features of my approach that I haven't seen in the others, plus I would greatly appreciate some experienced eyes on my code (My university is pretty miserly with constructive c...

08:47
SO is about specific Q&A. We're not a code review service. You probably should post this on the SO sister site, codereview.stackexchange.com. — Enigmativity 52 secs ago
09:15
This question belongs on another site in the Stack Exchange network: codereview.stackexchange.comSatpal 22 secs ago
This should be on the Codereview site, but I would turn that IF into a Turnary if and i'd turn that $('.subjectOpen') into a var — Josh Stevenson just now
09:35
0
Q: My jQuery Toggles a Panel and the Clicker Text, But My 'Efficient' Version Won't Work

emerfanI have written some jQuery (with much help from Stack Overflow!) that slides open a panel on click, and changes the toggles of the clickable bit from 'Show All' to 'Hide All'. It works, but I'm trying to figure out what would be the most efficient way to do it, as it seems kind of long to me, an...

09:50
0
Q: D3.js interpolating line on circumference of circle

tejesh95For now, I've tried to make a line rotate on path of circle but used setInterval multiple times which is bad I guess. Would like your thoughts before I add two more circles just like in this webpage http://jackschaedler.github.io/circles-sines-signals/ <script> var width = 300; var height = ...

10:04
0
Q: Filter to block duplicate POST submission on server side

AldianI am working on a JSF 1.1 webapp. Lots of POST request take some time and users have the bad habit of clicking again when it takes too long. I am planning to target all the long running processes and add an overlay to prevent this, but it will take some time. Before it is finished, I am asked to ...

0
Q: Python mnemonic <==> hex conversion (Bitcoin BIP39)

Wizard Of OzzieFollowing up from the fantastic feedback re pbkdf2 code... I'm looking for commentary on the following code, which converts from a hex seed to mnemonic (12 word phrase), and vice versa. It's for Bitcoin (BIP39 to be exact), and is going to be running in conjunction with pybitcointools, however I...

10:22
0
Q: MVC'd login form

user2909036I've written this small MVC login application as an example for someone, would anyone let me know what they think of it? index include("login_view.php"); include("login_model.php"); include("login_controller.php"); Login_view::show_login_form(); $Login_controller = new Login_controller(); $Log...

Is that a graph of how widespread Internet Explorer usage is?
I do agree that Swift is poorly named. Could be worse though. The language could been called "Go".
Oh, It's just an interesting stat..... like yours. Yours is a chart about how much extra you have to pay people to put up with the apple crap, and the Javascript crap
Which is why PHP is on the bottom, right?
10:35
No, PHP is at the bottom because of other reasons.... but, for a moment, just to be serious .....
In fairness, I definitely don't think Objective-C is the "prettiest" language. Not compared to like C#, Java, Swift (these are what I prefer my programming languages to look like), but... seriously, is PHP pretty than Objective-C?
I've never seen pretty looking PHP.
ObjectiveC is at the top because i is a complete-environment.
Elaborate?
An 'Objective C "person" is not just a code jockey
A person who is "just" Javascript, is relatively useless... they have to be HTML, CSS, some backend, etc.
When you have a 'full stack' dev, like "node.js", then it gets more competitive, and higher valued.
What differentiates Objective-C from C# in this regard?
Supply & demand is my thought, but you think other factors?
10:38
Supply and demand is exactly it.
Okay.
Because people say "ew, square brackets" and don't realize, at the end of the day, you're doing pretty much the exact same thing.
Despite a high level of demand created by the iOS explosion (relative to OSX's market share of desktop OSes)
What I am saying is that the supply of Objective C folk is constrained by the fact that "Objective C" describes a full-stack person (to an extent, C# does as well)
Now, a Java/Android person will get paid more than a "Java" person.
What impact do you think Swift will have?
Objective-C/Swift person will almost certainly always be paid more than anyone who only knows one.
And I think for a long while Objective-C will tend to pay more than Swift.
Meh.... those arguments are moot.
Would I get paid more if I knew Swift? No.
I am a "Java" person, but that chart means nothing to me.
hat's the point I am trying to make. Trying to peg a person's "worth" based on their language of choice, is like picking a sports team based on their cheerleaders.
bbiaf
10:44
f -> ferrari?
My hopes for a "swifter" generation of apple folk are diminishing: codereview.stackexchange.com/posts/87572/revisions
Time to feed my face
11:03
Thanks for fixing that. I forgot to double check it this morning.
You should try the codereview stackexchange site, it is more up to these kind of questions. — Bhargav 19 secs ago
@Bhargav Explanations of code are off-topic for Code Review. Please read their help center before making recommendations. Furthermore, if you feel this question is not a good fit for Stack Overflow, consider explaining why and make recommendations that could make this question a better fit. — nhgrif 10 secs ago
I understand that language alone doesn't dictate pay. I'm sure the Android devs are generally paid the same as the iOS devs at the place I'm going to.
And of course, that chart doesn't apply to anyone who is already a professional developer. But if you're a student, it might be a good idea to at least look at charts like that.
Even if you don't go for Objective-C specifically, the chart gives you a clue about what's in demand.
And picking anything on the list as your primary language would probably be better than picking anything off the list if your goal is to be a professional programmer.
And I say that noting that Swift isn't on that list. It's too early for Swift to be anyone's primary (only) language, but that's not stopping people...
At this point in time, if you know nothing at all about programming and what to be an iOS dev, it'd be a mistake to pick Swift over Objective-C. In a year or two or five, maybe not so much.
My bad, I need to go read their faq more properly now. — Bhargav 5 mins ago
@milos perhaps you would like to join us in chat? — nhgrif 19 secs ago
@rolfl ^
11:19
8 mins ago, by nhgrif
Even if you don't go for Objective-C specifically, the chart gives you a clue about what's in demand.
^^^ Actuarial Scientists get paid lots, they m ust be in demand?
The relationship between pay, and demand, is tenuous.
Doctors get paid more, in large part because their skills cost a lot more to acquire.
And why is that?
The same could be said about ObjectiveC folk... by the time they have invested the time and money to become 'qualified', they need ot be paid more just to break even.... ObjectiveC is harder and more expensive to become proficient in.
Is it?
It may be demaind, but it also may be supply
Compared to what?
11:22
Exactly
that chart compares nothing to nothing.
It's obviously both supply & demand though... Either supply or demand is kind of a useless statistic.
trying to draw any conclusion from that chart is completely pointless.
By itself
I'm not drawing a conclusion. I'm just bragging.
Yes, and what you claim is an 'in demand' language, I claim to be 'insufficiently accessible'.
That guy you rolled back may come to chat.
11:24
Have you seen how much COBOL programmers get paid?
No, but I know it's a lot.
Must be a great language, according to you.
where did I make that point?
2 mins ago, by nhgrif
I'm not drawing a conclusion. I'm just bragging.
I didn't say though that the chart indicated anything about the quality of the language. There's another chart in the survey for that.
this started with a screenshot from you about Google autocomplete objective-c == ugly
And I responded with that chart objective-c == well paid
Perhaps in part because of those supposedly ugly square brackets that turn people off
But regardless, I never argued (today) that objective-c is a great language or tried tying average salaries to the quality of the language.
11:29
It's just normal for you to be apple-raving, so I just assumed ;-)
hi guys :)
Hello @milos
you have a cozy room here
It's the warmpth from the 2nd monitor (I have a CRT ... kidding)
:)
please don't let me interrupt your chat (thanks for the invite)
11:32
I never actually fully read the edits btw @rolfl I just saw a big edit from my phone last night
yeah, I thought that may be the case
thanks for the answer and the comments, btw
I wanted to clarify the question in the light of your comments
milos, your edits introduced additional code... and all code is reviewable in Code Review.
as a consequence, you changed your question... after it was answered.
yes, it did introduce new code
Additionally, your question was auto-flagged, which brought it to my attention.
(edited more than 10 times by the asker).
but the code is simply showing example of use of the code above
11:35
Didn't you already have example usage in the question?
ah, I didn't know about that flag
partial example
did not explicitly talk about managing the thing within the project
Right, but if you talk about managing it, that's a whole different question.
which was the point of confusion in discussion with @nhgrif
I am not a swift expert, so my assessment of the edits may be wrong, which means we can fix things and move on, but I suspect I am right that a follow-on question would be more appropriate anyway
I don't mind doing it either way
but do believe any readers will benefit from the edits
they make the question clearer (not different)
11:38
Essentially... My answer assumes your code is used as-is. Your edits seem to suggest that they are used in some managed ecosystem. If they are never used outside the managed ecosystem, basically all of my points are sort of invalid, right?
You would "clarify" your question to the point of invalidating most, if not all, of my answer (or at least that sort of seems to be the basic intent)
My edits simply make clear that the whole point of the proposed API is to have the string key written only once in the life of the app.
If the question needs 8 edits over 11 hours after it is answered, to clarify it, then it strikes me that the original question was unclear.
It didn't seem unclear when I answered it...
Well, that's sort of my point....
the question changed over those edits
When I took the hour so to read, understand, suggest edits, and explain my suggestions
Yes
11:41
ah you write too quickly guys... i'm slow typist
I have many years experie ce with hen-pecking and typos.....
Anyway, @milos - while it may not appear to be the case, questions on Code Review are expected to contain code that is ugly, and questions are a hodgepodge.
I'm in a phone...
As for the answer: I personally do not agree with it though I really appreciate the time that went into it (just as I invested time into my edits). I was editing my question in response to the comments.
if the code and questions are perfect, then a code review request would be unlikely
As a site, we expect that, and encourage people to accept that.
good point
sure
11:44
then, to improve their questions, instead of making answers look wrong, by changing the question, we ask that new questions are asked instead...
the issue here is only with the nature of my edits, which did not change the nature of the question at all i think
It is commonly the case that a moment of 'clarity', brought on by an answer, inspires the person to do things differently, or understand things differently
@milos for this specific case... For your question, I dont think you can convince me to budge on my stance, however... If the protocols and classss in your question were made to be private nested classes in a class that managed their use I might be convinced of your approach.
But you presented unnested, non-private classes.
oh I do not which to convince you, @nhgrif
Also, @milos - in this specific case, my domain knowledge is a fraction of what nhgrif's is, so I will tend to side with him, and his experience here.
11:46
I think both stances should be available to others to consider
Post a new question.
ok
Focus the review request on the management ecosystem.
(In the new question)
i think i'll first have to recover from this experience, though. it is a difficult thing having your work deleted
Believe me, we can always use more Swift/Objective-C questions here.
11:48
i'm sorry i was so stubborn
i'll leave you now to your chat and hope to meet you again in one of the exchanges...
Meh, we take pride in breaking people of their stubbornness.... I will eventually even get @nhgrif to admit apple is not perfect.
But perhaps, try to be certain that your first version of the question is highly likely to be the last version (of that question) ( not counting @Jamal's edits)
Yes that's not something I ever considered
Also, it is traditional, when doing follow-ons, to link from the old question to the follow-on, and accept an answer
I never said Apple is perfect.
11:50
i was using the webpage's editor to make all edits...
See? I did it!!!
no but Apple is perfect
too perfect!
like perfect little prison
apparently, with golden hand-cuffs ';-)
At the end of the day, @milos, the real take away from my answer, no matter what you do, avoid writing code that can crash and instead write code that if it fails, it fails in a recoverable way.

« first day (718 days earlier)      last day (3597 days later) »