Glide.js
Glide is responsive and touch-friendly jQuery slider. Based on CSS3 transitions. It's simple, lightweight and fast. Designed to slide, no less, no more.
Glide.js | Simple, responsive and fast jquery carousel slider touch-friendly jquery carousel slider. designed to slide. no less, no more.
The Glide Google App Engine (https://github.com/kdabir/glide) project looks like a great way to get simple Groovy scripts hosted and running on the web.
However, after following the instructions on http://glide-gae.appspot.com/docs/intro I get errors when trying to deploy to the GAE server.
I set the __glide.groovy up as in the ‘2 minutes to deploy’. However as soon as I run "glide deploy" I get the following error…
___ _ _ _
/ __|| |(_) __| | ___
| (_ || || |/ _` |/ -_)
\___||_||_|\__,_|\___|
version : 0.3-SNAPSHOT
build : 28.01.14 22:51:08
[sync] Copying 4 files to /software/glide/install/generated/app-name
Exception in thread "main" java.io.FileNotFoundException:/software/glide/install/generated/app-name/app/WEB-INF/web.xml
(No such file or directory)
Software Versions Used:
Glide:
version : 0.3-SNAPSHOT
build : 17.01.14 17:02:02
java version "1.7.0_51"
Java(TM) SE Runtime Environment (build 1.7.0_51-b13)
Java HotSpot(TM) 64-Bit Server VM (build 24.51-b03, mixed mode)
Groovy Version: 2.2.1 JVM: 1.7.0_51 Vendor: Oracle Corporation OS: Mac OS X
Gradle 1.10
------------------------------------------------------------
Build time: 2013-12-17 09:28:15 UTC
Build number: none
Revision: 36ced393628875ff15575fa03d16c1349ffe8bb6
Groovy: 1.8.6
Ant: Apache Ant(TM) version 1.9.2 compiled on July 8 2013
Ivy: 2.2.0
JVM: 1.7.0_51 (Oracle Corporation 24.51-b03)
OS: Mac OS X 10.9.1 x86_64
What can I change to deploy this app?
Source: (StackOverflow)
I have a problem with Android Glide. I am trying to quickly swap my image, they just become all placeholder size, and my placeholder image is very low size. So What i need to do?
Maybe I need to check if its loaded or something, but i dont know how.
Glide.with(this).load(quest.get(id).getImage()).placeholder(R.drawable.load).fitCenter().crossFade().into(ImageView);
Source: (StackOverflow)
As part of the deployment process of a Glide project (http://glide-gae.appspot.com/docs/intro step 3 of 2nd section) you need to authenticate using oauth2. My browser popped up with the token as expected but the process didn’t wait for me to copy the code in, it just carried on with the following error...
22:30:12.713 [DEBUG] [org.gradle.launcher.daemon.server.DaemonStateCoordinator] Daemon is busy, sleeping until state changes.
22:30:12.733 [INFO] [org.gradle.launcher.daemon.server.exec.LogToClient] About to start relaying all logs to the client via the connection.
22:30:12.734 [INFO] [org.gradle.launcher.daemon.server.exec.LogToClient] The client will now receive all logging from the daemon (pid: 12557). The daemon log file: /.gradle/daemon/1.8/daemon-12557.out.log
22:30:12.739 [DEBUG] [org.gradle.launcher.daemon.server.SynchronizedDispatchConnection] thread 14: received class org.gradle.launcher.daemon.protocol.CloseInput
22:30:12.740 [DEBUG] [org.gradle.launcher.daemon.server.DefaultDaemonConnection] Received IO message from client: CloseInput[id=069864b2-2948-4a9d-abea-0705274136a1.2]
22:30:12.741 [INFO] [org.gradle.launcher.daemon.server.exec.ForwardClientInput] Closing daemon's stdin at end of input.
22:30:12.742 [INFO] [org.gradle.launcher.daemon.server.exec.ForwardClientInput] The daemon will no longer process any standard input.
22:30:12.747 [INFO] [org.gradle.launcher.daemon.server.exec.ExecuteBuild] Executing build with daemon context: DefaultDaemonContext[uid=3901cff0-8d50-41b6-9459-e31f7b78f1e3,javaHome=/Library/Java/JavaVirtualMachines/jdk1.7.0_51.jdk/Contents/Home,daemonRegistryDir=.gradle/daemon,pid=12557,idleTimeout=10800000,daemonOpts=-XX:MaxPermSize=256m,-Xmx512m,-Dfile.encoding=UTF-8]
Please enter code: Encountered a problem: No line found
Please see the logs [/var/folders/c8/vx2jf50j68x1z3_pysy6kxjm0000gp/T/appcfg2389447403250678065.log] for further information.
Daemon vm is shutting down... The daemon has exited normally or was terminated in response to a user interrupt.
----- End of the daemon log -----
org.gradle.tooling.GradleConnectionException: Could not execute build using Gradle distribution 'http://services.gradle.org/distributions/gradle-1.8-bin.zip'.
What can I do to be able to deploy my application? How can I force the process to wait for me to enter the code?
Source: (StackOverflow)
I'm using Glide on Laravel and I have "small" problem with it. When I load small image by outputImage()
everything is okay. But when I try to load - for simple - 1.6MB of image Laravel put in console:
Allowed memory size of 67108864 bytes exhausted (tried to allocate 14152 bytes) in C:\Users\displate\Documents\displate\vendor\intervention\image\src\Intervention\Image\Gd\Decoder.php on line 34
How can I simple fix it?
Bad part of my code:
protected function get($path,$storage,$sizes,$prefix=''){
ini_set('memory_limit', '64M'); // it's not working :<
if($this->check_variables($sizes)){
$server=$this->prepare_server($storage,$prefix);
try{
$server->getImageResponse($path);
$server->outputImage($path, $_GET);
}
catch(\Exception $e){
$this->download_image($path,$storage);
$server->getImageResponse($path);
$server->outputImage($path, $_GET);
}
}
else{
abort(404);
}
}
protected function prepare_server($storage_name,$prefix=''){
$server = \League\Glide\ServerFactory::create([
'source' => \Storage::disk($storage_name)->getDriver(),
'cache' => \Storage::disk($storage_name)->getDriver(),
'source_path_prefix' => $prefix,
'cache_path_prefix' => $storage_name.'_cached',
]);
$_GET['fit']='crop';
$_GET['crop']='center';
return $server;
}
Source: (StackOverflow)
I want using Glide to load image to marker (with layout in xml)
The first I am using Picasso:
Picasso.with(mActivity).load(Uri.parse(url)).resize(50, 50).into(image, new Callback() {
@Override
public void onSuccess() {
mMap.addMarker(new MarkerOptions()
.position(mLatLng)
.icon(BitmapDescriptorFactory.fromBitmap(createDrawableFromView(mActivity, marker))));
}
@Override
public void onError() {
}
});
It works fine. After image load to ImageView
createDrawableFromView()
make a bitmap and it show on marker.
However when I change to Glide:
Glide.with(mActivity).load(url).listener(new RequestListener<String, GlideDrawable>() {
@Override
public boolean onException(Exception e, String s, Target<GlideDrawable> target, boolean b) {
return false;
}
@Override
public boolean onResourceReady(GlideDrawable glideDrawable, String s, Target<GlideDrawable> target, boolean b, boolean b1) {
mMap.addMarker(new MarkerOptions()
.position(mLatLng)
.icon(BitmapDescriptorFactory.fromBitmap(createDrawableFromView(mActivity, marker))));
return true;
}
}).into(image);
It does not work, image is white. I think image don't load.
Source: (StackOverflow)
I am using Glide, and followed this video https://vimeo.com/118089742 which basically is a walk-through
for the instructions on the official site http://glide.thephpleague.com/
Here is my service provider:
$this->app->singleton('League\Glide\Server', function ($app) {
return \League\Glide\ServerFactory::create([
'source' => public_path(),
'cache' => public_path(),
'source_path_prefix' => 'images/uploads',
'cache_path_prefix' => 'images/cache',
'base_url' => '/img/',
]);
});
And here is my current route:
Route::get('img/{path}', function (League\Glide\Server $server, Illuminate\Http\Request $request) {
$server->outputImage($request);
});
But I am running into problems. When I go to url.com/img/test.png?h=100, it does not work. When looking at chrome
dev tools on the page, I get a 404 for the image (however, the original image DOES appear).
I have found that if I switch my route to the following, and only go to url.com/img/test?h=100 (without the extension),
then I get the Glided image that I want:
Route::get('img/{path}', function (League\Glide\Server $server, Illuminate\Http\Request $request) {
$server->outputImage($request->path() . '.png', $request->all());
});
However, if I remove the concatenation of the extension and go with simply:
Route::get('img/{path}', function (League\Glide\Server $server, Illuminate\Http\Request $request) {
$server->outputImage($request->path(), $request->all());
});
Then route back to url.com/img/test.png?h=100, it fails again.
Do you see anything wrong with what I'm doing, or is there an explanation for why I can't go directly to the image
path (with the extension)?
Source: (StackOverflow)
I am trying to establish how widely used the Glide framework (http://glide-gae.appspot.com/) is on App Engine, I am looking for a RAD environment for developing on App Engine and came across these slides http://www.slideshare.net/kunal.dabir/rapid-app-dev-on-gae and I thought Glide was what I was looking for.
I have downloaded and tried to follow the 2 minutes to fly steps when I get to the step 4 and enter glide I get the following error:
"Exception in thread "main" : D:\Documents\dev\GAE\Glide\hello-glide\null\template does not exist", followed by and exception stack trace
I can get the example projects to run using "gradlew run -Papp=D:\glide\samples\simple_app"
If anyone can offer any advice around the above I would much appreciate it.
Source: (StackOverflow)