« first day (1417 days earlier)      last day (3537 days later) » 

user559633
1:58 AM
The more C and C++ that I write, the better that I understand Python.
 
you mean the design choices they made, or the underlying structure?
 
user559633
Underlying structure really.
 
oh cabbage people
 
user559633
For instance, the array slicing on lists and steps coming from the update criteria on for loops in C
 
@tristan well tbh python is pretty simple under the hood -- and I mean that like: elegantly simple, very well designed
 
user559633
2:01 AM
Yeah, I read some of the Python source and it's pretty cool.
 
user559633
C is neat.
 
C is neat, indeed -- the folks at Python are masters of it
that source is a pretty well written one, I like reading it
 
cbg
 
user559633
cbg
 
user559633
the only problem that i have with C is finding a use case for it. C++ is fast enough and protects others from my idiocy
 
2:10 AM
Don't you have to do your own garbage collection in C? That seems sort of intimidating to me. I'm not sure how memory resources are handled in C since it's not something I worry about with Python.
 
user559633
@Owatch, yes and no, but you should be aware of how it works, even in python.
 
In fact, I have no idea how you even garbage collect. Is it some form of un-assigning data from the stack?
 
user559633
121
Q: How do malloc() and free() work?

maheshI want to know how malloc and free work. int main() { unsigned char *p = (unsigned char*)malloc(4*sizeof(unsigned char)); memset(p,0,4); strcpy((char*)p,"abcdabcd"); // **deliberately storing 8bytes** cout << p; free(p); // Obvious Crash, but I need how it works and why cras...

 
@tristan for me the simplicity, consistency and the minimal level of abstractions are worth it.. I like coding in C, it is a brilliant language.. I am definitely not a master in C++, more of an absolute beginner, but what I've read about it, how I see the community of it, and what the actual language (how it is evolving, how people are using it) looks like, is just terrible
 
user559633
I should say, that in my problem domains -- mostly automation/systems integration/web stuff, I don't often have the chance to go much lower level than Python. C is right out of the question on most of my contracts, but I'm going to write more of it on my filesystem project.
 
2:15 AM
sure, some say (starting with Bjarne) it is easier to shoot yourself in the leg with C (and harder to do it with C++, but when you do, you blow you leg off -- am I paraphrasing?)
 
user559633
Yeah, and C++ has libraries man. Libraries. Like APIs that live on your computer :O
 
user559633
I wrote a rather silly "hello world" in C earlier tonight: github.com/tristanfisher/no
 
@tristan take a look at this
 
user559633
Oh neat, thanks @PeterVaro
 
it is definitely not finished, has tons of bugs -- which are already hunted down, but not committed yet
it uses the most modern C11, and if you look at the example code in cdar or csll or most likely in c11 syntax highlighter page
you will understand what I meant
(it's almost like not C at all ;)
 
user559633
2:17 AM
appreciated. i'll contribute back and try using it.
 
wait a few days -- I'm working on the hash-tables, better and typesafed defaults and faster and more accurate code generators
 
Okay. That's a somewhat useful explanation of malloc and free. It seems malloc is somewhat more 'advanced?' than free, seeing as it uses free to find available memory. I still have no idea how you'd actually use them in your code. But then again I'd probably need to write C to know that.
 
user559633
Will do. I started writing objective C this morning and absolutely hated it.
 
user559633
@Owatch malloc and free do different things.
 
2:21 AM
I didn't say they were the same. I was just making an observation based on what I read. .
 
@Owatch like this:
malloc is allocating memory at a given size on the heap and returns a pointer to that memory location
free on the other hand free's that memory location, so donating it back to the heap
but to understand this, you should be familiar with the other way around: static allocation and working on the stack
 
_*-*_/
I am not familiar with the other way around. It'
's alright though. This explanation is enough to answer my original questions.
 
1 message moved to recycle bin
damn, I missed a closing parenthesis -- I hate writing code in SO chat's message field ;/
 
Malloc and Free are then like opposite operations, Malloc allocates, free returns it.
 
exactly
 
2:27 AM
Peter Varo free'd one message to the recycle bin.
 
 
1 hour later…
3:30 AM
who would think that's good for an upvote?
also, cabbage @AnttiHaapala
 
Hey I have a question
Will writing: for key,val in dictionary
 
@davidism not a dupe, but too broad or stupid...
 
give me access to the key and value for each item in a dictionary?
 
SQLAlchemy Core mentioned in question
 
3:35 AM
The real question is how to serialize sqlalchemy to json, which that dupe is about.
 
but then like "I do not want to use ORM but I do not want to not use the orm"
 
Or really, serialize anything complex to json
 
davidism: the point is valid, the objects are orm mapped in that question
ah maybe I will answer.
 
Dude, if you come up with a solution that actually answers that question, including all non-json types and following relationships, I will upvote that answer. Or you could call it too broad.
 
hmm
just a specific :D
I will not miss a possibility to promote psql
 
3:42 AM
Hey, no cheating! :)
 
Here is my complication. I need to check if the Values in a dictionary are within a certain parameter. Then if they are, I need to get the key, so that I can plug it into another dictionary in order to get something else. The problem is I can't get the key unless I reverse the dictionary and then perform the lookup. I don't want to do that. Is there any way to refer to a dictionary so that you can have both the key and value at once?
 
@Owatch for key, value in dictionary.items():
 
Like: for key,value in dictionary . . . if value . . . result = otherdictionary[key]
Oh, perfect!
@Zacrath Works as intended. Thanks. I remember reading the key,val thing somewhere, but didn't know about the .items() call. So helpful.
Rhubarb. It's late. Im out
 
 
2 hours later…
6:10 AM
@davidism I think should have closed that question
@Owatch also remember that if only you have the key first, it is effortless to get the matching value... :D
 
6:30 AM
Called it. The verbose ones are always trouble.
 
6:51 AM
Flagged with:
> This is the most verbose user I've seen in a while, does not take "it's not really possible" as an answer, and does not demonstrate an actual understanding of the problem in order to have a meaningful discussion.
 
voted to close
 
HI All..
Currently i am planning to develop time sheet for my concern. I already i developed intranet project in python.. I need to combine timesheet into this... I need some ideas to start...
 
7:15 AM
time for fizzygood to comment on etiquettes :)
 
@Swordy why would I?
 
hmmm, nice question , the answer is always batman.
 
Heh. I helped someone yesterday in chat and as a thanks they randomly upvoted 10 of my answers (netting me 100 rep). This was, of course, removed by the serial upvoting algorithm. Nearly hit 5500 for a while though
 
tough luck
I upvoted jerry quite a while back when i did not know serial upvoting wasn't allowed . he got 200 rep within 5 minutes , though i undid some of them when he informed me.
Using "he" for jerry seems awkward , I use "it" for Jerry in my mind. :(
I think this process takes quite a lot of time .. how do i get the execution time?? %timeit followed by instruction??
writer = csv.writer(open('NWORDS.csv', 'wb'))
for key, value in NWORDS.items():
    writer.writerow([key, value])
 
7:31 AM
The timeit module will tell you how long it takes. It can even be run as a script.
If it turns out that it's not taking a long time, then you could use the profile module to find out what is.
 
MORNIN'
 
so how would that look ?
 
timeit module is used like python -m timeit --setup 'setup_data_and_stuff()' 'operation_to_be_measured()'
 
btw , i'm using windows :(
 
Shouldn’t matter.
 
7:39 AM
waiting for the execution to finish
and i've seen people using %timeit
What is that?
 
No idea, I've never seen it. Do you have an example usage?
 
In [8]: %timeit 10*1000000
10000000 loops, best of 3: 38.2 ns per loop
 
Looks just like the output of the timeit module. Must be a shortcut tool or something.
 
dont try that, the most addictive thing this year :D
 
8:15 AM
@Swordy you can use %timeit when using IPython
It allows you to run timeit inside the Python REPL without needing to either a) leave to use the method that @Zacrath suggested or b) import timeit and fuss around with putting everything in strings etc
 
That explains why I didn't know about it.
 
cbg()
 
8:35 AM
so %timeit doesnt work outside of ipython ?
 
No, %timeit specifically is a IPython magic function
 
magic , i see
 
MAGIC
 
%timeit writer = csv.writer(open('BIGRAMS.csv', 'wb'))
%timeit for key, value in BIGRAMS.items():
            writer.writerow([key, value])
why does this give me an indentation error?
 
8:45 AM
You can only do one line statements when using %timeit
You can do multiline statements in an IPython notebook if you use %%timeit though.
%timeit for key, value in BIGRAMS.items(): writer.writerow([key, value])
 
ohhh i see o_O
for multiline %%timeit comes from 2nd line onwards?
 
In an IPython notebook (not the IPython console)? Can't remember.
 
10 loops, best of 3: 30.5 ms per loop
this is too slow , right?
 
I don't know.
That is a truly un-answerable question.
 
30.5 ms per loop , 30 such loops would take a second and 1000 such loops would take approximately 33 seconds
 
8:50 AM
Yes but how do you define "too slow"
 
10000 loops would take 5 and a half minutes.. slow.. :(
 
If you're doing 10,000,000,000 calculations then 30.5ms is probably hella fast.
 
given the previous instructions that clocked in 132 us
 
I've gotta go now for a bit but think about it
 
9:06 AM
cbg all
 
I want to select every 5th element of a list. If the eg 8th element of a list containing 10 elements was selected, the next should be the 3rd element. How can I loop through a list like that?
I know this was already questioned at stackoverflow, but I cant find that question
 
@MartijnPieters You are right of course. I have been out discworld'd. I bequeath my duck to you
(and cabbage)
 
@IntrepidBrit So many people underestimate troll counting, this is a cause worth taking up! We must bring awareness to troll intelligence and help them integrate into our society!
Imagine what their contributions could do for brassica farming and marketing, for example!
 
@Maxi You can get every 5th element of a list with: florby[::5].
 
@MartijnPieters No other race dies of "getting philosophy" either!
 
9:19 AM
Oh, to die of sitting down and pondering life, eternally.
 
I quite enjoying sending invoices - is that sad?
 
Because you're charging people or because you actually like making letters?
 
@Zacrath
@Zacrath a = [1,2,3,4,5,6] print a[::5] returns [1,6], But I want it to return every element of the list. eg: 546231
@Zacrath So the first 5th element is the five. You start with the next number (the six) and find the next fifth number (4) ...
 
@Ian is it wrong if I say I don't like writing letters?
Twitter has the right idea... if you can't express yourself in 140 chars or less... :p
 
@JonClements hah - then, my assumption is you're confirming my first assumption, and so my response to your original question is: no, it's not sad!
 
9:29 AM
@Maxi It's not obvious what you want.
I kinda get it but not totally.
 
@Ffisegydd surely everyone just wants to be happy?
 
To see your business/self-employment succeed? Yeah Jon, you're an absolute saddo... continues writing an invoice
 
@Maxi I think itertools.cycle would work for that.
 
I was thinking itertools.cycle, or a = a*len(a)
But got some length lists you'll get a cycle that runs forever (i.e. you'll always get the same number back not all of the numbers)
 
>>> list(islice(islice(cycle(a), None, None, 5), len(a)))
[1, 6, 5, 4, 3, 2]
 
9:34 AM
yesterday, by Ffisegydd
Just as I come to see you when I want some off the hook one liner involving itertools.
 
It's not the most elegant of lines though... @Maxi why are you trying to do this?
Invoice emailed at 10:19 - money paid 10:37 - my favourite client
 
itertools.cycle seems to be the right way of doing it, but I dont know yet how to. using itertools.cycle(a[::5]) returns just 1 and 6
@JonClements I dont get it
@JonClements for a riddle
 
I reckon Stewie can explain :)
 
I need to somehow delete an element when it got selected
 
Well - that's something completely different
 
9:49 AM
@JonClements sry forgot to mention that
 
@Maxi might it be better if you ask a question on the main site and detail what you are doing fully?
 
@Ffisegydd Yes that might be better. I will try it with itertools and if i dont get it done, I will ask a question. Thank you guys :)
 
gotta run for a bit - rbrb
 
10:07 AM
@Maxi I hacked up a generator that seems to do what you want:

def florby(value):
x = 4
while value:
while x >= len(value):
x -= len(value)
yield value.pop(x)
x += 4
 
multiline code formatting gets a bit weird when you add non-code D:
 
def florby(value):
    x = 4
    while value:
        while x >= len(value):
            x -= len(value)
        yield value.pop(x)
        x += 4
 
10:23 AM
@Zacrath How can I test it? next(florby(a)) (sry I didnt worked with generators yet)
 
@Maxi iterate over it with a for loop
So for x in florby([1,2,3,4,5,6]):print(x)
 
for val in florby(your_list_here): will iterate through it. list(florby(your_list_here)) will return a list.
 
cbg again
 
@Zacrath thx a lot, it works
I just dont understand yet what you have done :D
 
You should probably come up with a better name though.
 
10:36 AM
a better name?
 
"florby" was just a place holder I used.
 
Meta is a weird place, I now have way more silver badges there than bronze.
Help me remedy this, upvote my unaccepted answers scoring 9 points only...
(no, don't do that, really, only vote if they are somehow helpful to you).
Not that those 3 would actually make a difference..
 
Hang on - downvotes are free on meta... (umm.....) :p
 
@JonClements :-P
Yup, but I am not going to lose any silver badges when you downvote.
So that's no help either.
 
Make lower quality answers?
 
10:43 AM
Perhaps. There is a fine balance to be struck.
 
Mind you - that'd be like asking you to chop of all your limbs :)
You'd quite frankly be rubbish at making low quality posts
 
Perhaps I need to post redundant answers in the bug tag, and various tags I have close to 20 answers in. Bronze tag badges are easy on Meta.
All you need is volume.
 
@Martijn how many cubic metres is enough?
 
42
 
@JonClements You cannot ever have enough volume on Meta. I lack volume.
I NEED TO SHOUT LOUDER
 
10:52 AM
OKAY THEN!!
 
@Zacrath Ah finally I understood it. Tank you very much :)
 
11:05 AM
BOLD AND ITALICS AND UPPERCASE LOUD ENOUGH?
the chat markdown parser doesn't support # headers however. Spoilsports.
 
I find italics make it look less bold somehow...
   _____ _    _  ____  _    _ _______
  / ____| |  | |/ __ \| |  | |__   __|
 | (___ | |__| | |  | | |  | |  | |
  \___ \|  __  | |  | | |  | |  | |
  ____) | |  | | |__| | |__| |  | |
 |_____/|_|  |_|\____/ \____/   |_|
Now it feels like the good ol' IRC days...
 
██╗      ██████╗ ██╗   ██╗██████╗     ███╗   ██╗ ██████╗ ██╗███████╗███████╗███████╗
██║     ██╔═══██╗██║   ██║██╔══██╗    ████╗  ██║██╔═══██╗██║██╔════╝██╔════╝██╔════╝
██║     ██║   ██║██║   ██║██║  ██║    ██╔██╗ ██║██║   ██║██║███████╗█████╗  ███████╗
██║     ██║   ██║██║   ██║██║  ██║    ██║╚██╗██║██║   ██║██║╚════██║██╔══╝  ╚════██║
███████╗╚██████╔╝╚██████╔╝██████╔╝    ██║ ╚████║╚██████╔╝██║███████║███████╗███████║
╚══════╝ ╚═════╝  ╚═════╝ ╚═════╝     ╚═╝  ╚═══╝ ╚═════╝ ╚═╝╚══════╝╚══════╝╚══════╝
@JonClements Exactly my thoughts.
 
Just need someone's script to announce what track they're listening to... a couple of PINGs and some DCC chat windows open, and sorted :)
 
but needs more black.
 
@Martijn I was getting there... sheesh - Mr Competitive :)
/me is listening to Unknown Artist - Unknown Album - Track 01
/me sets mode #python -v MartijnPieters :p
The time I spent on IRC instead of studying/working... goes into black/white flashback movie reel mode
 
11:13 AM
The time I spent in Telnet on a MUD instead of studying..
 
LOL
@Martijn we're a great example for the youth of today aren't we? :p
"get off the computer son, you're meant to be studying!" - "you never did Dad!"
 
@JonClements Remember the more than 32 hours answer on the hackers test question Have you ever used a computer?
 
Well, I've certainly worked at one for almost 2 days straight
 
@JonClements Don't start with that one. I have teenagers, remember?
 
@Martijn hey - no one forced you to have kids mate :)
 
11:16 AM
The best terminals were in the Electric Engineering building.
But it opened at 07:00 in the morning and closed at 19:00 in the evening.
But there were these vending machines you could get some decent snacks from too.
One day I entered at 07:00, didn't leave until 19:00 the next day.
 
I should change the room title "Welcome to Python - reminiscing on the good ol' days"
Once played a 14 hour game (or something like that) game of StarCraft
Made a change from the 5 min rush games
 
Didn't your fingers fall off?
 
Ahh... so that's why I don't have "fingers" like all the other puppies do? :p
 
... so then how did you keep up your APM?
 
My tail waggles quite quickly
Remember those games were you try to break the joystick by waggling it left and right really quickly to make your guy run really quicker on the screen? I was really good at those :)
 
user559633
11:24 AM
Remember when the N64 came out? Talking about the old days
 
Still got one of those in the loft...
The joystick... I think my brother still has an N64
 
Rockin'
 
user559633
:)
 
I've still got my Commodore Amiga 500 somewhere...
 
I wanted the Amiga 600 - but my father bought me a PC instead
Not that I'm really complaining, but I'd be using my pocket money to save up for the Amiga magazine that use to come out
 
user559633
11:27 AM
I still have the processor from my first computer. Socket 7 75Mhz
 
and wanted to play Harlequin I think it was
@tristan don't let it too near your mobile phone, it'll get jealous
 
@JonClements Fight! Fight! Fight!
 
user559633
It's actually near the size of my mobile phone. That's kind of incredible
 
God, I hate front-end developers.. why are they even called developers? is it because they are using text editors and typing random things there? I mean seriously: they have no idea what optimisation means, don't they? Because of the fancy JS-magic of the pages we have nowadays, the browsers (pick one, it doesn't even matter which) are running on 1 massive 130%... bastards...
oh btw, cabbage again ;) // is it the 3rd time today? :P
 
user559633
Hi @PeterVaro :) JavaScript is pretty terrible though. "only the poor blacksmith blames his tools" etc etc, but it's really like trying to build a house out of dog shit.
 
11:31 AM
@tristan I know, I know -- but as an end-user -- do I care about that? hell no..
 
user559633
sure, but then some of the fault is on js core maintainers -- which is inarguably "back end"
 
fair enough -- however, as an end-user, I still don't care
and tbh: if I know, as a developer that some features have performance issues -- then I won't use them
that's also part of the job, I guess, to say no to things which would be sooooooo good.. but they are not now.. so we have to try to live with this fact, and get maximum out of what is available
 
user559633
That's fair, but then as a JS developer, you'd not be able to use anything. Playing devil's advocate aside, yeah, I understand what you mean and whenever I ask a question about JS, the "answer" is "oh, no, what you want to do is something super greedy and not at all what i was trying to accomplish"
 
@Peter I've never really gotten the hang of (probably because I don't like it) front-end stuff
 
@tristan then we don't need JS => we don't need people who are developing do-javascripting
 
11:37 AM
once worked with a woman that kept taking the raw backend feeds, then attempting to do topological sorting and selection in the front-end
 
hey you guys have suggestions on a python library that can detect font color of text in a docx file?
 
I asked her to spec. it up, and added a new url endpoint which did it for her
 
user559633
@PeterVaro yeah, see edit. i do actually understand what you mean.
 
can Tkinter do it?
 
@JonClements but that wasn't good for her, was it?
 
11:38 AM
Since the data already had an auxillary graph db, this wasn't difficult
 
@tristan I know you do.. I just had to write out the anger I had..
:)
and it worked actually -- again :D
 
If you're trying to compute something in the front-end that's already available in the back-end, it's a waste of resources all round
@Peter we'll be invoicing you for your anger management session later today :)
 
:D:D
 
user559633
@JonClements but if you have something not available on the back end, make the user do it on the front end :)
 
user559633
I seriously wish there was a better language for the front end. Google and Mozilla would add support immediately and I feel like they're large enough to make Microsoft follow.
 
11:41 AM
@tristan we'll get @Kevin on the case with KevinScript - we'll push that as the new standard!
 
okay.. I have to go walk the beast now ;) see you guy later
rhubarb ~
 
user559633
Take care
 
Just signed: change.org/p/police-reunite-ashya-with-his-parents - not sure what good it will do, but... oh well
 
@JonClements I'm worried about the precedent on this one
Which is why I'm not signing up
 
I think everyone's been wrong about it all round... a complete mess, but the mess can easily be sorted right now with some simple action
 
11:48 AM
Let's make a petition to deprecate JavaScript and make Python the scripting language of HTML.
 
user559633
I have no idea what that petition against.
 
I get it a lot, but these emails always freak me out for some reason: "Jonathan, people are looking at your LinkedIn profile"
 
user559633
@Zacrath yeah, python for html would be neat, but then the DOM is also a piece of junk.
 
@JonClements and it's all 'someone's too.
They are peeking into your window.
Lifting the curtain!
 
Err... wrong curtain... put the ladder under the adjacent window
 
11:53 AM
@MartijnPieters mysteries of relstorage, there are opens with 'b' and without 'b' next to each other, and the assumption seems to be that "it does not matter" :d
 
if i parse docx files in python , will the font color & sizes be preserved?
 
@Swordy well, afaik, they're just compressed XML...
 
@Swordy that is a good question :D
 
not have to process a docx file.... excel files, yes, but not documents :)
 
then how is that information stored in word documents?
 
11:56 AM
if you parse something then ofc everything is preserved,
parse is a readonly op :d
@Swordy I would gladly answer you but I know RO's does not support cursing in the room
 
i want python to identify these attributes like font color, sizes etc . checked the tkinter package too.. Which library would you suggest?
 
Office Open XML (also informally known as OOXML or OpenXML) is a zipped, XML-based file format developed by Microsoft for representing spreadsheets, charts, presentations and word processing documents. The format was initially standardised by Ecma (as ECMA-376) and, in later versions, by ISO and IEC (as ISO/IEC 29500). Starting with Microsoft Office 2007, the Office Open XML file formats have become the default target file format of Microsoft Office. Microsoft Office 2010 provides read support for ECMA-376, read/write support for ISO/IEC 29500 Transitional, and read support for ISO/IEC 29500 Strict...
 
@JonClements supports helping othrs ;)
 
So, I'm sure someone's written a parser to some extent for that
 
brb , give me 20 minutes ..afk
 
11:59 AM
They'll probably give back text elements with links to font/attribute classes or something or other... never tried... enjoy yourself finding out though :)
@IntrepidBrit more propaganda from the don't leave campaign :)
But it mentioned "Unicorns" - so had to post it! :p
 
Ah yes, the old "change people's minds by mocking them" strategy.
 
I bet the nats'll be spitting nails. But it's pretty funny
 
The Prime Minister's told LBC five year old Ashya King should be reunited with his family.
That's nice.. but I'd hope our PM had more pressing matters
 
That petition has some unusual language... "his parents were today denied bailed ", "Ashya is a poorly child", "please find it in your heart as a hum being to act"... Is this like a regional dialect or something?
 
please give us the independent scotland :D
 
12:09 PM
First one reminds me of the Western Pennsylvania "needs verbed" construction, actually
 
@Kevin bbc.co.uk/news/uk-england-29026266 has a bit of a run down
 
> A High Court judge in Madrid ruled on Monday they will remain in custody for a maximum of 72 hours while he considers granting bail.
 
@AnttiHaapala Hm?
 
I'm pretty optimistic about that. Don't think a judge would refuse bail to parents of a sick child.
 
@JonClements You mean XML is the best bet for that?
 
12:22 PM
Wrong button, although I fail to see any advantage to it staying on the site.
 
Done
 
missed the cv, so it got a delv
 
Before you can learn Python, you must know these Python frameworks. Quite the catch-22 there.
Or more likely, the OP has confused "framework" with "language"
I think Python makes a fine first language. But that's just my opinion :-)
 
You appreciate it a lot after coming from a C background - that's for sure :)
@Swordy I'm just saying that's all it is, never had to parse a docx file, and I'm sure there's libraries available to do so... but you've got the same resources available to you as I do, to find them and try them out :)
 
Yeah i found one , Beautiful Soup
So basically i'd plan on converting the docx , doc files to xml , and use beautiful soup on that.. Still hunting for the best option online :)
 
12:28 PM
There's probably something already using elementtree/lxml... look for pre-done ones on pypi first before starting from a (wrong) base
 
Yeah , just came across :)
elementtree and MiniDom
 
Ooo... the Minecraft 1.8 update has added loads of stuff
@Kevin villages now harvest and re-plant crops... AI has put you out of a job my friend :(
 
@Swordy BeautifulSoup is great for HTML.
Less so for XML.
Better go with the ElementTree API.
The lxml implementation is the best option there.
 
@MartijnPieters formatting and other attributes are preserved in XML ,right?
 
@Swordy presumably... read the spec I've already linked you to
 
12:34 PM
I can't see any villages from my house, so I think I'm safe. Unless my job gets off-shored to the next continent over.
 
@JonClements ;)
 
Luckily the Minecraft world doesn't have any efficient long-distance communication, so that's not likely. (assuming villagers can't read global chat)
 
if you can't find an existing library that does it already in a convenient format, you're going to have the parse the XML and do what's required with that data as per the spec.
 
hmm, I wonder if you could set up a telegram system in the game...
 
cool , thats all i needed .. Time to learn something new
 
12:37 PM
@Swordy All text formatting is stored in XML attributes and elements.
That is preserved if you don't alter the XML document to remove the information.
 
Now that sounds awesome ,..
 
You'll need to read the spec to figure out how that is stored in the XML so you can avoid removing it.
 
I doubt it'll be in line... I'd imagine unique formats to have certain attributes, then the document it relates to itself, references those in some sense... (knowing MS though, they could have in-lined everything!)
 
Thats ok , i just need to get counts of words with specific formats
Just needed to get words in terms of its attributes . I wouldn't have to reconstruct the entire doc :)
 
MS Word supports both 'style sheets' and inline formatting.
Determining the actual display format of any given piece of text will be... interesting.
lunch, bbiab, rbrb
 
12:42 PM
Yeah , sounds fun ;) .after those addresses , this will be a treat
 
@MartijnPieters rbrb
 
thanks @MartijnPieters @JonClements
 
@MartijnPieters ham, cheese and pickle baguette for me please boss? :)
 
dog biscuits ??
 
@JonClements We are vegetarians, you're out of luck here.
and how's the punching-people-through-the-internet tech coming?
We could re-use that to deliver you some lunch too.
 
12:43 PM
I'll just go for cheese and pickle then? :)
I'm working on adapting the Star Gate technology for computer monitors at the moment... might take me a while...
 
I don't feel so bad about drinking absurd amounts of coffee now
 
I was thinking the other day, whether we'd ever invent a drug that is so plainly beneficial, that doctors would prescribe it to everyone, sick or not.
Now I realize, this has pretty much already happened. You can find two coffee shops on every street corner.
(not that I'm claiming that everyone in the world should have coffee all the time)
Another example: flouride reduces tooth decay, but lazy citizens won't bother to take it? Just stick it in their water supply.
 
@Kevin they already do in the UK
 
user559633
Flouride isn't without detriments.
 
Type "shower mat" into Argos and get: argos.co.uk/static/Product/partNumber/2469553.htm
Not quite what I was expecting
 
12:55 PM
> At the commonly recommended dosage, the only clear adverse effect is dental fluorosis, which can alter the appearance of children's teeth during tooth development; this is mostly mild and is unlikely to represent any real effect on aesthetic appearance or on public health.
 
I just chew bones... has worked for my teeth
 
Woah there Wikipedia, what are you doing taking a stance on "aesthetic appearance"? That sounds 100% opinion based to me.
Maybe I think flourosis streaks are a huge deal breaker. Why you hatin' on my life choices, WP?
 
@Kevin can we close Wiki articles as OP? :)
rbrb
 
Stick it to Wales! (Jimmy)
 

« first day (1417 days earlier)      last day (3537 days later) »