There was a message, but I moved it [URL="https://facepunch.com/showthread.php?t=1464689&p=52497135#post52497135"]here[/URL]. I did it, because I thought it rather belongs here.
[QUOTE=Karmah;52496945]Yep
ImGui is awesome and lightweight. I wholeheartedly recommend using it if you ever need small UI solution[/QUOTE]
I honestly got so tired of Qt at work that I've switched to using ImGui and Vulkan (latter just because I know it well now), and I'm so relieved I did. Its so much lighter to use and can still look quite snazzy, and I'm able to find addons that add things like a filesystem dialog and the like. ImGui is so easy to set up (especially with how tweakable parameters work) that it'll save me days of dev time getting my GUI and renderer working.
Git Submodules are neat - spent most of the day thus far getting my rendering framework to be usable as an actual library, since I wanted to use it as a submodule in my two main projects. It was a bit finicky at first, and converting the build process to CMake took a stupid amount of trial and error, but it works now. Its nice to be able to edit my renderer code as I find bugs and then have that bugfix be synced across the rendering repository and any other repositories that use it (previously I just copied files around, ew)
I used to use Qt back when I was first learning C++, because of its familiarity to Java's GUI library.
It was nice, but so bloated.
ImGui is just so small and allows for such rapid prototyping.
So glad I'm nearly finished with a PyQt app and you guys are discussing how great imgui is. QT being a wrapper in Python makes it really difficult to figure out what you're doing wrong when it dies.
Working on a website for my mum, she needs it for her business. Some guy was going to charge her £500 and I told her it was a rip off and I would have a go.
Still got bits to edit since it's a subdomain, sloppy code too because it's the 2nd site I have ever built but I am proud of it so far, any [url=http://www.a9cleaning.co.uk/laundryandcleaning/]suggestions?[/url]
I fixed up my Markdown docs generator for .NET projects and added usage instructions. Pretty early in development still and needs some features fleshed out, but it is (mostly) bug-free. Check it out:
[url]https://github.com/TheBerkin/Docpal[/url]
Still need to figure out how to parse <see> tags...
[QUOTE=paindoc;52497148]I honestly got so tired of Qt at work that I've switched to using ImGui and Vulkan (latter just because I know it well now), and I'm so relieved I did. Its so much lighter to use and can still look quite snazzy, and I'm able to find addons that add things like a filesystem dialog and the like. ImGui is so easy to set up (especially with how tweakable parameters work) that it'll save me days of dev time getting my GUI and renderer working.
Git Submodules are neat - spent most of the day thus far getting my rendering framework to be usable as an actual library, since I wanted to use it as a submodule in my two main projects. It was a bit finicky at first, and converting the build process to CMake took a stupid amount of trial and error, but it works now. Its nice to be able to edit my renderer code as I find bugs and then have that bugfix be synced across the rendering repository and any other repositories that use it (previously I just copied files around, ew)[/QUOTE]
[QUOTE=Karmah;52497162]I used to use Qt back when I was first learning C++, because of its familiarity to Java's GUI library.
It was nice, but so bloated.
ImGui is just so small and allows for such rapid prototyping.[/QUOTE]
Out of interest, have either of you tried out Nuklear? Its what I am currently looking at using just because its a couple of headers, but I would totally be open to using ImGUI if it has decent improvements
[QUOTE=Adelle Zhu;52497292]So glad I'm nearly finished with a PyQt app and you guys are discussing how great imgui is. QT being a wrapper in Python makes it really difficult to figure out what you're doing wrong when it dies.[/QUOTE]
This slowly drove me mental. The documentation was shitty auto-generated stuff so it wasn't really that helpful, and it was different enough from how C++ looked and handled (and I didn't know C++ at the time) that it always threw me off.
[QUOTE=Richy19;52497364]Out of interest, have either of you tried out Nuklear? Its what I am currently looking at using just because its a couple of headers, but I would totally be open to using ImGUI if it has decent improvements[/QUOTE]
Not sure if there are tons of improvements, but ImGui just has tons of really useful items that you can run with right away - from menubars that are put automatically at the top of the screen to all the kinds of tweaking buttons you'd need to a rather useful collection of [URL="https://github.com/Flix01/imgui"]addons[/URL]. It seems really easy to build on top of and expand, too. There's a huge amount of useful posts found in the issues section, and several issue threads of inspiration/examples for using ImGui. Its really quite great.
Also, Nuklear didn't have an example of how to use it with Vulkan so I went with ImGui since I had an example to build off of.
[QUOTE=joshthesmith;52497357]Working on a website for my mum, she needs it for her business. Some guy was going to charge her £500 and I told her it was a rip off and I would have a go.
Still got bits to edit since it's a subdomain, sloppy code too because it's the 2nd site I have ever built but I am proud of it so far, any [url=http://www.a9cleaning.co.uk/laundryandcleaning/]suggestions?[/url][/QUOTE]
Looks good so far but the cookies thing at the bottom is cut off my screen on mobile. Only the first sentence shows.
[editline]22nd July 2017[/editline]
Has anyone hosted anything on Google App Engine?
[QUOTE=Adelle Zhu;52497575]
Has anyone hosted anything on Google App Engine?[/QUOTE]
No but I'd be interested to know if anyone has too.
At my last job it was discussed as a possible alternative to AWS but no one knew anything about it and I was told trying to get details from Google was difficult.
I figured out a way to get meshes with arbitrarily positioned faces to loop their textures, semi-seamlessly.
I wanted a way to be able to resize a brush without needing to define a shit load of edge cases like "if it is wider and taller than it is deep, use width and height to determine UV coordinates, else if deeper than wide use depth for UV width, else if deeper than height etc etc etc
Then I had an epiphany :excited:
For 3D rectangles, I planar mapped every face the same way, so it essentially starts off as a unit cube with unit UV's. Using that info, I was already calculating the normal, tangent, and bitangent.
Then I had the idea: I can create a TBN matrix for every face, and transform the points of every face by it, allowing me to figure out how wide each face is, and even better yet, using the tangent space X and Y positions [I]as[/I] UV coordinates.
IDK if this is proper or not, but I have like no experience with actual geometry generation, and was excited that my knowledge of normal mapping and the tangent space surrounding it helped out somewhere else :sax:
[QUOTE=Berkin;52497361]I fixed up my Markdown docs generator for .NET projects and added usage instructions. Pretty early in development still and needs some features fleshed out, but it is (mostly) bug-free. Check it out:
[url]https://github.com/TheBerkin/Docpal[/url]
Still need to figure out how to parse <see> tags...[/QUOTE]
Nice! This has great potential, and I will definitely be checking it out!
[QUOTE=paindoc;52497409]This slowly drove me mental. The documentation was shitty auto-generated stuff so it wasn't really that helpful, and it was different enough from how C++ looked and handled (and I didn't know C++ at the time) that it always threw me off.
Not sure if there are tons of improvements, but ImGui just has tons of really useful items that you can run with right away - from menubars that are put automatically at the top of the screen to all the kinds of tweaking buttons you'd need to a rather useful collection of [URL="https://github.com/Flix01/imgui"]addons[/URL]. It seems really easy to build on top of and expand, too. There's a huge amount of useful posts found in the issues section, and several issue threads of inspiration/examples for using ImGui. Its really quite great.
Also, Nuklear didn't have an example of how to use it with Vulkan so I went with ImGui since I had an example to build off of.[/QUOTE]
Have you guys tried [URL="http://www.copperspice.com/"]CopperSpice[/URL]? It is a Qt similar framework that embraces the STL, [URL="http://cppcast.com/2017/07/barbara-geller-ansel-sermersheim/"]CppCast[/URL] just did an episode with them as well.
[QUOTE=Richy19;52497364]Out of interest, have either of you tried out Nuklear? Its what I am currently looking at using just because its a couple of headers, but I would totally be open to using ImGUI if it has decent improvements[/QUOTE]
I tried Nuklear and straight away ran into issues - the specific issue I had was that I wanted a set of controls with shared captions and I failed to find a way to assign them different IDs, something I do all the time in dear imgui (with Push/PopID()). There's a high probability that there's a way to do what I wanted in Nuklear but it didn't come to me as naturally as literally everything in dear imgui so I switched back to just using dear imgui for everything, simply because I'm already crazy productive with it and there's no reason for me personally to use anything else.
I'd recommend just trying out both tbh and see what you like better.
One thing to consider is that the Nuklear author isn't going to maintain the library iirc and Omar is looking to go full time on dear imgui so depending on how much support you think you'll need that is something you should be aware of.
Also you simply can't make enough of a case for how awesome that library is. I'm usually the WORST person when it comes to NIH syndrome but dear imgui is the first thing I add to anything that needs visual output, no questions asked. It is without question one of the most carefully designed pieces of external code that I've ever seen - inclusion into your build is as simple as it gets (just drop the files in), it is completely self contained, the API has all the right layers and if you're missing something it's dead simple to extend and build upon.
[QUOTE=JWki;52498743]I tried Nuklear and straight away ran into issues - the specific issue I had was that I wanted a set of controls with shared captions and I failed to find a way to assign them different IDs, something I do all the time in dear imgui (with Push/PopID()). There's a high probability that there's a way to do what I wanted in Nuklear but it didn't come to me as naturally as literally everything in dear imgui so I switched back to just using dear imgui for everything, simply because I'm already crazy productive with it and there's no reason for me personally to use anything else.
I'd recommend just trying out both tbh and see what you like better.
One thing to consider is that the Nuklear author isn't going to maintain the library iirc and Omar is looking to go full time on dear imgui so depending on how much support you think you'll need that is something you should be aware of.
Also you simply can't make enough of a case for how awesome that library is. I'm usually the WORST person when it comes to NIH syndrome but dear imgui is the first thing I add to anything that needs visual output, no questions asked. It is without question one of the most carefully designed pieces of external code that I've ever seen - inclusion into your build is as simple as it gets (just drop the files in), it is completely self contained, the API has all the right layers and if you're missing something it's dead simple to extend and build upon.[/QUOTE]
Strangely I'm having issues that have rendered it unusable and I might actually make an issue about it. Font loading fails deep in ImGuis memory code, and I can't for the life of me figure out why
Agree with everything you said though. I'm blown away by it. It does so much, so well, and so eloquently.
What the fuck is this nonsense
[code]Connected to pydev debugger (build 171.4694.67)
Traceback (most recent call last):
File "C:\Python35\Python35-32\lib\site-packages\sqlalchemy\engine\base.py", line 1159, in _execute_context
context)
File "C:\Python35\Python35-32\lib\site-packages\sqlalchemy\dialects\mysql\mysqldb.py", line 113, in do_executemany
rowcount = cursor.executemany(statement, parameters)
File "C:\Python35\Python35-32\lib\site-packages\MySQLdb\cursors.py", line 283, in executemany
self.rowcount = sum(self.execute(query, arg) for arg in args)
File "C:\Python35\Python35-32\lib\site-packages\MySQLdb\cursors.py", line 283, in <genexpr>
self.rowcount = sum(self.execute(query, arg) for arg in args)
File "C:\Python35\Python35-32\lib\site-packages\MySQLdb\cursors.py", line 250, in execute
self.errorhandler(self, exc, value)
File "C:\Python35\Python35-32\lib\site-packages\MySQLdb\connections.py", line 50, in defaulterrorhandler
raise errorvalue
File "C:\Python35\Python35-32\lib\site-packages\MySQLdb\cursors.py", line 247, in execute
res = self._query(query)
File "C:\Python35\Python35-32\lib\site-packages\MySQLdb\cursors.py", line 411, in _query
rowcount = self._do_query(q)
File "C:\Python35\Python35-32\lib\site-packages\MySQLdb\cursors.py", line 374, in _do_query
db.query(q)
File "C:\Python35\Python35-32\lib\site-packages\MySQLdb\connections.py", line 292, in query
_mysql.connection.query(self, query)
_mysql_exceptions.OperationalError: (1366, "Incorrect integer value: 'Patient' for column 'bill' at row 1")
[/code]
That's not even what my query is supposed to do. This is literally all I'm doing. Updating the status of an order.
[code] stmt = update(Order).where(Order.orderid == order.orderid).values(status=newstatus)[/code]
[editline]23rd July 2017[/editline]
I don't know what SQLAlchemy is doing to my statement. It's executing something entirely different than what the statement says.
You should update to python 3.6
[QUOTE=DrDevil;52499899]You should update to python 3.6[/QUOTE]
Would that fix anything
[editline]23rd July 2017[/editline]
Wait fuck. Am I using the wrong version of the package?
[QUOTE=Adelle Zhu;52499906]Would that fix anything
[editline]23rd July 2017[/editline]
Wait fuck. Am I using the wrong version of the package?[/QUOTE]
I don't know, but there's always a lot of bugfixes in new versions.
[QUOTE=paindoc;52499433]Strangely I'm having issues that have rendered it unusable and I might actually make an issue about it. Font loading fails deep in ImGuis memory code, and I can't for the life of me figure out why
Agree with everything you said though. I'm blown away by it. It does so much, so well, and so eloquently.[/QUOTE]
So I moved over to trying imgui but the flags I set dont seem to be working.
[code]
ImGui::SetNextWindowSize( ImVec2( windowWidth, 50 ) );
ImGui::SetNextWindowPos(ImVec2(0, 0));
ImGuiWindowFlags flags =
ImGuiWindowFlags_NoMove |
ImGuiWindowFlags_NoResize |
ImGuiWindowFlags_NoCollapse |
ImGuiWindowFlags_NoSavedSettings |
ImGuiWindowFlags_AlwaysAutoResize |
ImGuiWindowFlags_NoTitleBar;
ImGui::Begin("Debug", NULL, flags);
ImGuiStyle & style = ImGui::GetStyle();
style.WindowRounding = 0;
ImGui::Text( "Application average %.3f ms (%.1f FPS)", 1000.0f / ImGui::GetIO().Framerate, ImGui::GetIO().Framerate );
ImGui::End();
ImGui::Render();
[/code]
Turns out using Debug as a window title is reserved and has odd consecuences
[QUOTE=DrDevil;52499918]I don't know, but there's always a lot of bugfixes in new versions.[/QUOTE]
Upgrading to the most recent beta did nothing. I really don't know what the issue is. This process works flawlessly in console but not in practice.
[QUOTE=Adelle Zhu;52499945]Upgrading to the most recent beta did nothing. I really don't know what the issue is. This process works flawlessly in console but not in practice.[/QUOTE]
Try updating your packages. [url]https://stackoverflow.com/questions/2720014/upgrading-all-packages-with-pip[/url]
I've been playing around with writing assembly with MASM32... Anyone have any idea how to get ml.exe and PoLink.exe to output *.pdb symbols for WinDbg?
[QUOTE=Naelstrom;52499999]Try updating your packages. [url]https://stackoverflow.com/questions/2720014/upgrading-all-packages-with-pip[/url][/QUOTE]
All packages are up to date.
[editline]23rd July 2017[/editline]
I'm out of ideas. It's executing the completely wrong statement. I have no idea where it's getting the columns to update. I'm only trying to update the fucking status column and it's instead taking some random objects as parameters and trying to update the wrong columns.
[QUOTE=Adelle Zhu;52500166]All packages are up to date.
[editline]23rd July 2017[/editline]
I'm out of ideas. It's executing the completely wrong statement. I have no idea where it's getting the columns to update. I'm only trying to update the fucking status column and it's instead taking some random objects as parameters and trying to update the wrong columns.[/QUOTE]
Maybe...you're simply running the wrong script or sth? I mean, the column definitions have to be defined somewhere. Maybe just use grep and find where they are used
[QUOTE=johnnyaka;52500320]Maybe...you're simply running the wrong script or sth? I mean, the column definitions have to be defined somewhere. Maybe just use grep and find where they are used[/QUOTE]
[code]class Order(Base):
__tablename__ = 'order'
orderid = Column(Integer, primary_key=True)
patid = Column(ForeignKey('patient.patid'), nullable=False)
docid = Column(ForeignKey('prescribers.docid'), nullable=False)
compid = Column(ForeignKey('compound.compid'), nullable=False)
quantity = Column(Integer, nullable=False)
directions = Column(Text, nullable=False)
bill = Column(Integer, nullable=False)
ship = Column(Integer, nullable=False)
status = Column(Integer, nullable=False)
comment = Column(Text)
flavor = Column(Text)
logid = Column(VARCHAR)
dateadded = Column(DateTime, default=func.now(), nullable=False)
dateupdated = Column(DateTime, default=func.now(), nullable=False)
isNew = Column(BOOLEAN, nullable=False)
clinic_id = Column(VARCHAR, ForeignKey('clinic.clinic_id'), nullable=False)
week_num = Column(Integer)
refills = Column(Integer)
pat = relationship("Patient")
doctor = relationship("Prescribers")
compound = relationship("Compound")
clinic = relationship("Clinic")
[/code]
using the same declaration in console, the update works fine. If something was wrong with the connector, wouldn't it blow up in console too? Especially after copying and pasting the entire database script into console before testing the update.
[QUOTE=paindoc;52499433]Strangely I'm having issues that have rendered it unusable and I might actually make an issue about it. Font loading fails deep in ImGuis memory code, and I can't for the life of me figure out why
Agree with everything you said though. I'm blown away by it. It does so much, so well, and so eloquently.[/QUOTE]
What kind of issue are you having?
EDIT: As in, how exactly does it seem to fail?
Still working on Qt stuff for dolphin.
today i'm moving all this stuff
[img]https://puu.sh/wROdF/848a57d4dc.png[/img]
into this menu:
[img]https://puu.sh/wROGg/df6feedfa7.png[/img]
Why? I would understand it if the original menu was a hopeless clutter but it seems fine like it is.
[QUOTE=miceiken;52502141]Why? I would understand it if the original menu was a hopeless clutter but it seems fine like it is.[/QUOTE]
Because the original menu is written in a wxWidgets, which is not friendly to work with, and if this attempt to port everything to Qt is successful this time, we can make all future changes in Qt. :)
Sorry, you need to Log In to post a reply to this thread.