« first day (1931 days earlier)      last day (3020 days later) » 

12:07 AM
Hi people...
Somebody want to pair programming?
 
I've never understood peer programming (outside of a teaching method)
 
Jeje
Well... In my case i want to learn more... And I have an idea for an app...
So I would like to meet somebody and see if I can develop that with that person.
 
In that case, I would suggest doing some work on that idea (not necessarily only code, could also include design charts, proposals, use cases, etc). Putting that in an accessible repository such as github or gitbucket and returning as you hit blocks/have questions (that you have attempted to answer yourself) - then add a link to your profile/git profile so people will help you, see it, possible fork it and add improvements.
 
Great advice!, Thanks a lot for that.
 
12:22 AM
de nada
 
jeje
However... I have a doubt with that... If the idea is good I would like to earn some money with that... Is not too risky to put all in public? I know the idea of open source, but still.
 
12:44 AM
does anyone know where the documentation for request.json[] is for Flask
 
If you brought in someone for a joint project - you would have to share the idea anyway and you may be able to get private repositories (github or bitbucket). However, if one is developing an application with the idea of monetizing it - you definitely need to have a general idea before bringing in other unknown developers.
There are a lot of issues with developing software - both open source and closed-source.
 
Thanks, interesting that it recommends the other get_json() any ideas why?
 
did you read it the linked documentation in Martijn's answer? It looks like the new method offers much better error communication and cacheing
 
I did, was just wondering if there was a reason it is "preferred" and .json wasnt deprecated
is there any advantage to using .json still?
 
1:03 AM
Yeah, you are right. I will mount the idea on github and share to see if someone want to help.
the monetize part is secondary... I want to develop a project.
Thanks a lot for your help.
 
de nada
@Busturdust no idea, not something I use Flask for the few times I use Flask.
 
 
7 hours later…
7:52 AM
Cbg all.
 
user559633
8:35 AM
morning
 
9:18 AM
Morning, chums
 
user559633
Morning mate
 
How's life in the Motherland? It's distinctly grey here.
 
user559633
It's quite gray here too. Very muddy as well.
 
Universal Grey
I can't even be added with a 50 shades joke. I have a cold that has dampened my spirits.
Maybe Vodka...
 
user559633
Although, it's just slightly freezing, which is pretty exciting. I'm looking forward to snow melting away into the drains and the subways and roads being a bit more dry.
 
user559633
9:29 AM
I have my winter clothing with me as I've been traveling out of a carry-on since early December, so I'm thrilled at the prospect of being able to wear sneakers and a sweater instead of bulky things
 
user559633
What are you working on @JRichardSnape? I always have the impression that you're science-ing on interesting things
 
9:45 AM
Sorry, got distracted. My current obsession is gaining a better understanding of how the spatial arrangement of renewable electricity generators affects the grid in terms of power flow and (connected) carbon intensity.
I'm also marking and maths ing at the moment
 
Cabbage!
 
user559633
cbg
 
user559633
@JRichardSnape Yeah, so I think I had a fair impression. How do you model that kind of stuff? Do you have data from each arrangement or is it a deterministic thing?
 
user559633
rbrb
 
10:00 AM
@JRichardSnape Biggest problem being faced is the fact that the UK grid can't handle variable power well
So even when renewables are running at full/potentially pelt, the grid often can't accept the power so it's wasted
That quest is going to get hella confusing when some of the new systems come online
 
user559633
10:52 AM
^ Interesting. If there aren't batteries immediately available, I'm surprised it's not dumped into steam power or something with a medium with potential energy
 
@tristan A mixture - I have some data, which I use to calibrate models of the equipment, then place them on a simulated grid in greater or lesser quantities / greater or lesser clustering and look at results.
I also look at real data on CO2 intensity and (e.g.) wind capacity. You'd expect CO2 intensity to drop with increased wind capacity and on average it usually does, but when you look at the time series, you see some unexpected stuff that might get worse.
Such as what @intrepid mentions, which is my bread and butter really. At the moment, we just dump (curtail) renewable capacity when it's generating too much in the wrong place geographically. I look at how we can improve that situation.
And then you get on to the thorny issue of people accepting the ways that can be done. Once the tech solution exists (and largely it already does), will people use / accept it...
 
user559633
Is the simulated grid entirely computer based or is there some physical lab component? What are the tech solutions? Moving energy generating equipment or usage patterns or?
 
BTW @intrepid - the "often" in your statement about not accepting power is perhaps not as often as you think - although it's something I'm actively looking at now. Initially it looks like actual curtailment isn't always used, but wholesale price can go -ve so that they're actually paying to have their power used.
@tristan Tech solns largely consist of either storage or altering usage patterns. I look largely at the latter. Although - when you think about it, they're broadly equivalent - if you move the use, you're storing energy either embodied in a product, or as heat in a building or water.
We do look at storage in other media such as steam, compressed air, hydrogen etc, but most are still extremely costly.
 
Cabbage
 
Hi @pm2
@tristan Mainly computer. I have built a couple of physical systems for demonstration and we do test our demand shifting algorithms in real boxes in people's homes. Which is fun. But my real research is in the modelling.
 
11:01 AM
Pity that there's still no high temp superconductors, otherwise SMES would be an attractive option for energy storage.
 
True dat
 
That's fair - my scope tends to end when the data flies out the wire.
But in many isolated places in Scotland, I think it is just lost. They have to shut down the turbine or risk destabiling their grid-witchcraftery.
 
I still retain an engineer's hankering for the silver bullet. Fusion could do it, I suppose.
@IntrepidBrit yes - the more isolated places it's a real issue and they do have to curtail to maintain grid stability.
They're the really interesting "real life lab" test cases for me.
 
cbg("pm2")
 
Man - I could go on about this for hours :)
 
11:06 AM
Sounds like there's a lot of cross over between what you do and what my clients are doing
 
(I won't: worry ye not)
 
user559633
Why would we worry? This stuff is cool
 
@IntrepidBrit Hmm - in Edinburgh - I wonder... Does the term Dynamic Line Rating mean anything to you?
If so, I can guess who you might be talking about.
There is some really good work going on up there - Strathclyde is a leading university in it too.
 
We have a little bit of hydro storage in Australia, but that's aimed at traditional "chunky" load balancing of big coal / gas / oil power stations, not the modern scenario with lots of solar panels / wind generators scattered all over the place. And anyway, hydro storage has losses around 25% IIRC, due to evaporation and simple mechanical losses involved in moving water around.
 
Actually it doesn't (Dynamic Line Rating).
It's really sprung up around the Scottish renewables up here. So many businesses are getting stuck in
 
11:08 AM
Hydro depends very much on its duty cycle for its efficiency. One of the biggest problems here (UK) is that economic efficiency != k* tech efficiency for hydro
 
I'm impressed with various Aussie hydro electric dams. From what this layman can tell, they're in relatively good nick
 
I guess evaporation might be much worse in Oz, too. I know NZ has loadsa hydro, so lots of intermittency is not really an issue for them. Their problem is they don't know how to build houses without holes in them.
 
The one I was was still chocca with British stuff from the 70s (or maybe earlier)
 
@IntrepidBrit Yeah, considering they were built just after WWII. But I guess the people working on the Snowy Mountains Scheme (many of them recent immigrants) had a lot of pride in doing it properly.
 
user559633
Is 25% loss a lot for what would otherwise be unused?
 
11:14 AM
Just found this presentation, which is an interesting run through of the big hydro plant in Wales - tech efficiency (75% - on the money PM2), design and (somewhat dated, but still relevant) economics.
25% losses is not huge for a complete "round trip". Worse than batteries, better than via hydrogen (electrolysis + fuel cell), better by far than storing as heat.
 
@tristan Depends on what the hydro plant is being used for. It's a lot of you're using it as an energy reservoir
 
When I say worse than batteries - that's true in the short term. But of course they can't do long term (tending to 0% efficiency over time!)
As intrepid says, though, it's horses for courses. Hang on - I have a picture somewhere...
 
@tristan It's not so much that the energy would be unused: the power station has to shut down the generators if the grid can't accept the energy. That's not so bad for gas-fired systems (apart from the loss of revenue from not being able to produce & sell for the time period), but oil & coal systems can't just be switched off & on at a moment's notice.
 
And then for efficiency...
 
user559633
Huh. I'd just think that huge vats of water would be warmed or raised as steam to an upper "vat" to then recapture as kinetic energy
 
11:21 AM
You can do that. Or with gravel beds. But it's pretty inefficient. And you need expensive storage kit to store steam at high pressure.
 
Another big benefit if we had high-temp superconductors: a global power grid could become viable, which would help enormously with load balancing. Of course, the installation cost would not be trivial, but the main barrier at the present is the huge losses incurred in transmitting electrical energy over huge distances.
 
Hmm a comparative efficiency chart harder to find in my archives than I though. Makes me think I ought to make one and put it on the web. The other efficiency, or course, is $/kWh.
 
user559633
Huh, weird, this stuff is strangely intuitive at a layman's level.
 
@PM2Ring yes, with the only "solution" being super high voltage DC lines, which are better, but not closing the issue.
 
What irks me from a human POV is that "electricity is cheap, let's waste it, pump water back up a hill so we can sell it again when it's more expensive"
The businessman in me gives an appreciative nod
 
11:22 AM
@tristan I'll take that as a compliment to my exposition technique ;)
 
user559633
As you should
 
user559633
@IntrepidBrit I'd assume it's more about not ruining the equipment
 
@IntrepidBrit That's a real problem for storage overall. It kills its own market. At the moment, because it's rare, storage places can "hoard" their energy and sell high. Makes it attractive. More solutions develop. The grid gets a flatter demand profile. Storage is less needed and .'. less valuable
This is a huge problem for making the economics work (IMHO)
 
One argument for the global grid
 
user559633
11:25 AM
convert it to bitcoin! at least then you'll have wasted energy and time
3
 
:D
bitcoin as renewable energy sink FTW
 
user559633
convert the sun's energy into a child's understanding of economics and into hacker news blog posts
 
And that'll be why the sun will smite us with solar flares for our lolcats hubris.
 
Re-cbg all.
 
recbg("6th")
 
Should there be a salad programming language?
 
user559633
11:53 AM
^ I thought about making a little toy cpython-based salad lang, but then got busy
 
Business - the scourge of productivity.
 
user559633
I've been on vacation, so working on my own stuff, but yeah
 
... And enterprise of great pitch and moment
With this regard their currents turn awry
And lose the name of action.
 
user559633
- billy shakesman
 
Impressive. @bereal ratcheting up the level several notches there.
 
11:57 AM
I think the 35 starred comment by bereal is the highest starred comment in this room. Is it so?
 
Yes
 
I didn't expect that, God is the witness.
 
Cold still present. Send Whisky. Or Vodka.
 
user559633
@JRichardSnape If you mean temperature, then yes, go hog wild. If you mean sick, it won't help, but I'd suggest hot toddys.
 
user559633
whiskey + honey and lemon = all of a sudden, you're treating a cold and not just a daytime alcoholic
 
12:00 PM
@tristan can I replace honey and lemon with whiskey?
 
user559633
@khajvah do what you want; i'm not your real dad
 
> real
 
12:16 PM
Cabbage all :)
 
user559633
champagne problem of the day: the tea i purchased contains bergamot flavoring, not real bergamot. i deserve it for not buying loose-leaf tea :/
 
first_world_problems.jpg
 
user559633
i'm in the second world :|
 
feels bad man
 
user559633
 
12:27 PM
is there anything that could cause a generator to give different output if you call list(my_gen) vs iterating over it in a normal for loop?
 
user559633
@M4rtini why do you ask
 
i'm just don't understanding why it gives two different results here
 
try running it once more
 
I moved all my relevant code into a new notebook and rerun everything before asking here
 
user559633
why are you yielding twice
 
12:33 PM
Because the first output is calculated different from the rest. Does that matter for the problem?
 
that's interesting...
 
same problem if i switch to a python 2 kernel
the idea was a potential answer for this: stackoverflow.com/questions/35083016/…
subtracting one number for each element should be more effective than recalculating the whole cumsum for a smaller slice
 
Hi.. I donno how the import on this actually works ..
import logging
from logging import NullHandler

from .reflection import Reflect
from .call import Call
from .exception import CallError, Redirect, CallStop, AccessDenied
from .http import Request, Response, Url
from .utils import AcceptHeader
from .core import Controller, CorsMixin
from . import decorators


# configure root logging handler to avoid "No handler found" warnings.
# I got this from requests module
logger = logging.getLogger(__name__)
if logger.handlers:
    logger.addHandler(NullHandler())
it's an init.py file for endpoints module.
They suggest users to call
endpoints.api(name='city')
But there ins't an api func inside endpoints init file.
 
@M4rtini I got it!
Oh wait...
no, I didn't
 
damit
 
12:41 PM
yep
 
don't get my hopes up like that :P
 
I think though, that has to do with by copy vs by reference.
right, sure
 
yeah, if i print the id
the first one all different id
the second one all have the same id
for some reason..
nvm, i had a typo. different id's in both cases
 
yes, np.ndarray[1:] returns a kind of view, it does not copy.
so when you modify n_sum_cum, you also modify the arrays you yielded before.
which are referenced by the list
but when you iterate over the generator and print as it yields, you print before it gets 'corrupted' by the next iteration.
 
Ahh, thanks. I think i got it
That's a nasty gotcha..
 
12:50 PM
yep, it took me a while to realise that it's not a list, but ndarray, numpy is not my competence.
 
user559633
@DaSaDiYaChaiTAnYa read the room rules: sopython.com/pages/chatroom
 
user559633
Specifically, don't link recently asked questions in the room. Offer a bounty if you feel your question is not receiving enough attention
 
yes I understood sorry for the posting @tristan
 
user559633
No need to be sorry.
 
1:00 PM
@M4rtini I've hardly ever used Numpy. But yeah, that's an "interesting" gotcha. FWIW, this works correctly:
for i in [list(u) for u in my_generator]: print(i)
You can convert that list comp to a generator expression &/or change the list call to tuple, and you'll get the correct numbers.
@bereal I guess it makes sense that Numpy would do that sort of thing to maximize speed and minimize RAM usage.
 
Cbg
 
user559633
1:19 PM
cbg
 
@PM2Ring Thanks. i just changed the generator to yield n_cum_sum[i:].copy()instead. I assume it would give the same result
 
Yep, that appears to work.
Or yield list(n_cum_sum[i:]), but I guess the Numpy array .copy() method is probably more efficient.
 
I assume it's faster to create a np.array copy than a list
.tolist() would also be an alternative i guess
 
1:42 PM
Is it just my ancient system, or is this answer broken? It just hangs on my machine.
 
1:57 PM
@PM2Ring Yours works, his fails for me on an Ubuntu 14.04 box. The one you link looks like it ought to work, but I don't know exactly how the subprocess PIPE is supposed to work.
@PM2Ring His would work in python 3 - but the print syntax implies python 2. I shall comment to that effect
 
Thanks, Richard. I don't use subprocess much, so I'm not sure why his doesn't work, either.
 
morning everyone
 
Morning cabbage.
 
TGIFC
 
2:15 PM
Morning
 
this is a weird question. I'm reading it as "I need a property of a file that uniquely separates it from any other file in its directory". Isn't the answer obvious, then...? Or am I misunderstanding?
Right now I'm betting on OP replying "I thought of using names, but when a subset has 500 files in it, then the name will be very long". And that's true, but if you need completely unambiguous names for all possible combinations of 1000 files, some of them will have names at least 125 characters long, as a consequence of the pigeonhole principle.
 
is it just me or is water pouring the most irritating sound?
 
> I also thought about using the filenames, but they are quite long and I would end up with a very long unique identifier.
Nailed it B-)
 
user559633
@corvid other people chewing is the most irritating.
 
*with their mouths open
 
2:21 PM
I just got moved into a cube farm so I'm adjusting to this
 
they're farming programmers? This is like something the Wachoskis would make a movie about
 
It's more like IT support and I'm the only programmer lol
 
user559633
@corvid "they exist to turn programmers into this" *holds up crudely drawn picture of a crying, frowny face*
 
@tristan This is the most irritating noise in the world ever, ever, ever.
cube husbandry sounds like something to get into.
 
2:37 PM
Are base 64 encoded strings safe to use as filenames? If the answer is "depends on the OS", let's say Windows and Linux.
Oh, they can contain "+" and "/" so I'm guessing not.
Guess I've got to use the altchars argument when calling b64encode.
 
I wish I had a dollar for every Unicode question I've seen that gives no clue of what Python version they're using...
@Kevin There's a URL-safe variant of base64 encoding which should be safe for filenames on any (sane) filesystem / OS.
 
I browsed RFC 3548 and it suggested replacing /+ with -_
 
Yep. That's what the function I just linked does.
 
2:53 PM
cbg
 
@Kevin I guess some form of hash is the solution, but to guarantee no collisions the hashes need to be 1000 bits long. OTOH, the risk of collision with a 512 bit hash is probably pretty tiny, unless he's generating lots of subsets.
 
I'm writing up an algorithm that takes a subset and converts it into a list of 1s and 0s corresponding to whether each element in the set of all possible elements is in the subset, and converts that bitmask into an integer, and packs that integer into a string, and b64encodes that string.
 
And I don't think he needs to hash the file contents, simply hashing the names in each subset should be adequate. However, if he needs to be able to recreate the subset from the hash, then that's not going to work.
@Kevin Sounds good to me.
 
All of the steps in my above message are reversible, so it ought to work
 
3:10 PM
dupe stackoverflow.com/questions/35087212/… Another newbie wants to create variables dynamically
Rhubarb
 
Rbrb PM
 
Well I posted my algorithm. Whenever I do bit-twiddling like this, I get the feeling that I'm reimplementing the wheel.
Now to wait for a competing answer saying "Kevin's solution is technically correct but you can do it in one line with the built-in datamanipulation.encode_subset_of_a_set_into_a_filename_safe_string"
 
What bothers me about those dynamic variable questions, is that I remember myself many years ago asking or looking for similar things, and I recall thinking that it was very clever, so people asking why I need that must be stupid.
 
3:28 PM
When a new programmer has only ever worked with strings/bools/numbers, discovering a way to refer to N different variables without having to write N lines of code, is an enormous paradigm shift. This epiphany occurs whether you discover lists or "invent" variable variables; both qualify.
In some ways, variable variables are more versatile and powerful than the traditional idiomatic approaches. It's just that the syntax for using them is way worse than dict/list indexing, and the lack of encapsulation makes maintenance umpteen times harder.
 
3:48 PM
@Kevin I have a difficult time understanding how "I implemented a way to speed up things by writing certain information into databases" leads to "For this reason I need to be able to generate unique filenames for arbitrary subsets of these files". In a typical "I have too many files!" situation you would think just archiving them together or something is the right path.
I worry this is a situation where OP took the wrong path and he's asking for how to get deeper in those woods.
 
Could be.
I have a gut feeling I can't steer him from his path, so the best thing I can do is hasten his trip down the blind alley, so he can back out of it sooner :-)
 
or he may never return, how could we ever know :)
 
cabbages cabbages everywhere, but not a head to eat
morning, folks!
 
cbg @inspectorG4dget
 
anybody know of a faster way to get me caffeinated?
 
4:02 PM
Crack.
 
Adrenaline. Find a big cat, then fight it.
 
sadly, we don't have one of those lying around the office
 
Find a small cat but give it weapons to even the playing field.
 
bwahaha. Flamethrower kitty
 
Fun fact: in Dungeons and Dragons, an average alley cat has superior combat ability than an average peasant.
They don't need any weapons besides the ones nature gave them.
 
4:05 PM
but of course! the peasants get distracted by how cute the cat is, and then it scratches them up. But they're peasants and have questionable immune systems, so they die from infections
 
In Magic: The Gathering, four little girls can kill a grizzly bear, although they all suffer fatal wounds while doing so.
 
Find a Puppy, smack it till it shouts that it is a cat
 
@Kevin Not just superior, but vastly superior.
 
where's Jon when we need him? :P
 
When I played briefly back in DnD 3.5, IIRC a cat could reduce a peasant to 0 hit points in three rounds or so. This means one can go from "perfect health" to "incapacitated and bleeding to death" in under eighteen seconds.
 
4:11 PM
This is the consequence of making standard humans the 0-degrees of your system. It's not that cats are overpowered, it's just very difficult to make anything weaker than a statless mook.
 
Alternate speculative theory: early DnD was plagued by sadists who would attack random animals for the fun of it, so the Powers That Be decided to disincentivise them in the most straightforward way: by making their victims killing machines.
 
See also: attacking Cuccoos in any Legend of Zelda game.
 
Early D&D didn't have stats for housecats. 3E was trying something out for the first time and it didn't go well.
 
hammered
anyone here use LaTeX and/or LyX?
 
4:16 PM
"We haven't got stats for a cat, so I guess we'll just go by the stats of a... flips randomly through Monster Manual... juvenile tarrasque."
 
D&D monsters used to figure out whether we really make eye contact: blogs.discovermagazine.com/notrocketscience/2012/10/30/…
 
Incidentally, last night a friend of mine asked me to help him design his D&D city. I am pretty happy to help but now I'm finding out his overarching design is problematic and the amount of work he's farming out to me is specific to the point I can't do much to help it.
 
@MartijnPieters I closed this stackoverflow.com/q/35081697 (and others) as a dupe of stackoverflow.com/questions/25504149 which you answered. What do you think about adding a bit at the end about it being impossible to load shared data only once with WSGI, since you can't control how the WSGI server runs the code in general?
 
City planning seems so daunting to me that I wouldn't even want to attempt it in a fictional context.
 
Any wsgi server that spawns multiple processes and doesn't set an env var like werkzeug, which I'm pretty sure is most of them, wouldn't be able to load shared data only once.
 
4:21 PM
Whoops you're 50 hours into your design and forgot to make room for the sewage treatment plant. Now the only place it can go is directly adjacent to city hall.
 
@davidism It depends on how the WSGI server forks child processes.
But sure.
 
The solution to those problems is: "A wizard did it"
 
Yeah, I know, it's just that trying to load shared data in the Flask process is not nearly as easy as people think from using just the dev server.
 
> Do take into account that if you run this in a full-scale WSGI server that uses forking or new subprocesses to handle requests, that before_first_request handlers may be invoked for each new subprocess.
 
Yeah, sounds good.
I'm still somewhat uncertain about those dupes, since they're really asking "well how do I load large shared data".
 
4:24 PM
The right way to do it is just making 4-5 districts which narratively stand on their own, and then saying they're all in walking distance of each other. My friend is kind of doing that, except with dozens of districts, none of which stand on their own.
 
If I lived in the DnD universe I'd spend all my time curing diseases and creating infinite food/water with lvl 1 spells, and also teaching everyone in the world to become lvl 1 wizards. Forming the basis of a post-scarcity society seems more noble than killing goblins.
 
The answer being, you use a separate process, like a Manager or database, and access it through that interface.
 
"But wizardry requires a knack only one in a million possess", you protest. Ok, then I'll grind until I can cash Wish, and bring that ratio down to "one in one"
 
Level 1 wizards do not serve any particularly useful function to society. You're thinking about clerics.
 
user559633
@QuestionC someone's gotta be the target of xp mining
 
4:29 PM
It may be difficult to get everyone in the world to become a cleric. "Sorry, Thor is not accepting any new applications at this time. We'll keep your resume on file though"
 
user559633
if i lived in the DnD universe, i'd get everyone to call turkeys "gobblins" because it would be adorable
 
user559633
some men just want to see the world chortle
 
user559633
@davidism hey, thanks for posting flask and sqlalchemy answers. i've used two to confirm that an approach i was taking was a valid solution in the past 24 hours
 
Apparently low level clerics can only create water too. You need like 20 peasants worth of XP to reach food-making status.
I think a few weeks after the players manage to solve world hunger/thirst, magically conjured water would conveniently cease to be potable because the low-level clerics on dimension X simultaneously solved their energy problem by fracking the divine planes.
 
user559633
level 2 wizards would poison other water sources to increase their own ability to get gold for sweet cloakz
 
4:38 PM
We've almost had this discussion before. The potency of magic being inversely proportional to the number of people that can cast any given spell.
 
I just realized: I have never manually done any database migrations and have no idea how to do it manually :\
 
rbrb
 
user559633
@corvid you mean outside of a script? copy and paste your queries/statements after logging into a sql server
 
@tristan nah, the only time I really deal with SQL is when working with sopython-site and that has that flask-alembic tool for it, only use NoSQL at work
 
user559633
unless by "manually" and to mean "i have no idea how to use a scanning electron microscope and an electron-sized needle to write my pattern of data onto a storage medium"
 
user559633
4:40 PM
in which case
 
user559633
 
I have a question about wx.NotificationMessage if anyone is willing to help.
 
user559633
@MalikBrahimi don't ask to ask, just ask
 
Currently I'm using wx.MessageBox to prompt the user but it does not always appear at the top of all other foreground applications.
Does wx.NotificationMessage circumvent that issue?
Does it consistently appear at the top of all other applications?
According to the docs "This class allows to show the user a message non intrusively."
 
@tristan you're welcome :-) I should start focusing on SQLAlchemy again, I'm not nearly as active in it as Flask.
 
4:44 PM
Idk what that means. I'm guessing its a no.
 
Why not try it and find out?
Seems simple enough to make a NotificationMessage and see if it does what you want.
In general though, you can't control the focus stealing, the desktop environment has final say over what can push itself to the top of the window stack.
 
user559633
I should start doing sqlalchemy questions just because i'm not sure i've read more than 5% of the documentation
 
user559633
@corvid wouldn't a nosql migration just be adding new fields on the go? that's the kind of the point of most nosql
 
user559633
you just go for it and don't worry about integrity or relationships
 
is a lot more prone to "here's the specific query I have a question about" and I don't have a good enough memory of general dupes for those.
 
user559633
4:47 PM
fair. i stopped doing flask questions because i ran into a long series of "here's a folder structure specific thing i'm hitting and i don't want to give details"
 
@tristan you can "migrate" NoSQL, in a manner of speaking but not really. I'm using postgres for this project now, need to into PostGIS
 
user559633
@corvid postgres isn't nosql.
 
user559633
i feel like i'm missing what you're asking
 
I'm saying I've used mongoDB for like a year of programming now I forget how to use a real database
 
@tristan those and "why doesn't apache work this time" are instant close votes
 
4:49 PM
@davidism Is there a way to override the desktop's control of the window stack?
 
user559633
@corvid it's like riding a bike. you never really forget and then one day it will do something weird and pitch you into the earth hard enough to break some of your teeth
 
@MalikBrahimi I just said there's not
> the desktop environment has final say
 
user559633
you could write your own window manager
 
Meh, I have some installed program from software companies that seem to do it.
 
user559633
@MalikBrahimi cool, good luck then!
 
4:50 PM
@tristan How exactly would I do that?
 
Meh
 
user559633
@MalikBrahimi to go back to your question, you tried wx.NotificationMessage and it didn't do what you want?
 
user559633
I assume it's some z-frame or z-order named param, but ultimately, you're asking your environment and not telling.
 
Any application which purports to control the display of all windows, will work wonderfully until suddenly it comes across a wall that its ladder can't climb over.
Fun exercise: take two programs that have different opinions on what window should be "super topmost" and run them at the same time to see who wins.
 
user559633
the one that hooks the OS functionality that it itself uses to go on top.
 
user559633
4:56 PM
e.g. network message dialog in osx, clippy on windows
 
I'm trying to use wx.NotificationMessage but I'm getting some errors, like this:
NotImplementedError: No matching function for overloaded 'new_NotificationMessage'
The thing is. I don't think that'll work anyway.
I'm trying to create a topmost YES_NO dialog box to prompt the user.
 
Try this wx.MessageDialog(parent, message, 'Name of Window', wx.YES_NO).
 

« first day (1931 days earlier)      last day (3020 days later) »