Thursday, 3 October 2013

use of dostarttag and doendtag methods in custom tags

use of dostarttag and doendtag methods in custom tags

I am learning custom tags in jsp, I have tried to get information on the
use of dostarttag and doendtag methods but didn't find an answer that
clearly defines there working. Can someone explain what exactly these 2
methods do ?

Wednesday, 2 October 2013

Socket Programming c - file download

Socket Programming c - file download

I am creating a socket program in c. It divides data from a file into
multiple chunks and sends over the socket. The data at destination arrives
in out of order fashion. How do I manage this. I cant keep all the data in
memory till the end as the file is large.

MsiGetProductInfo returning ERROR_UNKNOWN_PRODUCT for an installed product

MsiGetProductInfo returning ERROR_UNKNOWN_PRODUCT for an installed product

I am trying to programmatically query for information from the installer
project. This information is defined in the installer and I don't want to
duplicate it in code. I need to get the Publisher installer property (and
a few others), but can't seem to get things to work.
I am querying using:
[DllImport("msi.dll", CharSet = CharSet.Unicode)]
private static extern Int32 MsiGetProductInfo(
string product,
string property,
[Out] StringBuilder valueBuf,
ref Int32 len);
...
int length = 512;
StringBuilder builder = new StringBuilder(length);
var result = MsiGetProductInfo(
"{censored}",
"Publisher",
builder,
ref length);
Using RegEdit, I can see an uninstallable product:
{censored}_is1
And this is my application with a "Publisher" key that is what I expect. I
am not sure why the "_is1" suffix is there. The installer was made using
Inno Setup, maybe that is related. I have tried adding this suffix on the
product code in the call to MsiGetProductInfo but it had no effect.
The call returns 1605 which is ERROR_UNKNOWN_PRODUCT.
How do I properly query for the publisher of this product?

Cannot Run a Jython Script

Cannot Run a Jython Script

I have a jython script and i need to know how to run it. I have installed
Jython 2.5.3 and Python and Java.
I have tried executing it as a plain python script and it doesnt work.
Thanks

why can't i access tabpage members as an object while i can as tabpage object

why can't i access tabpage members as an object while i can as tabpage object

i was writing the following
if(this.tabControl1.TabPages.Count != ImagesList.Count())
{
foreach (var item in this.tabControl1.TabPages)
{
}
}
and i couldn't access the controls inside each item using item. but with a
defining it's type like
if(this.tabControl1.TabPages.Count != ImagesList.Count())
{
foreach (TabPage item in this.tabControl1.TabPages)
{
}
}
i could easily access them using item.Controls
so i was wondering why do i really need to define/cast those items as
tabpage, shouldn't the compiler/intellasense figure it out as each item
inside this.tabControl1.TabPages is actually a TabPage ?

Tuesday, 1 October 2013

Basic queries on using Firebug

Basic queries on using Firebug

HI I am new to Javascript. I have added Firebug in my browser.
I want to know when I type console.log('Testing console'); in the terminal
of the firebug, why am I getting the output as undefined. I was expecting
the text Testing console to appear.
And also, I have installed Firebug light in Chrome. I am not being able to
get the search box.
Thanks in Advance

php-css editing for image resize (wordpress theme)

php-css editing for image resize (wordpress theme)

I need your help with the following theme.
http://www.korevolution.com/risorse-gratuite/free-wp-theme/koresponsive/
I want to change the size of the images on index page and also the size of
image on each post.
I found the code below on functions.php and stylesheet.css,bust just
editing it isnt enough.
Functions.php code
add_theme_support( 'automatic-feed-links' );
add_theme_support( 'post-formats', array( 'aside', 'link', 'gallery',
'status', 'quote', 'image' ) );
if ( function_exists( 'add_theme_support' ) ) {
add_theme_support( 'post-thumbnails' );
set_post_thumbnail_size( 314, 200, true );
add_image_size( 'related', 50, 50, true );
add_image_size( 'home_img', 314, 200, true );
add_image_size( 'single_img', 600, 300, true );
add_image_size( 'page_img', 920, 350, true );
add_image_size( 'slider_img', 600, 280, true );
Stylesheet.css code
.img-home, .feat-thumb a
max-width: 314px;
max-height: 200px;
display: inline-block;
.img-single, .feat-thumb-s a
max-width: 600px;
max-height: 300px;
display: inline-block;
Any ideas?

How to get lastest netbeans version for script?

How to get lastest netbeans version for script?

I want to create bash script which downloads latest stable netbeans full
version without knowing its version number.
It could be useful if in netbeans server existed installer like
netbeans-latest.sh but don't.
Ideas?

Examples of uncountable subgroups, but with countably many cosets.

Examples of uncountable subgroups, but with countably many cosets.

My question is pretty much as stated in the title: what examples are there
(or does there exist) uncountable subgroups of uncountable order, but
which give countably-infinite many cosets. I can only think of examples in
the other direction (countable subgroups giving uncountably-many cosets).