text
stringlengths 1
330k
|
|---|
(ReturnStmt 0xc01eb0 <line:9:2, line:1:11>
|
(IntegerLiteral 0xc01e90 <col:11> 'int' 1)))
|
(CompoundStmt 0xc020a0 <test.c:13:1, line:16:1>
|
(DeclStmt 0xc02060 <line:14:2>
|
0xc02010 "int g =
|
(IntegerLiteral 0xc02040 <col:8> 'int' 7)"
|
(ReturnStmt 0xc01b50 <line:15:2, line:1:11>
|
(IntegerLiteral 0xc02080 <col:11> 'int' 1)))
|
typedef char *__builtin_va_list;
|
Read top-level variable decl: 'm'
|
int fun(char *y)
|
int main()
|
share|improve this answer
|
No external tools, sorry. But I still don't see how that helps me. – Nzbuu Feb 13 '09 at 15:37
|
add comment
|
I assume you have access to the C code in question. If so, then define two macros:
|
Wrap all the data you want to extract between these macros. When the C code is compiled, they expand to nothing, so they won't harm there.
|
Now you can use a very simple regexp to get the data.
|
share|improve this answer
|
add comment
|
This regular expression:
|
seems reasonable, but I don't know if it's enough for you. It's littered with \s* to allow arbitrary whitespace between tokens, from C's point of view that's allowable. It will match stuff that looks more or less just your examples; some kind of identifier followed by exactly two digit strings.
|
share|improve this answer
|
Do you mean this? \{\s*\w+\s*,\s*\{\s*\d+\s*,\s*\d+\s*\}\s*\}. That only matches this specific example. I'm looking for something more general. – Nzbuu Feb 13 '09 at 15:35
|
add comment
|
Your Answer
|
potc-stills-023.jpg potc-stills-024.jpg potc-stills-025.jpg potc-stills-026.jpg potc-stills-027.jpg
|
Take the 2-minute tour ×
|
i've saved my icon as a png-32, with transparency checked and tried saving for web but the black background is still there. i've also saved as a nornmal png and still no good. i fixed this about 6 months ago but for the life of me i can't remember now.
|
any help would be great thanks
|
share|improve this question
|
What device are you using? I've noticed the Galaxy Tab, for example, will add backgrounds to launchers, but seems to make exceptions. – Nathan Fig May 10 '11 at 12:27
|
You've set your alpha transparency correctly? – Monk May 15 '11 at 6:56
|
add comment
|
1 Answer
|
up vote 1 down vote accepted
|
The actual technique will depend somewhat on the application you're using, but it's very easy to do in Gimp (free). You simply add a transparent layer, select the background and then delete it. Here's a link that explains the process: http://www.fabiovisentin.com/tutorial/GIMP_transparent_image/gimp_how_to_make_transparent_image.asp.
|
If you're using a different tool, such as Photoshop, the exact process will of course be slightly different. Hope this helps.
|
share|improve this answer
|
i'm using 2 samsung galaxy europas for a bluetooth poker app. if anyone wants to try it out, let me know. i'd love some feedback. cheers for the response but it seems to have fixed itself. black background's gone. i did increase the file size again but that didn't work before so i don't think that's what fixed it. thanks. – jakedemus May 11 '11 at 17:23
|
add comment
|
Your Answer
|
Pennsylvania school installs D-Link solutions
|
IP surveillance system provide school with wider and faster coverage, increased storage capacity
|
FOUNTAIN VALLEY, CA--(Marketwire - February 10, 2009) - When SUN Area Career & Technology Center was seeking to replace its unreliable, crash-prone analog video surveillance system, it turned to D-Link for sophisticated Internet Protocol (IP) based security cameras and network switches for improved functionality, reliability and clarity without breaking the bank.
|
"The old camera system recorded frames at four to five frames a second, which didn't capture detail very well. It only allowed us to record two weeks of video before archiving, because the drive for that system could store only 60MB," said Tom Gray, network administrator at SUN. "We'd often realize that data was missing because the cameras were down. And it was a proprietary system that took a lot of time and effort to manage."
|
Located in New Berlin, Penn., SUN Area Career & Technology Center offers adult education classes, vocational education, and technical career training to more than 1500 people each year. The facility is dedicated to providing students with the skills needed to compete in today's job market and receive consideration for advanced college placement.
|
When seeking a new security system, SUN took its cue from another school -- Central Penn Institute -- that had recently deployed D-Link cameras and was very happy with the results. "We were impressed with the quality of the network cameras, and we realized we could get the number of cameras we needed with D-Link's pricing," said Gray. "Cost alone made it very attractive for us, especially considering the benefits it provided."
|
SUN purchased 23 D-Link DCS-1110 Power over Ethernet (PoE) network cameras, and networked them using three D-Link DES-3828P PoE managed stackable switches. "The PoE switches allowed us to put the cameras anywhere without worrying about electrical connections," said Gray. The cameras are all high-quality color devices that SUN runs at 10 frames per second for image quality and storage optimization, which he says is "significantly faster" than the old analog system.
|
Gray evaluated network cameras from Sony and Axis Communications. "Budget was a big issue for us," said Gray, "and those options were just too expensive. We could have gone small with the other vendors, but then we wouldn't have been able to purchase the number of cameras we needed for appropriate coverage."
|
"The D-Link cameras are perfect for hallway coverage," said Gray. The school now has reliable, court-quality video as visual evidence for disciplinary infractions. The students know that the cameras are recording 24X7, which helps curb unwanted behavior.
|
With the D-Link system, SUN doesn't need to hire security personnel to monitor surveillance screens. They record everything to a 2TB server that includes five SATA drives in a RAID configuration. The storage can handle an entire school year of recordings. The MPEG files generated by the cameras are easy to copy onto CD or DVD, and can be immediately played back for court, parents or anyone else that has a Microsoft Media Player installed on their computer.
|
"Since we're already network specialists here in the IT department, the whole system is easy to manage," said Gray. "A network-friendly system like D-Link's helps us reduce the amount of time we spend managing equipment. There's really not much that we have to do. That's important when you have so much other work to do supporting the network and the users."
|
This content continues onto the next page...
|
Bill summaries are authored by CRS.
|
Shown Here:
|
Passed Senate without amendment (11/05/2009)
|
Recognizes the celebration of National American Indian and Alaska Native Heritage Month during November 2009.
|
Honors the heritage and culture of American Indians and Alaska Natives and their contributions to the United States.
|
Canadian tourist Doris Roberts blithely smoked a cigarette as she relaxed at a table under cloudy skies in Times Square on Monday, flicking ashes and scorn at the city's new law prohibiting smoking in pedestrian plazas, as well as in parks and at beaches.
|
A new outdoor smoking ban covers all of New York City's parks and public plazas, including Times Square. WSJ's Hilke Schellmann visited the iconic crossroads for tourists and office workers to see if smokers would take heed of the new law.
|
"It's ridiculous," said Ms. Roberts, 47 years old, of Montreal. "We're outside—we should be able to smoke."
|
Ninety days after Mayor Michael Bloomberg signed into law this most recent expansion of the city's smoking ban, it became illegal on Monday to smoke in the city's 1,700 parks and on its 14 miles of beaches. Smoking is now also prohibited along the city's boardwalks, marinas and pedestrian plazas, such as Times Square.
|
Parks Department officials are authorized to enforce the law and may issue fines of $50 per violation. But city officials say they're hopeful the new ban will be self-enforcing, with most people stubbing out their butts when alerted by passersby or city officials.
|
As of Monday evening, officials said no citations had been issued.
|
The new smoking ban—coming eight years after Mr. Bloomberg convinced the City Council to approve a ban in bars and restaurants and other indoor workplaces—drew a mix of praise and disdain from people in the city's parks and plazas.
|
At Times Square: Brittney Lawson, 20, smokes in the public plaza on Monday, the first day of the city's new smoking ban. She put out the cigarette upon being informed of the ban. Michael Nagle for The Wall Street Journal
|
Karin Almonte, a 31-year-old messenger from Washington Heights, bemoaned the ban as he watched a man wave a wand that spawned giant, translucent bubbles near the bandshell just south of Central Park's Bethesda Terrace. "I have to leave the park to smoke and then come back?" he said incredulously. "It's not fair."
|
"They're using people to make more money," he said, referring to the possibility of getting a ticket. "Maybe in the future, they will say you can't smoke in your own home."
|
Others said they were thankful they could enjoy smoke-free parks. "The smoke really bothers me," said Chris Goodwin, 73, a retired doorman who was resting on a bench near Central Park's Great Lawn. "Tobacco is harmful."
|
Thomas Farley, commissioner of the city's Department of Health and Mental Hygiene, played a key role in convincing Mr. Bloomberg to support the expanded ban. He said New Yorkers deserve to enjoy public places free of smoke and cigarette butts.
|
"Smoke-free parks protect all those who visit from the dangers of secondhand smoke and our children can play without getting a lesson on how to smoke," Dr. Farley said. "It is our hope that smokers, most of whom want to quit, will use this as an opportunity make a quit attempt."
|
Mr. Bloomberg was initially hesitant to move forward with the latest ban, but after examining data about the dangers of second-hand smoke, he became convinced it was the right move for the city, according to aides.
|
A sign at the entrance to Bryant Park notifies visitors of a new smoking ban in New York City. Getty Images
|
During his first term in office, the mayor ignited a firestorm of criticism when he proposed and won council approval to ban smoking in bars and restaurants citywide. The measure has since gained widespread acceptance, and Mr. Bloomberg considers it one of the greatest achievements of his mayoralty. Over the years, he has donated hundreds of millions of dollars to encourage people world-wide to quit smoking.
|
The ban doesn't include the sidewalks immediately adjoining parks, squares and public places, officials said. A smoker could easily hop onto a sidewalk to evade a ticket or disapproving remark.
|
A spokeswoman for the city's parks department said the administration is in the process of erecting 3,000 to 4,000 permanent signs to alert people to the new law. The city is also launching a campaign highlighting the new law with ads on television, in the subway and in print media, officials said Monday.
|
In Times Square, where huge billboards catch the eye, few noticed the tiny signs that the city posted about the new smoking ban. One smoker, when asked his thoughts on the new law as he briskly walked through the pedestrian plaza, replied: "Didn't know it existed."
|
Once informed, he took another puff and kept walking.
|
But Debbie Eastwood, a 46-year-old tourist from Manchester, England, quickly stubbed out her smoke when a reporter told her about the new law. "It's probably best for everybody," she said with a laugh.
|
Ms. Eastwood, who is headed to Las Vegas at the end of the week, then asked, with a twinkle of mischievousness in her eye, "Is there a smoking ban there?"
|
Write to Michael Howard Saul at
|
Take the 2-minute tour ×
|
I have a software that communicates with api of a website. How could I increase its functionality to connect to various other api's without touching the code in it? I think the easiest way is to write a proxy that resides between api and softwre translates incoming messages from other api to the base api that this software "understands". Where should I look for more information on implementing this proxy using c#? Thank you for help.
|
share|improve this question
|
add comment
|
1 Answer
|
Hmm sounds like one of the Software design patterns you come across every day. I think what fits best with your "proxy" is actually bridge.
|
From sourcemaking
|
- Decouple an abstraction from its implementation so that the two can vary independently.
|
- Publish interface in an inheritance hierarchy, and bury implementation in its own inheritance hierarchy.
|
- Beyond encapsulation, to insulation
|
“Hardening of the software arteries” has occurred by using subclassing of an abstract base class
|
The example in C# is http://sourcemaking.com/design_patterns/bridge/c%2523
|
However if you just want the proxy design pattern (which imho doesn't suit your problem) is listed here:
|
1. Proxy Pattern.
|
2. Proxy Pattern in C#.
|
EDIT: Ok, for a more generalised solution, go with Proxy pattern and look at existing implementations for proxies. You'll find quite a few answers to that answer question on this site:
|
share|improve this answer
|
Hi, thanks for reply. I thought more of a real proxy server running on local machine to receive a communication from software (which I did not mention much about but is old and complicated, what makes it extremely time consuming to update) and translate these messages to other api and connect with the other api. I found this: codeproject.com/KB/IP/mywebserver.aspx, and thought this could be a base for this server ... am I correct in my reasoning? – Macin Jun 30 '11 at 22:09
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.