« first day (514 days earlier)      last day (4429 days later) » 

10:01 PM
atm im trying to rebuild my boost so I can try and compile my static lib in creator
which works closer to the *.pro file
 
@chikuba You're also having trouble compiling your Qt application statically?
Don't think that was worded correctly.
 
i can compile the lib in vs, but im not sure if its bult correctly
since the mian project cant use it
 
0
Q: nmake Won't Work - Qt

hetelekI am trying to deploy my project(built with Qt Creator) into a single, static executable(Windows). I am having trouble doing this, even though I feel like I am following the Qt tutorial exactly. The tutorial I am following: http://qt-project.org/doc/qt-4.8/deployment-windows.html First, I open ...

I am trying to do this also. Those answers didn't help me, but maybe they could help you.
Or maybe you could even possibly answer it :D
 
that might
i think my issue is that im eiter not importing my lib correctly
or that vs not using the *pro file as it should and that i should compile it in creator
 
Yeah
I honeslty have no idea, as you can see I have little experience with Qt.
 
10:07 PM
i started a month ago...
 
@chikuba I checked, it looks like it looks right to me...
are there any templates involved in the storageProvider class? no, that wouldn't make sense.
 
@MooingDuck "looks like it looks like right", lol
 
@RMartinhoFernandes eh, looks like it looks right to me :P what's your problem with it?
 
Xeo
Suddenly, my WLAN is blazingly fast
from 1 mbps to 13mbps
By changing a single setting
 
Woot. Can I get some of it?
 
10:10 PM
Does anyone know what the difference is between WM_MOVING and WM_WINDOWPOSCHANGING?
 
@MooingDuck no nothing. the storageprovider uses the handler which makes the restcalls
 
@chikuba seems to be that the root cause is that storageProvider::qt_metacall (and the rest) is not compiled in your library for some reason
 
the things is that i first tired to include the two files inj the global header
the handler worked fine, but when i tried to include the storageprovider i got this error message
Error 1 error C2146: syntax error : missing ';' before identifier 'handler_'
 
@SethCarnegie AFAICT from the docs, WM_MOVING is user action, WM_WINDOWPOSCHANGING is programmatic action.
 
then it cant find the handler.h
 
10:12 PM
@CatPlusPlus Ah I see, thanks
 
@chikuba recursive defines, or its looking in the wrong folder?
@SethCarnegie "WM_WINDOWPOSCHANGING message Sent to a window whose size, position, or place in the Z order is about to change as a result of a call to the SetWindowPos function or another window-management function."
 
i include the storageprovider in the global header, and that includes the handler
 
@MooingDuck ah
You'd think they could think of a better name, but these are the people who are responsible for TMPF_FIXED_PITCH...
 
meh I feel sick :(
 
You are sick.
 
10:15 PM
that wasn't funny
 
@SethCarnegie "If this bit is set the font is a variable pitch font. If this bit is clear the font is a fixed pitch font. Note very carefully that those meanings are the opposite of what the constant name implies." :/
 
room topic changed to Lounge<C++>: Some people when confronted with a problem think "I know, I'll use pointers!". Now they have a pointer to a problem. [c++] [c++11] [c++-faq]
 
Hmm, that needs commas.
room topic changed to Lounge<C++>: Some people, when confronted with a problem, think "I know, I'll use pointers!". Now they have a pointer to a problem. [c++] [c++11] [c++-faq]
 
10:19 PM
1
Q: Enabling arch:SSE2 makes program slower

JAKE6459On Visual Studio 2010, when I enable enhanced instruction sets on the following code, the execution time is actually increased. void add(float * input1, float * input2, float * output, int size) { for(int iter = 0; iter &lt size; iter++) { output[iter] = input1[iter] * input2...

 
pointer hair boss
 
When this will end. :(
 
for(int iter = 0; iter &lt 100; iter++)
lol
 
@MooingDuck it built when i included the /lib file, but when i try to degub it it still misses the .dll file
 
missing semicolon, hah
 
10:22 PM
@chikuba what do you mean "misses the dll file"? It can't find the file when it starts executing?
 
yup. the frameworkfile
my framework
or shared lib
 
Hm, I don't get WM_KEYDOWN/WM_KEYUP with left Alt.
 
@MooingDuck and could you please explain what i did when i remade it to a qmake project?
 
@CatPlusPlus windows
 
@chikuba are the dll and the exe in the same /debug/ directory?
 
10:23 PM
It's weird.
 
@chikuba You know more about qmake than I do, I can't help you there
 
@MooingDuck the dll is in the lib folder yes
or should that be located next to myapp.exe?
 
@chikuba for now, put it in the same folder; one problem at a time.
 
It even sends scancodes for Win/menu, but not for left Alt.
 
Does your alt key work
 
10:25 PM
@MooingDuck as the myapp.exe?
 
@chikuba yes
 
now it runs
 
No, obviously it doesn't, that's why I'm trying to get a scancode out of it.
 
i think this is relevant to anything, a german politician caught stealing toilet paper:
^ I don't know German :-(
 
@CatPlusPlus I don't get WM_KEYDOWN for left or right alt
 
10:26 PM
I get them for AltGr.
 
@chikuba so now you know that part works. I have no idea how to tell it to grab dlls from another directory. Lets see if there's an SO question about it
 
@CatPlusPlus
> WM_KEYDOWN: Posted to the window with the keyboard focus when a nonsystem key is pressed. A nonsystem key is a key that is pressed when the ALT key is not pressed.
 
"zwei Rollen Toiletten­papier"
OMG, he stole two rolls!
 
In fact as two codes, Ctrl and Alt.
 
So Alt is a system key
 
10:27 PM
So, raw input. :<
 
0
Q: Forcing static loading of dll from given directory

VegarIn our application, we dynamically load a dll file, which again has static bindings to other dlls. Until now, all this dlls have been in our application folder. From now on, we want to move these dlls into a directory structure. Which folder the dll should be loaded from is to be decided at run...

 
shakes fist
 
not looking forward to doing this in osx... gosh
kill me
 
@MooingDuck change the PATH environment variable. sysdm.cpl, button "advanced" somewhere
 
@chikuba No. Here, we only kill people that ask about i++ + ++i.
 
10:28 PM
@CheersandhthAlf there has to be a better solution than that somewhere right?
 
@MooingDuck alternatively you can just copy them DLLs, or create hardlinks. i checked, in Windows 7 mklink has an option -H to create hardlink
 
@CheersandhthAlf Hey, toilet paper is expensive. Especially quality paper.
 
@RMartinhoFernandes or people who say const char* is not always evil
 
@CheersandhthAlf internet says there's not many better ways :/ Stupid design IMO
 
const char* is only good for interop and when you never do anything with it.
3
 
10:30 PM
@CatPlusPlus exactly
you get a star
 
Weee.
 
@SethCarnegie Don't feed the cat.
 
does anyone know where to set the include path in vs?
 
In project settings, some MSBuild document or INCLUDE environment variable.
 
@chikuba right click project->properties->configuration->C++->"Additional include directories"
 
10:34 PM
do i need to add where the headerfiles are for the lib there?
i did in the .pro file but here they are not included
shit sorry. looking under the wrong project
 
@chikuba hmm, a google search for "pro file" tells me nothing of interest
 
not too sure if this is old news
but back then they seemed to hjave a problem with vs redoing the *.pro file in the wrong way
forcing you to use qmake standalone
 
VS doing things the wrong way. How surprising.
 
wqord
 
@chikuba are you having a problem still?
 
10:40 PM
some htreading issues but it is building and running
thank you very much
 
If anyone will ever need HID magic numbers: usb.org/developers/devclass_docs/Hut1_11.pdf
 
@RMartinhoFernandes I'm shocked!
 
@CheersandhthAlf I do read German, and that is not the article you wanted to link to. Perhaps someting like bild.de/regional/leipzig/wachschutz/… instead?
 
the heck, why did people star those messages of mine... that must be chikuba
 
jesh im sorry
should i unstar?
 
10:45 PM
@chikuba :P
@chikuba probably. As much as I feel appreciated, stars in general chat are not for "helpfulness"
 
too late to undo apparently
 
mostly stars are for funny, or helpful to chat
doesn't matter. If anyone cares, someone with power will unstar it.
 
@sehe thanks!
 
can i star that sentence?
 
most likely, nobody will care enough
 
10:46 PM
:p
 
@chikuba I can't stop you
 
but yeah. point taken
 
Stars are for stars.
 
> My God, it's full of stars! - Dave Bowman, final words
 
Xeo
-1
Q: Is there any C++ library that provide algorithms and containers which has python like interface and behavior?

ytjI think Python's API is better than C++ STL's API. So I am wondering is there any library port Python's standard library to C++? pystring meets my requirements partially. However, there is some issues: I want more containers like pylist (compare to std::vector), pydict (std::map), pyset (std::...

Sigh
 
10:51 PM
> Perhaps you should just program in Python?
I think @KerrekSB nailed it.
 
pylist = vector???
 
Cue "but C++ is faster!!111111eleven".
Yes, Python list is a contiguous dynamic array.
 
That doesn't make much sense
 
lol at comment:

I think hammers are better than tweezers. So I am wondering is there any way to use a hammer like tweezers? The claw meets my requirements partially, however I want the ability to pick up small objects without damaging them, and usability in tight spaces. – Justin ᚅᚔᚈᚄᚒᚔ 55 secs ago
 
@Pubby Why not?
 
10:54 PM
Because?
See also: ArrayList in .NET or Java.
 
@RMartinhoFernandes Doesn't list imply constant time insertions?
 
List != linked list.
 
@CatPlusPlus Make that List<> in .NET. ArrayList is obsolete
 
Whatever.
 
10:55 PM
@CatPlusPlus ?!
Still grumpy today?
 
@sehe I don't care. :P
 
@CatPlusPlus List<T> is also likely to be faster.
 
... why mention it :)
 
'Cause it's called list and is implemented with an array.
 
@EtiennedeMartel Especially for value types. Allthough, your mileage may vary see ... (googling)
 
10:56 PM
Intermission.
 
And really, vector isn't all that better name, anyway.
 
@EtiennedeMartel jon skeet's blog also part 1. It turned out that mono fared considerably better - and it even allows you to disbale code sharing for the JIT compiler
 
Yeah, we should have named it Cucumber.
 
std::use_this_frakking_container_bitches<T>
 
10:59 PM
@RMartinhoFernandes std::the_container_not_preferred_by_the_adepts_of_deque_for_everything<T>
 
I don't think deque is that much better.
You get push_front.
 
deque is magic.
3
 
While we're at it, std::this_container_will_cache_miss_like_a_bitch<T> instead of std::list<T>.
 
std::everyone_hates_me instead of std::vector<bool>.
 
@CatPlusPlus it is underrated, yes. deque scales a lot better in some common situations
 
11:05 PM
Yeah, I think the SL would have been much nicer if the Standard was written by us instead of language lawyers.
 
@RMartinhoFernandes I mostly use the pop_front, but same difference
@RMartinhoFernandes I like deque, but don't use it much because there's lots of awkward implementations
 
Hmm, std::fuck_off instead of std::exception.
 
Awkward C++ implementations? Who would've thought.
@EtiennedeMartel std::you_fucked_up.
 
@MooingDuck Which implementations are you referring to?
I thought they all used a vector of pages
 
Let's make a library out of this.
 
11:08 PM
@KonradRudolph MSVC uses itty bitty pages
 
"C++ SL: no bullshit edition"
 
@EtiennedeMartel "SL" to avoid hurting the most sensible ones, huh?
 
@KonradRudolph stackoverflow.com/questions/5728359/… says MSVC uses pages of 16 bytes or 1 object
 
@RMartinhoFernandes Because it's not the STL anymore, and because it's shorter than "std lib"
 
SL: better than STL.
 
11:11 PM
Standard Tomalak Library.
 
The repwhoring guy?
 
i hate weaseling microsoft fanboys
:)
 
the anonymous downvoters here:
 
@MooingDuck Odd, since this article seems to indicate otherwise
 
11:15 PM
2
A: I dont want console to appear when i run c++ program

Cheers and hth. - AlfThere are two ways for a Windows program to produce a console window: The program is linked as a console subsystem exe, which is a request to Windows to always provide an associated console window. The program's code itself creates a console window. The first option, console subsystem, is by ...

 
#define _DEQUESIZ (sizeof (value_type) <= 1 ? 16 \
: sizeof (value_type) <= 2 ? 8 \
: sizeof (value_type) <= 4 ? 4 \
: sizeof (value_type) <= 8 ? 2 \
: 1) /* elements per block (a power of 2) */
just pulled that from the <deque> header in 2010
holy shit, it's teh fuglies, though
 
who came up with this bullshit heuristic?
hopefully they’ve got good statistics for this
 
I personally would have used at least something meaningful, like, sizeof(PAGE_ON_TARGET_MACHINE) or 100 * sizeof(T) or something like that
 
@KonradRudolph I hear they started with 512, but dropped to 16 for some unspecified reason.
@KonradRudolph that's a long article, where does it indicate otherwise?
 
11:26 PM
@MooingDuck I can’t make sense of the results otherwise. There should be no superior runtime behaviour to vector otherwise
 
@KonradRudolph even where it's one object per buffer, you don't have to reallocate/copy ever.
 
@MooingDuck Yeah, but that basically degenerates into a vector<T*>.
 
@RMartinhoFernandes yes, in that case
also push_front
 
here's what I don't get
 
@MooingDuck Of course you do
 
11:29 PM
if deque is (loosely) vector<array<T>>, how can you push_front in O(1)?
and if it's more like list<array<T>>, how can you look up in O(1)?
 
@DeadMG amortized, same as vector's push back, but on both ends. Isn't it?
 
@MooingDuck Still not seeing the amortizing going in here
 
@DeadMG vector<array<T>*>
 
@DeadMG it’s more like a vector<vector<T>*>
 
@DeadMG perhaps it uses a cursor gap implementation? if it does then insertion or removal inside (not at ends) should be O(n)
 
11:31 PM
every few push_fronts, you're going to have to push_front on the underlying vector- which is most definitely going to take O(n)
 
@KonradRudolph I think the internal containers have to be fixed size
 
but the value of few is constant
@RMartinhoFernandes That's the "loosely" part.
 
@DeadMG Push front fills the first array from the end.
 
right
but it's going to get full in a constant amount of pushes
then you're going to have to O(N) insert a new one at the front
 
11:32 PM
I have no idea how deque works. Every time I think I got it, I'm wrong
 
@DeadMG Then you allocate a new array.
 
@RMartinhoFernandes And then you have to insert it in the containing vector at the front.
which is going to be O(n)
 
@DeadMG That one can be filled from the middle.
 
what do you mean, filled from the middle?
 
@DeadMG think circular, think array of pointers to blocks
 
11:35 PM
@DeadMG Yeah, that was a weird choice of words. A circular buffer.
When it gets full, same reallocation dance as vector.
 
@CheersandhthAlf ahem
> Can you move this to chat please? Thanks. – Kev♦ 23 hours ago
nice gesture :)
 
@EtiennedeMartel std::bad_ass ?
 
ah, a circular buffer
that makes sense
 
I watched this and now I'm sad.
 
11:46 PM
@RMartinhoFernandes you watched the trailer? Or do you have the full movie
 
@sehe The movie.
 
@RMartinhoFernandes is it online? should we buy it?
oh I see, iTunes required?
 
@RMartinhoFernandes I take it you got is somehow else?
Or did you have some inside information that this was must-see material
 
@sehe I'm ordering it as we speak, but yeah, let's say I found it among some of my personal photographs.
 
11:56 PM
My raw input code asplodes.
 
@CheersandhthAlf you never addressed this argument.
 

« first day (514 days earlier)      last day (4429 days later) »