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)
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?
Hello, I am attempting to calculate the miles per gallon for logged fuel full-ups. My table consists of the flowing:
FillUp(CarID, Date, ODReading, Gallons, StopGo, Highway, FillupID, MPG)
I want to subtract the ODReading from the previous record and divide gallons by this computed value.
How do I work between records to achieve this within Visual Studio 2008's column properties (formula) section?
Thanks much, Carl
I would like to get the last date of records modified. Here is a sample simple SELECT:
SELECT
t01.name,
t01.last_upd date1,
t02.last_upd date2,
t03.last_upd date3,
'maxof123' maxdate
FROM
s_org_ext t01,
s_org_ext_x t02,
s_addr_org t03
WHERE
t02.par_row_id(+)= t01.row_id and
t03.row_id(+)= t01.pr_addr_id and
t01.int_org_flg = 'n';
How can I get column maxdate to display the max of the three dates?
Note: no UNION or sub SELECT statements ;)
In a WinForms (3.5) application there is form with a monthCalendar control.
The calendar control has a calendarDimension of 3 columns by 1 row. This means that it currently shows June, July, August of 2010.
Is it possible to have the calendar to show April, May, June of 2010 instead? My dataset doesn't have any future dates so the date selection will be for current or older dates.
how to create SQl statement for update using 'where' condition with 'name', how to bind this name to sql statement...
///example
const char *sql = "update profile set name = ? ,Lname = ?, date = ?,phno = ? ,image = ? , id= ? where name=?;";
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?
Hello everyone,
I'm very frustrated with this problem. After one week of waiting my universal iPad app has been rejected because "is crashing on launch on iPad running iPhone OS 3.2 and iPhone 3GS running iPhone OS 3.1.3 and Mac OS X 10.6.2."
Unfortunately I can't replicate the problem, I've tested in debug and release modes and the app works just fine. I even created an ad-hoc configuration and test it in other devices and everything works fine.
I should clarify that this is an update to a current iPhone application and I'm using the same distribution profile as the original iPhone app. Also, I checked everything before building the universal app following this entry:
http://iphonedevelopment.blogspot.com/2010/04/converting-iphone-apps-to-universal.html
Here are the crash logs that Apple sent me:
Incident Identifier: 3E0D4A3B-2896-444D-BCBE-6C0CA1A66A90
CrashReporter Key: 18b5124ea5f657227c5f202a27ed707379b3e2e7
Process: Transfer [982]
Path: /var/mobile/Applications/E9062465-7EA6-424C-9C61-D9DBCC7C915A/Transfer.app/Transfer
Identifier: Transfer
Version: ??? (???)
Code Type: ARM (Native)
Parent Process: launchd [1]
Date/Time: 2010-05-04 15:35:57.399 -0700
OS Version: iPhone OS 3.1.3 (7E18)
Report Version: 104
Exception Type: EXC_BAD_INSTRUCTION (SIGILL)
Exception Codes: 0x00000001, 0x3eaa2188
Highlighted Thread: 0
Backtrace not available
Unknown thread crashed with ARM Thread State:
r0: 0x00002f90 r1: 0x00000000 r2: 0x385242d8 r3: 0x0000010d
r4: 0x00000000 r5: 0x00000000 r6: 0x00000000 r7: 0x00000000
r8: 0x2ffffba0 r9: 0x2fffef90 r10: 0x00000000 r11: 0x00000000
ip: 0x0000000c sp: 0x2ffffba4 lr: 0x2fe08727 pc: 0x00002f94
cpsr: 0x40000010
Binary Images:
0x1000 - 0x25fff +Transfer armv7 /var/mobile/Applications/E9062465-7EA6-424C-9C61-D9DBCC7C915A/Transfer.app/Transfer
0x2fe00000 - 0x2fe24fff dyld armv7 /usr/lib/dyld
....
And the one for the iPad:
Incident Identifier: 3B170A28-C8E2-4018-8166-E69432A65070
CrashReporter Key: 4a0194e3f60559127faef2b014df605e4c47b981
Hardware Model: iPad1,1
Process: Transfer [533]
Path: /var/mobile/Applications/400EE394-7BEE-45CA-942D-DBDC106360FF/Transfer.app/Transfer
Identifier: Transfer
Version: ??? (???)
Code Type: ARM (Native)
Parent Process: launchd [1]
Date/Time: 2010-05-04 15:37:17.505 -0700
OS Version: iPhone OS 3.2 (7B367)
Report Version: 104
Exception Type: 00000020
Exception Codes: 0x8badf00d
Highlighted Thread: 0
Application Specific Information:
com.erclab.iphone.photodownload failed to launch in time
elapsed total CPU time (seconds): 1.150 (user 0.560, system 0.590), 6% CPU
elapsed application CPU time (seconds): 0.150, 1% CPU
Thread 0:
0 libobjc.A.dylib 0x33561996 0x33560000 + 6550
1 libobjc.A.dylib 0x33564986 0x33560000 + 18822
2 libobjc.A.dylib 0x33564cb2 0x33560000 + 19634
...
The app does not do anything other than loading a local HTML into a web view after the app it's launched so I don't understand why it says "failed to launch in time"
Any help will be very much appreciated.
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...
Hello,
Is there any SQL editor that supports syntax highlighting, automatic code formatting and code folding? I found this, but it's an Eclipse plugin (I'm a NetBeans user), and cannot automatically format code, which is the most important feature I'm after.
Autocompletion is not important, nor is the possibility of running the code (like the SQL editor in NetBeans).
Edit: I'm sorry for not specifying, I'm looking for Linux or even web-based software.
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,
Hi Everyone!
I am attempting to clean out a table but not get rid of the actual structure of the table, i have the following columns: id, username, date, text
the id is auto incrementing, I don't need to keep the ID number, but i do need it to keep its auto-incrementing characteristic. I've found delete and truncate but I'm worried one of these will completely drop the entire table rendering future insert commands useless.
Thank you, Everybody!
Looking for a Firefox 3 CSS hack that doesn't inherit in Firefox 3.6.
html>/**/body .blockmeta .date-ui, x:-moz-any-link, x:default {
border:1px solid #ccc;
border-bottom:2px solid #ccc;
background:#f2f2f2;
margin-top:-1px;
}
The code above seems to also work in Firefox 3.6 which is undesirable.
I'm new to emacs and I want to use ensime in Windows.
I had a try but it doesn't work. It seems that it doesn't work because there is a *nix format file named "\ensime\bin\server.sh" .
Very appreciate if someone give me some tips.
What is a rollingfile appender ?
I want my jboss to delete logs either exceeding a maximum size or exceeding a certain date.
People on this forum have suggested me to use rollingfile appender.
How do I configure it in jboss-log4j.xml file ?
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 ?
-- I don't want to start any religious wars, but a quick google search indicates that Apache Lucene is the preferred open source tool for indexing and searching. Are there others?
-- What file format does Lucene use to store its index file(s)?
Thank is advance.
Doug
How do I get smarty syntax highlighting in Eclipse PDT?
The only project I was able to find is SmartyPDT, but it's outdated and isn't working with my current Eclipse install (PDT All in one, with Eclipse 3.5).
EDIT:
I recently found this post asking the same question from a long time ago. But the plugin linked in the accepted answer there is out of date now.
Need a UIDatePicker with specific maximum and minimum dates and times. Currently NSDatePicker.minimumDate and .maximumDate appear to only consider the date. What's the proper way to handle this?
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
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.
Can I use Google Maps Data API to get the IP Address informations such as Country, LatLong, City, etc. The result will be in JSON or XML format that I can parse through C#. Is there any C# Library for Google Maps Data API?
I found this interesting site
http://www.ipinfodb.com/ip_location_api_json.php
this guys even offer their IP address location database
http://ipinfodb.com/ip_database.php
I expirience strange behavior when doing HTTP requests through sockets, here the request:
POST https://test.com:443/service/XMLSelect HTTP/1.1
Content-Length: 10926
Host: test.com
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 1.0.3705)
Authorization: Basic XXX
SOAPAction: http://test.com/SubmitXml
Later on there goes body of my request with given content length.
After that I recive something like:
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Type: text/xml;charset=utf-8
Transfer-Encoding: chunked
Date: Tue, 30 Mar 2010 06:13:52 GMT
So everything seem to be fine here. I read all contents from network stream and successfuly recieve response. But my socket which I'm doing polling on switches it's modes like that:
write ( i write headers and request here )
read ( after headers sent i begin to recieve response )
write ( STRANGE BEHAVIOUR HERE. WHY? here i send nothing really )
read ( here it switches to read back again )
last two steps can repeat several times. So I want to ask what leads for socket's mode change? And in this case it's not a big problem, but when I use gzip compression in my request ( no idea how it's related ) and ask server to send gzipped response to me like this:
POST https://test.com:443/service/XMLSelect HTTP/1.1
Content-Length: 1076
Accept-Encoding: gzip
Content-Encoding: gzip
Host: test.com
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 1.0.3705)
Authorization: Basic XXX
SOAPAction: http://test.com/SubmitXml
I recieve response like that:
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Encoding: gzip
Content-Type: text/xml;charset=utf-8
Transfer-Encoding: chunked
Date: Tue, 30 Mar 2010 07:26:33 GMT
2000
?
I recieve a chunk size and GZIP header, it's all okay. And here's what is happening with my poor little socket meanwhile:
write ( i write headers and request here )
read ( after headers sent i begin to recieve response )
write ( STRANGE BEHAVIOUR HERE. And it finally sits here forever waiting for me to send something! But if i refer to HTTP I don't have to send anything more! )
What can it be related to? What it wants me to send? Is it remote web server's problem or do I miss something?
PS All actual service references and login/passwords replaced with fake ones :)
Hi,
I was wondering how to return plain XML from ADO.net data services
I have exposed an ADO.net data service to different DEPARTMENTS in our company who are not so technical. The data returned is ATOM FEED which is kind a hard to read / interpret with its format, too much information is returned
people from various departments would execute different queries ( HTTP Request) and i wanted them to display simple XML or atleast something more user friendly like HTML
I have tried ACCEPT attribute of the request to be plain XML and it still returns ATOM
Thanks
-- Khalil