What would I need to change in the following .cpp files to make that encounter fully soloable?
boss_razorgore.cpp
(How could I prevent adds from spawning, or alternatively, reduce the number of eggs that initially spawn?)
boss_lord_marrowgar.cpp
(How could I prevent bone spike graveyard from ever being cast)
boss_valithria_dreamwalker.cpp
(How can I make it so the encounter ends successfully when Valithria is healed any amount instead of to 100%)
boss_icecrown_gunship_battle.cpp
(No idea here)
Mechanically unsoloable encounters; looking for simple changes in .cpp to make soloable.
Related
I'm unable to understand how a piece of text has some kind of hardcoded font in it, that cannot be removed even after pasting into an RTE, application of CSS etc. See 2 examples below copied from various places:
Sample 1 - this font is apparently Cambria Math, and will not / cannot be overridden by CSS when displaying or removed when pasting into an RTE. Eg take this text and dump into CKEditor, QuillJS and any other, it will remain the same. In fact the same is happening right here in this editor - the font is not getting removed, and I'm unable to explain why.
๐๐ง๐๐ฎ๐ฌ๐ญ๐ซ๐ฒ ๐๐ง๐๐ฅ๐ฒ๐ฌ๐ข๐ฌ ๐ข๐ฌ ๐ ๐๐ซ๐ฎ๐๐ข๐๐ฅ ๐ฌ๐ญ๐๐ฉ ๐ข๐ง ๐ญ๐ก๐ ๐๐ฎ๐ซ๐ซ๐๐ง๐ญ ๐๐จ๐ฆ๐ฉ๐๐ญ๐ข๐ญ๐ข๐ฏ๐ ๐ฆ๐๐ซ๐ค๐๐ญ ๐ฌ๐ฉ๐๐๐ ๐ญ๐ก๐๐ญ ๐ก๐๐ฅ๐ฉ๐ฌ ๐ข๐๐๐ง๐ญ๐ข๐๐ฒ ๐ญ๐ก๐ ๐ซ๐ข๐ ๐ก๐ญ ๐ญ๐๐ซ๐ ๐๐ญ ๐๐ฎ๐ฌ๐ญ๐จ๐ฆ๐๐ซ๐ฌ ๐๐ง๐ ๐๐๐๐จ๐ซ๐๐ข๐ง๐ ๐ฅ๐ฒ ๐ฉ๐ซ๐จ๐ฏ๐ข๐๐ ๐ญ๐๐ข๐ฅ๐จ๐ซ๐๐ ๐ฌ๐จ๐ฅ๐ฎ๐ญ๐ข๐จ๐ง๐ฌ ๐๐จ๐ซ ๐ญ๐ก๐๐ข๐ซ ๐๐ฎ๐ฌ๐ข๐ง๐๐ฌ๐ฌ ๐ง๐๐๐๐ฌ. ๐๐ฏ๐๐ซ๐ฒ ๐๐ฌ๐ฉ๐๐๐ญ ๐๐ง๐ ๐ฎ๐ง๐ข๐ช๐ฎ๐ ๐๐ก๐๐ฅ๐ฅ๐๐ง๐ ๐๐ฌ ๐ฉ๐ฎ๐ญ ๐ฎ๐ฉ ๐๐ฒ ๐ญ๐ก๐ ๐ฉ๐๐ซ๐ญ๐ข๐๐ฎ๐ฅ๐๐ซ ๐ข๐ง๐๐ฎ๐ฌ๐ญ๐ซ๐ฒ ๐๐ซ๐ ๐๐๐ซ๐๐๐ฎ๐ฅ๐ฅ๐ฒ ๐ญ๐๐ค๐๐ง ๐ข๐ง๐ญ๐จ ๐๐จ๐ง๐ฌ๐ข๐๐๐ซ๐๐ญ๐ข๐จ๐ง ๐ฐ๐ก๐ข๐ฅ๐ ๐๐จ๐ซ๐ฆ๐ฎ๐ฅ๐๐ญ๐ข๐ง๐ ๐ญ๐ก๐๐ฌ๐ ๐ฌ๐จ๐ฅ๐ฎ๐ญ๐ข๐จ๐ง๐ฌ. ๐๐ญ ๐๐ฅ๐ฌ๐จ ๐ญ๐๐ค๐๐ฌ ๐ข๐ง๐ญ๐จ ๐๐จ๐ง๐ฌ๐ข๐๐๐ซ๐๐ญ๐ข๐จ๐ง ๐ฏ๐๐ซ๐ข๐จ๐ฎ๐ฌ ๐ ๐จ๐ฏ๐๐ซ๐ง๐ฆ๐๐ง๐ญ ๐ซ๐๐๐จ๐ซ๐ฆ๐ฌ, ๐๐จ๐ฆ๐ฉ๐๐ญ๐ข๐ญ๐ข๐ฏ๐ ๐๐ง๐ฏ๐ข๐ซ๐จ๐ง๐ฆ๐๐ง๐ญ, ๐๐ฎ๐ฌ๐ญ๐จ๐ฆ๐๐ซ ๐๐๐ก๐๐ฏ๐ข๐จ๐ซ, ๐๐ฑ๐ข๐ฌ๐ญ๐ข๐ง๐ ๐๐ง๐ ๐ฎ๐ฉ๐๐จ๐ฆ๐ข๐ง๐ ๐๐ฎ๐ฌ๐ข๐ง๐๐ฌ๐ฌ ๐ฆ๐จ๐๐๐ฅ๐ฌ, ๐๐ง๐ ๐๐ฏ๐๐ซ-๐๐ฏ๐จ๐ฅ๐ฏ๐ข๐ง๐ ๐ญ๐๐๐ก๐ง๐จ๐ฅ๐จ๐ ๐ข๐๐๐ฅ ๐๐๐ฏ๐๐ฅ๐จ๐ฉ๐ฆ๐๐ง๐ญ๐ฌ. ๐๐ง๐๐ฎ๐ฌ๐ญ๐ซ๐ฒ ๐๐ง๐๐ฅ๐ฒ๐ฌ๐ข๐ฌ ๐ก๐๐ฅ๐ฉ๐ฌ ๐๐ง ๐จ๐ซ๐ ๐๐ง๐ข๐ณ๐๐ญ๐ข๐จ๐ง ๐๐จ๐ซ๐ฆ๐ฎ๐ฅ๐๐ญ๐ ๐ฌ๐ญ๐ซ๐๐ญ๐๐ ๐ข๐๐ฌ ๐๐ง๐ ๐ฉ๐จ๐ฅ๐ข๐๐ข๐๐ฌ ๐จ๐ ๐ ๐๐ฎ๐ฌ๐ข๐ง๐๐ฌ๐ฌ.
Sample 2 - this is how it should be. When rendered the target CSS font is used.
Allowing PUT as create operations is problematic, as it necessarily exposes information about the existence or non-existence of objects. It's also not obvious that transparently allowing re-creating of previously deleted instances is necessarily a better default behavior than simply returning 404 responses.
More info if needed:
I saw this occur here https://www.althealth.me/topics/792/article/2888/rigid-knee-braces-market-is-expected-to-. This is an instance on the MainCross platform which is created by me.
When my lines run a bit too long, saving the file auto-formats the code into multiple lines. I've spent more than I care to admit figuring out how to increase the line length to avoid multiple lines yet nothing seems to work. It seems like Atom doesn't want to pick up any of my config files. I have a ~./prettierrc file that's not recognized. And is printWidth the right option to use?
What's the easiest way to do this?
I had to restart Atom for the changes to take effect. https://github.com/prettier/prettier-atom/issues/489
I am using gulp for css and js processing. Sometimes I am missing the good old lazyness of the unix make command:
only generate transformed (whatsover, e.g. compilation) files from original files, that have actually changed (based on time stamps).
this is true from stage 1 to 2 (.cpp -> .o), stage 2 to 3 (linking or other stuff) whatever your dependency graph gives...
Make is not limited to source code: You can do image manipulation in several steps (efficiently โlazyโ generation of downscaled thumbs for example) or much else. All based on the fairly simple rule: โis at least one of the source files newer in respect to the current output file(s)?โ
Unlike gulp, every step generates (more or less temporary) files, not a continuous pipe.
Is there a way, to get the same kind of lazyness in gulp**, i.e. when generating css?
only transform those (less|sass|stylus) filesโcss if something changed (on the very respective file)
same for adding in browser prefixes, concat, minify
Admittedly, beyond the first 1 or 2 steps, the output is most likely already a single stream. So any change means โtouchedโ. Still, when playing for example with minify options, I'd rather be lazy about the early transpile, prefixing and concat stages (drawing prior results from a temp file). Also on the javascript side ( typeScript, ... )
lazypipe and gulp-cache sound tempting but are something else, if I understand correctly. Saying .watch() is also only a partial answer, for the very first stage.
Is there a more generic approach?
If you're set on using Gulp, then this would seem to be the way to do it. It involves the gulp-cached and gulp-remember plugins.
I'm trying to write my own code-editor, I figure its a good way to learn pyQt.
I am using a qtextedit, in which i can write code(it's not real code, more pseudo code).
Each line represents ending in a semi-colon represents some command
e.g.
PSEUDO->FWD->90;
PSEUDO->STOP;
PSEUDO->RIGHT 90;
PSEUDO->FWD 10;
These are relatively easy to read, as the user presses the [ENTER] the current line is read, parsed and checked for errors so the following
PSEUDO->RIGHT -pi/2
would generate an error because the line doesn't end in a semi-colon and the value following RIGHT needs to be a number.(my editor, my rules).All this I have more or less got working.
I would like to know how to do multiple lines though. I am familiar with editors such as Eclipse,sublime or visual studio which handle muliple lines very well, in my case
PSEUDO->DO:
FWD->90
RIGHT->45
FWD->10
LEFT->55
FWD->50
STOP;
Should all be read in and treated as one statement, starting at the keyword PSEUDO and ending at the semi-colon.
However the following should be read as 3 separate statements.
PSEUDO->DO:
FWD->90
RIGHT->45
FWD->10
LEFT->55
FWD->50
STOP;
PSEUDO->DO:
FWD->90
RIGHT->45
STOP;
PSEUDO->BACK 10;
My question how can I go about reading muliple lines as described above from QTextEditor as discreet statements.
Should I do the parse/check whenever I press the [ENTER] key for a new line?
I'm using python2.7,pyQT, and QTextEdit.
Basically what you are trying to do, can be done with all the text of the document and some regular expressions. I would be careful with this course, because it may slow things down.
So to stay lean and to use the right classes of Qt, I would use anything related to the Rich Text Processing, QTextDocument, and QTextCursor.
I have used QSyntaxHighlighter quite a bit, and QRegExp. There is now QRegularExpression, too. Here are the classes and general documentation I'd look at to get started with Rich Text processing.
http://doc.qt.io/qt-5/qtextblock.html#details
http://doc.qt.io/qt-5/richtext-structure.html
http://doc.qt.io/qt-5/richtext.html
http://doc.qt.io/qt-5/richtext-cursor.html
http://doc.qt.io/qt-5/richtext-common-tasks.html#finding-text
Hope that helps.
I'm writing a program that performs several tests on a hardware unit, and logs both the results of each test and the steps taken to perform the test. The trick is that I want the program to log these results to a text file as they become available, so that if the program crashes the results that had been obtained are not lost, and the log can help debug the crash.
For example, assume a program consisting of two tests. If the program has finished the first test and is working on the second, the log file would look like:
Results:
Test 1 Result A: Passed
Test 1 Result B: 1.5 Volts
Log:
Setting up instruments.
Beginning test 1.
[Steps in test 1]
Finished test 1.
Beginning test 2.
[whatever test 2 steps have been completed]
Once the second test has finished, the log file would look like this:
Results:
Test 1 Result A: Passed
Test 1 Result B: 1.5 Volts
Test 2 Result A: Passed
Test 2 Result B: 2.0 Volts
Log:
Setting up instruments.
Beginning test 1.
[Steps in test 1]
Finished test 1.
Beginning test 2.
[Steps in test 2]
Finished test 2.
All tests complete.
How would I go about doing this? I've been looking at the help files for QFile and QTextStream, but I'm not seeing a way to insert text in the middle of existing text. I don't want to create separate files and merge them at the end because I'd end up with separate files in the event of a crash. I also don't want to write the file from scratch every time a change is made because it seems like there should be a faster, more elegant way of doing this.
QFile.readAll will read the entire file into a QByteArray.
On the QByteArray you can then use insert to insert text in the middle,
and then write it back to file again.
Or you could use the classic c style that can modify files in the middle with the help of filepointers.
As #Roku pointed out, there is no built in way to insert data in a file with a rewrite. However if you know the size of the region, i.e., if the text you want to write has a fixed length, then you can write an empty space in the file and replace it later. Check
this discussion in overwriting part of a file.
I ended up going with the "write the file from scratch" method that I mentioned being hesitant about in my question. The benefit of this technique is that it results in a single file, even in the event of a crash since the log and the results are never placed in different files to begin with. Additionally, rewriting the file only happens when adding new results (an infrequent occurrence), whereas updating the log means simply appending text to the file as usual. I'm still a bit surprised that there isn't a way to have the OS insert text into a file for you.
Oh, and for those of you who absolutely must have this functionality as efficiently as possible, the following might be of use:
http://www.codeproject.com/Articles/17716/Insert-Text-into-Existing-Files-in-C-Without-Temp
You just cannot add more stuff in the middle of a file. I would go with two separate files, another for the results and another for the logs.