Hi,
I would like to create a cell format for one cell to only allow the value "yes" or "no" for this cell.
How could i do this?
Thanks in advance.
Jose
any flash cs4 developer using macos ? how to upgrade to adobe air 2 beta? I downloaded the adobe air 2 beta sdk in achieve format, how to i upgrade it?
I'm not aware of how to align the values of cells in JTable.
For Ex,The Jtable shows,
Name Salary
Mr.X 100000.50
XXXX 234.34
YYYy 1205.50
I want to align the "Salaries" in the following format.
Name Salary
Mr.X 100000.50
XXXX 234.34
YYYy 1205.50
How to align as above the JTable
Hi,
I want a regex pattern to find all the words of this format [xyzblab23la].
For example if the text has something like the following,
Lorem Ipsum dolor[32a] ameit[34]
I should be able to find the [32a] and [34]. Please tell me what is the regex for this pattern?
I'm trying to pull a report down using the following:
https://user:[email protected]/ReportServer?%2fFolder+1%2fReportName&rs:Format=CSV&rs:Command=Render
And it just pulls an html page and not the csv file. Any ideas?
I am in the planning stages of creating a fighting game and am unsure how to handle one issue relating to memory.
Background info:
- Still debating whether to use C# (XNA) or C++. We do not want to commit to either until we have explored how to solve this problem in both languages.
- Using a max of 256MB RAM would be great if possible.
- Two characters will be present at a time, and these characters can only change between battles. There is time to load/free memory between battles, but the game needs to run at a constant 60 drawn frames per second during combat. Each frame is 16.67ms
- The total number of images per character is in the low hundreds. Each image is roughly 200x400 pixels. Only one image from each character will be displayed at any given moment.
Uncompressed, each image takes roughly 300kb from my calculations; upwards of 100MB for a whole character. This is pushing too close to the 256MB limit given that memory will be needed for some other resources as well.
Since each image can be made with a total of 16 colors. Theoretically I should be able to use 1/8th the space if I can take advantage of this. I've looked around but haven't found any word of native support for paletted images. (Storing each pixel using fewer bits that each map to a 32-bit RGBa color)
I was considering making my own file format with 4 bits per pixel (and some extra palette info), loading all the images of this new format into RAM before battle, and then when drawing any specific image, decompress only that image into a raw image so it can be rendered properly. I don't know if it's realistic to perform so many assignment operations (appx 200x400 for each character = 160k) each frame. It sounds very hacky to me.
Does anyone have advice on whether my solution sounds reasonable, and if there is perhaps a better one available?
Thanks so much!
(I also attempted to use an image with only 1 channel, then use a shader to perform a series of if statements to translate various values into other colors. Unfortunately, there were too many lines of code for the shader. It is also rather hacky and does not scale well.)
When you modify existing code, how do you comment the code?
i.e.
// changed code to ...
// by: blankman
// modified: 20081204
Looking for a nice format ...
I will have a different type of string(string will not have fixed format,they will be different every time) from them I want to remove some specific substring.Like the string can be
OPTIDX 26FEB2009 NIFTY CE 2500
OPTIDX NIFTY 30 Jul 2009 4600.00 PE
OPTSTK ICICIBANK 30 Jul 2009 700.00 PA
I want to extract Rs.(digit) from those string and store it into one variable and then in those string there should not be Rs.(digit).
What should be the regex for that to match Rupees ?
Is it possible to use an Authenticode signing certificate to sign and validate proprietary file formats?
Over time I've seen the Authenticode format extended to support VBA. JAR files, and even Open Office files so I'm thinking that it may be extensible to other file formats.
Malcolm
Hi.
Extending methods to any instance is really easy:
public static string LeaveJustNumbers(this string text)
{
return Regex.Replace(text, @"[\D]", "");
}
...
string JustNumbers = "A5gfb343j4".LeaveJustNumber();
But what if i want to extend methods to a sealed class like string, to
work like:
string.Format("Hi:{0}","Fraga");
Is there any way to do it?
I get back a JSON response from a social networks site. There are certain accented characters that I would like to be removed.
An example is : L\u00e1szl\u00f3 M\u00e1rton, that reads "László Márton" and I would like to be transformed into Laszlo Marton.
I would like to keep the JSON format intact, as I will send it towards.
How can I do this?
What should be the regex for matching date of any format like
26FEB2009
30 Jul 2009
27 Mar 2008
29/05/2008
27 Aug 2009
What should be the regular expression for that ?
Edit I have regex that matches with 26-Feb-2009 and 26 FEB 2009 with but not with 26FEB2009. So if any one know then please update it.
(?:^|[^\d\w:])(?'day'\d{1,2})(?:-?st\s+|-?th\s+|-?rd\s+|-?nd\s+|-|\s+)(?'month'Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)[uarychilestmbro]*(?:\s*,?\s*|-)(?:'?(?'year'\d{2})|(?'year'\d{4}))(?=$|[^\d\w])
I have a library that writes data in either a text or binary format. It has the following three components:
common data structures
text writer (depends on 1)
binary writer (depends on 1)
The obvious way to distribute this is as 3 .jar files, so that users can include only what they need.
However, the "common data structures" component is really just two small classes so I'm considering creating only two .jar files and including the common .class files in both.
My question: What are the potential problems with doing this?
Hi,
In the application I am developing, I would like to send messages in the form of JSON objects to a Django Server and parse the JSON response from the server and populate a custom listview.
From the little JSON knowledge I have, I thought this format for the response from server
{
"post": {
"username": "someusername",
"message": "this is a sweet message",
"image": "http://localhost/someimage.jpg",
"time": "present time"
},
}
How much knowledge of JSON should I have to accomplish this purpose? Also it would be great if someone could provide me links of some tutorials for sending and parsing JSON Objects.
In org-mode's daily/weekly agenda view, is there a way to display the full context of the entries?
My reading of the code is that it finds the first heading above the timestamp and displays that. However, in my case, that heading is often 3-4 levels deep and doesn't make sense without the bullets above it. It also doesn't seem like there are hooks to easily change that. Filtering is trivial, but not changing the fundamental presentation format.
parsec-3.1.0 ( http://hackage.haskell.org/package/parsec-3.1.0 )
works with any token type. However there are combinators like Text.Parsec.Char.satisfy that are only defined for Char datatype. There doesn't seem to be any more general counterpart available.
Should I define my own versions or did I miss something?
Perhaps there are different parser libraries in Haskell that allows:
custom token types
custom parser state (I need to parse stateful format - Wavefront OBJ)
In WPF it is easy to use a ValueConverter to format values etc, (in our case convert some numbers into a different unit, e.g km to miles)
I know it can be done in Winforms, but all my Googleing just brings up results for WPF and Silverlight.
Hi I'm looking at the following API
http://wiki.github.com/soundcloud/api/oembed-api
the example they give
Call:
http://soundcloud.com/oembed?url=http%3A//soundcloud.com/forss/flickermood&format=json
Response:
{
"html":"<object height=\"81\" ... ",
"user":"Forss",
"permalink":"http:\/\/soundcloud.com\/forss\/flickermood",
"title":"Flickermood",
"type":"rich",
"provider_url":"http:\/\/soundcloud.com",
"description":"From the Soulhack album...",
"version":1.0,
"user_permalink_url":"http:\/\/soundcloud.com\/forss",
"height":81,
"provider_name":"Soundcloud",
"width":0
}
What do i have to do to get this json object from just a url?!!?
I'm trying to format an UITextField as user types text, for instance to show separator for thousands.
I found this web page : http://www.iphonedevsdk.com/forum/iphone-sdk-development/16512-trying-add-commas.html
It seems that shouldChangeCharactersInRange: is not a good solution. I thought of a custom UIView where the view would be updated as the user types digits, yet it would require recreating the wheel...
Hi,
I want to clone a WPF Control (XamDataGrid)
I know these ways:
Clone
Problem: Control is not Cloneable
Serialize & Deserialize in binary format
Problem: Control is not serializable
Serialize as XML
Problem: control contains images and Images are not serializable in xml serialization
Do you have any valid workarounds ?
Hi,
I am working on C#.Net windows application. Here i create report using Infragistics.Documents.Report and export to .pdf & .xps format. Here i want to bringthose 2 files(.pdf & .xps) into WinForms and display. How to bring saved .pdf & .xps file into win forms.
Thanks,
I want to use FBML as a canvas and would like to display a rich text editor like fckeditor or other. Can anybody out there help me out on this? e.g. to format text mainly bold,italics. Is it possible? how? I'm eager to learn more from the responder.
Hello,
Is there a way to tell if when a download has finished? That is, we allow users to download a report in PDF format. It takes about 3 - 5 seconds to start downloading and in this time, from click to end of download, show a wait state icon so that the user doesn't click multiple times.
Thanks!
Eric