I have 11 checkboxes with individual ids inside a modal popup.I want to have a hyperlink called SelectAll,by clicking on which every checkbox got checked.I want this to be done by javascript/jquery
Caveat:
I try all the posibilities listed here: http://stackoverflow.com/questions/254002/how-can-i-ignore-everything-under-a-folder-in-mercurial.
None works as I hope.
I want to ignore every thing under the folder test. But not ignore srcProject\test\TestManager
I try
syntax: glob
test/**
And it ignores test and srcProject\test\TestManager
With:
syntax: regexp
^/test/
It's the same thing.
Also with:
syntax: regexp
test\\*
I have install TortoiseHG 0.4rc2 with Mercurial-626cb86a6523+tortoisehg, Python-2.5.1, PyGTK-2.10.6, GTK-2.10.11 in Windows
I have a long string in javascript like
var string = 'abc234832748374asdf7943278934haskhjdasfhjkdfas83421def8923487234897234897';
I am trying to match like
abc234832748374 and def8923487234897 - that is - I have tried like
string.match(\abc[^abc]|\def[^def]|) but that doesnt get me both strings because I need numbers after them ?
Basically I need abc + 8 chars after and def the 8-11 chars after ? How can I do this ?
I want to match YYYY-YY for sequential years.
I at moment I'm trying to match where all the second YY is the 3rd and 4th characters in YYYY with 1 added to it.
So far I've got {19|20}(\d{2})-(\d{2}), but not sure how to use ? with reference to (1) or whether I'm going about this the right way and finding out the inevitable "unknown unknowns" (like YY99) with this approach?
Edit:
Matches: 2010-11,2011-12,2029-30
Not matches: 2010-12, 2010-09,2011-2,2011-2012
I can hold the value of touched cell but I cannot pass that value to another class or call from that class.
SearchTableViewController.m
**deneme= [[NSMutableArray alloc]init];
deneme=[tableData objectAtIndex:indexPath.row];
NSLog(@"my row = %@", deneme); //I can hold one of the selected or touched rows in table
HistoryTableViewController.m
**SearchTableViewController *obj = (SearchTableViewController *)[self.tabBarController.viewControllers objectAtIndex:11];
NSLog(@"my 2nd row= %@", [obj deneme]); //It doesn't retrieve here
I'm trying to create a weekly calendar that looks like this: http://dhtmlx.com/docs/products/dhtmlxScheduler/sample_basic.html
How can I calculate every week date? For example, this week is:
Monday - Sunday
7 June, 8 June, 9 June, 10 June, 11 June, 12 June, 13 June
Have done quite a bit of searching for a guide (of any substance) for the above to no avail. Can anyone refer me to one?
In the present tense however, I am trying to understand the below code example, which returns a two digit representation of the month, that corresponds to the 3 character month name set in v:
SET v=May
SET map=Jan-01;Feb-02;Mar-03;Apr-04;May-05;Jun-06;Jul-07;Aug-08;Sep-09;Oct-10;Nov-11;Dec-12
CALL SET v=%%map:*%v%-=%%
SET v=%v:;=&rem.%
ECHO.%v%
Hello
<input value="1" />
<input value="10" />
<input value="9" />
<input value="4" />
<input value="5" />
I'd like to be able to do that kind of selection:
$('input[value between 6 and 11]');
Which would give me the 9 and 10.
Is there a way to do that ?
I simply want to change the size (diameter) of the actual (default) ImageIcon of my JRadioButton. I've changed the size of the font displayed in the widget, so it really looks silly with such a large radiobutton.
JRadioButton button = new JRadioButton("Button");
button.setFont(new Font("Lucida Grande",Font.PLAIN, 11));
gives me this giant button:
Do I really have to create my own ImageIcon? Or can I somehow scale the default one, without too much of a hassle?
I'm using json2.js to create a JSON object which JQUERY posts to the Server. The object looks like:
[{"locationID":"16","locationDesc":"XXXX"}, {"locationID":"111","locationDesc":"XXXX"}, {"locationID":"12","locationDesc":"XXXX"}, {"locationID":"11","locationDesc":"XXXX"}]
Problem here is that XXXX sometimes contains quotes like "we're'" etc.... How should I handle this? Do you I escape somewhere or encode in some way?
Thanks
When am lancing camera using
Intent(android.provider.MediaStore.ACTION_IMAGE_CAPTURE);
startActivityForResult(intent, CAMERA_REQUEST);)
And then we getting callback after taking pic to the
onActivityResult(){
//HERE AM CALL ING ANOTHER FRAGMENT
FragmentManager fm = getFragmentManager();
fm.beginTransaction().replace( R.id.tab_upload, new uploadingActivty(), "tabId").setTransition(FragmentTransaction.TRANSIT_FRAGMENT_OPEN)
.addToBackStack(null).commit();
}
Then we getting error as
11-21 16:13:44.316: E/AndroidRuntime(30944): Caused by: java.lang.IllegalStateException: Can not perform this action after onSaveInstanceState
Any idea?
I have a table with the below structure.
ID VALUE
1 3.2
2 NULL
4 NULL
5 NULL
7 NULL
10 1.8
11 NULL
12 3.2
15 4.7
17 NULL
22 NULL
24 NULL
25 NULL
27 NULL
28 7
I would like to get the max count of consecutive null values in the table.
Any help would be greatly appreciated.
THanks
Ashutosh
I need a java program to get the current date without timestamp
Date d = new Date();
gives me date and timestamp
But i need only date, without timestamp. I use this date to compare with another date object that does not have timestamp.
on printing
System.out.println("Current Date : " + d)
of d it should print May 11 2010 - 00:00:00 .
Hi all,
Trying to build the OCaml Win32 API binaries for OCaml 3.11.0 on Win 7 and I consistently get a message when I try nmake dynamic: 'cannot open input file "ocamlrun.lib"'. My google skills seem to be failing me--is there something I need to do to get this .lib file? It doesn't seem to be part of the libraries which are included in the OCaml binary distribution for Windows. Can anyone give me a pointer in the right direction?
What are PHP 5.2 settnigs which affect compatibility with old code (developed for PHP 4 and 3)?
A web application using XTemplate 0.2.4-2 (officially meant for 3.0.11) works fine on one server running PHP 5.2 but works incorrect (seems that the form can't be submitted or processed correctly) on new PHP 5.2 and 5.3 installations. What may I need to tweak on new servers to make them able to run legacy code?
Here is a table patients in MS access database, There is 20 records, I want to select first 0 10 records and after 11-20 records for pagination. How to solve this problem
Hello,
I got an issue while trying to display a jquery UI slider with its range based on a values read with PHP from a text file.
Its seems that it's a syncrhonising issue as I get the error: "An attempt was made to use an object that is not, or is no longer, usable" code: 11"
Is there a way I can force the jquery UI slider to wait for the value to be present or to work in synchrone mode ?
Thanks in advance.
I am trying to generate tree with fasta file input and Alignment with MuscleCommandline
import sys,os, subprocess
from Bio import AlignIO
from Bio.Align.Applications import MuscleCommandline
cline = MuscleCommandline(input="c:\Python26\opuntia.fasta")
child= subprocess.Popen(str(cline),
stdout = subprocess.PIPE,
stderr=subprocess.PIPE,
shell=(sys.platform!="win32"))
align=AlignIO.read(child.stdout,"fasta")
outfile=open('c:\Python26\opuntia.phy','w')
AlignIO.write([align],outfile,'phylip')
outfile.close()
I always encounter with these problems
Traceback (most recent call last):
File "", line 244, in run_nodebug
File "C:\Python26\muscleIO.py", line 11, in
align=AlignIO.read(child.stdout,"fasta")
File "C:\Python26\Lib\site-packages\Bio\AlignIO_init_.py", line 423, in read
raise ValueError("No records found in handle")
ValueError: No records found in handle
I have a string in my db I want to pull into my page and convert to a json object.
[
{id: 1,title: "Long Event",
start: new Date(2009, 5, 6, 14, 0),end: new Date(2009, 5, 11)},
{id: 2,title: "Repeating Event",
start: new Date(2009, 5, 2)},
{id: 3,title: "Meeting",
start: new Date(2009, 5, 20, 9, 0)},
{id: 4,title: "Click for Facebook",
start: new Date(2009, 5, 27, 16),end: new Date(2009, 5, 29),
url: "http://facebook.com/"}
]
How can I do this using JQuery?
#include "iostream"
#include "string"
using namespace std;
#define AA(bb) \
string(::##bb);
int main (int argc, char *argv[])
{
AA(aa);
}
This gives me a bunch of errors but I am trying to understand this error
pre.cpp:11:1: error: pasting "::" and "aa" does not give a valid preprocessing token
Any ideas?
Finishing up some homework and Im having trouble with figuring out how to take information generated in sql column(a primary key set up to assign a record number to a customer example 1046) at submit and writing it to my redirected recipt page. I call it recipt.aspx. Any takers
Professor says to use a datareader...but things go bad after that.
public partial class _Default : System.Web.UI.Page
{
String cnStr = "EDITED FOR THE PURPOSE OF NOT DISPLAYED SQL SERVERta Source=111.11.111.11; uid=xxxxxxx; password=xxxx; database=xxxxxx; ";
String insertStr;
SqlDataReader reader;
SqlConnection myConnection = new SqlConnection();
protected void submitbutton_Click(object sender, EventArgs e)
{
myConnection.ConnectionString = cnStr;
try
{
//more magic happens as myConnection opens
myConnection.Open();
insertStr = "insert into connectAssignment values ('" + TextBox2.Text + "','" + TextBox3.Text + "','" + TextBox4.Text + "','" + TextBox5.Text + "','" + bigtextthing.Text + "','" + DropDownList1.SelectedItem.Value + "')";
//magic happens as Connection string is assigned to connection object and passes in the SQL statment
//associate the command to the the myConnection connection object
SqlCommand cmd = new SqlCommand(insertStr, myConnection);
cmd.ExecuteNonQuery();
Session["passmyvalue1"] = TextBox2.Text;
Session["passmyvalue2"] = TextBox3.Text;
Session["passmyvalue3"] = TextBox4.Text;
Session["passmyvalue4"] = TextBox5.Text;
Session["passmyvalue5"] = bigtextthing.Text;
Session["I NEED SOME HELP RIGHT HERE"] =Textbox6.Text;
Response.Redirect("receipt.aspx");
}
catch
{
bigtextthing.Text =
"Error submitting" + "Possible casues: Internet is down,server is down, check your settings!";
}
finally
{
myConnection.Close();
TextBox2.Text = "";
TextBox3.Text = "";
TextBox4.Text = "";
TextBox5.Text = "";
bigtextthing.Text = "";
}
//reset validators?
}
The recipt page
public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
if(Session["passmyvalue1"] != null)
{
TextBox1.Text = (string)Session["passmyvalue1"];
TextBox2.Text = (string)Session["passmyvalue2"];
TextBox3.Text = (string)Session["passmyvalue3"];
TextBox4.Text = (string)Session["passmyvalue4"];
TextBox5.Text = (string)Session["passmyvalue5"];
TextBox6.Text = I don't know ;
}
}
}
THanks for the help
I want to create a program for generating the series for the given base-n. ,
for example if my input is 2,then series shuould be, 00,01,10,11,etc.,(binary)
if my input is 10,then series shuould be,1,2,3,4,5,etc.,(decimal)
is there any general mechanism to find these numbers so that I can program for base-n.,
When setting ExportFormatType.CharacterSeparatedValues crystal report generates every row of data prefixed with column names (Report Headers). Why it does this? How it could be fixed? Usually it is preferred to have single header. For excel export type - generated report looks ok (only single header for all rows).
I am using crystal reports 11.5.3700.0. Visual studio 2008, .net 3.5 sp1
We have a legacy VB6 component that was com+/MTS and is used by asp classic. Staff is having trouble with deployment.
Would there be any harm in just using regsvr32 to register the DLL, which will be used by IIS?
Alternatively---I won't touch COM+ with a 10 foot pole--so is there a suitable one line command to register a VB6 component with COM+/MTS using a 11 foot pole? My google fu is failing me.