How to make all the textarea disabled used as ckeditor
I have a set of textareas which are used as editors. I want to make those
textareas readonly in some condition. I am able to do it for individual
textareas.
$("#txtHtmlHead").ckeditorGet().setReadOnly();
but when looping through each textareas is not working
$('textarea').each(function() {
$(this).ckeditorGet().setReadOnly();
});
I am getting the below exception
CKEditor is not initialized yet, use ckeditor() with a callback.
Can anybody help?
Friday, 13 September 2013
Thursday, 12 September 2013
How can I join path fragments using objective-C in iOS?
How can I join path fragments using objective-C in iOS?
What's the objective-C equivalent of python's os.path.join in iOS? e.g.:
>>> import os
>>> os.path.join("foo", "bar", "buuxometer", "hi.jpg")
'foo/bar/buuxometer/hi.jpg'
What's the objective-C equivalent of python's os.path.join in iOS? e.g.:
>>> import os
>>> os.path.join("foo", "bar", "buuxometer", "hi.jpg")
'foo/bar/buuxometer/hi.jpg'
Implementing PHPBB3 user management on external page
Implementing PHPBB3 user management on external page
I'm trying to figure out how to modify the PHPBB3 user management
information to have it redirect back to my pages instead of the forum
index. For example, when a user registers it or requests their password be
resent it will redirect them to the forum index instead of one of my
external pages. How can I begin tracing this logic back through the PHPBB3
code so I know what I need to modify?
I'm trying to figure out how to modify the PHPBB3 user management
information to have it redirect back to my pages instead of the forum
index. For example, when a user registers it or requests their password be
resent it will redirect them to the forum index instead of one of my
external pages. How can I begin tracing this logic back through the PHPBB3
code so I know what I need to modify?
New icons in iOS 7
New icons in iOS 7
I was trying to update my iOS app and I received some warnings about three
missing icons.
Missing recommended icon file - The bundle does not contain an app icon
for iPhone / iPod Touch of exactly '120x120' pixels, in .png format.
Missing recommended icon file - The bundle does not contain an app icon
for iPad of exactly '76x76' pixels, in .png format.
Missing recommended icon file - The bundle does not contain an app icon
for iPad of exactly '152x152' pixels, in .png format.
I don't know if I have to add these icons too and where to add them or if
a have to replace them for the ones that the app already has (57-114 for
iPhone and 72-144 for iPad).
I was trying to update my iOS app and I received some warnings about three
missing icons.
Missing recommended icon file - The bundle does not contain an app icon
for iPhone / iPod Touch of exactly '120x120' pixels, in .png format.
Missing recommended icon file - The bundle does not contain an app icon
for iPad of exactly '76x76' pixels, in .png format.
Missing recommended icon file - The bundle does not contain an app icon
for iPad of exactly '152x152' pixels, in .png format.
I don't know if I have to add these icons too and where to add them or if
a have to replace them for the ones that the app already has (57-114 for
iPhone and 72-144 for iPad).
Reuse InputStream when BitmapFactory.decodeStream(stream, null, options)
Reuse InputStream when BitmapFactory.decodeStream(stream, null, options)
InputStream stream = new URL(key).openStream();
BitmapFactory.Options options = new BitmapFactory.Options();
options.inJustDecodeBounds = true;
BitmapFactory.decodeStream(stream, null, options);
options.inSampleSize = calculateInSampleSize(options, reqWidth,
reqHeight);
options.inJustDecodeBounds = false;
/* i need reuse stream here, for decode stream again. */
Bitmap bmp = BitmapFactory.decodeStream(stream, null, options);
stream.close();
return bmp;
InputStream stream = new URL(key).openStream();
BitmapFactory.Options options = new BitmapFactory.Options();
options.inJustDecodeBounds = true;
BitmapFactory.decodeStream(stream, null, options);
options.inSampleSize = calculateInSampleSize(options, reqWidth,
reqHeight);
options.inJustDecodeBounds = false;
/* i need reuse stream here, for decode stream again. */
Bitmap bmp = BitmapFactory.decodeStream(stream, null, options);
stream.close();
return bmp;
Linq2SQL Help Converting row_number and partition
Linq2SQL Help Converting row_number and partition
Can someone please help me convert the following t-sql into c# linq?
select
clientid,
orderId
from
(
select
row_number() over (partition by clientid order by purchasedate
desc) as rownum,
clientid,
id as orderId
from ordertraining
) as x where rownum = 1
Can someone please help me convert the following t-sql into c# linq?
select
clientid,
orderId
from
(
select
row_number() over (partition by clientid order by purchasedate
desc) as rownum,
clientid,
id as orderId
from ordertraining
) as x where rownum = 1
Wednesday, 11 September 2013
MatLab (Image Processing, Image Acquisition) How to save captured images by webcam without overwriting the original file name?
MatLab (Image Processing, Image Acquisition) How to save captured images
by webcam without overwriting the original file name?
I want to save images without overwriting them whenever I hit the
pushbutton. Can you please help me how save images without overwriting the
original? What I want to do is whenever I'll hit the pushbutton, It will
generated 1 image at a time without deleting the original.
Just like in digital cameras, whenever I will hit the trigger button, it
will save 1 image and the file name will be image1.jpg. So basically, if I
will push trigger again, it will capture 1 image again and the file name
will be image2.jpg and so on.
here is my code:
counter = 1; %initialize filename increment
vid = videoinput('winvideo',2);
set(vid, 'ReturnedColorSpace', 'RGB');
img = getsnapshot(vid);
imshow(img);
savename = strcat('C:\Users\Sony Vaio\Documents\Task\images\image_'
,num2str(counter), '.jpg'); %this is where and what your image will be
saved
imwrite(img, savename);
counter = counter +1; %counter should increment each time you push the
button
My code saves and keeps on overwriting the filename image1.jpg. To make
things clear
1 push to the pushbutton, 1 image saves.
it's like it will call the whole block code every hit at pushbutton. I
hope you guys can help me. I really troubled right now :( Thank you :)
by webcam without overwriting the original file name?
I want to save images without overwriting them whenever I hit the
pushbutton. Can you please help me how save images without overwriting the
original? What I want to do is whenever I'll hit the pushbutton, It will
generated 1 image at a time without deleting the original.
Just like in digital cameras, whenever I will hit the trigger button, it
will save 1 image and the file name will be image1.jpg. So basically, if I
will push trigger again, it will capture 1 image again and the file name
will be image2.jpg and so on.
here is my code:
counter = 1; %initialize filename increment
vid = videoinput('winvideo',2);
set(vid, 'ReturnedColorSpace', 'RGB');
img = getsnapshot(vid);
imshow(img);
savename = strcat('C:\Users\Sony Vaio\Documents\Task\images\image_'
,num2str(counter), '.jpg'); %this is where and what your image will be
saved
imwrite(img, savename);
counter = counter +1; %counter should increment each time you push the
button
My code saves and keeps on overwriting the filename image1.jpg. To make
things clear
1 push to the pushbutton, 1 image saves.
it's like it will call the whole block code every hit at pushbutton. I
hope you guys can help me. I really troubled right now :( Thank you :)
Subscribe to:
Posts (Atom)