I have some strings like below:
ffffffffcfdeee^dddcdeffffffffdddcecffffc^cbcb^cb`cdaba`eeeeeefeba[NNZZcccYccaccBBBBBBBBBBBBBBBBBBBBBB
eedeedffcc^bb^bccccbadddba^cc^e`eeedddda`deca_^^\```a```^b^`I^aa^bb^`_b\a^b```Y_\`b^`aba`cM[SS\ZY^BBB
Each string MAY (or may not) end with a stretch of trailing "B" of varied length.
I'm just wondering if we can simply use bash code to remove the "B" stretch?
thx
I would like to calculate end date (and time) of an event. I know starting date and duration (in minutes). But:
I have to skip holidays - non-recurrent situation
I have to skip weekends - recurrent situation
I have to not count working time (e.g: from 8:00am till 5:00pm) - recurrent situation, but with finer granularity
Is there a simple way to achieve these cases using Joda time library?
Greetings,
in my application i have a listbox with items. THe application is written in WPF.
How to scroll automatically to the last added item? I want the scrollviewer to be moved to the end of the list when new item has been added.
Is thare any event like "ItemsChanged"?
(I don't want to use SelectionChanged event)
Hello all
I'm trying to find all the 6 digit numbers in a string that do not end in 00.
Something like that
/([0-9]{4})([^00])/ //i know this is wrong
so the string
asdfs dfg_123456_adsagu432100jhasj654321
will give me
results=[123456,654321] and not 432100
Thanks
Have a good day
I am looking for a way to insert javascript code block to end of ASP.NET page.
Page.ClientScript.RegisterClientScriptBlock(typeof(Page), "showVideo", sScript, true);
is appending to body but js codes are always requesting some js files didn't load or some functions are below of the script.
How can i append scripts that i generated dynamically to the bottom of body?
Thanks for your help.
Using PHP how can I get week's start date and end date from any given date. For example 2010-05-13 is Thursday so how can I get 2010-05-09 (SUN) and 2010-05-15 (SAT)
does one create an admin front-end from scratch for every web application (not CMS sites)?
are there any tools for aiding this process?
some tutorials?
share your thoughts and experiences!
I have problem with validation such code
function show_help_tip(event, element) {
var $e = $(element);
var pos = $e.offset();
$('.body-balloon',$help_tip_div).html($(' <p> </p> ').html(element.getAttribute('title')));
$help_tip_div.css({position:'absolute',top:530,left:pos.left+$e.width()-20}).show();
}
end tag for element "P" which is not open
What's wrong?
Hi..
actually my question is just like the title says..
i need to find out the first cell and the last cell of a vertically merged cell..
lets say i merge the Cells B2 down to B50
how can i get in VBA the start cell(=B2) and the end cell(=B50) ?
thanks a lot
hi,
can I order alphabetically the tags in my edit content pages ?
See screenshot here:
http://dl.dropbox.com/u/72686/tagsOrder.png
Currently the order is given by the Taxonomy Manager module (I installed in my Drupal).
I would like to know if I should use jQuery to order the tags in my back-end pages.
thanks
I need an AI Bot for a chat service which can imitate a human. I have tried ALICE with AIMLBot(C#) as a front-end but it didn't work very well.
Are there any good bots you would recommend?
Does anyone know why im getting runtime error when i click on return button on iphone keyboard. I need to hide keyboard after done editing values to UITextField. So i assigned Did End On Exit to IBAction and the IBAction code below
-(IBAction)FinishEditing:(id)sender
{
[folderName resignFirstResponder];
}
When running ma project i facing a runtime error and the variable values shown below
argv char ** 0xbffff58c
*argv char * 0xbffff6b8
**argv char '/'
Console Value
(lldb)
Any idea to overcome this issue??
I have the following source code
public class mod_MyMod extends BaseMod
public String Version()
{
return "1.2_02";
}
public void AddRecipes(CraftingManager recipes)
{
recipes.addRecipe(new ItemStack(Item.diamond), new Object[] {
"#", Character.valueOf('#'), Block.dirt
});
}
When I try to compile it I get the following error:
java:11: reached end of file while parsing }
What am I doing wrong? Any help appreciated.
Trying to find a way to trim spaces from the start and end of the string. I was using this, but it dont seem to be working:
title = title.replace(/(^[\s]+|[\s]+$)/g, '');
Any ideas?
I have bat-file, that make some operations. How to run this file from Delphi and wait, until it stops.
Something like that:
procedure TForm1.Button1Click(Sender: TObject);
begin
//Starting bat-file
bla-bla-bla
showmessage('Done');
end;
i have a form that is dynamically built. so the number of form elements arr not fixed. I wnat to send whole of $_POSt data from the form using jquery to back end for processing .i cant use jquery form plugin as the jquery version i am using is old.
any other way ?
i tied to do like this
$.post('all_include_files/update_save.php',{variable:"<?php echo json_encode($_POST) ?>"},function(data)
{
alert(data);
})
but did not work
The answer to this must be somewhere but I'm not finding it -- can anyone help me understand why in Gedit, if I have a page of code there is no extra trailing blank line, but then when I do a file comparison for my svn commit it shows an extra line being added at the end of the file?
I have a feeling that Gedit is automatically adding an ending line break. But why, I have no idea...
Hi,
I would like to order alphabetically the content in my Drupal back-end
Is there any simpler method than using Views module or hacking the code for doing it ?
I don't need an ordering selector, just to statically order the nodes differently.
thanks
Very quick question about programming practices here:
I've always used echo() to output HTML code to the user as soon as it was generated, and used ob_start() at the same time to be able to output headers later in the code. Recently, I was made aware that this is bad programming practice and I should be saving HTML output until the end.
Is there a reason for this? What is it, and why isn't output buffering a good alternative?
Thanks!
I have a composite combobox control (textbox and a listbox):
Initially I have the cursor on the start, but when I select an item from the listbox and it gets displayed on the textbox then also the cursor remains at start position.
I want the cursor to be at the end. Please suggest/help.
How can I call a function once at the end of an each loop.
This alerts 'finished' on each loop, I want it once when the loop has finished.
$(function(){
var imgArr=[];
var lis = $('#gallery li')
lis.each(function(){
imgArr.push(this.outerHTML);
$(this).remove();
alertFun();
})
function alertFun(){
alert('finished');
}
})
I'm having trouble with this error in php:
Parse error: syntax error, unexpected $end in J:\Server\xampplite\htdocs\exp\printact.php on line 172
It might be a lack of bracket or something. Is there any tool that could help me pin point where exactly the error is?