implicit_plot maxima windows doesn't show an image - maxima

Here is my code:
implicit_plot([x=-log(y),x=-sqrt(y),y=0,y=1,y=%e],[x,-5,5],[y,-5,5]);
That's what goes after I press shift+enter:
(%o258) implicit_plot([x=-log(y),x=-sqrt(y),y=0,y=1,y=%e],[x,-5,5],[y,-5,5])
This code just doesn't execute! Why?

Oh, finally found out myself, I should have write
load(implicit_plot);

Related

How to automate Google Play Update App popup using Appium

I am writing the code line as:
driver.findElement(By.id("com.android.vending:id/0_resource_name_obfuscated")).click();
//Clicking on No Thanks button - resourceid take from Ui Automator
But appium does not respond to this line and give error that no element found.
"An element could not be located on the page using the given search parameters"
Any help? Thanks in advance
Instead of tapping on No Thanks, I used back button
driver.navigate().back();
Query has been resolved with alternate method.
Try to use wait methods :
WebDriverWait wait = new WebDriverWait(driver,30);
wait.until(ExpectedConditions.visibilityOfElementLocated((By.id("com.android.vending:id/0_resource_name_obfuscated")));
//Or use condition: elementToBeClickable()

Issue with TracedPath in manim

I'm trying to use TracedPath to make a curve in manim (CE v0.10), which I then want to manipulate (move around, rotate, etc.). The problem is, the tracing continues once I start moving the curve and I don't want it to. Does anyone know how to turn the tracing off? Any help would be greatly appreciated (this is the last issue I need to solve to finish my video). Here is some sample code:
class TracedPathProblem(Scene):
def construct(self):
dot = Dot(color=RED)
trace = TracedPath(dot.get_center,stroke_color=RED)
self.add(dot,trace)
self.play(dot.animate.shift(RIGHT),run_time=2)
path = trace.copy()
self.play(path.animate.shift(2*UP+RIGHT)) #do not want tracing here
self.wait()
Issue solved. Benjamin Hackl gave me a solution: path = trace.copy().clear_updaters()

How to execute a TTakePhotoFromCameraAction in other procedure on Delphi XE7?

I want to execute a TTakePhotoFromCameraAction in other procedure, but I can't.
I Tested with TakePhotoFromCameraAction1.Execute, TakePhotoFromCameraAction1.ExecuteTarget,..., but without success. Is it possible?
You cannot execute because TakePhotoFromCameraAction1.Enabled = False.
Please check this sample http://docwiki.embarcadero.com/RADStudio/XE8/en/Taking_Pictures_Using_FireMonkey_Interfaces
First: make sure that you able to work with Camera.

Hue Creating a New Hue Application

I try to creat a new Hue application according to http://cloudera.github.io/hue/docs-2.5.0/sdk/sdk.html#fast-guide-to-creating-a-new-hue-application. However, when I run the command 'make apps'. It returns the result which is a little strange.In Not synced, there is only desktop, but it should have useradmin, hbase and so on. Because of this, when I run 'build/env/bin/hue runserver_plus ip:port', there will be an error saying 'importerror no module named useradmin'. I don't know how to solve the problem.
Any tips are appreciate!
I have find the solution. http://community.cloudera.com/t5/Web-UI-Hue-Beeswax/HUE-3-5-0-SDK-Errors/td-p/12066 and http://grokbase.com/p/cloudera/hue-user/137rh65vkc/hue-users-creation may be helpful.

How to simulate a Delphi breakpoint in code?

I am pretty sure I have seen this before, but I haven't found out / remembered how to do it. I want to have a line of code that when executed from the Delphi debugger I want the debugger to pop-up like there was a break point on that line.
Something like:
FooBar := Foo(Bar);
SimulateBreakPoint; // Cause break point to occur in Delphi IDE if attached
WriteLn('Value: ' + FooBar);
Hopefully that makes sense. I know I could use an exception, but that would be a lot more overhead then I want. It is for some demonstration code.
Thanks in advance!
To trigger the debugger from code (supposedly, I don't have a copy of delphi handy to try):
asm int 3 end;
See this page:
http://17slon.com/blogs/gabr/2008/03/debugging-with-lazy-breakpoints.html
As Andreas Hausladen stated in comments to that artice, Win32 API DebugBreak() function is less DOS-ish and works equally well.

Resources