My website was designed without any backend in mind. Facebox was the chosen plugin for the screen pops for features like logging in, registering, searching, etc. What is the easiest way to convert this to .NET? I don't care if it's web forms or MVC (I suppose I would prefer MVC). Most of the Facebox div's are in separate .html files. For...
I am looking for a tool or set of tools to convert between file formats D and M where
D is a format handled by MSWord, in order of preference, docx, doc, rtf
M is a lightweight markup, such as markdown, textile, txt2tags, it can be an esoteric one
there is a way to generate html from M
conversion is two-way, it's done both from D to M,...
How to convert image url to byte array or stream using Silverlight?
...
This one's driving me nuts . . .
I have a bunch of MS Word files that a client wants displayed on his web site. I've converted them to HTML using "Save as Web Page" -- and yes I know that this produces lousy HTML but other methods I've tried lose the links to the imbedded images.
For the most part, I can use PHP to clean up the displa...
How can I convert a time like 10:30 to seconds? Is there some sort of built in Ruby function to handle that?
Basically trying to figure out the number of seconds from midnight (00:00) to a specific time in the day (such as 10:30, or 18:45).
...
There are simple 2d array with some sort of tree like this:
node1
node2
node3
It's structure is:
array(
array (
'id' : 1,
'pid': 0,
'title' : 'node1',
'level' : 1
),
array (
'id' : 2,
'pid': 1,
'title' : 'node2',
'level' : 2
),
array (
'id' : 3,
'pi...
Here's a big challenge... something not easy to do with clean code (though that's not really necessary).
I have two strings, one a list of dates, one of times. The time can be on the first string. The format is unpredictable, but if it can meet the samples below, it would cover 90% of cases. Input date format is DD/MM
public void Test(...
I read that the best way to store IP addresses in a database is to make an Unsigned Int(10) field. How do I convert the IP addresses using PHP? I've tried using
$this->ip = long2ip($_SERVER['REMOTE_ADDR']);
But this doesn't seem to work. I found the way to convert it back to an IP address using
$this->ip = sprintf("%u", ip2long($resu...
In our Learning Management System someone in their infinite wisdom decided to keep non-standardized grades. As a result we have a table similar to this:
Assignment 1 - 100
Assignment 2 - 80
Assignment 3 - 10/20
Assignment 4 - 68
Assignment 5 - 8/10
As you can see we have a mixture of percentages and fractions. What i'd like to do is ch...
Please, look at the following code that just convert an unsigned int to a string (there may be some unhandled cases but it's not my question), allocating a char array in the heap and returning it, leaving the user the responsibility to free it after the use. Can you explain me why such function (and others similar) do not exist in C sta...
Hi!
I need to convert one script from Prototype to Jquery, but I'm no good with Jquery.
If someone can do this, i will thank so much =)
Here's the code in Prototype:
// Place your application-specific JavaScript functions and classes here
// This file is automatically included by javascript_include_tag :defaults
replace_ids = functio...
I would like to know where I can find a reliable tool/library for conversion of svg to dxf.
In between formats are also allowed as long as the dxf output is an exact replica of the svg.
So that means conversion of the paths (and in particular bezier curves and arcs). I've looked at the svg2dxf export in inkscape but that's cutting corne...
I'm working on a string-to-bool parsing function for HaXe (somehow the devs got by until now without one >.<) and i figured the best way to check the string would be ignoring case. I'm not sure how to do that though, can someone help me?
...
i want to take web application and turn it to desk top application
i mean that is could start from desktop icon and stopped when the browser closed
the development stack is : Apache server + php + misc db (can be any thing)
can it be done some how?
...
I have a stored procedure that receives a date value like this:
@AsOf date
In the query I am using this date to filter a datetime field. I need to convert the date passed in to a datetime field with the time portion set to 09:00:00 PM so I can add a filter in the WHERE clause like this:
(DateCreated < @TimeAsOfNinePM)
I know this i...
Hey all. I'm attempting to run a multi-variant test on a page, and just have a quick question on validation. Due to the size of the site, and the volume of visitors, we are going to segment the test to only a portion of our users (though the test will be run on the same page that ALL visitors go to). Obviously there is no way to set t...
Hello
I'm trying to convert a bitmap image into an uncompressed tif file for use with the Tesseract OCR engine.
I can use this method to produce a compressed tif file...
final BufferedImage bmp = ImageIO.read(new File("input.bmp"));
ImageIO.write(bmp, "jpg", new File("output.tif"));
This produces an empty tif file when the "jpg" i...
OK, there are many HTML/XML parsers for Java. What I want to do is a bit more than just knowing how to parse it. I want to filter the content and have it in suitable form.
More precisely, I want to keep only the text and images. However, I want to preserve some of the text formatting, too, like: italic, bold, alignment, etc.
All this i...
Hello, I am new to programming, I've done web development, but I am currently trying to learn real programming. The question I have is already answered here.
union ufloat {
float f;
unsigned u
};
ufloat u1;
u1.f = 0.3f;
What I don't get is how it works. What does the 0.3 part do? I couldn't find it in my text. And how does this ...
Hi,
Having a bit of a brain freeze on how to do this. I have an image of an area of a soccer field which the user clicks on to indicate where something occured.
I want to store the coordinates in real world units in my database so that I could change the image at a later time. However, I can't figure out the formula to do this (ignori...