Hi friends.
I want to make a "Setup Maker" App with Delphi.
How can I create a exe files?
for example : Delphi Itself Compiler.
Tanks to All.
....NiliDelphi....
I am trying to format a textblock which is bound to a TimeSpan property.It works if the property is of type DateTime but it fails if it is a TimeSpan .I can get it done using a converter.But i am trying to find out if there is any alternatives.
Sample Code
public TimeSpan MyTime { get; set; }
public Window2()
{
InitializeComponent();
MyTime = DateTime.Now.TimeOfDay;
DataContext = this;
}
Xaml
<TextBlock Text="{Binding MyTime,StringFormat=HH:mm}"/>
I am expecting the textblock to show only hours and mintes.But it is showing like
19:10:46.8048860
You have a user input string from a textbox for example var strInput = $("#txtBox").val();
strInput has some string now. I need to now if it is of this format: IP:PORT
Basically a user can input something like this: http://192.168.300.22:20000
1) Frist part (protocol): http:// always needs to be replaced by: https://
2) Second part (everything until the ":" sign): 192.168.200.22 (or www.google.com)
3) Third part (port): everyhing after ":" (example: 9999, 100000)
I step): TAKE THE INPUT
var strInput = $("#txtBox").val();
II) step):
PARSE THE INPUT
III) results):
var strProtocol = "https//";
var strIP = parsedIP;
var strPORT = parsedPORT;
So i need 2 know how to get the values (parsedIP and parsedPORT).
hi to all,
I want to change the reference of system dlls ,into my local application dir? Is it possible ,if change system32.dlls name ,which is present in application exe(imported table )?...pls help me regarding this ....Thanks.
I'm building a calculator that has a slider. Everytime I slide the bar an input box is updated with the number, the calculator passes the value and updates the calculation.
So my input boxes have dollar values that can range anywhere from $0 to $10,000.
Right now my boxes display 0 to 10000 and I want them to be displayed as $0 to $10,000.
I'm assuming jquery would be my best route here. How do I format an input box to display values like this. Sort of like an input mask.
note: users never have to type into the input box, its all controlled by the slider.
My data has a long format similar to the one below:
ID Language MotherTongue SpokenatHome HomeLang
1 English English English
1 French French
1 Polish Polish
2 Lebanese Lebanese Lebanese Labanese
2 Arabic Arabbic
Here is the output I am looking for:
ID Language1 Language2 Language 3 MotherTongue1 MotherTongue2 SpokenatHome1 HomeLan
1 English French Polish English Polish French English
2 Lebanese Arabic Labanese Arabic
I'm using using the melt and dcast functions of the reshape2 package, but it does not work. Does anyone know how to do this? Thanks.
df<-df[,c("OEN", "Langugae","MotherTongue", "SpokenatHome", "MainHomeLanguage")]
dfl <- melt(df, id.vars=c("OEN", "Langugae"), measure.vars=c("MotherTongue", "SpokenatHome", "MainHomeLanguage"),
variable.name="Language")
dfw <- dcast(dfl, OEN ~ Langugae , value.var="value" )
I'm trying to get this regex pattern working in a case statement to match a particular type of ID, which could be passed to the script. I need to match the exact number of alphanumeric characters with the dashes to differentiate this message id from anything else, which may be passed to this bash script.
An example of the message id format: c7c3e910-c9d2-71e1-0999-0aec446b0000
#!/bin/bash
until [ -z "$1" ]
do
case "$1" in
"")
echo "No value passed"
;;
[a-z0-9]\{8\}-[a-z0-9]\{4\}-[a-z0-9]\{4\}-[a-z0-9]\{4\}-[a-z0-9]\{12\})
echo "Found message ID: $1"
;;
*)
echo "Server $1"
;;
esac
shift
done
hi,
i'm wrote a program in Qt-Creator 1.3.1 and Qt 4.6.2
and realy dont figure out how to create a simple .exe file for the program i just wrote...
i rather do it with the Qt-Creator if it's possible
I have got a file with following format.
1234, 'US', 'IN',......
324, 'US', 'IN',......
...
...
53434, 'UK', 'XX', ....
...
...
253, 'IN', 'UP',....
253, 'IN', 'MH',....
Here I want to extract only those lines having 'IN' as 2nd keyword. i.e.
253, 'IN', 'UP',....
253, 'IN', 'MH',....
Can any one please tell me a command to grep it.
I need to put up a few videos on a Webapp and I'm a bit lost. My requirements are:
DRM is not a concern at all
it should work on the iPhone (and iPad) and on the main browsers (Safari, Internet Explorer, Firefox, Opera).
it is not a problem at all if the video doesn't play on Linux (because it's a video/screencast of a Windows/OS X software targetted at, well, Windows and OS X users)
it is not a problem at all if it also works on Linux (I'm a Linux user myself)
Can a unique format be served (like H.264) and play without any additional work on my part or do I need to convert the videos to different formats and have the webapp serve different video formats depending on the browser used?
Should I use the "video" tag of HTML5 when I detect an HTML5 capable browser?
What's the "safest" bet here? I take it that Flash is out of the equation seen that iPhone/iPad is a requirement.
Is it possible to use regex to turn this
<site-ui:header title="error" backURL="javascript:history.go(-1);" />
into this
<site-ui:header
backURL="javascript:history.go(-1);"
title="error"
/>
Basically, my goal is to format this xml so that the fields are in alphabetical order (e.g. backURL comes before title), and each field should be tabbed two spaces.
If this can be done, any pointers would be really helpful! Even more helpful is an exact regex for vim.
We have a couple 3rd party systems that give us PDFs. We would like to convert those PDFs for display on the web without using an Adobe product. Ideally we would like to use Silverlight to render the PDFs but are having trouble converting from a PDF to Xaml or using docx format as a middle man. There are lots of libraries that give PDFs but that is not what we need.
If there is a library out there that does this, a .net lib would be preferable but we can run the conversion using the command line as well if that is an option.
Hey as a project to improve my programing skills I've begun programing a nice code editor in python to teach myself project management, version control, and gui programming. I was wanting to utilize syntax files made for other programs so I could have a large collection already. I was wondering if there was any kind of universal syntax file format much in the same sense as .odt files. I heard of one once in a forum, it had a website, but I can't remember it now. If not I may just try to use gedit syntax files or geany.
thanks
Hi,
I am obtaining the mac(hw) address of an interface using CWNetwork. Now OS X gives me this mac address in the xx:xx:xx:xx:xx:xx format. But if the first digit is 0, OS X will output the address as 4:aa:dd:ee:34:40, instead of 04:aa:dd:ee:34:40.
Now I am trying to take this string 4:aa:dd:ee:34:40 and convert it to 04:aa:dd:ee:34:40 before displaying it.
Any ideas ? APpreciate the help.
Hello, we have a problem with our applications. We have recently upgraded our toolchain to Visual Studio 2010 and friends, it all works fine on Windows Vista + Windows 7 developer machines and Windows 7 customer machines. (all x86)
Today we did a first installation to a client PC running Windows XP SP3 x86, and all applications linking managed code dll do not work. After starting the .exe seemingly nothing happens, no window pops up, no memory gets eaten, no task shows in task manager, nothing, nada. Event log is empty, everything is just as if the application returned to the OS right after the start.
I am at loss about this, I really don't know how should I start even debugging this problem. I don't want to install VS2010 and everything onto a Windows XP box, I'd like to try something less time intensive first.
This all is happening just to native C++ apps that link managed c++ DLL. Pure managed C# apps do work. Pure native C++ apps do work.
I have a dataGridView whose dataSource is a dataTable.
My problem is that I want certain columns to be displayed in Hex. I can get that far with using something like this:
foreach (DataGridViewColumn c in grid.Columns)
{
if (DISPLAYED_IN_HEX.Contains(c.Name))
{
c.DefaultCellStyle.Format = "X";
}
}
My issue though is that I want this hex value prepended with 0x so as not to confuse anyone that they are in hexidecimal form. The values in the dataTable are various integral types. I looked into creating a custom IFormatProvider, but I don't think my coding skills are up to that par yet. Any other possible solutions?
I have got one problem. which is as follow
I have converted date to my local time as below
$this->date_string = "%Y/%m/%d %h:%i:%s";
$timestamp = now();
$timezone = 'UP45';
$daylight_saving = TRUE;
$time = gmt_to_local($timestamp, $timezone, $daylight_saving);
$this->updated_date = mdate($this->date_string,$time);
And Storing this field in to database.
now at retrive time i want like this format
"11-04-2011 4:50:00 PM"
I have used this code
$timestamp = strtotime($rs->updated_date);
$date1 = "%d-%m-%Y %h:%i:%s %a";
$updat1 = date($date1,$timestamp);
but this will give me only
"11-04-2011 4:50:00 AM"
but I have stored in like it was PM.
Can any one help me out.
thanks.
Hi
I have a program without a GUI and I use console! So first I read a line from a user from console
BufferedReader userReader = new BufferedReader(new InputStreamReader(System.in));
and then I will write an answer for the user in the console!
System.out.println("Server:"+output);
I want to create a jar file for it ! but how can i show my console in jar file with out using GUI?
please help me thanks.
Dear all,
I have a program that i should write a code using c++ lauguage and i don't used this laugauge before..
I now how to write it in java or c#, but i should write it in c++ !!
the code should read a text file (i do this step) and then print the output in specific format using the array (i don't now how to do this step)
For example:
The file has the following:
Task distribution duration dependence
A Normal 2,10 -
B UNIF 2,7 A
The code will print the following:
The task A is a normal distribution and it is duration between 2 and 10. It doesn't depend on any task. Task B is unif distribution and ...... etc ..
Can someone help me, please?
Looking for a program / lib (preferably in .NET) that can take a sound file (mp3/wav/etc) and generate a sound wave image from it (similar to image below)
It is actually useful for me to store some files in EXE to copy to selected location.
I'm generating HTML and JS files and need to copy some CSS, JS and GIFs.
Snippet
System.IO.File.WriteAllBytes(@"C:\MyFile.bin", ProjectNamespace.Properties.Resources.MyFile);
doesn't work for me!
On "WriteAllBytes" it says:
"cannot convert from 'System.Drawing.Bitmap' to 'byte[]'"
for image and
"cannot convert from 'string' to 'byte[]'"
for text file.
Help!
I am writing an application in Java for the desktop using the Eclipse SWT library for GUI rendering. I think SWT helps Java get over the biggest hurdle for acceptance on the desktop: namely providing a Java application with a consistent, responsive interface that looks like that belonging to any other app on your desktop. However, I feel that packaging an application is still an issue.
OS X natively provides an easy mechanism for wrapping Java apps in native application bundles, but producing an app for Windows/Linux that doesn't require the user to run an ugly batch file or click on a .jar is still a hassle. Possibly that's not such an issue on Linux, where the user is likely to be a little more tech-savvy, but on Windows I'd like to have a regular .exe for him/her to run.
Has anyone had any experience with any of the .exe generation tools for Java that are out there? I've tried JSmooth but had various issues with it. Is there a better solution before I crack out Visual Studio and roll my own?
Edit: I should perhaps mention that I am unable to spend a lot of money on a commercial solution.
I have a field called Timestamp, that stores its values as text as opposed to an actual Timestamp. The logging application is unchangeable, unfortunately.
So
table.Timestamp -> text field with format -> "Wed Mar 02 13:28:59 CDT 2011"
I have been developing a query to purge all but the most recent row using this as my Timestamp selector, which is also converting the string into a date -
MAX( STR_To_DATE( table.Timestamp , '%a %b %d %H:%i:%s CDT %Y' )
My query works perfectly...
However, what I've found is that the string value - 'CDT' - changes between 'CDT' and 'CST' depending on whether the current time is daylight savings time or not. During daylight savings time, it logs as 'CDT', and vice versa.
So all the rows that contain 'CST' get ignored when I run this -
MAX( STR_To_DATE( table.Timestamp , '%a %b %d %H:%i:%s CDT %Y' )
and all the rows that contain 'CDT' get ignored when I run this -
MAX( STR_To_DATE( table.Timestamp , '%a %b %d %H:%i:%s CST %Y' )
Is there a way to make it run against both string formats?
I am using the UI DatePicker from jQuery UI as the stand alone picker.. i have this code
<div id="datepicker"></div>
And the follow JS
$('#datepicker').datepicker();
When i try to return the value with this code:
var date = $('#datepicker').datepicker('getDate');
I am returned this...
Tue Aug 25 2009 00:00:00 GMT+0100 (BST)
Which is totally the wrong format...
Is there a way i can return DD-MM-YYYY ??