« first day (423 days earlier)      last day (3587 days later) » 

9:08 AM
0
Q: How to optimize the reach of on-line users?

user47413I am looking for the best way to advertise an on-line plateform. Facebook, twitter, linkedIn, these are common ways to get known but does somebody knows another one?

 
@Vogel612 it's defined and makes perfect sense when you consider how type conversions work. The objects get converted to strings under sensible rules, and the strings get converted to numbers under sensible rules. So what if a nonsense expression like {} + {} gives (what appears to be) a nonsense result?
 
Heya @everyone
 
hey @kleinfreund
@DaggNabbit well.. didn't have to work with JS that much yet , so I wouldn't know ;9
 
Someone got an idea?
0
Q: gulp-watch is not updating edited files after it runs once

kleinfreundWhile setting up my gulpfile.js I replaced gulp.watch with gulp-watch (the plugin!). When I do gulp, the task runs fine. However editing files doesn't regenerate the files. What is going wrong? command line output: $ gulp [09:24:28] Using gulpfile c:\Users\User\_dev\github\project\gulpfile.js ...

 
On SO => You've earned the "Unsung Hero" badge (Zero score accepted answers: more than 10 and 25% of total).
4
 
9:21 AM
Monking
Where's @SimonAndréForsberg? Oh asleep.
 
monking @skiwi
 
Judt kidding ^
 
and @kleinfreund
@kleinfreund sorry, don't even heard of gulp
 
@chillworld, do you have any clue how hard it is for the web server team to redirect charset=utf-8 to the UTF- charset?
Currently a server only accepts charset=UTF-8 and they refuse to change it
 
@kleinfreund granted there are some very nice dynamically typed languages that simply don't allow silly conversions like that, but I've never seen this kind of thing matter in real-world cases
 
9:23 AM
And so does my implementation/library unfortunately
 
uhh why did that ping kleinfrund
 
@skiwi No I don't, webserver is not mine problem here. (but I can ask around if you like ;) )
 
oh well
 
any c++ guys on?
 
9:27 AM
@JerryCoffin @Yuushi Seems that you are needed.
 
shh don't wake them up xD
i need them to be in a good mood
 
@Morwenn and what about yourself??
 
@DaggNabbit Then you can propose them some coffee :p
 
CoffeePal?
 
@chillworld I've just sent another internal mail, so holdin gonto that one
 
9:29 AM
@Vogel612 I tend to write nonsensical things when I try to help people in chat :/
 
guys, in visual studio you could create fields that you could colapse, how was that done and can you do this in java to?
 
Unfortunately I need to send it a bit on a pushing manner and hope it won't cost me anything, but it needs to be solved before thursday
 
#region somename
#endregion
@chillworld no you can't
 
@Morwenn hrm?
it's 7pm here, no worries about waking me up :P
 
@Yuushi i was wondering if any C++ people here had seen/used this
i have used it and like it a lot but am no c++ guru
thinking about porting it
 
9:31 AM
Never heard of it.
 
@Vogel612 thx
 
nope, sorry, haven't used or seen it
 
i think it's my favorite test harness ever
 
it isn't already portable?
 
it's a bunch of macros
 
9:34 AM
yeah
 
not platform port, language port
 
I'm just having a quick look at the source
ah :)
 
aha just have maybe a solution for netbeans
 
I generally tend to write a bunch of asserts when I want test cases, so I don't actually know much about test frameworks...
 
it breaks eclipse code though..
well... lesson over
(time to quit the internetz)
 
9:43 AM
@Morwenn at its core it's basically a glorified assert that decomposes the expression you pass it and gives a readout of the expected value and whatever value it got
 
Hello All!
 
monking @CodeX
 
so if you do something like REQUIRE(foo == 2) and foo was 3, it will say something like "expected 2 and got 3"
 
0
Q: SQL Procedure performance recommendations

kamilllooSET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO ALTER PROCEDURE [stimulator].[GetLastMessages2] @serviceId bigint, @stimulatorId int, @from datetime, @to datetime, @atLeast int = null, @lessThan int = null, @lastHourLessThan int = null, @hourFactor int = 24, ...

 
most test frameworks do that in a pretty ugly way but Catch does it in a much more natural assert-like way
 
9:46 AM
MySQLi and php, If i use prepared statements my calls to the DB will be secure?
 
Yeah, I basically know howthey work, but I don't use them enough to be able to judge them :p
 
@skiwi I've been awake for almost two hours already!
 
Im going for the simplest method of db calls but want them to be secure too
hey @SimonAndréForsberg
 
@CodeX use PDO :p
 
@DaggNabbit I have been, i want to know if there is a way to use MySQLi securely
 
9:47 AM
@SimonAndréForsberg :o
 
why would you switch from PDO to MySQLi?
 
@DaggNabbit Maybe im not switching but just asking a question about MySQLi
 
i think your chances of finding PHP experts here that also favor MySQLi over PDO are very slim
 
Its not about favoritism more about learning the codez
MySQLi wouldnt exist if there wasnt a secure way of using it
 
I'm sure it can be just as secure, but whenever you realize you need to ditch MySQL for something better you'll wish you hadn't wasted your time
much easier to switch out the DB if you're using PDO, and PDO is nicer to work with anyway
 
9:53 AM
I find PDO restricts some things i need to do
 
like what?
 
num_rows, i have to COUNT all the time
i dont like that
personal preference
 
well my advice would be to stay away from vendor-specific stuff as much as possible so you can ditch MySQL at some point but YMMV
 
If anyone could point me to a great article on MySQLi security that would help massively
@DaggNabbit thanks for the help, its good to talk :)
 
it's more PS with MySQLi
 
9:58 AM
0
Q: Is this a correct use of using protocols and delegate pattern in swift?

Amit ErandoleI am trying to grasp the concept of delegates and protocols in swift. So I have implemented my own PlayableMedia protocol with two concrete classes BlueRayMedia and DVDMedia like so: protocol PlayableMedia { func play() func stop() } class BlueRayMedia:PlayableMedia { func play() {...

 
@chillworld So as long as you use prepared statements its secure?
 
Time to begin a new quest : Hunting for food.
@CodeX normally yes
 
Ok thanks
 
you can't have injection with PS
back in 30 - 60 min
 
Enjoy
Foraging..
 
10:20 AM
0
Q: Highlight using javascript

Syed<title>Sample</title> <link href="css/styles.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="js/script.js"></script> </head> <body> <form name="frmCheck" id="frmCheck" method="post" onclick="return validation();" > <div class="layer"> <div class="container"> ...

 
10:36 AM
The SE network is quite slow for me since half an hour or about
 
11:01 AM
0
Q: Getting matching items in lists based on nullable properties

JohanI'm iterating through two lists to find matching objects. The objects have two string properties, Id1 and Id2 below. If Id1 is not null, empty or whitespace I want to use it to find a matching object in the other list. Otherwise I want to make use of Id2. If both Id1 and Id2 are set to null by t...

 
11:36 AM
0
Q: Sudoku solver in C++

EdwardSome time ago, this question was posed, asking for help in optimizing a Sudoku solver implemented in C++. I decided to reimplement the code using C++11, but without guessing. That is, this Sudoku solver does not make guesses or backtracks, but instead only solves based on valid logical infere...

 
11:51 AM
0
Q: Efficient way of sorting a List based on multiple properties using Google Guava

TinyI'm using Google Guava 17.0 library. I have a class named AroundBust containing only two properties id of type Integer and size of type BigDecimal. This class is instantiated based on the data stored in an XML file. A java.util.List is populated by a list of objects of this class. This list is...

 
@Malachi BlueCheese can't find stat of persons (person not found) or am I using it wrong?
 
0
Q: Parallelizing a math-intensive pure Python algorithm using multiprocessing

otusTo review my use of multiprocessing, I don't think it is at all necessary to understand the algorithm, but it's the scrypt key-derivation function. This uses hashlib.pbkdf2_hmac which was added in Python 3.4. To run it using earlier versions, you can paste in pbkdf2_hmac from here. I've split t...

 
12:21 PM
0
Q: Outputting Fractions

PapalPlease suggest improvements to the below code. This program is to return a number one at a time from a given input list of numbers, with a frequency proportional to probability/fraction associated with each number. I know it could be made a generator function. But if I have to do it inside a cl...

 
It's quiet. Too quiet..........
 
@ckuhn203 Tuesday silence
Today statistics stills like magic to me, tomorrow is the exam.
 
indeed very calm today
 
You mean statistics isn't magic @skiwi?
Seriously though, good luck with your exam.
 
I don't stand a chance I think tomorrow, perhaps for the resit
Usually I can fiddle my way through hard subjects if they give easy theoretical exams... But not this one, will be pure math and statistics
Spent too much time on other also important subjects last semester
 
12:30 PM
The pattern in itself is very nice, but unfortunately this does not solve the problem. You would have to be able to pass an Initializer<WITH<int>, WITH<AT_LEAST_ONE_OF<Long, String, String>> The main problem is, that there is one of three minimum required, but more are possible — Vogel612 17 secs ago
 
Deep breaths buddy.
 
who me?
 
No. @skiwi.
 
When looking at these formulas, I have similar feelings as non-programmers have when looking at programming code.
 
It's not that different. Formulas are a set of instructions, just like code. Maybe thinking of it that way will help.
 
12:36 PM
When someone codes like these formulas, I'd fire him ^^
 
lol
Fair enough.
 
It's just.. not my thing, but it's part of my studies
 
That's always fun.
 
@SimonAndréForsberg What are you making right now, some epic program? Haven't seen you in chat too much today :o
 
@skiwi I've been waiting for someone to ping me :P
I'm coding a JavaFX application, an utility for a game to keep track on levels/levelsets.
 
12:49 PM
@SimonAndréForsberg Damn, I fell in the ping-trap
Sounds cool
Is the GUI going along?
Also if you resize the window etc
 
Yeah, well... the GUI works at least, but it doesn't look very nice...
 
Is it your fault?
 
Who else to blame?
 
Or did JavaFX mess up something
 
I think it's my fault for not knowing exactly how to design the stuff
 
12:51 PM
Designing is always hard
unless you're a designer
 
Have you (or anyone else here) heard of the game Rocks'n'Diamonds?
 
not me
 
Have you heard of Boulderdash? Emerald Mine? Supaplex?
If not, then it's time:
A couple of years ago I had a "Rocks'n'Diamonds Files Archive", written in PHP (ugh). That Archive is no longer active, so I'm working on a new version of it, in Java.
There are hundred thousands of levels for Rocks'n'Diamonds, but there's no centralized repository for them. So that's what I'm trying to accomplish.
 
:o cool
Wow, this formula...
They're using t, T, theta, theta_0 and Theta, with theta/Theta being the greek letters respectively
 
1:23 PM
Fire the programmer @skiwi. Oh.... wait.....
 
@chillworld you have to use their number from chat
@chillworld you have to use the CodeReview User ID
we lost a bunch of commands. one of the things that I want to do with the code is make it so that it will actually create the commands in Javascript code or whatever so that when I reload the code it reloads our commands, and I can delete the bad ones or whatever
 
1:42 PM
0
Q: Consumer-Producer Problem: Posix Thread

Gaurav KI have implemented producer consumer problem: Follwing below resources: http://docs.oracle.com/cd/E18752_01/html/816-5137/sync-11157.html http://www.csee.wvu.edu/~jdm/classes/cs550/notes/tech/mutex/pc-sem.html I have used mutex_t and sem_t. Reason for using mutex_t instead of binary semaphore b...

 
My scratch file is getting a bit big... pastebin.com/69zeAftB
It's a challenge for the IDE to load
 
@skiwi WTF is that file for?
 
@SimonAndréForsberg For all random stuff I want to do, that doesn't warrant its own project
 
It might not warrant its own project, but at least its own file!
 
what an awesome idea @SimonAndréForsberg
 
1:54 PM
@skiwi lol What would any reviewer say about this?

import java.io.IOException;
import java.io.InvalidObjectException;
import java.io.ObjectInputStream;
import java.io.Serializable;
import java.io.UncheckedIOException;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import java.math.BigDecimal;
import java.math.MathContext;
import java.math.RoundingMode;
import java.nio.ByteBuffer;
import java.nio.file.Files;
 
TTG
 
@DaggNabbit What is a good idea?
 
a giant boulderdash levels archive
 
@ckuhn203 I'd actually rather prefer that than a whole bunch of import java.xxx.*;
 
but aren't the levels someone's "intellectual property"
 
1:55 PM
@SimonAndréForsberg Fair enough.
 
@ckuhn203 That it probably deserves more refactoring!
2
 
@DaggNabbit Well, technically it's for Rocks'n'Diamonds, which is a clone of multiple games, including Boulderdash, Supaplex and Emerald Mine. Plus it has a whole bunch of own elements, and also using "Custom Elements" so you can make pretty much anything with it. (I actually made a Minesweeper game in it)
@DaggNabbit I believe most levels are open-licensed. They might be someone's intellectual property, but it's still allowed to distribute the levels.
 
ah, interesting... i thought maybe it was a straight clone
but isn't taking someone's property stealing? must not really be property. </troll>
@SimonAndréForsberg somehow that reminded me of this game
 
@DaggNabbit Using the magic of Custom Elements, it might be possible to make such levels within R'n'D.
 
wikipedia's kye article is broken...
> It takes ideas from puzzle games like Sokoban and Boulder Dash, but the inclusion of active objects gives it a real-time component
BD had monsters...
 
2:19 PM
4 hours and no answers on this beast....I couldn't let it slip through the cracks
0
A: SQL Procedure performance recommendations

MalachiA couple of things to think about while writing your query.... Variable Naming ALTER PROCEDURE [stimulator].[GetLastMessages2] @serviceId bigint, @stimulatorId int, @from datetime, @to datetime, @atLeast int = null, @lessThan int = null, @lastHourLessThan int = null,...

 
@DaggNabbit Well, if you can call butterflies "monsters"....
 
ok now BTW.Work
 
@SimonAndréForsberg there was also slime
and some other nasty things i thought
but the slime was the worst
 
@DaggNabbit: Did you want me?
 
^^^ you're so handsome!
Monking all.
 
@rolfl I'll bet you say that to all the humans.
 
2
Q: Refactor this code to a less unwieldy state

RobertI am refactoring a legacy application. I DO NOT have the ability to change the Permissions, CustomerReport or the ListItems classes. They are in external dll's that are given to me. I realize that the ref usage is dumb and it makes NO SENSE. I am going to work with my peers to follow better pract...

 
Code Review is growing......
2
Hmmm, a few months ago I could tell you all the active users on the site.
Now, there are active users with significant rep, that I have not 'encountered'.
3
 
@SimonAndréForsberg Bronze Java Badge even!!
 
@Malachi Yeah. I'm trying to get to that one. You pretty well covered the code issues. I'll see if I can't spot some performance pick-ups when I have a chance.
 
2:47 PM
@JerryCoffin wanted to hear your thoughts on this testing framework, I've used it and like it a lot but wanted an expert opinion
thinking about doing a port
 
@DaggNabbit Catch is nice to use, but its internal code is ugly, bordering on horrific. Don't get me wrong: there are good reasons for the ugliness--it's not just ugly because he doesn't know what he's doing, or anything like that. The internals are still extremely ugly though.
 
Hello, World.
 
@Phrancis 'ullo.
 
@JerryCoffin Looks like you just described a human being.
 
@Morwenn I'm not (quite) enough of a sociopath to describe a person as "nice to use".
 
2:54 PM
@JerryCoffin Oops. I overlloked that part...
 
@JerryCoffin yeah, I took a peek at that mess of macros one time and wished I hadn't
but it's by far the cleanest API I've ever seen on a test framework
there's nothing really comparable in any other language that I know of
 
@DaggNabbit Yes, it is pretty slick (in use).
@Morwenn I kind of figured that. :-)
 
well then I'll just focus on recreating the API and not even look at the internals, the docs are pretty thorough
 
Well, I probably need to get to work. TTYL.
 
3:07 PM
later JC
 
@ckuhn203 thank you
 
@Phrancis IKR
 
What's IKR?
 
I know Right
 
3:13 PM
Oh. lol.
 
Yeah I just realized that
Seems like an awful lot of work just to add a pipe in front of a string.
Wonder why that would even be needed
 
Maybe you can tackle it. I might not have time today @Phrancis.
 
Malachi gave a good answer, but I'm trying to tackle the performance aspect, there is something that proc is doing that is very expensive somewhere I'm sure
 
I'm betting that Stuff() function is pretty expensive, but I'm not sure how else I'd go about it. He also has absolutely no indexes beyond the primary keys.
 
3:24 PM
@Phrancis Nested Select Statements.
 
Oh I think I get it now. Boy this is ugly. He is self LEFT JOIN the same table 4 times with aggregate functions each time. This proc is crying for a temp table
 
that is the last thing I said in my answer
I was thinking about CTE's but I don't think that you can nest four of them like what is needed
 
I feel sure all those joins could be combined into a single SELECT also
I don't like self join I avoid them any chance I get, they feel dirty
 
If I knew the database I might be able to figure something out there. all those LEFT JOINs differ by more than the aggregate function
there is also the Nested SELECT from the GET GO
 
Yeah, but the WHERE conditions are identical
 
3:28 PM
@Phrancis Nothing inherently dirty about them. Some schemas require them.
 
@Jamal, what is the Fancy Link you use for people Editing code after an answer?
 
I feel it should be possible to pass a table name via a variable to an SQL query without the security issues and the regex hacks
function getEverything($table) {
$query = "SELECT * FROM $table";
$results = $this->get_results( $query );
return $results;
}
Now i have to make several thousand of these for each table :/
Note my deliberate over exaggeration there
 
@rolfl thank you
Thank you! I Just Broke 8,000 Rep!!!
I need 192 more Rep to Catch @Amon
 
Nice, congrats.
 
3:35 PM
I have until August to catch him
 
What is Stack exchange built on?
 
@CodeX sounds like you might be able to do it easier if you did more of it in SQL? E.g. a stored procedure?
 
@CodeX Goodwill and duct-tape
2
 
Stored Procedures are a bit overkill for what i need
@rolfl I need some Goodwill and Duck tape then
looks like "JAVA" haha
 
0
Q: Refactor this method to a cleaner state

RobertI am refactoring a legacy application. I DO NOT have the ability to change the Permissions, CustomerReport or the ListItems classes. They are in external dll's that are given to me. I realize that the ref usage is dumb and it makes NO SENSE. I am going to work with my peers to follow better pract...

 
3:42 PM
@CodeX FYI:
361
Q: Which tools and technologies are used to build the Stack Exchange Network?

aleembWhat tools and technologies are used to build the Stack Exchange Network? See also: Which tools and technologies are used to build Data Explorer? Return to FAQ index

 
wow
 
Alright I got a few things to do but I'll give that SQL one a try in a bit
 
@rolfl thanks
Is there a founder?
I mean a single founder
 
Stupid radiator blew out on my car this morning >_<
 
 
Hmmm, the list seems incomplete. I don't see Unicornify in there... — Lunatik May 6 '10 at 7:10
 
0
Q: First time graphics - bad performance in software rendering

ShaggiFirst of all sorry for the huge wall of text and the relative clutter of it - i sincerely hope somebody will find the time to read through it and give some advice, it will be much appreciated :) So - I'm writing an utility audio plugin that specializes in "fullscreen" (the window is freely resiz...

 
Jeff Atwood is a genius..
 
@rolfl do you want to determine if this revision violates Snowbody's answer? codereview.stackexchange.com/posts/55795/revisions
or I should say, would you?
 
@Malachi - Snowbody sqeezed that in ... yes, it does.
I did not see that answer .... hmmm.
@Malachi Hmmm... don't ask me to do it, and then do it yourself ..... confusing.
 
3:57 PM
sorry.
I will quit stepping on your toes for a little bit....
 
Hey Robert. I see you were careful with the _Permissions edit, but unfortunately you were beaten to the post by snwobody's answer. It would have been an acceptable edit otherwise. Also, you should visit us in the chat room: The 2nd Monitorrolfl ♦ 16 secs ago
Hey @Jamal ;-)
 
hi
 
@CodeX - Is it shameful that had to google to see who Atwood was?
 
0
Q: Reading and writing binary data in C++

kayahrI have written a small container class which groups a 3D position, a normal vector and a texture coordinate into one object. It uses the glm library for the actual data types (vec2 and vec3). This class is named Vertex. Here is the source: Vertex.h #ifndef CPP3D_VERTEX_H #define CPP3D_VERTEX_H ...

 
4:17 PM
Most pointless variables ever written:
SET @Now = getdate()
SET @Today = DATEADD(dd, 0, DATEDIFF(dd, 0, @Now))
4
 
@Malachi [What you can and cannot do after receiving answers](http://meta.codereview.stackexchange.com/a/1765)
9
 
monking!
 
0
Q: Look 'ma, I can read code

Mat's MugI have put together a naive implementation of a VB6/VBA parser, and I'd like to see if the CR community sees the same things as I see can be improved with this code, before I start refactoring. I've never written a parser, so this naive implementation is naive in all senses: I wanted to push it ...

 
^^ :)
@Jamal how's the title? ;)
 
lol
Probably needs an exclamation mark.
 
4:31 PM
I know, it didn't allow me!
 
Oh
 
You should add the ... ;-)
Oh, no, don't.
 
lol
2
 
@Mat'sMug! Look at that. Wow.
 
@ckuhn203 yeah... it's ugly as Hell though!
 
4:35 PM
@Mat'sMug - Seems a little naive to me :p
 
@JohnP definitely!
 
0
Q: CodeIgniter form_dropdown of Years

Brett SantoreI wanted to make a dynamic select statement from this year to 10 years. This gets the job done, but i feel like its a little…much? form_dropdown('year', array_combine(range(date('Y'), date('Y')+10), range(date('Y'), date('Y')+10)), set_value('year')); Specifically, is there a better way to cr...

 
@JohnP I never wrote a parser, so I thought I'd approach it as naively as possible and then refactor, and let the design emerge. Hopefully that'll work ;)
 
Silly question... when posting an answer/question on CR, can you make font a point or two bigger somehow? (e.g., for subtitles)
 
`###
`##
`#
 
4:40 PM
I wonder if I'll have time to write up an entry.
 
4:53 PM
@Mat'sMug But it works. That's step 1 in doing something you've not done before.
More like step 10, but who's counting?
 
Thanks @Mat'sMug
Hey I wrote this late last night, I would like to hear some thoughts if this would be a good way to find interesting candidates for feel welcome to fork from it and play around too
 
Does anyone have experience with about.gitlab.com ? I read SE uses it
 
@ckuhn203 good point ;)
 
I'm wanting to ask for using git in the company where I have an internship, however I doubt they would use anything running online
 
@Phrancis nice!
 
5:01 PM
These are interesting figures:
94
A: How much bandwidth does SE eat up?

Nick CraverSome quick stats on the past 30 days, the New York data center only (chat runs from Oregon, and we sync databases there...so there's additional bandwidth and such for that). HTTP Traffic only: 20,335,940,765,006 bytes sent (18.5 TB) 2,839,549,699 total hits to our load balancers 8,314,044,406 ...

 
@skiwi What version control is currently used?
 
Very nice indeed!
I think I'm going to revamp some code I did for an answer on SO. I'm going to clean it up for the CR games, then golf it for PCG.
 
@200_success Ugh... subversion
 
That's right. Golfing in VBA.. I must hate myself.
2
 
They are running on some old system that is rally old, and my project is of the first on their new system, which still feels like from 15 years ago.
 
5:05 PM
Are we locked in on as far as the last post on meta (from @rolfl I think)
 
@Phrancis Seems like it.
 
Yes, rags-to-riches it is.
 
15
Q: Let the CR Games begin!

Mat's MugJune is about to end. Summer's here (well, if you're in the northern hemisphere, that is.. otherwise, ... yay, winter!), and with it, vacations. We need a new community-challenge. Let's play. I mean, let's find a game to play. The game... Has to revolve around reviewing code, or posting code ...

it's been updated ;)
 
5:17 PM
@skiwi There's a git-svn bridge that lets you use git privately even though the official repository is subversion.
 
@200_success I can see your point, but it's not really my point
I think the whole company should switch over, but I'm not sure when or if ever I am going to express that, in my opinion git is way more powerful, especially with a good GUI behind it, could even integrate it with some form of continious integration
 
git-svn is a way to get a few willing users on git first.
 
But can it operate on full git GUI? Like github, etc. use
 
5:33 PM
Anyone has experience with setting up git server on a Debian server?
 
^^^ ain't no such thing. ................... ^^^^^
 
in case anyone wondered:
10
A: Do not open a new tab for links at the Community Bulletin

Anna LearStarting with the next build, community bulletin links should behave the same way as other links on our sites. Keep an eye out for rev 2014.6.26.2343.

(I did)
 
@skiwi You have a local git repository. GUIs should work on that just fine. The only difference is the push/fetch process.
 
0
Q: String manipulation

user2761431I wrote the following code for parsing the inputs of type: ./a.out "0.0|10|-0.3|US,JA,PA,CH|0.25,0.25,0.25,0.25|IND,CH,CAN,GER|-1.0" "|" "," #include <stdio.h> #include <stdlib.h> #include <string.h> #define COUNT 10 typedef struct UserInput { char ***str; float num[4]; int mcv_num; ...

 
@SimonAndréForsberg I've installed gitolite on Debian.
 
5:41 PM
@200_success gitolite? What's that?
 
Me and my brother are trying to use git daemon on a Debian machine, but I have a problem when pushing as it hangs on Writing objects: 100% (3/3)
 
Basically, it helps manage SSH keys and permissions for multiple git repositories.
 
@rolfl What do you mean "no such thing"?
 
There is no such thing as a server when you have git.
everything is peer to peer.
 
5:44 PM
Why not?
 
@rolfl OK then, a "remote repository". Better?
 
It's distributed, but not necessarily peer-to-peer.
 
it's a terminology distinction, sure, and you can, in your head, call one repository on a machine the 'master', if you want, but there is no technical reason why that instance of the repository is the master, or not.
it is things 'outside' of the git concept that make one node/instance/server/system a 'central' one, and if you want to call that central one the 'server', then go ahead.
 
You're telling me that github.com is not a server?
 
Things like github, etc, are not git.
they are servers of sorts, but the git repositories hostd on those servers are nothing special.
 
5:47 PM
??
 
?? what? you are saying that there is something different about the git repositories on github servers?
(apart from the fact that you think of them as being the 'master' copy?)
 
I'm not even going to argue with you.
 
@Simon - if you have a computer, you have a git server.
if you want someon to run, maintain, and create a convenient access mechanism for the server on which you store your git repository, then Github, and similar, are nice.
including issue tracking, code commentry, etc.
But, the code comments, issue tracking, etc, are not git (even though they (may) use git in the background).
 
So, rolfl has no experience installing a git server on Debian.
 
@rolfl I want to setup something like Github, but on a Debian computer. Only for usage for some special people (me, me, me!)
 
5:53 PM
Oh, that makes sense.
Github is a server..... Git is not.
Git is a server, like "ls" or "dir" is a server
 
I managed to setup and pull from the remote repository, but when pushing it hangs.
 
What is your access mechanism to the server running the remote repository? SSH?
 
Have you tried git push --verbose?
 
At the moment, the git protocol only, not SSH. It apparently running on port 9418.
 
You're OK with pushes being unauthenticated?
 
5:57 PM
@200_success I don't think --verbose works. At least it does not produce anything different
For now, yes.
 
> Next is the Git protocol. This is a special daemon that comes packaged with Git; it listens on a dedicated port (9418) that provides a service similar to the SSH protocol, but with absolutely no authentication. In order for a repository to be served over the Git protocol, you must create the git-daemon-export-ok file — the daemon won’t serve a repository without that file in it — but other than that there is no security. Either the Git repository is available for everyone to clone or it isn’t.
 
using --enable=receive-pack to allow it
 
> This means that there is generally no pushing over this protocol. You can enable push access; but given the lack of authentication, if you turn on push access, anyone on the internet who finds your project’s URL could push to your project. Suffice it to say that this is rare.
 
@rolfl git-daemon-export-ok, check
 
If --verbose doesn't tell you anything, try packet sniffing.
 
5:59 PM
@rolfl I know, it is not recommended, but it's just about working or not at the moment.
 

« first day (423 days earlier)      last day (3587 days later) »