« first day (1640 days earlier)      last day (3294 days later) » 

11:00 AM
hmm wikipedia article is actually a bit shitty
@thefourtheye not the radix sort, it is not the general umbrella term
 
@AnttiHaapala Yup, I am creating sample data now to express what I actually mean
 
no need
I know what you mean but I do not know the general term
 
Oh okay :-) But for the benefit of others?
 
yeah :D
bc silly wikipedia says radix sort is for integers
but to me it is not
 
>>> data = [{'dept': 'Mech', 'name': 'Vaultah'},
...         {'dept': 'Civil', 'name': 'Anti'},
...         {'dept': 'Civil', 'name': 'Robert Grant'},
...         {'dept': 'Arch', 'name': 'Puppy'},
...         {'dept': 'Mech', 'name': 'Anti'},
...         {'dept': 'Civil', 'name': 'Anti'}]
>>> from operator import itemgetter
>>> getter = itemgetter('dept', 'name')
>>> from pprint import pprint
>>> pprint(sorted(data, key=getter))
[{'dept': 'Arch', 'name': 'Puppy'},
 {'dept': 'Civil', 'name': 'Anti'},
 
11:04 AM
and they're confusing radix sort and counting sort
 
It is as simple as that, but there is another technique where we sort twice, first based on the name and then based on the dept
 
yes and I call it radix sort and wikipedia wants to call it by something else :D
 
@AnttiHaapala Hmm, you can still get a good impression of whether or not a question should be closed even if you don’t have the knowledge an answer would require.
 
Radix sort is for numbers, no?
 
@poke my point is that a guy with 14000 upvotes in PHP can't find 1000 bad php questions from CV queue :D
must be blind.
if he will have such a drive when with mod queue, then I'd rather vote for say Unihedro :D
 
11:08 AM
Haha, well, to be fair, I think the queue is really annoying too.
 
yeah, but mods will work with the modflag queue
 
Huh, my example is bad I guess. It works even with this
>>> namer = itemgetter('name')
>>> depter = itemgetter('dept')
>>> pprint(sorted(sorted(data, key=namer), key=depter))
[{'dept': 'Arch', 'name': 'Puppy'},
 {'dept': 'Civil', 'name': 'Anti'},
 {'dept': 'Civil', 'name': 'Anti'},
 {'dept': 'Civil', 'name': 'Robert Grant'},
 {'dept': 'Mech', 'name': 'Anti'},
 {'dept': 'Mech', 'name': 'Vaultah'}]
But this will not work always I guess
 
@thefourtheye it will work always provided that the sort algorithm is stable
and my name is still spelt with 2 t
 
Aaand done
Project proposal away!
 
@poke it is ok, you're not running for mod :D
 
11:10 AM
@AnttiHaapala Oops, Sorry! That was a typo and a copy and paste error :(
 
@VOTProductions Which one?
 
@AnttiHaapala Oh, I want to read more about it. Is there any doc you can refer me?
 
@Antti :D :D
 
@thefourtheye the radix sort algo
read about it
 
Sure, Thanks :-)
 
11:11 AM
even though "wikipedia says it is for integers"
the O(n*k) comes from the fact that it uses k counting sorts of O(n)
 
You can use it for anything you can map onto integers.
 
@BoltClock I'm a firm believer in pinging people :P
 
And that’s every countable set.
 
@AnttiHaapala Ya that is what throws me off
 
but it is not efficient
for every countable set
except for very large N
 
11:13 AM
@poke You mean, the dept and name are treated as digits of a number?
 
@poke but that I disagree with wikipedia, radix sort is not about O(nk)
 
@poke countable set means something differnet
 
it is just about sorting by subdivision
@BenjaminGruenbaum ah +1
of course this does not mean countable sets
it means finite...
 
Yeah, just nitpicking.
Also, something about bucket sort and generality.
 
anw office time
 
11:14 AM
@BenjaminGruenbaum ?
 
@poke countable sets mapping to integers yes, but not really...
 
Countable sets are all sets (finite or not) for which an injective function from the set of natural numbers exists.
 
@poke in mathematics "countable set" means a set that you can create a counting function for, that is a 1-1 and onto function from the natural numbers (unsigned integers) to it.
 
the problem is the exists vs is usable
 
11:16 AM
@poke not finite, it has to be the same cardinality as the integer.
 
Didn't Chuck Norris prove the countability of the set of natural numbers, by enumeration?
 
@RobertGrant that was Martijn
 
@RobertGrant actually that's a really easy proof :P
 
@BenjaminGruenbaum A set {1, 2, 3} is countable. All finite sets are countable.
 
Anyway, this is OT for the radix sort discussion.
@poke no, it is not. It's just finite. That's a different cardinality, it's smaller than any countable set.
 
11:17 AM
anw in my opinion radix sort is about sorting by a subdivision,
 
Although that's a terminology discussion and those tend to never have any merit :P
 
whether or not it uses counting or whatever inside
 
A sorting algorithm is an algorithm that puts elements of a list in a certain order. The most-used orders are numerical order and lexicographical order. Efficient sorting is important for optimizing the use of other algorithms (such as search and merge algorithms) which require input data to be in sorted lists; it is also often useful for canonicalizing data and for producing human-readable output. More formally, the output must satisfy two conditions: The output is in nondecreasing order (each element is no smaller than the previous element according to the desired total order); The output is...
Wow, oneboxing for subsections sucks
 
@BenjaminGruenbaum My almost-bachelor’s in mathematics disagrees.
 
Is it me, or is the list of challenges on topcoder quite disappointingly specific?
 
11:19 AM
@poke where's your bachelors from? We can base our arguments on whose faculty is ranked higher :P
@RobertGrant they're just outsourcing work :D
 
@RobertGrant I stopped doing it :( Its either too difficult or too easy :(
 
Yeah. I think I was expecting something cooler :)
 
I got 249.x for 250 with Python, with one-liners (I am Div-2 though) :D
 
lol. If you require the same cardinality for “countable sets” then it is infite (because the set of natural numbers is infinite), which would make it “countably infinite” per my definitions.
 
@BenjaminGruenbaum You do TC too?
 
@poke ur definition is wrong >: (
 
> A set which is either finite or denumerable. However, some authors (e.g., Ciesielski 1997, p. 64) use the definition "equipollent to the finite ordinals," commonly used to define a denumerable set, to define a countable set.
 
So their one citation agrees with me :P?
 
“A set S is called countable if there exists an injective function f from S to the natural numbers N = {0, 1, 2, 3, ...}.” (Wikipedia)
 
> As noted above, this terminology is not universal: Some authors use countable to mean what is here called "countably infinite," and to not include finite sets.
I bet there is an argument about it in the talk section :P
 
11:23 AM
Meh.
Anyway… we now know what each other meant.
 
@BenjaminGruenbaum that's weird, I thought your name was familiar. It featured in a UI mockup I did, because you were on the JavaScript chatroom when I was doing it :)
 
so we can just forget about the past 15 minutes ;P
 
but for counting sort
 
Heh, nice
 
11:25 AM
@RobertGrant You typed his name wrong though.
 
one needs to have countable finite set but the mapping function needs to be usable, not just exist :P
 
You can actually use a hash function for radix sort, no?
(albeit it not being very useful)
Been a while since I did sorting algorithms…
 
@poke how embarrassing for me. Let's say it's because it's Balsamiq, which is supposed to give an idea of what the screen will look like, without making any accuracy promises :)
 
You should have deliberately misspelled every name :D
 
11:28 AM
@poke if it is lsb radix sort, you will want to have a stable sort
dunno what good sorting with a hash function would do :D
it would sort by hash?
0
Q: How to run python script in remote machine opened through putty

Anusha RI have a python program which I run in the python shell. Now I open putty with a host name through ssh connection. I login with username and password. Now my problem is that my python program has to run in this remote server that I have opened through putty. The output files that this python prog...

 
Well, essentially, radix sort extracts some part of the item to sort on a smaller set of distinct keys; so if you have a hash function that properly obeys some restrictions you could probably use it.
 
@AnttiHaapala now I know how my Pyramid questions must seem to you :)
 
I wanted to tell OP about the Radix sort thingy in this answer and then found out that the answer does the exact same thing, but it will not work.
 
@RobertGrant howso?
something like the above?
 
Yes :)
 
11:35 AM
Note: This will NOT work in all environments as JavaScript's sort is not guaranteed to be stable. It is left to the implementations. — thefourtheye 1 min ago
 
not really...
 
Does this look fine? JavaScript's sorting is not stable in all the environments.
 
@RobertGrant the problem with pyramid is that ppl come and ask "is this the right way to do it?"
who cares, if it works use it
but if you end up doing lots of code it probably is not the best way to do it...
anw -> gotta move
 
@thefourtheye Is it not?
 
@poke Nope, it is not. As per the spec, there is no mention of stability. So, in V8 it is stable, FF it is not. (At least it was like that when I last checked)
 
11:37 AM
Interesting.
 
Sorry for the annoying noises
 
If the "program has to run on the remote server" then I take it that it has to run on the remote server. — Antti Haapala 45 secs ago
 
@thefourtheye stackoverflow.com/a/3027715/216074 Looks like they are now.
 
"my program needs to run on the remote server"
"how to do it, do I need to have python on the remote server or is it possible to do otherwise"
BWAA dunno
 
@poke Anyway, we cannot depend on that in all the environments I guess
 
11:40 AM
As of IE9, IE sort is no longer stable. Chrome is stable for arrays <10 elements (as a side-effect of using insertion sort as the base case for their quicksort) – James Montagne Sep 3 '14 at 16:54
 
as spec doesn't say anything about it
 
anw QUICKSORT is teh shit
sorry
fixed
 
Rhubarb
 
@AnttiHaapala Derp. IE11 is.
 
Hi everybody. I have an interesting question (astronomy-related) that has been open for some time now. It has an answer but it doesn't quite does it. Also there's a 50 pts bounty on it: stackoverflow.com/questions/29525356/…
Any help will be much appreciated.
 
11:48 AM
@Gabriel Astronomy-related? BELONGS ON ASTRONOMY STACK EXCHANGE twitch
 
@BoltClock it's python-astronomy-related :)
 
@Ffisegydd: up your street? ^^
 
Yeah I saw it being linked yesterday. Interesting problem.
 
@AnttiHaapala how do you add csrf to your Pyramid templates? Just add it as one of the properties of the object returned by the view_config, for each view_config that needs a csrf in its generated HTML?
 
@Gabriel Uhh, pictures! Have an upvote.
 
11:55 AM
@poke haha thanks! An answer would be even better!
 
(Sorry I can’t help with that question, but it looks interesting and seems well written :) )
 
(no problem, thanks for the +1 :)
 
12:13 PM
@Gabriel Don't quite see the problem - merging your own code with @cphlewis's seems to do the trick i.e. :
argh - how to do indentation on here....
 
@JRichardSnape well that's the problem, I haven't been able to successfully merge both codes
there's 50 pts in it for you if you manage to do it :)
 
@JRichardSnape CTRL-K indents the whole post (no need to select anything).
 
OK - think I can - don't really want to nick cphlewis's 50 points
 
And SHIFT-ENTER gives you a new line in the post rather than submit the post.
 
# Use this block to generate colored points with a colorbar.
cm = plt.cm.get_cmap('RdYlBu_r')
z = np.random.random((len(r_test), 1))  # RGB values

SC = ax1.scatter(out_test[:,0], #ax1 is a global
            out_test[:,1],
            s=sizes,
            c=z,
            cmap=cm,
            zorder=9) #on top of gridlines

# Colorbar
cbar = plt.colorbar(SC, shrink=1., pad=0.05)
cbar.ax.tick_params(labelsize=8)
cbar.set_label('colorbar', fontsize=8)
Top man @MartijnPieters - someone make that man a moderator ;)
 
12:16 PM
I'll give you both 50 pts each if you help me get this one right :)
Could you please post it as an answer @JRichardSnape?
 
@Gabriel Unfortunately, I don’t think that’s possible ^^
 
@poke you mean giving 50 pts each? Why not? Can I assign the first 50 pts and then open a new bounty for an answer that deserves it?
 
I think there is some limit in how often you can start a bounty, especially on a single question.
Maybe @BoltClock knows if there is some other way to donate rep in such a case.
(some mod-power way maybe)
 
not sure
 
12:28 PM
@RobertGrant did you get ans yet?
 
@BoltClock we'll find out soon :)
 
Don't worry about it - give @cphlewis the bounty - he did the legwork. Give mine an upvote if its helpful.
 
@RobertGrant I have simply used proof that I know the cookie set in the browser
 
Oh, a view predicate. Amazingly, I didn't find that on the internet. Thanks :)
 
Also - just noticed the problem with the axes labelling / transformation. I only did the color bar bit. If I get time (doing this on lunch break), I'll have a look at that too - then it might be worth a bounty :)
 
12:30 PM
I’ll just upvote all of it.
 
@JRichardSnape will check it out now and let you know how it works in the comments, thanks!
 
What increases time estimates on projects? So far I have 1) scope increase and 2) spec process uncovers complexities.
 
3) External "events"
 
has anyone worked on generating images programmatically?
 
legislation changes are always fun
 
12:32 PM
4) project management overhead
 
Sorry, I mean effort estimates, not duration. But good point - I will mention something about duration.
 
5) interruption
@corvid yes
 
@poke is it easy to generate an SVG? I'm just trying to create profile images based on user's initials.
 
@RobertGrant Depending on the scope of the project - future updates. Whether it's firmware, software or hardware.
 
@poke You can start a new bounty as often as you like but the next bounty has to be at least double the previous.
So a next bounty would have to be 100 points.
 
12:38 PM
Good to know
@corvid SVGs are just XML.
 
Thanks - all good suggestions. Is there anything (other than scope) that can increase the time estimates of a project before it starts?
 
user559633
@RobertGrant other things and what poke said and then also see if they expect you to train others on it
 
user559633
#4 is a hidden killer
 
user559633
brb coffee
 
@tristan wow, you're here when I am. Been a while :)
 
12:42 PM
#4 and #5 are actually closely related as #4 is often a source for #5 (daily standups for example)
 
So I haven't included those in my estimates :)
But I guess this means I've got it covered.
 
Looks to me more as if someone fell asleep on the Ctrl-V key
 
lol
 
Yeah I flagged, but not spam.
 
12:52 PM
Wasn’t sure about spam either, but it got marked as helpful anyway.
 
1:05 PM
cbg
 
what purposes is NoSQL generally preferred in? It seems like SQL is preferable in most scenarios
 
user559633
@RobertGrant :) hi there
 
@poke I've seen it before. It's spam.
 
@tristan are you moved?
Not emotionally. Physically :)
 
user559633
1:10 PM
@RobertGrant Ha! Yeah, I'm in my base of operations now -- will be moving again in May
 
Cool, so where are you at the moment?
 
user559633
Northern new england -- north of corvid territory
 
Cool
 
@corvid nothing
@corvid define nosql
sql has a very specific datamodel
 
Now you just need to move to Northern England and all your troubles will be over.
 
1:15 PM
everything not SQL is nosql
 
Then?
Nach Deutschland?
 
NACH FINNLAND!
 
Anyone know SQLAlchemy? I've got a doubt but I think the issue is actually in my database design.
 
I know but you never want to hear my opinion
 
;_;
 
1:16 PM
not only that but you greet me with this "hey up"
which by itself is an abomination!
 
user559633
@RobertGrant I think the order is NYC, Deutschland, Russia, NYC as of now
 
:D
 
I know it really well, because I've just started using it.
Don't ask me about many to many yet.
 
user559633
@Ffisegydd I'm not very good at SQLAlchemy but I'll try to help
 
@Robert I started learning it yesterday :3
 
1:17 PM
Wow, I know something better than someone else here.
 
user559633
What are you using to learn it?
 
you should really learn SQL first
 
Unless you know many to many, in which case that's annoying.
 
sqlalchemy is not a tool to learn SQL :D
 
user559633
I just found a few idioms that worked and I put them into every project :]
 
user559633
1:18 PM
@AnttiHaapala sure, but SQLAlchemy isn't SQL.
 
it is...
ORM might not be but in that you just need to be even better with SQL
 
user559633
It's harder/easier/more annoying/less frustrating to use
 
yeah, all of the 4
 
Anyway, now we've spent a whole page talking about a "can someone help me with this?" query that would get most people slapped down; what's the problem? :)
 
I've got a Question and an Answer model. I also have a Comment model. Comments can be on either questions or answers, and as such have a post_id attribute that references the primary_key of the Question and Answer models.
 
1:18 PM
ok, now back to the SQL
 
user559633
now for something completely different
 
at least if there is something good about sqlalchemy, it is that it forces to name the tables in singular naturally
 
So ideally I'd like to se Comment.post_id as a ForeignKey of the two models, can I do this? It'll be a ForeignKey for two different tables.
 
no
you can't.
 
1:19 PM
I didn't think so.
 
well basically you can but then you can't.
 
user559633
you can, but you don't want to
 
It'd be easy if I had an AnswerComment and QuestionComment model.
 
user559633
Why does it have to be a commentmodel?
 
Suboptimal solution #1: have comment_id and post_id, and a type field. Maybe even make a composite key across them.
 
1:20 PM
noo
 
@Ffisegydd that was going to be suboptimal solution #2
 
user559633
you could have an is_comment bool on either
 
user559633
HEH i red gud
 
Comments aren't questions or answers.
 
Suboptimal solution #3: do #2, but use inheritance in SQLAlchemy.
 
1:21 PM
They belong to questions and answers.
 
cbg
 
@Ffisegydd if only there were a website we all knew that could illustrate this concept
 
user559633
@RobertGrant ebaums world?
 
the easiest would be to have both question and answer foreign keys with an extra check constraint for forcing that exactly 1 is specified
 
Yeah, nice catch.
 
1:22 PM
4chan?
 
user559633
digg? expert sexchange?
 
I was thinking Quora, because that place is awesome.
 
if you want to have them like that...
 
@tristan shivers
 
The problem then of course is that Comment has to know whether it's a comment on a Q or an A?
 
1:23 PM
@Ffisegydd did you check how are their ids generated
 
user559633
I actually don't like Quora -- even besides the "quietly creates a facebook account for you"
 
@Ffisegydd a comment knows if it is a comment of q or a
 
@Antti no, I assumed it was sequential (the next comment is n+1)
 
I like quora actually, lots of interesting things there.
 
@RobertGrant Hofstadter's law: It always takes longer than you expect, even when you take into account Hofstadter's Law.
3
 
1:23 PM
Yeah I like the people who answer on Quora. Sometimes amazing stuff.
 
@Gabriel Ping on this - I've changed things around a bit to work with your data file and put the sample plot as it is now. I think it's what you want - the only thing is I've had to hack dec to make it run 0:30 instead of -90 : -70. Thus the axis is dec + 90 rather than dec. I'm sure it can be done, but my time has run out for now...
 
you need to use whatever natural ID's stackoverflow gives, otherwise merges will be painful
 
@PM2Ring :)
 
user559633
I would think that the comment would get a "is_on_id" that just has the key of the question or answer
 
1:24 PM
Actually, it's simpler. You know if you're getting the comments for a question or an answer, so you just look in the right field.
 
or yes too
 
@Antti that's what I am doing. My schema details are here
Each comment has a post_id integer that refers to the id of the parent.
I suppose my issue is that I've split questions and answers into two tables, if I left them as Post it would all be fine.
 
@Ffisegydd there is a post...
then why do you have a question and answer separately? :D
 
Because it makes sense!
 
@corvid Here's a simple example of generating SVG using Python: unix.stackexchange.com/a/166921/88378 ; please see the last code block. :)
 
1:25 PM
You get columns that can't occur for Qs and vice versa.
Like "AcceptedAnswerId". Answer can't have that.
 
no it does not make sense naturally...
you can always join them away
 
@Ffisegydd Yeah, follow the SE schema. It's crap, but you'll give yourself more headaches by deviating from it.
 
I'm pretty sure that it's simplest to have question_id and answer_id on Comment
 
this is SQL, not mongodb :D
you should go into your head and get rid of the notion that tables are objects/classes/whatever :D
 
Actually don’t call them tables ;P
 
1:27 PM
yeah
relvars :D
 
relvars? o.O
 
and there are no rows
there are only tuples :D
 
But MongoDB is web scale...
 
and this is first order predicate logic
 
Sorry :)
 
1:28 PM
postgres refers to them as tables, no?
 
@Ffisegydd not really...
it used to refer to them as relations/relvars/whatever
 
@AnttiHaapala TIL. :o
 
and rows=tuples
but since everyone said "hey sql" then now it calls them by that name
 
Man I hate that name. Conceptually they just aren't tuples.
 
Then why is the command "CREATE TABLE"! GOD DAMN THIS SH*T I'M GOING BACK TO MONGO!
 
1:29 PM
The common name for tables is “relation”, a set of tuples.
 
relvar is a name that stores relations
@ZeroPiraeus they are tuples
though they are not ordered tuples
 
They're mappings.
 
they are generalized tuples
they have exact arity, but they are "kwargs" as opposed to "args" :P
 
@ZeroPiraeus technically they are exactly the same as tuples or vectors or whatever you want to call them...
say you can have (1,2,3) that is the same as 3k + 2j + 1i
 
user559633
1:34 PM
why is it wrong to think of tables as objects?
 
And now I've got a ForeignKey using it's own table (yes table!), is that sensible?
 
@tristan because they are not objects
 
because there is no inheritance, no hierarchy, and you design database tables very differently to objects in object oriented design.
 
the boundaries of tables are not boundaries of the objects
 
user559633
@AnttiHaapala but they quack like objects and have superclasses like objects
 
1:36 PM
no they don't
 
user559633
class Something(db.Model)
 
that is not a table
 
That’s your ORM mapper doing stuff.
 
I admit I never studied this academically, but: "A tuple is a finite ordered list of elements. In mathematics, an n-tuple is a sequence (or ordered list) of n elements, where n is a non-negative integer" perfectly fits my understanding of what a tuple is. The idea of an unordered tuple is nonsensical to me.
 
it is the namedtuple
 
user559633
1:37 PM
Ah. The problem is my hand wavey "you're an object table or whatever i can't be arsed to keep dealing with you" approach to sqlalchemy and DBs
 
what should it be called, a vector?
 
Or array?
 
nope, because they don't have ordering
 
@ZeroPiraeus Tuples in databases also have an order; except that that order can change if you change the order of the schema attributes – in which case the tuple (of course) also changes.
 
Every table relation can be described with relational maps (a dict). They're not the same as class objects because... it's just unnecessary abstraction.
 
1:38 PM
when I was green 15 yrs ago, I asked on postgresql mailing list that why postgresql alter table does not allow the ordering of "columns" be changed, and got a lecture about this from the venerable Tom Lane
 
Why not call it a goddamned record, that's what it is. From the user's perspective any ordering is an irrelevant implementation detail.
 
user559633
I thought mathematical tuples had order
 
@ZeroPiraeus it is not
Since the calculus is a query language for relational databases we first have to define a relational database. The basic relational building block is the domain, or data type. A tuple is an ordered multiset of attributes, which are ordered pairs of domain and value; or just a row. A relvar (relation variable) is a set of ordered pairs of domain and name, which serves as the header for a relation.
A relation is a set of tuples. Although these relational concepts are mathematically defined, those definitions map loosely to traditional database concepts. A table is an accepted visual representation of a relation; a tuple is similar to the concept of row.
this is about mathematical exactness :d
 
@AnttiHaapala having said that, I've never seen the order of columns change, so something must be maintaining the order, if only coincidentally, and sometimes that order is really annoying and it'd be nice to be able to change it :)
 
@RobertGrant because you've been abused by SQL databases
 
user559633
1:41 PM
ah, tuples can be reordered because you're calling f(tuple) not because tuple is inherently unordered
 
@AnttiHaapala well, I wouldn't go that far, but possibly :)
 
@ZeroPiraeus The tuple actually comes from the database theory behind it, so it’s especially not an implementation detail.
 
it is an IBM perversion, your life has been made harder that it should have been by some IBM marketing people perversion
 
they said "no one can understand this relvar thing, lets call them tables, ok, and then there are rows"
and then they replaced it by something that looks like PHP arrays...
 
1:43 PM
What was it before?
 
and unlike with PHP and Python where people have the choice, with SQL there is no choice anymore :D
it was just an idea really,
 
@JRichardSnape I'll see if I can change the y axis myself. Thanks @JRichardSnape!
 
ingres and postgres both had their own query languages
and then someone decided that "no one wants to use it since it is not compatible with the SQL so they replaced it with ... the SQL"
same as adding $ to all Python variables and adding <?php to make it more desirable to php programmers :d
 
postgresql had a PostQuel query language that had some concepts that were never mappable to SQL
and I have seen some samples but ...
that's it ...
"POSTGRES used its own query language, POSTQUEL. While theoretically superior to the dominant SQL, with a greater depth of expression due to its more advanced theoretical underpinnings, in practice POSTQUEL was not aligned with the needs of industry, which had already standardised on SQL. For that reason, in 1995 two Ph.D. students from Stonebraker’s lab, Andrew Yu and Jolly Chen, replaced POSTQUEL with an extended subset of SQL. POSTGRES was renamed Postgres95."
hehe no more counter-arguments, I have won!
\o/
 
1:50 PM
This was about column orders?
 
@AnttiHaapala also semicolons. Lots of semicolons!
 
not really, about what the tuples/relvars/tables/columns were
retrieve (DEPT.dname) where area (DEPT.floorspace) > 500
retrieve (DEPT.dname) where not (DEPT.floorspace ALE polygon["(0,0), (1,1), (0,2)"])
define function set-of-DEPT as retrieve (DEPT.all) where DEPT.floor = $.floor
 
@Gabriel Actually - just got that working. Added to answer
 
user559633
tristan's 9th law of computer programming: if you're not getting your expected results and mercury is not in retrograde, check your inputs
 
the SQL is really bad in that insert and update use completely different syntaxes
postquel was easy to machine generate compared to that
 
1:55 PM
Okay I now have some SQLA models that incorporate questions, answers, comments, and users.
 
@Ffisegydd you should have created models for posts and comments, then views / static methods for questions, answers etc...
since that is the model :D
 
dafeckisaview.
 
Ah
It lets you query data from what are basically read-only tables (called views) that are defined by queries on tables (or other views)
 

« first day (1640 days earlier)      last day (3294 days later) »