Hi,
I want to use authentication web services that is exposed by my legacy client. But I cannot copy those user information in to liferay database. Can any one help me to write a custom authentication service OR a hook/plugin to reuse my own implementation for authentication?
Regards
Vishal G Pillai
Hi,
I'm creating a custom WinForms TextBox control, like this:
class MyTest : TextBox
{
protected override void OnEnter(EventArgs e)
{
this.BackColor = Color.Yellow;
}
protected override void OnLeave(EventArgs e)
{
this.BackColor = Color.White;
}
}
When I build the project, I cannot see the control. Can anyone explain why not?
Thanks in advance.
I want to add a custom message once someone saves a specific content-type telling them that it is going through an approval process. This will let them know as well as prevent them from re-submitting.
I'm trying to get a completely custom Dialog or PopupWindow, without any of the default Android UI controls (title, background, buttons, whatever).
Is this possible at all? I've spent hours searching for this, but no luck... It seems like this should be easily possible, but I can't find it.
Preferably this would be by inflating a View from XML, but at this point anything that would just work would be nice.
Thanks.
Hello,
I am creating an custom preference which contains an EditText.
The problem is when user clicks the EdiText for input suggestion box opens up and EditText looses focus. When EditText is clicked again for input, no problem occurs until 'blank space' is entered, which results in suggestion box and hence loss of focus.
What I mean by suggestion box is the box which pops up when entering text in EditText
I have created a progress bar custom control and would like to embed this into a list which can be sorted and placed on a windows form using .Net 2.0.
What is the best approach for this?
Is it possible to just add it to a ListView as a subitem? Is there a better way to achieve this? I want it to be as lightweight as possible.
Hi, I'm looking for a good way to package a Python application that is going to be deployed on a Debian server.
The application itself depends on some modules which are not included in base Debian repository, although they might be in the future. This creates some problems... I depend on some patches to those modules. If the original module gets installed one day, the application will break. However if I install everything I need in a virtualenv just for that application, I lose the ability to upgrade Python itself (in case of security updates).
The third option would be to rename my fork of the upstream module and just treat it as a completely separate one. But that would mean changing the code (not much work, but it wouldn't be that clean / universal anymore).
Are there any other options that I missed? Are there any pros / cons I didn't see in the solutions above?
Hello I am trying to make a password registration widget that will show a little checkbox in the textbox when both password boxes match. I decided to go about this by extending EditText to implement a valid and an empty state and then just use a state-list drawable to handle everything else.
I followed the same method that the CompoundButton uses to add a custom state and everything seems to be right but the image will never change no matter what the state is (custom state or even state_focused etc)
Is there some reason that the compound drawables of a TextView wouldn't work as a state-list drawable? Or, am I doing something wrong?
Here is attrs.xml
<resources>
<declare-styleable name="ValidyState">
<attr name="state_valid" format="boolean"/>
<attr name="state_has_text" format="boolean"/>
</declare-styleable>
</resources>
my selector
<selector xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res/com.schwiz.test">
<item android:drawable="@drawable/emptyspace"
app:state_has_text="false"/>
<item android:drawable="@drawable/ic_valid"
app:state_valid="true"
app:state_has_text="true"/>
<item android:drawable="@drawable/ic_invalid"
app:state_valid="false"
app:state_has_text="true"/>
</selector>
and in my overridden EditText class
private static final int[] VALID_STATE_SET = {
R.attr.state_valid
};
private static final int[] HASTEXT_STATE_SET = {
R.attr.state_has_text
};
...
private void refreshDrawables(){
Drawable[] drawables = getCompoundDrawables();
for(int i = 0; i < drawables.length; i++){
if(drawables[i] != null) {
drawables[i].setState(getDrawableState());
}
}
invalidate();
}
@Override
protected void drawableStateChanged() {
super.drawableStateChanged();
refreshDrawables();
}
@Override
protected int[] onCreateDrawableState(int extraSpace) {
final int[] drawableState = super.onCreateDrawableState(extraSpace + 2);
if(hasText){
mergeDrawableStates(drawableState, HASTEXT_STATE_SET);
}
if(isValid){
mergeDrawableStates(drawableState, VALID_STATE_SET);
}
return drawableState;
}
When a UITextField with custom frame (200 × 54 px) loses focus, the text looks a little bit blurry.
example screenshot
Is this a common problem? Any workaround / solution or am I doing something wrong?
Hey guys I'm trying to do something really simple.. I'm checking a data column in my datarow if it's 0 I want the item back color in the datalist to be green if its < 0 remain transparent...
if (e.Item.ItemType == ListItemType.Item ||
e.Item.ItemType == ListItemType.AlternatingItem)
{
DataRowView drv = (DataRowView)(e.Item.DataItem);
int rating = int.Parse(drv.Row["rating"].ToString());
if (rating > 0)
{
e.Item.BackColor = System.Drawing.Color.Green;
}
}
I've stepped through with debugger and it's hitting all the conditions the color just isn't changing.. I know it has to be something simple I just can't see it.
Hi,
I am writing a custom installer in C#.
Can you tell me an easy way to check if the machine has .NET version installed [even 2.0].
In cases where it is not installed, my app doesn't even start.
Thanks
Hello.
I'm very new on iPhone development. I wondering where to put some custom initialization of an instance variables for my UIViewController.
Can I use initWithNibName:bundle:?
Thanks.
I wanted to use the custom field for wordpress to have a different header banner for my site here is my code:
<?php
get_header(); ?>
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div id="BodyWrap">
<!--MAIN CONT-->
<div id="mainCont">
<?php get_sidebar(); ?>
<div id="rotateBanner"><?php
// check for image
$image = get_post_meta($post->ID, 'image', $single = true);?>
<img class="mainImg" src="<?php bloginfo(template_url); echo $image; ?>" alt=""/>
</div>
<div id="mainCopy">
<div id="content">
<h2><?php single_post_title(); ?></h2>
<?php the_content('<p class="serif">Read the rest of this page »</p>'); ?>
<?php wp_link_pages(array('before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
</div>
</div>
</div>
</div>
<?php endwhile; endif; ?>
<?php get_footer(); ?>
Now the code renders but for some reason it only renders the img path as:
<img alt="" src="http://www.testground.idghosting.com/philcom/wp-content/themes/phil"/>
here is the demosite
in the custom field I put this: image
For the value I put this: /images/sampleHead.png
Is there a good way to provide custom transitions between view controllers? For example, in the Photos app on the iPad, tapping on a photo album changes the navigation controller, but it also animates nicely into the grid of photos.
Thanks.
1. jQuery.expr[':'].aFilter =
function(elem, index, match){
return true; // Return true/false as per need
};
$('div.red').filter(':aFilter').doSomething();
i want pass some custom arguments to "jQuery.expr[':'].aFilter" function, is it possible to do it
I need to be able to achieve the following (one way or another):
function ShowContent() {}
document.onShowContent = function ()
{
// anything I want to happen....
}
What I'm trying to do is to add a kind of listener to me Advertisement code on the page that will auto refresh the ad slot when a specific function is called. Instead of having that function "ShowContent()" directly refresh the ad code, I want the ad code to refresh if it detects that "ShowContent()" has been called.
Thanks.
Hi guys,
searching for this has yielded no resuts..
i have a middle page that has an iframe and all the pages open in that iframe...i have to implement a chat system just like in Google and so to ensure that the chat windows did not close whwn the page would postback i am opening all pages in iframe....
this is a social networking site and user can have themes which have background images per theme
now when i visit a friends profile the backgrounf image of the middle page should change...
i have this code to find parent of iframe and change background image
$(document).ready(function(){
var theme=document.getElementById("ctl00_decideFooterH").value;
var t= parent.document.getElementsByTagName("body");
if(theme=='basicTheme'){
t[0].className="basic";
}
else if(theme=='Tranquility')
{
t[0].className="Tranquility";
}
else if(theme=='AbstractPink')
{
t[0].className="abstractPink";
}
});
and this code is the master page that all child pages that would open in iframe would access..the trouble is that there is a lag between the theme application on server side(which happens at PreInit) and the background image change which is done by this document.ready that gets executed after the iframe has loaded..
so essentially i need a javascript function that would either execute parallel to PreInit or some other logic....so guys plz help its urgent
I'm generating iCalendar events using PHP. They pass the validation checkers but won't add to Google Calendar or iCalendar. Help - what am I doing wrong?
When I attempt to import I get "iCal can't read this calendar file. No events have been added to your calendar. Google just appears to import the calendar but it's not there.
BEGIN:VCALENDAR
VERSION:2.0
PRODID:-//Foobar Name//NONSGML Foobar Name//EN
BEGIN:VEVENT
UID:20111129T103025-268Z@foobar
DTSTAMP:20111210T103025Z
DTSTART:20111210T210000Z
DTEND:20111210T230000Z
TRANSP: TRANSPARENT
SUMMARY:Foobar - Book Fair - text
DESCRIPTION: Foobar: Book Fair - text
END:VEVENT
END:VCALENDAR
Should I addslashes or not write colons in my summary or description text?
Here are the headers I'm writing out...
header("Content-Type: text/Calendar");
header('Content-Disposition: inline; filename="calendar.ics"');
echo "BEGIN:VCALENDAR</br>";
echo "VERSION:2.0</br>";
echo "PRODID:-//$orgname//NONSGML $orgname//EN</br>";
echo "METHOD:REQUEST</p>"; // required by Outlook
The file I'm generating has the extension .php (not .ics).
Thanks for any insight into what I might be doing wrong.
rihallix
(PHP5.2 / Windows)
hi-
i'm following the instructions on how to build a custom search provider for windows federated search:
http://msdn.microsoft.com/en-us/library/dd742956(v=VS.85)
i'm returning local results of the form:
File://C:\Users\user\file.txt
however, when i perform a search, i get results that say:
"This item was blocked because of your Internet security settings".
how can i change my security settings so that federated search will allow my customer search provider to return local filesystem results?
thanks.
I have a custom UITableViewCell which I have created in IB. My labels display when I don't over-ride:
- (CGFloat)tableView:(UITableView *)tblView heightForRowAtIndexPath:(NSIndexPath *)indexPath
however my content is squished. I want the height to be 120px so I have the following:
- (CGFloat)tableView:(UITableView *)tblView heightForRowAtIndexPath:(NSIndexPath *)indexPath
{ CGFloat rowHeight = 120;
return rowHeight;
}
I'm not sure why the content inside of my UITableViewCell all of a sudden disappears?
**I'm currently using a jquery textselect plugin to fire alerts based on the selection text anywhere on the page
and it works just fine doing something like:
$(document).ready(function() {
$(document).bind('textselect', function(e) {
alert(e.text);
});
});
I've since had to add an iframe to the page and I need the text selection to work on text within the
iframe as well. I'm trying to do something like this but it's not working:
$(document).ready(function() {
$('#iframeId').load(function() {
$(document.getElementById("iframeId").contentWindow).bind('textselect',function(e) {
alert(e.text);
});
});
At this point I've tried a whole mess of ways to reference the iframe document without any success. Any ideas?**
Hi again!I have another problem with the index:(
It show me this error:
Undefined index: cal_version in C:\wamp\www\ReeceCalendar_0.9\cal\index.php on line 39
Notice: Undefined index: user in C:\wamp\www\ReeceCalendar_0.9\cal\index.php on line 61
and the lines are:
39: if($_SESSION['cal_version']!=true)
61: if($_POST['user']!="") cal_check_user();
Help me plz:(