I have a run away worker process.
Which of the 10ish sites on this box is it thats going nuts?
How can I determine from the pid of the worker process which site he is?
Skype got stuck, and Windows was unable to kill the process even when the UI had disappeared. I had to restart the computer to get Skype again working.
Running as administrator:
C:\Windows\system32>tasklist | find "Skype"
Skype.exe 2708 Console 1 92,328 K
C:\Windows\system32>taskkill.exe /pid 2708 /F /T
SUCCESS: The process with PID 2708 has been terminated.
C:\Windows\system32>tasklist | find "Skype"
Skype.exe 2708 Console 1 92,328 K
How can this be even possible?
Cheers.
I ssh into a server than start a job (for instance rsync), then I just want to be able to log out from the server and let the job run its course. But if I just do rsync ... & I think it's still connected to the tty in some way, and that the job dies when the tty goes away when logging out. Is there any (easy) way to disconnect the process from the tty to be able to log out without the process terminating?
I have Gitorious running on a Centos 5.3 install on a VMWare virtual machine under VMWare Server. Everytime we take down the server via suspend to back up the image, and resume the VM, the git-daemon dies.
All my other processes continue to function without any problems, this one process dies and has to be manually be restarted.
Does anyone have any ideas why this might be happening, or how to make sure this process never dies off?
I am using Ajax for processing with JQUERY. The Data_string is sent to my process.php page, where it is saved.
Issue: right now anyone can directly type example.com/process.php to access my process page, or type example.com/process.php/var1=foo1&var2=foo2 to emulate a form submission. How do I prevent this from happening?
Also, in the Ajax code I specified POST. What is the difference here between POST and GET?
This should be a simple thing to do, but I'm running into a wall and I'm not sure how to debug this response.
In my Image model, I have:
class Image < ActiveRecord::Base
has_attached_file :image, :styles => { :display => "500x500>",
:thumbnail => "95x95>"}
Then in my Views, my form contains this:
-form_for @image, :html => { :multipart => true } do |image|
%tr
%td.woc_left
=label_tag :image, 'photo to upload', :class => 'required'
%td.woc_center
=image.file_field :image
In my Mysql table, I have a column called "image_file_name" (string).
However, when I try to upload an image and submit it, I see
2 errors prohibited this from being saved
There were problems with the following fields:
Image Paperclip::CommandNotFoundError
Image Paperclip::CommandNotFoundError
What am I doing wrong? Thank you for your help!
Originally posted on: http://geekswithblogs.net/ihaynes/archive/2014/05/29/page-speed-and-itrsquos-affect-on-your-business.aspxPage speed was an important issue 10 years ago, when we all had slow modems, but became less so with the advent of fast broadband connections that even seemed to make Ajax unnecessary. Then along came the mobile internet and we’re back to a world where page speed and asset optimisation are critical again. If you doubt this an article on SitePoint discussing ’Page Speed and Business Metrics’ may change your mind. http://www.sitepoint.com/page-speed-business-metrics/ Here are some of the figures it quotes: Walmart – saw a 2% increase in conversions for every second of improvement in page load time. Put another way, accumulated growth of revenues went up 1% for every 100 milliseconds of load time improvement. Yahoo – for every 400 milliseconds of improvement, the site traffic increased by 9%. The bottom line is that if people have to wait more than a few seconds for a page to fully render, particularly on a mobile device, they’ll probably go elsewhere. Ignore this at your peril. For two previous posts on the subject see: Page Weight: 10 easy fixes Xat.com Image Optimiser – Useful for RWD/Mobile
I am working on puzzle game, where the player can select an image from iPhone photo gallery. The selected image will save in puzzle page and after 3 second wait the selected image will be broken into 6 or 8 parts of different shapes. Then player will arrange these broken parts of images to make the original image.
I am not getting idea how to break the image and merged so that player arrange the broken part. I want to break image like this below frame. I am developing this game in cocos2d.
Are you looking for a terrific graphics app to use for original painting and artwork creation on your computer? Whether it is for you or the kids, MyPaint is an app that you should definitely have on hand for when those artistic moods come along.
For our example we chose to install MyPaint on Ubuntu 10.10…you can easily find it in the Ubuntu Software Center by doing a quick search. Once you have it installed, all that is left to do is decide if you want to add additional brushes (link provided below) and then start having fun creating your next work of art.
Here are some of MyPaint’s wonderful features:
Exists for several platforms (Linux, Windows, and Mac OS X)
Supports pressure sensitive graphics tablets
Extensive brush creation and configuration options
Unlimited canvas (you never have to resize)
Basic layer support
Comes with a large brush collection including charcoal and ink to emulate real media
MyPaint is fun to use and can quickly become very addicting as you experiment during the creation process!
Links
MyPaint Homepage
Download Additional Brushes for MyPaint
Download the GIMP Plugin for the OpenRaster File Format
Latest Features
How-To Geek ETC
Internet Explorer 9 RC Now Available: Here’s the Most Interesting New Stuff
Here’s a Super Simple Trick to Defeating Fake Anti-Virus Malware
How to Change the Default Application for Android Tasks
Stop Believing TV’s Lies: The Real Truth About "Enhancing" Images
The How-To Geek Valentine’s Day Gift Guide
Inspire Geek Love with These Hilarious Geek Valentines
MyPaint is an Open-Source Graphics App for Digital Painters
Can the Birds and Pigs Really Be Friends in the End? [Angry Birds Video]
Add the 2D Version of the New Unity Interface to Ubuntu 10.10 and 11.04
MightyMintyBoost Is a 3-in-1 Gadget Charger
Watson Ties Against Human Jeopardy Opponents
Peaceful Tropical Cavern Wallpaper
I'm currently writing a Sprite Sheet Unpacker such as Alferds Spritesheet Unpacker. Now, before this is sent to gamedev, this isn't necessarily about games. I would like to know how to detect a sprite within a spriitesheet, or more abstactly, a shape inside of an image.
Given this sprite sheet:
I want to detect and extract all individual sprites. I've followed the algorithm detailed in Alferd's Blog Post which goes like:
Determine predominant color and dub it the BackgroundColor
Iterate over each pixel and check ColorAtXY == BackgroundColor
If false, we've found a sprite. Keep going right until we find a BackgroundColor again, backtrack one, go down and repeat until a BackgroundColor is reached. Create a box from location to ending location.
Repeat this until all sprites are boxed up.
Combined overlapping boxes (or within a very short distance)
The resulting non-overlapping boxes should contain the sprite.
This implementation is fine, especially for small sprite sheets. However, I find the performance too poor for larger sprite sheets and I would like to know what algorithms or techniques can be leveraged to increase the finding of sprites.
A second implementation I considered, but have not tested yet, is to find the first pixel, then use a backtracking algorithm to find every connected pixel. This should find a contiguous sprite (breaks down if the sprite is something like an explosion where particles are no longer part of the main sprite). The cool thing is that I can immediately remove a detected sprite from the sprite sheet.
Any other suggestions?
Which is the code with which we can retreive alternative text of image:
It is a Cataloge with clothes. Dressers, Shirts, Skirts e.t.c. in front page of a site. The featured images of the categories can be changed manually from someone.
I did a check and it is asking me to give alt text. I did it to some images with alt="". But to the cataloge I cannot do it.
the code is below:
{{ 'option_selection.js' | shopify_asset_url | script_tag }}
{{ 'api.jquery.js' | shopify_asset_url | script_tag }}
{% if template contains 'customers' %}
{{ 'shopify_common.js' | shopify_asset_url | script_tag }}
{{ 'customer_area.js' | shopify_asset_url | script_tag }}
{% endif %}
{% if settings.display_slideshow %}{{ 'jquery.slider.js' | asset_url | script_tag }}{% endif %}
{% if settings.include_masonry %}{{ 'jquery.masonry.js' | asset_url | script_tag }}{% endif %}
{% if settings.enable_product_image_zoom %}{{ 'jquery.zoom.js' | asset_url | script_tag }}{% endif %}
{{ 'fancy.js' | asset_url | script_tag }}
{{ 'shop.js' | asset_url | script_tag }}
Shopify.money_format = '{{ shop.money_format }}';
{% if template contains "product" %}
jQuery(document).ready(function($){
{% if product.variants.size 1 or product.options.size 1 %}
new Shopify.OptionSelectors("product-select", { product: {{ product | json }}, onVariantSelected: selectCallback });
{% assign found_one_in_stock = false %}
{% for variant in product.variants %}
{% if variant.available and found_one_in_stock == false %}
{% assign found_one_in_stock = true %}
{% for option in product.options %}
$('#product-select-option-' + {{ forloop.index0 }}).val({{ variant.options[forloop.index0] | json }}).trigger('change');
{% endfor %}
{% endif %}
{% endfor %}
{% endif %}
});
$(function() {
$( "#tabs" ).tabs();
});
I have a knackered super-drive, and need to install software from a CD. However I do have backup images (as .dmg's) of all my install disks. Usually it all works fine, but with two particular installs it tells me to insert the CD into the drive. Is there anyway to fool the system into mounting the .dmg and make it look like a CD? I believe that Toast can do this, so it's possible. I was just hoping to be able to do it without forking out £80 - I could get an external drive for that (just not right this second)
I want it to be animated so I'm using [UIView beginAnimations]
I've tried animating using button.imageView.frame (with image set as imageView) but it only animates the position, the image doesn't get scaled down at all.
using hateButton.frame (when image is set as backgroundImage), the backgroundImage gets scaled down but it's not animated.
How do I animate-scale a UIButton image?
Hi All
I am using animated image (gif image) in webview
but problem is that it showing while background for transparent image. even I set the background color of webview is transparent.
Is any way to do it transparent or any other way to show transparent animated image in Iphone SDk
Thanks
Amit Battan
I need to display an image in a Django form. My Django form is quite simple - a single text input field. When I initialise my Django form in a view, I would like to pass the image path as a parameter, and the form when rendered in the template displays the image. Is is possible with Django forms or would i have to display the image separately?
Thanks.
I have a layout that contains some text fields and has a background image that's displayed at the top of my activity. I'd like the background image to scale to wrap the content (don't care about aspect ratio). However, the image is larger than content, so the layout instead wraps the background image. Here's my original code:
<RelativeLayout
android:layout_width="fill_parent"
android:id="@+id/HeaderList"
android:layout_gravity="top"
android:layout_height="wrap_content"
android:background="@drawable/header">
<TextView
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:id="@+id/NameText"
android:text="Jhn Doe"
android:textColor="#FFFFFF"
android:textSize="30sp"
android:layout_alignParentLeft="true"
android:layout_alignParentTop="true"
android:paddingLeft="4dp"
android:paddingTop="4dp"
/>
<TextView
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:textColor="#FFFFFF"
android:layout_alignParentLeft="true"
android:id="@+id/HoursText"
android:text="170 hours"
android:textSize="23sp"
android:layout_below="@+id/NameText"
android:paddingLeft="4dp"
/>
</RelativeLayout>
After searching through some other questions, I found these two:
How to wrap content views rather than background drawable?
Scale a Drawable or background image?
Based on this, I created a FrameLayout w/ an ImageView showing the background. Unfortunately, I still can't get it to work. I want the height of the background image to shrink/expand w/ the size of the text views, but with the FrameLayout, the ImageView fits to the size of it's parent, and I can't find a way to make the parent fit to the size the text view layout. Here's my updated code:
<FrameLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content" >
<ImageView android:src="@drawable/header"
android:layout_width="fill_parent"
android:scaleType="fitXY"
android:layout_height="fill_parent"
/>
<RelativeLayout
android:layout_width="fill_parent"
android:id="@+id/HeaderList"
android:layout_gravity="top"
android:layout_height="wrap_content"
>
<TextView
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:id="@+id/NameText"
android:text="John Doe"
android:textColor="#FFFFFF"
android:textSize="30sp"
android:layout_alignParentLeft="true"
android:layout_alignParentTop="true"
android:paddingLeft="4dp"
android:paddingTop="4dp"
/>
<TextView
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:textColor="#FFFFFF"
android:layout_alignParentLeft="true"
android:id="@+id/HoursText"
android:text="170 hours"
android:textSize="23sp"
android:layout_below="@+id/NameText"
android:paddingLeft="4dp"
/>
</RelativeLayout>
</FrameLayout>
Does anybody have any suggestions for how best to make an image scale to the size of the contents of some layout? I'm not concerned with the aspect ratio of the image, as it won't matter, I just want it to fill the background.
Thanks!
I have a Canvas which has an image as background. When I do the ScaleTransform to increase the size of the image, the image blows out of the Canvas. Although I increase the size, I don't want the image to go out of the Canvas, I just want it to fit inside the Canvas. How to fix this issue in WPF?
Hi,
I've defined a model which contains a link an image. Is there a way to display the image in the model items list. (e.g. if I defined an article this way:
class Article(models.Model):
url = models.CharField(max_length = 200, unique = True, help_text="/lessons/")
title = models.CharField(max_length = 500)
img = models.CharField(max_length = 100) # Contains path to image
def __unicode__(self):
return u"%s" %title
)
Is there a way to display image together with title?
Hi,
In eZ publish at the moment Im using the following in image.ini.append.php
[largepic]
Reference=
Filters[]
Filters[]=geometry/scale=580;270
Which does work fine.
However for testing purposes I want to resize the image, scaling it up if needed - the image will be 580x270, even if the original image was lower dimension.
Thanks.
Hi sir,
i am very new in cakephp.i have created a folder in app/webroot/. for image placing. eralier by default img folder cantain image. which i have used some thing like this " image('foldopen.png',array('width'=14,'height'='10','alt'='open'));? "
now i have created new image folder insted of img folder. how to use this.
please help me .its very urgent.
Thanks
Manish
[email protected]
Hi all,
How to create a thumbnail image with embedded video code. For example i am having the following embedded code:
Now i need to display the thumbnail image of this video and while clicking on that thumbnail image the corresponding video must play.
Now, My Prob is "HOW TO CREATE A THUMBNAIL IMAGE OF AN EMBEDDED VIDEO CODE"
thanks in advance
I am writing code that catches this OutOfMemoryException and throws a new, more intuitive exception:
/// ...
/// <exception cref="FormatException">The file does not have a valid image format.</exception>
public static Image OpenImage( string filename )
{
try
{
return Image.FromFile( filename, );
}
catch( OutOfMemoryException ex )
{
throw new FormatException( "The file does not have a valid image format.", ex );
}
}
Is this code acceptable to its user, or is OutOfMemoryException intentionally being thrown for a particular reason?
I need some help deciding what to use to acquire an image from a webcam. I want to acquire a single image. I know you can typically acquire a still image at a higher resolution than a single video frame.
Currently, I am using MATLAB's image acquisition toolbox.. which apparently only supports obtaining frames in video mode(so lower resolution). Which other libraries do you recommend? Has anyone else encountered this problem?