I have these two files
File:11
11
12345
File:22
123
456
Output of
diff 11 22
2c2
< 456123
---
> 789
Output to be
< 456123
> 789
I want it to not print 2c2 and "--" line. I looked at the man page but could not locate any help. Any ideas? The file has more than 1K lines
I created a simple C executable in Visual C++ 2010, but when others tried it they got a missing MSVCR100.dll error. Apparently, the user needs to install the Visual C++ Redistributable Package in order to run the exe. Is there any way I can instead include MSVCR100.dll inside the exe (so it's just one file, not sitting in the same folder) so people can just run the executable and have it work? Thanks for your help.
Hello
i am using the AsyncFileUpload from the ajaxtoolkit, upter the upload is complete ,
i want to display all the images that were uploaded (and their URL is inserted into the DB) with my repeater and binding method.
but its not working! the images are uploaded, the DB insert works file, but i cant see the images after the repeater is dinded.
(i have to mention that if i go step by step, i do see that the ITEMBOUND is being binded and executed)
<ajax:TabContainer runat="server" ID="testTab">
<ajax:TabPanel runat="server" ID="testTabContainer">
<ContentTemplate>
<ajax:AsyncFileUpload ID="uploadAsyncImage" runat="server" OnUploadedComplete="InsertToTemp" ThrobberID="Throbber"/>
<asp:Label ID="Throbber" runat="server" Style="display: none">
<img src="Images/indicator.gif" align="absmiddle" alt="loading" />
</asp:Label>
<br />
<asp:UpdatePanel runat="server" ID="pnlImages" UpdateMode="Conditional" ChildrenAsTriggers="true">
<ContentTemplate>
<asp:Repeater runat="server" ID="rptImages" >
<ItemTemplate>
<a href="<%# DataBinder.Eval(Container.DataItem, "PicURL")%>" rel="lightbox">
<asp:Image ImageUrl='<%# DataBinder.Eval(Container.DataItem, "PicURL")%>' Width="50" Height="50" runat="server" ID="testPic" />
</a>
</ItemTemplate>
</asp:Repeater>
</ContentTemplate>
</asp:UpdatePanel>
</ContentTemplate>
</ajax:TabPanel>
</ajax:TabContainer>
</form>
also adding my Code Behind, since it might be important or will help you get an idea of what i am trying to do.private void BindRepater()
{
ProjDataContext db = DbContext.DbContextProvider();
var pic = from p in db.TempProdCats
where p.SessionID == Session.SessionID.ToString()
select new { PicURL = p.PicURL };
rptImages.DataSource = pic;
rptImages.DataBind();
pnlImages.Update();
}
protected void rptImages_ItemDataBound(object sender, RepeaterItemEventArgs e)
{
if (e.Item.ItemType == ListItemType.Item || e.Item.ItemType == ListItemType.AlternatingItem)
{
Image lblCat = (Image)e.Item.FindControl("testPic");
lblCat.ImageUrl = (string)DataBinder.Eval(e.Item.DataItem, "PicURL");
pnlImages.Update();
}
}
your help will be highly appreciated , if any of you got any idea how to make it work...
Hello,
I want to delete particular property of IIS wen directory from Metabase.
Can any one plz help me, how can we do that with DirectoryEntry class in C#?
Hi Everyone,
I have a date_select field in my rails application as follows:
<%= f.date_select :dateinstructed %>
I would like to re-order the drop down lists show they output as:
DD/MM/YYYY
According to what I have read you can use the :order option, but I am unsure how to actually use this option:
<%= f.date_select :dateinstructed, :order = {:day, :month, :year} %>
Obviously this isn't right, but what am I supposed to put in place of the:
:day, :month, :year
Any help would be appreciated!
Thanks,
Danny
Dear fellow Programmers,
I try to use the following google map webservice in order to locate greek addresses:
http://maps.google.com/maps/api/geocode/json?address=??ad?µ?a? 16&sensor=false and it does not work.
If I hit the same exactly address but written with latin alphabet characters: maps.google.com/maps/api/geocode/json?address=akadimias 16&sensor=false, it works and returns the right result. Could somebody help with this? (To use this service with greek letters as language parameter)
Thank you in advance,
Nicholas
Hello-
Quick question: I am trying to fill in empty spaces with a specific number of zeroes in an NSString stringWithFormat formatting string. For example, I want:
@"The number is %d", 5 // I want this to output 'the number is 05'
@"the number is %d", 10 // I want this to output 'the number is 10'
I know how to do this in Java, but I cant seem to find the same function in objective-c.
Any help would be great.
Hey
I'm a bit embarrassed to write a post on this topic, but I would appreciate the help. At my school, the CS kids (myself included) have created a nice, little program that is built for incoming Chem/Bio students. It consists of several modules that reviews topics they should have a firm grasp on before they start their classes. It's a nice tool since it cuts down on reviewing the material in class but also allows the students to do a quick diagnostic to fix any problems.
Now, I'm in charge of constructing a simple interface that reports on the progress of the group and individual students. The interface is pretty simple. It's just a window that pops up, and it has three tabs: the first tab is a "cumulative" report of all of students. The secnod tab has a drop down box that lists the students and once a student is selected, a report for him/her comes up. And the third tab is simply a description of all of the terms used in the 1st and 2nd tabs.
Now, I'm trying to be a good CS student and write a func. spec for my interface. My problem comes with the fact that I'd like to insert a little flowchart using Visio. Problem is, and I'm quite embarrassed to admit this, I don't know how to construct the flowchart/storyboard. For instance, I know I start with a "Start/Click Icon" in a
rectangle. Then where do I go? Do I draw three arrrows (one going to each tab) and then describing what goes on? In tab one, the only thing that happens is that the user will select a "sort" method in the drop down box. This will sort the list. The End. Similarly, if the user selects the second tab, then he will go to a drop down box with the student names. Selecting a name will bring up student info. And the third tab is just a list of unfamiliar terms coming from the first or second tab. I wanted to storyboard/flowchart what I'm doing, but I'm unclear how to go about it.
Any help would be appreciated!
(Just to clarify, I'm not having trouble with using Visio, but I don't know how one goes about construct a storyboard or determining the procedure for constructing one)
I'm now writing a registration screen before my tabBar shows up. My idea is to show my registration screen through this method (no dismiss function for now):
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
// Override point for customization after application launch.
Register *registerView = [[Register alloc] initWithNibName:nil bundle:nil];
[self presentModalViewController:registerView animated:YES];
return YES;
}
Which is in AppDelegate.m
Unfortunately it doesn't work. Could you help me solve this please?
Hi,
Im using smart client software factory in our application
i created one workspace dynamically,based on that i can create n numbers of views.the view is modal dialog and i have used some window workspace.
but the problem is i have to implement save all fuctionalities in menu.
but i dont know which view is activated/focused
How to get the focused screen,is their any event will fore if on focus change.
Please help on this aspect.
Thanks ,
Vinay
The Ubuntu WIKI https://help.ubuntu.com/community/IrcServer it lists few IRC servers you can use in Ubuntu. My question is which one is you favorite one and more secure. I will also need one that will allow me to monitor rooms for regular expressions and run some scripts if regexp matches.
Thanks
I have a requirement where i need to enter a text in the text field and when i come out of the view and again open the same view where text field is present, i need the text entered earlier need to appear on the textfield(caching) before the user enters the text for the second time.. Please help me..
As in http://nant.sourceforge.net/release/latest/help/functions/nant.get-base-directory.html, they explaint the meaning of this function is:
The base directory of the appdomain in which NAnt is running.
I don't know what does appdomain mean! Someone please explain it for me. Thank you.
Im creating a group using ABGroupCreate(), i have 10 person(ABPerson) records. Im using ABGroupAddMember function inorder to add the person to the group, but the person record is not getting added into the group. Yes im saving the addressbook. Am i missing something here, i need help this on.
Hi,
I have a bunch of Powershell scripts which I need to run from Perl. I have the following code but for some reason the Powershell scripts dont get invoked. I have tried both the backtick and the system command
$path = "C:/Users/PSScript.ps1";
$pwspath = "c:/windows/system32/windowspowershell/v1.0/powershell.exe";
$output = $pwspath -command $path;
system($pwspath -command $path);
Please help me out here.
Hi, I recently installed jruby on a machine that also has ruby installed on it. When I do
rake something it now appears to be using the jruby interpreter. I'd like rake to use the ruby interpreter. I'd appreciate any help.
hi..I'm new to this site and I hope someone can help me with my problem.
I am using a Delphi language. And I would want to play a memorystream to windowsmediaplayer ActiveX. Is this possible? If it is, can someone give me a hint or something.. sample code maybe. Thanks.
Hi, all
I'm confronted with some problems when trying to configure gitosis on Ubuntu. When i run this command
git clone gitosis@host:gitosis-admin.git
For my local machine i used git clone [email protected]:gitosis-admin.git where 59.80.70.68 is the ip of the server. But I get a password problem. I tried entering password of the server machine, but it fails
Kindly help me.
i need a simple implementation of ftp that i can setup quickly for some experiments.
is there an equivalent of python -m SimpleHTTPServer for ftp.
Google sarch didn't help.
i just need a simple implentation of ftp that is easy to setup. (so i don't have to go through the installation trouble for a lot of PC's).
I have a a Comments table and a Posts table, where a Post has many comments and a comment belongs to a post (i.e. it has a post_id in the table).
How can I efficiently select the last ten Posts that DO NOT have comments.
I can't seem to accomplish this without first selecting all the posts and checking each for a 0 comment count.
Thanks in advance for any help.
-Nathan
For example I have a big sentence:
"I like to eat pie and have fun around the house all day long!"
And I want it to appear like this:
"I like to eat pie and have
fun around the house all
day long!"
In this post: http://stackoverflow.com/questions/1673963/multi-line-list-items-on-winforms-listview-control Grammarian said that you only need to have WordWrap on but I cannot find that option.
Thanks for the help in advanced
I have a flash movie clip and need to load an external image inside the clip that reference to an external URL.. like www.myimage.com/image.jpg i did something with XML but the image persist on every clip because it loads from actionscript using the x and y cords.
Help needed!
Thanks!
Hiya,
I'm having trouble running Django on IIS 6 and was hoping someone could help!
I've followed this guide exactly a number of times: http://code.djangoproject.com/wiki/DjangoOnWindowsWithIISAndSQLServer
However, when I try and view my site I always get the same message:
"The specified module could not be found."
Has anyone else had this problem? Does any one know the steps to fix?
Thanks!