text:
Herb Focaccia

Average rating of 3.5/5. (12 Ratings)
My rating
  • I love it!
  • I like it a lot!
  • I like it.
  • Just okay.
  • Not for me.
Herb Focaccia
What's your Take?

Fresh rosemary and garlic give this classic Italian bread its robust flavor and aroma. Crusty on the outside and chewy on the inside, focaccia makes any sandwich delizioso! Our version allows budding bakers to do a bit of kneading, dimpling, and drizzling before they bake it. Hot out of the oven, the flat loaf turns an ordinary lunch into an event.

What you'll need

  • 2 cups lukewarm water
  • 1 tspn. sugar
  • 1 packet active dry yeast (2 1/4 teaspoons)
  • 1 1/2 tspns. salt
  • 4 1/2 to 5 cups unbleached flour
  • 5 tbsps. (for dough) plus 1/3 cup (for herb drizzle) olive oil
  • Cornmeal, for dusting
  • 2 cloves garlic, minced
  • 1 1/2 tablespoons chopped fresh rosemary
  • 2 teaspoons fresh thyme leaves
  • Coarse salt (optional)

How to make it

  1. Pour the water into a large mixing bowl and stir in the sugar. Sprinkle the yeast over the water and set it aside for 5 minutes to dissolve. Note: If the yeast doesn't begin to bubble within 5 minutes, repeat the process with fresh ingredients.

  2. Add the salt, 3 cups of the flour, and 2 tablespoons of the olive oil to the yeast mixture and beat the ingredients with a wooden spoon for 100 strokes. Set the dough mixture aside for 10 minutes.

  3. Add the remaining flour about 1/4 cup at a time, beating well after each addition. When the dough is too stiff to be stirred, turn it out onto a well-floured surface. Using floured hands, knead the dough for 8 to 10 minutes, using more flour as necessary to keep the dough from sticking.

  4. Pour 1 tablespoon of the olive oil into the bottom of a large mixing bowl, roll the dough around in the oil to coat it, and cover the bowl with plastic wrap. Set the dough aside in a warm spot until it doubles in size, about 1 hour.

  5. When the dough has doubled in size, punch it down and turn it out onto a floured surface. Knead it for 1 minute, then cut the dough in half and knead each half into a rectangle. Flatten each one and set them aside on a floured surface to rest for 10 minutes.

  6. While the dough is resting, lightly oil a large baking sheet, then sprinkle on a light coating of cornmeal.

  7. Transfer the dough to the baking sheet. Press and stretch it into oblong shapes, about 1/2- to 3/4-inch thick, leaving 2 inches between the loaves. Brush the tops of the loaves with 2 tablespoons of the olive oil. Set the dough aside to rise for 15 minutes. Heat the oven to 400° F.

  8. In a measuring cup, combine the 1/3 cup of olive oil with the garlic, rosemary, and thyme, and stir.

  9. Dimple the loaves with your fingertips, then spoon the oil-and-herb mixture over them, dividing it evenly. Sprinkle the loaves lightly with coarse salt, if you like.

  10. Bake the focaccia on the center oven rack until the tops are golden brown, 22 to 25 minutes. Transfer the loaves to a wire rack. To slice them for sandwiches, cut each loaf into quarters, then slice the pieces horizontally. Makes enough bread for 8 sandwiches.

  11. Tip for foolproof proofing: Proofing, or getting dough to rise, happens best when the dough is left in a warm (80° to 90° F), humid, draft-free spot. To use your oven for this purpose, set it to "proof" or heat it at 200° F for 4 to 5 minutes, then shut it off. Place the plastic-covered bowl of dough on the center rack and close the door. To use a microwave for proofing, boil a cup of water in it, then place the dough inside as well and close the door, leaving the microwave off.

Use a Facebook account to add a comment, subject to Facebook's Terms of Service and Privacy Policy. Your Facebook name, profile photo and other personal information you make public on Facebook (e.g., school, work, current city, age) will appear with your comment. Learn More.
Most Popular on Facebook


Content-Type: application/http; msgtype=response

WARC-Truncated: length

WARC-Type: response

text:
Svetlana Kuznetsova advances

TOKYO -- Svetlana Kuznetsova of Russia beat third-seeded Sara Errani of Italy 6-4, 6-4 on Tuesday to reach the third round of the Pan Pacific Open.

Kuznetsova, a two-time Grand Slam winner, hit seven aces in the match and will next face 15th-seeded Sorana Cirstea of Romania. Cirstea beat Japanese wild card Misaki Doi 6-1, 6-2.

In other second-round matches, Eugenie Bouchard of Canada outlasted ninth-seeded Sloane Stephens of the United States 5-7, 7-6 (7), 6-3; No. 11-seeded Ana Ivanovic of Serbia beat Elina Svitolina of Ukraine 6-3, 6-0; and 16th-seeded Dominika Cibulkova of Slovakia defeated Casey Dellacqua of Australia 7-5, 6-3.

Venus Williams was to face top-seeded Victoria Azarenka later Tuesday.

Serena Williams pulled out of the $2.3 million tournament to recover from a busy summer schedule.

Related Content

warcinfo:
robots: classic
hostname: ip-10-180-212-248.ec2.internal
software: Nutch 1.6 (CC)/CC WarcExport 1.0
isPartOf: CC-MAIN-2014-23
operator: CommonCrawl Admin
description: Wide crawl of the web with URLs provided by Blekko for July 2014
publisher: CommonCrawl
format: WARC File Format 1.0
conformsTo: http://bibnum.bnf.fr/WARC/WARC_ISO_28500_version1_latestdraft.pdf


text:
Series: Game 2 of 4

Florida leads 2-0 (as of 7/8)

Game 1: Friday, July 7
NY Mets3
Game 2: Saturday, July 8
NY Mets2
Game 3: Saturday, July 8
NY Mets17
Game 4: Sunday, July 9
NY Mets7

Marlins 3

(38-46, 20-26 away)

Mets 2

(51-36, 25-18 home)

1:20 PM ET, July 8, 2006

Shea Stadium, Flushing, New York

123456789 R H E
FLA 010011000 3 8 1
NYM 000020000 2 3 0

W: J. Johnson (8-4)

L: J. Maine (0-3)

S: J. Borowski (16)

Marlins take first half of doubleheader from Mets

NEW YORK (AP) -- With 18 innings of baseball scheduled for Saturday, Florida starter Josh Johnson wanted to give the bullpen a rest in the first game of a doubleheader.

He wasn't able to, but the Marlins' relievers didn't seem to mind.

Johnson and four relievers combined to three-hit the New York Mets, and Miguel Cabrera, Josh Willingham and Hanley Ramirez homered to give Florida a 3-2 victory in the doubleheader's opener.

"I need to be more consistent. ... I need to help the bullpen, I need to go deep in the game and I didn't do it," said Johnson, who gave up two hits in five innings. "I kind of let the bullpen down."

Mets rookie John Maine (0-3) gave up all three homers, ruining an otherwise effective outing. He allowed six hits in six innings, struck out three and didn't walk a batter.

"Three solo home runs and that's the only problem he had today," manager Willie Randolph said. "He showed good velocity and movement on his pitches."

Johnson's only rough inning came in the fifth. Two walks and an error loaded the bases with one out. Johnson got Chris Woodward to pop out to second and had a chance to escape the inning with the shutout intact. But he walked the next two batters, Carlos Beltran and Julio Franco, to tie it at 2. Franco walked on four pitches, not even truly getting in his stance before ball four.

"I kind of just lost it," Johnson said.

The score didn't remain tied for long. In the sixth, Ramirez sent a 2-1 pitch from Maine into the left-field seats to put the Marlins up 3-2.

Johnson (8-4) and the Florida bullpen took it from there. Joe Borowski pitched the ninth for his 16th save in 18 opportunities.

"They've been picking me up all year," said Johnson, who has won four straight since losing to San Francisco on June 6.

New York tried to rally in the eighth, putting runners on first and second with one out. Randolph even inserted Jose Reyes as a pinch runner, hoping the All-Star's speed could help the Mets tie the game. Reyes needed seven stitches after he cut his left pinky sliding headfirst into first base in Friday's game and wasn't expected to play.

But all the strategy was for naught. Pinch-hitter Paul Lo Duca struck out and Ramon Castro grounded out to end the inning.

"Any time you don't pick up runs, it's a little frustrating," Randolph said. "We have to work harder doing it."

There was some excitement in the eighth when Mets reliever Duaner Sanchez hit leadoff hitter Cabrera with a pitch as Cabrera squared around to bunt. Cabrera yelled at Sanchez and both benches emptied.

Things remained tense and, when Sanchez bounded off the mound after striking out Miguel Olivo to end the inning, both Olivo and Cabrera yelled at the reliever, with Cabrera getting tossed from the game by third-base umpire Charlie Reliford.

Florida went up 1-0 in the second when Cabrera homered to left. The ball just cleared the fence, appearing to glance off the glove of a leaping Cliff Floyd. Willingham made it 2-0 when he led off the fifth with his solo shot.

The Mets loaded the bases with two outs in the second inning, but came away with no runs when Johnson struck out Maine to end the threat.

In the doubleheader's second game, right-hander Mike Pelfrey, the ninth pick in last year's amateur draft, was set to make his major league debut for New York.

Game notes

Franco came in for 1B Carlos Delgado in the fifth inning. Delgado was hit on the left hand by a pitch in the second. X-rays were negative and he is day to day with a bruise on his knuckle. ... The four starting pitchers for Saturday's doubleheader are rookies. The last time two teams started four rookie pitchers in a doubleheader was Toronto at Milwaukee on Aug. 7, 1977. The Blue Jays started Jerry Garvin and Jim Clancy against the Brewers' Lary Sorenson and Moose Haas. ... Reyes said he hasn't made a decision about playing in Tuesday's All-Star Game. He will make the trip to Pittsburgh regardless of how his pinky is doing. "You have to go, right?" the first time All-Star said with a smile Saturday.

Copyright by STATS LLC and The Associated Press


text:
Men's College Basketball
<    July    >
Final 12Score
Penn State362460
Preview | Lineup | Wrap | Box

Akron (2-2) vs. Penn State (2-1)

The Sports Network

DATE & TIME: Sunday, November 18, 1:30 p.m. (et)

FACTS & STATS: Site: Coliseo Ruben Rodriquez (12,000) -- Bayamon, Puerto Rico. Television: ESPN U. Home Record: Akron 1-0, PSU 1-0. Away Record: Akron 0-1, PSU 0-0. Neutral Record: Akron 1-1, PSU 1-1. Conference Record: Akron 0-0, PSU 0-0. Series Record: Penn State leads, 4-1.

GAME NOTES: Shooting for their second straight win in San Juan, the Penn State Nittany Lions mix it up with the Akron Zips in the fifth-place game of the 2012 Puerto Rico Tip-Off at Coliseo Ruben Rodriquez in Bayamon.

Penn State's trip to Puerto Rico began with a 72-55 beat down from NC State on Thursday, yet on Friday that same 55-point effort from the Nittany Lions just happened to be good enough for a three-point victory over Providence in overtime.

As for the Zips, they've earned a split through their first four games of 2012-13 and like PSU came out on the winning side of their most recent contest, an 82-63 final versus UNC-Asheville two days ago.

As far as the all-time series is concerned, the Nittany Lions have taken four straight from Akron and now lead by a 4-1 margin. The relationship dates back to the 1937-38 campaign and was last visited in 1994-95 when PSU blew the doors off the Zips in an 80-45 final in Happy Valley.

Akron led by just three points at the break against UNC-Asheville, but in the second half the Zips erupted for 53.6 percent accuracy from the floor, including 7-of-14 behind the three-point line, en route to the lopsided decision. Even though he played just 19 minutes in a reserve role, Chauncey Gilliam made every second count for the Zips as he knocked down all but one of his six three-point tries on his way to a team-best 22 points. The only other double-digit scorer for the group was Alex Abreu who dropped in 12 points and also handed out a game-high nine assists. The team currently sports four players scoring in double figures, led by Abreu with his 12.8 ppg, followed by Brian Walsh (12.0 ppg), Jake Kretzer (10.8 ppg) and Zeke Marshall (10.2 ppg). As a whole, Akron is producing 78.5 ppg, compared to just 64.8 ppg for the competition.

Penn State was involved in a truly ugly first half against the Friars in the last outing as the teams combined to shoot just 11-of-42 from the floor and 4- of-18 behind the three-point line. For the Lions, who scored just 14 in the first 20 minutes, the second half was much more promising with 29 points, but still the squad had to go to overtime where a 4-of-6 effort from the field and 3-of-4 at the charity stripe was enough for the victory. Considered one of the top players in the Big Ten Conference, Tim Frazier hade his case with 19 points, nine rebounds, seven assists and four steals, all of which led the Nittany Lions. Jermaine Marshall tacked on 13 points, but he shot just 4-of-18 from the floor and 3-of-12 out on the perimeter. Frazier has been the leading scorer in all three games thus far, averaging 21.7 ppg even though he has made just 2-of-11 on the outside. Between he and D.J. Newbill (12.7 ppg), the pair has converted 45-of-53 at the free-throw line, the rest of the team a combined eight free-throw opportunities.

With Frazier on their side, the Nittany Lions are always in the running for the victory, but they'll need to get more production out of the rest of the roster to keep those wins coming consistently.

Sports Network Predicted Outcome: Penn State 69, Akron 62

11/18 10:40:27 ET


text:
  • Home
National Hockey League

Final 123Score
Preview | Matchup | Log | Wrap | Box

NHL Game Summary - Vancouver at Anaheim

(Sunday, November 10th)

Final Score: Anaheim 3, Vancouver 1

Anaheim, CA ( - Corey Perry used his head to score a goal -- literally.

Perry scored after knocking the puck into the crease with his head, Nick Bonino netted the go-ahead goal and the Anaheim Ducks extended their winning streak to five games with a 3-1 victory over the Vancouver Canucks on Sunday.

Frederik Andersen made 35 saves to help the Ducks secure a 3-0 homestand and extend their NHL lead to 31 points, but Perry's goal was the highlight.

His 11th of the season came after four connect-the-body-parts deflections that saw the puck hit a skate, shoulder, head and leg before going in.

Francois Beauchemin's slap shot from the high right side first went off the right heel of Canucks defenseman Jason Garrison, then the right shoulder pad of Eddie Lack as the Canucks goaltender shrugged to make the save.

From there, it deflected high to Perry, who was standing to the left of Lack and head-butted the puck down into the crease. The puck then hit off the back of Lack's right leg before Perry jabbed with his stick to make sure it crossed the line, giving Anaheim a 1-0 lead 8:30 into the second period.

Anderson improved to 6-0 this season for the Ducks, who played without captain Ryan Getzlaf because of an upper-body injury.

"We can survive injuries because we've got good depth," said Ducks coach Bruce Boudreau.

Tom Sestito scored for the Canucks, who went 1-2-1 on a four-game road trip, and Lack had 20 saves.

Vancouver tied it at 14:09 of the second period after Brad Richardson, deep in the left corner, found Sestito in front for a shot that beat Andersen glove- side.

But Bonino restored Anaheim's one-goal lead in the final minutes of the second when he was wide-open in front for a pass Emerson Etem slipped under sliding Canucks defenseman Dan Hamhuis.

The Ducks cleared the puck to escape a dangerous situation in front of their net with 2 1/2 minutes left in the game and Andrew Cogliano later scored on an empty net.

"It has been a struggle the past 2-3 games here, but they are going to bounce out of it. They are going to be the players we know they are," Canucks coach John Tortorella said.

Earlier, Andersen had 13 saves in the scoreless first period and Lack made five.

Game Notes

Perry also had an assist ... The Canucks return home for a six-game homestand that starts Thursday against the San Jose Sharks ... The Ducks start a four- game road trip on Tuesday at Florida.

11/10 23:44:26 ET

Part of the Tribune family of products


text:
Take the 2-minute tour ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

I have a simple application here (QandATable2.php) where when the user clicks on the plus button, it will open a modal window and it displays the details which is stored in another page (previousquestions.php).

Now the problem I have is that if you straight away click on the "Search" button when the textbox is blank, you will see that it loads the page on its own page, displaying the message to enter in a phrase for the search and it also displays all of the features previously from the modal window into that page as well. This is incorrect.

What I want it to do is that if the user has clicked on the search button, then when it post's the form and outputs the message, it does it within the modal window, not on its own whole page. So does anyone know how this can be acheived?

The modal window I am using is known as SimpleModal and it's website is here

Below is the QandATable2.php code where it displays the plus button and where it opens the modal window, linking the content of the modal window to the previousquestions.php page:


text:
Take the 2-minute tour ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

I have an raw binary image stored as a .bin file and it has some important data on it. The problem is that the color information is slightly off so I need to alter it a little bit. Is there any way I can get in and multiply the R, G, and B values by a scalar and then save it back as a raw binary file?

I am hoping to use the python imaging library to do this as I already know the basics of the image module. I need to multiply every pixel by the same value but it will be a different value for R, G, and B. I have the following code to open the file but then I don't know what to do there to alter the RGB values.

fileName = raw_input("Enter a file name: ")

with open(fileName) as f:
    im = Image.fromstring('RGB', (3032, 2016), f.read())

Let me know if you need any more information.

I wrote the following code which is converting the image in a way that I would like but it gives me an error. The code is as follows:

with open(C:\Users\name\imagedata\visiblespec.bin, 'rb') as f:
    im = Image.fromstring('RGB', (3032, 2016), f.read())

im = im.convert('RGB')
r, g, b = im.split()
r = r.point(lambda i: i * (255/171))
g = g.point(lambda i: i * (255/107))
b = b.point(lambda i: i * (255/157))
out = Image.merge('RGB', (r, g, b))

and my error is this:

Traceback (most recent call last):
  File "C:\Users\Patrick\workspace\colorCorrect\src\rawImage.py", line 18, in <module>
    im = Image.fromstring('RGB', (3032, 2016), f.read())
  File "C:\Python27\lib\site-packages\PIL\Image.py", line 1797, in fromstring
    im.fromstring(data, decoder_name, args)
  File "C:\Python27\lib\site-packages\PIL\Image.py", line 594, in fromstring
    raise ValueError("not enough image data")
ValueError: not enough image data

This may be a completely wrong way to edit the RGB values, I know it works for a JPEG and t may only work for a JPEG but this is what I would like to do.

share|improve this question
Could you elaborate on the format of your raw binary file? –  Andre Boos Jun 6 '12 at 22:33
16 bit unsigned integers around 11 mbs and written in hexadecimal –  clifgray Jun 6 '12 at 22:41
It would appear to be that your file size is either not (or not being read as) a correct multiple of RGB values. Try .frombuffer method and check the size is what you expect? –  dawg Jun 6 '12 at 23:29
For binary data: 3032 x 2016 = 6,112,512 pixels x 3 bytes per pixel (RGB) = 18,337,536 bytes = 17.488 MB, so 11 MB sounds too small (as in not enough image data). –  martineau Jun 7 '12 at 2:17
Indeed is does sound like a 15 or 16 bit RGB format. Unfortunately the only raw modes that PIL v1.1.7 handles (as defined in the unpack.c file) are BGR;15 or BGR;16 which it will converted to RGB888. –  martineau Jun 7 '12 at 2:42
show 4 more comments

2 Answers

import numpy as np

shape = (2016, 3032)
im = np.fromfile('visiblespec.bin', 'uint16').reshape(shape)

def tile(pattern, shape):
    return np.tile(np.array(pattern, 'bool'), (shape[0] // 2, shape[1] // 2))

r = tile([[0, 0], [0, 1]], shape)
g = tile([[0, 1], [1, 0]], shape)
b = tile([[1, 0], [0, 0]], shape)

im = im.astype('float32')
im[r] *= 255 / 171.
im[g] *= 255 / 107.
im[b] *= 255 / 157.
np.rint(im, out=im)
np.clip(im, 0, 65535, out=im)
im = im.astype('uint16')

share|improve this answer
add comment

You might want to look at ImageMagick with the Python bindings or PIL.

If you just need to read the file and manipulate the binary data, do something like:

with open(filename, 'rb') as img:
   while wrd:
       # wrd == 2 bytes == your 16 bits...
share|improve this answer
yeah I'm using PIL right now but can't quite figure out how to edit specific values with it but I'm going through the documentation again –  clifgray Jun 6 '12 at 22:43
Doing it this way would be very slow if done in pure Python for an image of this size. –  martineau Jun 7 '12 at 2:50
@martineau: maybe, but the underlying OS will buffer this more than most give credit for. –  dawg Jun 7 '12 at 5:51
@drewk: Buffering isn't going to eliminate the bit manipulations and scaling of three component values needed per pixel -- not to mention those likely necessary to write the image back out (in its original format). –  martineau Jun 7 '12 at 8:18
@martineau: Agreed. It is not an ideal solution, but bit-by-bit with PIL is not going to be a speed demon either. It sounds like he has an image size error in any case, and this does not really apply. –  dawg Jun 7 '12 at 8:50
show 1 more comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.


text:
Take the 2-minute tour ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

All of a sudden, Facebook sharing has stopped working on my site. It's been working smoothly for the past six months, whereby FB correctly displays page title, image and description, but it suddenly can't access the meta tags.

Furthermore, bit.ly can't read the page title either. I can't see any reason why this would happen and I'm fairly certain I've not made any changes that would cause this to happen.

Here is an example:

Any ideas what might be causing this issue?

The FB debugger says when it attempts to crawl the page, the following is returned:

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/1999/REC-html401-19991224/strict.dtd">
"http://www.w3.org/TR/html4/strict.dtd"> --><html>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<meta http-equiv="Refresh" content="0.1">
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Expires" content="-1">

None of that code is in my headers, so I'm really stumped.

Any help greatly appreciated!

share|improve this question
add comment

1 Answer

up vote 1 down vote accepted

When I run your URL through the debugger, Facebook tells me that there is a 206 response code. The definition of a 206 code is "Partial Content."

It typically means your HTML has errors in it and Facebook's parser is giving up.

My guess is it's coming from an error in the embedded style in your <head>. Get this into a separate css file and see if it works better.

You also don't have any open graph meta tags.

share|improve this answer
Thanks for the tip. I forgot to mention I've been playing around with the meta tags hence why they're not currently there. The problem occurs both when they are there/not there. When you say 'embedded style' what exactly are you referring to? Many thanks –  Alex 'Aldo' Aldridge Jun 15 '12 at 1:35
Look at your source. There is an opening <style> tag on line 10 and the closing </style> tag is on line 200. This should be in a separate css file like the one in the <link> tag on line 9. –  cpilko Jun 15 '12 at 1:40
I see what you mean. It does need tidying up a little. However, I'm not convinced this is the issue. I've tried to check the CSS using a validator (jigsaw.w3.org/css-validator/…) and it can't even detect a stylesheet! It's as if the server is denying access to all external sites. –  Alex 'Aldo' Aldridge Jun 15 '12 at 1:57
It's not your server that's doing this. It's the validator scripts. They're giving up because something is wrong with your code. –  cpilko Jun 15 '12 at 2:09
OK I will try and put all the CSS into separate stylesheets and see if that fixes it. Thanks a lot! –  Alex 'Aldo' Aldridge Jun 15 '12 at 2:13
show 1 more comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.


text:
Take the 2-minute tour ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

I want a batch file which: removes a certain line [line number by %lnum%] in a txt file.

share|improve this question
add comment

4 Answers

up vote 3 down vote accepted

That sounds like a job for sed. On windows, you'd have to install a windows port and then call sed from within your batch file.

sed '<linenumber>d' filename > newfilename

To delete the 4th line:

sed '4d' filename > newfilename
share|improve this answer
hmmm... when i installed sed and restarted my computer, it wasn't found by CMD. i have Win7. –  Deniz Zoeteman Jul 15 '09 at 18:01
oh, i know how it works now. –  Deniz Zoeteman Jul 15 '09 at 18:08
add comment

If you are in windows and you want to do it in a batch file, you could do the following by brute force:

@echo off
SET lineNum=
SET filename=%1
SET targetLine=%2
SET targetFile=%filename%.tmp
DEL %targetFile%
FOR /F "    tokens=1 delims=" %%i in (%filename%) do (
  SET /a lineNum += 1
  if NOT !lineNum! == !targetLine! ECHO %%i >> !targetFile!
REN %filename% %filename%.orig
REN %targetFile% %filename%

You pass into the batch the name of your target file and the line number you want removed. It creates a temporary file, pipes the 'good' lines from your original into the temp and then finishes up by renaming the files so that you keep your original and have the modified file in place.

share|improve this answer
add comment

Pure cmd?:

delline.cmd number filename

@echo off
set line=%~1
set file=%~nx2
set dSource=%~dp2
set i=0
for /F "delims=" %%l in (%dSource%%file%) do (
    set /a i+=1
    if not !i! EQU %line% call :BuildFile "%%l"
del /f "%dSource%%file%" >nul
for %%l in (%_file%) do echo %%~l>>"%dSource%%file%"
endlocal& exit /b 0

    set _file=%_file% %1
    exit /b 0

1: No checks for parameters. First need be a number, the second a file or path+file.
2: As with other answers, no temporary file either.
3: Using setlocal would allow you to integrate this code easy within a script by naming it :delline and using it like: call :delline number file

WARNING: Any blank line from the source file would be skipped/lost in the reading process (by the for..loop). A file with, says 10 lines from which 4 are blanks, would be read as 6 lines to be processed. The line number given would be applied (thus, deleted) from the 6 data lines, and not the starting 10.

Went a bit too fast, did not see akf's answer which looks real close to mine.

share|improve this answer
add comment

don't have to use any external command. you can use vbscript

Set objFS = CreateObject("Scripting.FileSystemObject")
Set objArgs = WScript.Arguments
num = objArgs(0)
strFile = objArgs(1)
Set objFile = objFS.OpenTextFile(strFile)
Do Until objFile.AtEndOfLine
    linenum = objFile.Line
    If linenum = Int(num) Then
    End If
    strLine = objFile.ReadLine
    WScript.Echo strLine

how to use:

C:\test>cscript /nologo removeline.vbs 4 file.txt > newfile.txt
share|improve this answer
add comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.


text:
Take the 2-minute tour ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

I'm writing my own validating XML parser. (Yes, I'm aware this is a very complex task, and that using an existing product such as libxml2 or Xerces would be the saner choice. This is not an option however, so please bear with me.)

Parsing the XML and XSD files into tree structures should not be very difficult. However I cannot seem to figure out what algorithm to use to validate the XML tree against the XSD one.

I've done some research, but everything I find is either too generic (how to write compilers, etc.) or too specific (such as incremental validation).

I have some ideas of my own but they're all rather complex, so I'd really like to be a bit more sure about the validity (no pun intended) of my ideas before I start coding away.

Thanks in advance, don't hesitate to ask for more details if you think you can help!

share|improve this question
This is probably a stupid question but could you get some ideas from the Xerces source code? –  Dughall Nov 20 '12 at 14:50
I have tried looking at both Xerces' and libxml2's source codes, however they are both (unsurprisingly) extremely complex and I haven't been able to "extract" the algorithmic part of interest to me. Thanks for the suggestion tho :) –  Joe La Frite Nov 20 '12 at 17:13
add comment

1 Answer

up vote 3 down vote accepted

There's an awful lot of legwork in writing an XSD processor and getting it to pass the 50,000 or so tests in the W3C test suite. However if you're stuck on the key algorithm for validating instances against the grammar, this is a good starting point:

You should also get hold of a copy of Aho and Ullman which contains the algorithms that Henry references.

share|improve this answer
Thankfully, my parser will only implement a relatively small subset of the XML and XSD norms. Thank you for the link, it looks very promising. –  Joe La Frite Nov 20 '12 at 16:07
add comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.


text:
Take the 2-minute tour ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

I am new to Dependency Injection, using C#, so please forgive me for my lame question. I wanted to post this question anyway before investing time and buying expensive books on this subject.

After going through a few online documents, it appears that using dependency containers along with configuration files one can use this to swith from one type of implementation to another. However this could be easily done by an if/else statement and some config settings.

What is the advantage of using such a cumbersome implementation just to change from one class to another? I see abstract and factory patterns to be much more useful. Maybe I am wrong.

share|improve this question

closed as not constructive by ChrisF, ЯegDwight, Jan Hančič, Bohemian, Oldskool Jan 8 '13 at 11:18

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.If this question can be reworded to fit the rules in the help center, please edit the question.

add comment

2 Answers

up vote 0 down vote accepted

I ha s a real worl case where i needed dependency injection :

2 assembly : 1 responsible for computing a price when you do a search (lets call it Search), and the second responsible for computing a booking price with all the options (let's call it Booking).

The Booking assembly is already referencing Search(because it needs to know the initial price for computing the full price).

But here is the requirement : we need the price from Search to include all mandatories options (yes in the tourism industry you have mandatories options) like "full room cleaning".

So I couldn't had a ref to Booking in Search (because of circular reference). So I decided use dependency injection.

My Search assembly defined an interface

public interface IAddMandatoryOptionService{
  void ChangeResultsWithMandatoryOptions(SearchResult[] results);

And then my Booking Assembly could implement this interface.

public class AddMandatoryOptionService : IAddMandatoryOptionService{
  public void ChangeResultsWithMandatoryOptions(SearchResult[] results){

My SearchService class now would look like

public class SearchService{
  public SearchService(IAddMandatoryOptionService optionService){
    this.OptionService = optionService;
  public SearchResult[] Search(Filter filter){
    return results;

So my Search Service has no dependency to the AddMandatoryOptionService class (and the Booking assembly), but it's using its functionality.The good IAddMandatoryOptionService will be injected when I create my service (in my Application_Start or with a DI Framework)

The advantages are :

  • Resolving the circular reference problem.
  • If I want to unit test my SearchService I'll juste have to mock/fake IAddMandatoryOptionService.

Here the need for injection was more technical than logical, but I think this kind of real world scenario could help you to get the point.

share|improve this answer
add comment

In short, dependency injection is used to be able to losely couple classes. By using an if else statement you introduce a dependency between classes. When adding à new implementation to your if else statement you need to add another else statement.

You've probably read http://en.m.wikipedia.org/wiki/Dependency_injection since they have a pretty good motivation section.

Perhaps complete your q with different code examples.

share|improve this answer
add comment

Not the answer you're looking for? Browse other questions tagged or ask your own question.


text:
Take the 2-minute tour ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

I send http-post to tweet to Twitter by https://api.twitter.com/1.1/statuses/update.json api But the response show an error:

array(1) { ["errors"]=> array(1) { [0]=> array(2)

{ ["message"]=> string(23) "Bad Authentication data" ["code"]=> int(215) } } }

How to fix and can tweet to Twitter using the API? Thanks so much.

Note: I don't want to use 3rd library, just API Twitter Api to do that.

share|improve this question
add comment

1 Answer

One of the following is probably true:

  • Your application has not submitted a complete oAuth authorization request to Twitter, so it is not authorized to post on your account.
  • You have not submitted the appropriate fields to the update.json endpoint to indicate your authorization.
  • You do not have an oAuth implementation in place at all. Uh oh.

The oAuth protocol is required for applications which interact with the Twitter API, and is quite complex to implement. Unless you are a big sucker for pain and suffering, you should strongly consider using an existing implementation rather than trying to build your own.

share|improve this answer
+1 Thanks for your idea! –  secretlm Jan 11 '13 at 5:35
add comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.


text:
Take the 2-minute tour ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

I have the following ggplot2 plot:

ggplot(iris) + geom_boxplot(aes(x=Species, y=Petal.Length, fill=Species)) + coord_flip()

I would like to instead plot this as horizontal density plots or histograms, meaning have density line plots for each species or histograms instead of boxplots. This does not do the trick:

> ggplot(iris) + geom_density(aes(x=Species, y=Petal.Length, fill=Species)) + coord_flip()
Error in eval(expr, envir, enclos) : object 'y' not found

for simplicity I used Species as the x variable and as the fill but in my actual data the X axis represents one set of conditions and the fill represents another. Though that should not matter for plotting purposes. I'm trying to make it so the X axis represents different conditions for which the value y is plotted as a density/histogram instead of boxplots.

edit this is better illustrated with a variable that has two factor-like variables like Species. In the mpg dataset, I want to make a density plot for each manufacturer, plotting the distribution of displ for each cyl value. The x-axis (which is vertical in flipped coordinates) represents each manufacturer, and value being histogrammed is displ, but for each manufacturer, I want as many histograms as there are cyl values for that manufacturer. Hope this is clearer. I know that this doesn't work because y= expects counts.

ggplot(mpg, aes(x=manufacturer, fill=cyl, y=displ)) +
    geom_density(position="identity") + coord_flip()

The closest I get is:

> ggplot(mpg, aes(x=displ, fill=cyl)) +
+     geom_density(position="identity") + facet_grid(manufacturer ~ .)

But I don't want different grids, I'd like them to be different entries in the same plot like in the histogram case.

share|improve this question
I've shown both ways I could think of (you've already ruled out one of them - facetting). Check out if the other helps. If not, sorry, I couldn't be of help. –  Arun Mar 7 '13 at 15:28
add comment

1 Answer

up vote 3 down vote accepted

Something like this? For both histogram and density plots, the y variable is count. So, you've to plot x = Petal.Length whose frequency (for that given binwidth) will be plotted in the y-axis. Just use fill=Species along with x=Petal.Length to give colours by Species.

For histogram:

ggplot(iris, aes(x=Petal.Length, fill=Species)) +
       geom_histogram(position="identity") + coord_flip()

For density:

ggplot(iris, aes(x=Petal.Length, fill=Species)) +
       geom_density(position="identity") + coord_flip()

Edit: Maybe you're looking for facetting??

ggplot(mpg, aes(x=displ, fill=factor(cyl))) +
     geom_density(position="identity") +
     facet_wrap( ~ manufacturer, ncol=3)

enter image description here

Edit: Since, you don't want facetting, the only other way I can think of is to create a separate group by pasting manufacturer and cyl together:

dd <- mpg
dd$grp <- factor(paste(dd$manufacturer, dd$cyl))

ggplot(dd, aes(x=displ)) +
     geom_density(aes(fill=grp), position="identity")

enter image description here

share|improve this answer
My example wasn't clear I am modifying it –  user248237dfsf Mar 7 '13 at 15:12
Okay, I'll wait for the edit. –  Arun Mar 7 '13 at 15:14
your code was helpful to me nonetheless it's just that there's another variable that adds to complexity that iris doesn't illustrate so it was a bad example –  user248237dfsf Mar 7 '13 at 15:17
@user248237dfsf, does this help? –  Arun Mar 7 '13 at 15:22
add comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.


text:
Take the 2-minute tour ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

(Note: I originally posted this on drupal.org before remembering that I never get a response over there. So, sorry for the cross-posting)

Hello, is there a way (built-in or otherwise) to add preprocessing functions for particular cck node types? I am looking to do some preprocessing of a field within my cck node type. Currently I can either use theme_preprocess_node and then do a switch on the $node->type or use a theming function for a particular field name (and still do a switch to make sure the current field usage is within the node type i'm looking for). What I am suggesting is to have a function like this...

theme_preprocess_mynodetype(&$vars) {
    // Now I can preprocess a field without testing whether the field is within the target content type

...but I can't figure out if I can suggest preprocess functions the same way I can suggest template files

Thanks! Rob

share|improve this question
add comment

2 Answers

up vote 1 down vote accepted

I think that you're looking for this post. There's no magic per-node preprocess, only per theme/template engine, but you do have access to the node type in the $vars parameter so you can switch on it there.

Hope that helps!

share|improve this answer
Hey thanks, I saw that one but that function uses the node preprocessor with a switch, which i was trying to avoid (kinda) to stop that preprocessor from growing to large. I guess I could use theme_preprocessor_node with a switch that actually calls theme_preprocessor_cat(), theme_preprocessor_dog(), etc. But maybe there is no automatic way or no way to suggest preprocess functions (the way tpl files are suggested)? –  rob5408 Jan 14 '10 at 19:13
Marking this one as accepted because there is "no magic per-node preprocess" that I was looking for, but Nikit's answer gives the workaround. –  rob5408 Feb 7 '11 at 15:21
add comment

See this function in content.module of cck:

 * Theme preprocess function for field.tpl.php.
 * The $variables array contains the following arguments:
 * - $node
 * - $field
 * - $items
 * - $teaser
 * - $page
 * @see field.tpl.php
 * TODO : this should live in theme/theme.inc, but then the preprocessor
 * doesn't get called when the theme overrides the template. Bug in theme layer ?
function content_preprocess_content_field(&$variables) {
  $element = $variables['element'];

share|improve this answer
Thanks for looking that up. In this function, CCK actually sets up the suggestions for tpl files but not the preprocess functions (from what I can tell), but it has lead me to dig more through the content.module. Will post what I find. –  rob5408 Jan 15 '10 at 10:12
add comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.


text:
Take the 2-minute tour ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

I've been looking around for a decent way of reading metadata (specifically, the date taken) from JPEG files in C#, and am coming up a little short. Existing information, as far as I can see, shows code like the following;

BitmapMetadata bmd = (BitmapMetadata)frame.Metadata;
string a1 = (string)bmd.GetQuery("/app1/ifd/exif:{uint=36867}");

But in my ignorance I have no idea what bit of metadata GetQuery() will return, or what to pass it.

I want to attempt reading XMP first, falling back to EXIF if XMP does not exist. Is there a simple way of doing this?

share|improve this question
How to read the geo-cordinates from metadata? –  Lijo Jun 15 '12 at 8:56
add comment

3 Answers

up vote 7 down vote accepted

The following seems to work nicely, but if there's something bad about it, I'd appreciate any comments.

    public string GetDate(FileInfo f)
        FileStream fs = new FileStream(f.FullName, FileMode.Open, FileAccess.Read, FileShare.Read);
        BitmapSource img = BitmapFrame.Create(fs);
        BitmapMetadata md = (BitmapMetadata)img.Metadata;
        string date = md.DateTaken;
        return date;
share|improve this answer
Thanks. How to read the geo-cordinates from metadata? –  Lijo Jun 15 '12 at 8:56
add comment

I think what you are doing is a good solution because the System.DateTaken handler automatically applies Photo metadata policy of falling back to other namespaces to find if a value exist.

Updated link - http://msdn.microsoft.com/en-us/library/windows/desktop/ee872003(v=vs.85).aspx

share|improve this answer
add comment

My company makes a .NET toolkit that includes XMP and EXIF parsers.

The typical process is something like this:

XmpParser parser = new XmpParser();
System.Xml.XmlDocument xml = (System.Xml.XmlDocument)parser.ParseFromImage(stream, frameIndex);

for EXIF you would do this:

ExitParser parser = new ExifParser();
ExifCollection exif = parser.ParseFromImage(stream, frameIndex);

obviously, frameIndex would be 0 for JPEG.

share|improve this answer
Thank you, but this isn't a project I can afford to spend money on I'm afraid. –  tsvallender Feb 17 '10 at 14:08
add comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.


text:
Take the 2-minute tour ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

When you right click on an ASP.NET project/Publish in Visual Studio, the release files will be created.

But if a subfolder has a config file, they won't be included in the final release.

Root/Web.config // this will be included by default
Root/Admin/Web.Config // this won't be included by default

Is there any way to tell Visual Studio to include the config file of a subfolder in the published result?

share|improve this question
Is it included in the project? Is the resource type to Content and copy to output directory to true? –  Oskar Kjellin Oct 14 '11 at 12:21
excellent, thanks :) –  The Light Oct 14 '11 at 13:40
Don't forget to accept an answer :) –  Oskar Kjellin Oct 14 '11 at 14:05
add comment

2 Answers

Mark its CopyToOutputDirectory property to Always or If newer

share|improve this answer
add comment

Assuming this is a web application project (not a web site), just click on the file in the solution explorer, and press F4 to show the properties (if they aren't already showing). Make sure "Copy to Output Directory" is something other than "Do not copy" (i.e. "Copy if newer" or "Copy always"), and... that's it.

share|improve this answer
add comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.


text:
Take the 2-minute tour ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

I have created my custom System service and that service is started by SystemServer. I want to aquire wakelock but it is not working properly. I am doing various tasks in this service like starting application, handling key events etc.. But it only unlocks the screens @ Menu Button event. Is there something related to keyevents and If I want to unlock screen while starting any app just like phone app, then is there any need to set particular Intent ?

here is my code snippet :

public TestService(Context context){
    PowerManager pm = (PowerManager) context.getSystemService(Context.POWER_SERVICE);
    mWakeLock = pm.newWakeLock(PowerManager.FULL_WAKE_LOCK,TAG);
    mWorker = new WorkerThread();
      WorkerThread extends Thread{

      public void run(){
     // It is not working.

Please help to resolve this issue.

Thanks, Yuvi

share|improve this question
Did you specify wake lock permission in manifest file: <uses-permission android:name="android.permission.WAKE_LOCK" /> –  Andy Feb 2 '12 at 6:47
I don't think that there is any mean to provide permission for System Services. –  Yuvi Feb 2 '12 at 7:04
add comment

2 Answers

It seems to me that your code is right.

But I think that the problem in your case that you try to acquire very strong wakelock. That's why, I guess, your code is not working. Try to use more weaker wakelock type, for instance, PARTIAL_WAKE_LOCK.

If there are any errors in a logcat, can you put it here?

share|improve this answer
NO error, And it doesn't matter which WakeLock we aquire. Its behaving so weridly that in the second call of that condtion it works not in first. –  Yuvi Feb 2 '12 at 13:43
Maybe your service is started before PowerManagerService? –  Yury Feb 2 '12 at 13:58
I have updated my question. –  Yuvi Feb 3 '12 at 7:43
add comment

As said in the documentation PARTIAL_WAKE_LOCK is the only lock where the CPU continues to run, all others could be put to sleep by the user.

If you hold a partial wakelock, the CPU will continue to run, irrespective of any timers >and even after the user presses the power button. In all other wakelocks, the CPU will run, >but the user can still put the device to sleep using the power button.

Just look at the table on the site posted above...

also you have to declare a permission in your manifest as said in documentation

Any application using a WakeLock must request the android.permission.WAKE_LOCK permission >in an element of the application's manifest.

but why would you acquire a FULL_WAKE_LOCK on a service where no user interaction is needed?

share|improve this answer
add comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.


text:
Take the 2-minute tour ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

I was just reading around and got somehow interested in RightJS. I have been using jquery as my main javascript framework but now I wanted to learn something new. However I would like to know of RightJS could do PJAX. I am aware that as long as you understand how PJAX works, you could implement it in any framework. However, I wish someone could guide me on how to build this.

Thanks in advance for any help.

share|improve this question
add comment

3 Answers

For the most part PJAX consists of:

  1. perform ajax request to get given pages html (Page can check for header in order to know whether it should return full html or just the content that will be changing)
  2. Add the returned HTML in to the container.
  3. Use the pushstate history API to update the browser location.

To ensure it all degrades gracefully you will need to apply the PJAX listeners to internal links using JavaScript, so that the links will all work normally for people with JS disabled. It should also do some feature checking to ensure a users browser supports the pushstate API etc (and if not again leave everything as normal links).

I actually implemented a native JS version of PJAX myself if your interested in taking a look at how stuff can be achieved: https://github.com/thybag/PJAX-Standalone/blob/master/pjax-standalone.js

Additionally you can also browser the source of the JQuery PJAX here: https://github.com/defunkt/jquery-pjax/blob/master/jquery.pjax.js

share|improve this answer
add comment

Like @Carl, I have implemented a stand-alone implementation of pushState + AJAX navigation, see HTMLDecor.

The philosophy of PJAX is:

  1. a page consists of unique content + site decor (banners, nav, ads, stylesheets, etc).
  2. when a user first visits a site, send a complete page.
  3. when the user navigates to a new page in the site just send the unique content, not the complete page. (Although PJAX can be configured to extract the unique content from a complete page).

The philosophy of HTMLDecor is:

  1. a page consists of unique content + a <link> to the site decor + the HTMLDecor.js script.
  2. when a user first visits a site, send the page (mostly unique content). In the browser, HTMLDecor examines the <link>, fetches the site decor and merges it with the page.
  3. when the user navigates to a new page, the page is already the unique content, so send it as is. HTMLDecor will update the unique content of the page and call pushState() to update the URL.

In other words, put all the site decor in a separate file and let HTMLDecor.js merge it with the unique content in the browser. After that, pushState support comes for free - you don't need to configure anything.

HTMLDecor.js is only 6kB when minified and gzipped, which is small compared to most js frameworks. You could (should) leave RightJS out of your normal pages (which should only contain unique content) and only place it in the site decor page.

Probably this all makes more sense if you see a demo of HTMLDecor. Look at my blog. If you view the page source you will see that the ad at the top of the page, the navbar at the bottom, and the contact popup aren't part of the page source. They are all added with AJAX.

When you navigate to one of the blog articles, pushState + AJAX is used (if supported on the browser), and you see that the ad and navbar aren't refreshed.

There is also an article which introduces HTMLDecor in more detail.

share|improve this answer
add comment

PJAX is for sissies, that's official :)

Use AJAX + History.js (it has hooks for RightJS)

share|improve this answer
add comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.


text:
Take the 2-minute tour ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

I've an iOS app that needs to post images to people's walls.

What I do is upload the image to the user's album, get the link of that image and post it to the user's wall like so:

 NSMutableDictionary *params = [NSMutableDictionary dictionaryWithObjectsAndKeys:
                                       kAppId, @"app_id",
                                       imageLink, @"link",
                                       thumbURL, @"picture",
                                       toUserId, @"to",

        [facebook dialog:@"feed" andParams:params andDelegate:self];

And I get the following error: "FBCDN image is not allowed in stream..."

remarkably it doesn't happen when I'm logged with my developer username but with other usernames (Every username that I tested besides the DEV username that "administers" the FB App).

share|improve this question
Please use graph API for that stackoverflow.com/questions/3152413/… –  priyanka Apr 2 '12 at 13:37
I'm using the graph api... –  Alex1987 Apr 2 '12 at 13:38
review the link. it will work for you. –  priyanka Apr 2 '12 at 13:40
Why do you think so? Why should I use ASIHTTPRequest? What's wrong with my approach? –  Alex1987 Apr 2 '12 at 13:47
you said you use graph API then why you use this [facebook dialog:@"feed" andParams:params andDelegate:self] line it is for facebook dialog not for graph API you can user FBRequest in place of ASIHTTPRequest –  priyanka Apr 2 '12 at 13:50
show 1 more comment

4 Answers

up vote 3 down vote accepted

Use object_attachment parameter; see https://developers.facebook.com/docs/reference/api/user/#posts

share|improve this answer
Thanks man. Worked perfectly! –  Alex1987 Apr 3 '12 at 8:15
This doesn't seem to work any more.. ideas? –  Tejaswi Yerukalapudi Dec 31 '12 at 14:45
As for me "object_attachment" doesn't work properly. See the link stackoverflow.com/a/23199781/989896 to review my solution –  Alena Apr 21 at 14:58
add comment

Here try to use my function .. its work with me

- (void) uploadImageWithName : (NSString*)name

    UIImage *uploadImage = [UIImage imageNamed:name];

    NSMutableDictionary* params = [NSMutableDictionary dictionaryWithObjectsAndKeys:
                               @"some text",
                               [fb accessToken],

    [params setObject:uploadImage forKey:@"source"];

    [fb requestWithGraphPath:@"me/photos"
                         andParams: params
                     andHttpMethod: @"POST"

Good Luck.

share|improve this answer
add comment

You need to have "publish_stream" permissions to upload a photo.

share|improve this answer
add comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.


text:
In this function returns a vector or array or list of values obtained by applying a function to margins or dimensions of an array or matrix. apply's advantages over explicit for loops are primarily code simplicity.

The goal of apply is often to reduce the dataset using the function. A good example of this is to calculate the mean over the first dimension of a 2D array aka matrix:

mean_of_rows <- apply(m, 1, mean)

Here, the function mean is applied over the first dimension (rows) of matrix m to yield the mean of the rows. This principle carries over to higher dimensional arrays.

In standard R, apply has a host of related functions for applying a function to each element of some data structure, including lapply, sapply and vapply.

The packages plyr, data.table and dplyr are popular options for operating on data frame-like objects by group.

history | show excerpt | excerpt history


text:
51,565 reputation
bio website meta.plasm.us
location Washington, DC
visits member for 4 years, 2 months
seen 34 mins ago

Open source advocate at Twitter. I'm also on Twitter.

I have a blog that's almost entirely about things that Scala can do that you probably shouldn't try to make Scala do.


text:
Terence Ketter

Publication Details

  • CEREBRAL METABOLISM AND DEPRESSION IN PATIENTS WITH COMPLEX PARTIAL SEIZURES ARCHIVES OF NEUROLOGY Bromfield, E. B., Altshuler, L., Leiderman, D. B., Balish, M., Ketter, T. A., Devinsky, O., Post, R. M., Theodore, W. H. 1992; 49 (6): 617-623

    Twenty-three patients with complex partial seizures were evaluated with 18F-2-deoxyglucose positron emission tomography and with the Beck Depression Inventory. Five of 10 patients with left and zero of eight with right temporal electroencephalographic foci had depressive symptoms; one of five patients with poorly localized electroencephalographic foci also scored in the depressed range. Temporal, frontal, caudate, and thalamic normalized glucose metabolic rates among five patients with depressive symptoms and well-localized left temporal epileptogenic regions were compared with five patients without depressive symptoms but with similar electroencephalographic characteristics. Multifactorial analysis of variance yielded a significant nonlateralized mood by region interaction. Of nine individual regions compared, only inferior frontal cortex showed a significant difference in normalized regional metabolic rate between depressed and nondepressed patients. Metabolism in this region also distinguished patients with depressive symptoms from normal control subjects. Depressive symptoms in patients with complex partial seizures are associated with a bilateral reduction in inferior frontal glucose metabolism, compared with patients without depressive symptoms and normal control subjects. The frontal lobe hypometabolism observed in patients with depressions associated with epilepsy, Parkinson's disease, and primary affective disorder suggests that similar frontal lobe metabolic disturbances could underlie these conditions.

    View details for Web of Science ID A1992HX95800008

    View details for PubMedID 1596197

Stanford Medicine Resources:

Footer Links:


text:
No records found

Records include the following recent matches:
Sri Lanka v South Africa at Hambantota, 3rd ODI, Jul 12, 2014 [ODI # 3502]
Sri Lanka v South Africa at Pallekele, 2nd ODI, Jul 9, 2014 [ODI # 3501]
Sri Lanka v South Africa at Colombo (RPS), 1st ODI, Jul 6, 2014 [ODI # 3500]

Statsguru Trivia

Use Statsguru to submit your own queries and mail us the urls here

Did you know?

Sachin Tendulkar, Rahul Dravid and Saurav Ganguly have scored hundreds in the same Test innings on only one occasion. In August 2002 at Headingly, Tendulkar top scored with 193, while Dravid and Ganguly scored 148 and 128 respectively in the first innings of the Test leading India to a famous win against England by an innings and 46 runs.

Random Record

Most consecutive five-wickets-in-an-innings - Test matches

Sponsored Links

Tournament, match & LIVE fixed odds at bet365


text:
Oook 31/jan/2013 às 2:15
Importing saves to Witcher 2
Yesterday I bought Witcher 2 and I saw I can import my save from the original when starting a new game. The problem is I completed it but my HDD broke so I lost my saves. I've redownloaded it hoping Steam would also recover my save games, but it doesn't.
So is there a way to recover the saved game? is it worth to spend another 54 hours in the original before starting the sequel?
Exibindo comentários 13 de 3
< >
OJ191 31/jan/2013 às 5:46
you could always ask for a save file and hope
NoInformationGiven 31/jan/2013 às 14:54
That's pretty cool. I didn't know we could import it into Witcher 2. Any idea why we can do this, and what benefits there are?
Oook 31/jan/2013 às 15:06
I have started another game in the original, I guess it's worth enjoying again before jumping to the second.
I have read that some characters reappear and give you some gifts, also, at the very begining of the game, the King mentions the death of Ada (whom of course, I saved). I think it will be better if it links more to the actions I made in the first one. So now I have Witcher 2 installed while I'm having a blast with the first one (again)
Exibindo comentários 13 de 3
< >
Por página: 15 30 50
Publicado em: 31/jan/2013 às 2:15
Mensagens: 3


text:
rwb36  [ผู้พัฒนา] 7 มิ.ย. 2013 @ 7:04pm
Thank you for buying Penny Arcade's On the Rain-Slick Precipice of Darkness 4!
As one of the two members of Zeboyd Games, I'd like to thank everyone who is supporting us by purchasing this game. We're very pleased with how it turned out and hope you enjoy it! And we look forward to making even better games in the future! :)
กำลังแสดง 1-15 จาก 72 ความเห็น
< >
Gamer X 7 มิ.ย. 2013 @ 7:07pm
loving it so far, then again I tend to enjoy all of your games. My only complaint is the always on top in fullscreen feature, I have my volumes for all other programs adjusted around headset at full volume and I can't go to my volume mixer to adjust this game's volume. Did the whole change resolution restart adjust repeat but it doesn't remember the setting.
ได้รับการแก้ไขครั้งสุดท้ายโดย Gamer X; 7 มิ.ย. 2013 @ 7:09pm
Noogy 7 มิ.ย. 2013 @ 7:16pm
Gotta say it's my favorite Zeboyd game so far :) And favorite PA game as well. Going with HyperDuck for the music was a masterstroke, game sounds awesome!
m4|TT 7 มิ.ย. 2013 @ 10:59pm
Installing now, can't wait. The Class and Battle system in Penny Arcade 3 was on of my favorites of all time in an RPG. Thank you for making a 4th!
{-FFF-} Soul James 8 มิ.ย. 2013 @ 1:36am
The music is a real standout, but I come & stay for the constant post-modernist humour. Just plug that ♥♥♥♥ directly into my veins. :D
[Itw]Crystal 8 มิ.ย. 2013 @ 2:58am
really great game! keep up that good work please :D
I've waited so long and I was not disappointed,hope there wikll be bonuses like in PA3 :)
Bisen 8 มิ.ย. 2013 @ 3:48am
Haven't started this one yet, but your Cthulu game was hilarious. The humor in your games tends to be my favorite part. So keep up on that :)
dragon_blade 8 มิ.ย. 2013 @ 10:24am
Needss achievements same with game #3 :P
mosi9 8 มิ.ย. 2013 @ 3:40pm
Thank you for all those great games! My favourite is still Cthulhu saves the world.
K. D. Bones 8 มิ.ย. 2013 @ 4:22pm
So, wall of text aside, my only complaint (and I patially blame myself for this) is the lack of the portal at the end so you can go back to exploring. I had a save before I went somewhere and saved over it by accident so I left a lot of loose ends open <_< Think a portal at the end like in 3 would ever make a showing?
DrunkenMists 8 มิ.ย. 2013 @ 4:33pm
heh; I covered all the save slots in old world. that way if I bymistake head up..even if I save there should be no reason I can't go back. Also Wow Vitriol..did a Sprite game kill your family or something?
those6 8 มิ.ย. 2013 @ 7:13pm
loving it but near the end really hard
V̟̋ì͚t̪͊r̳͛i͇͛o̦̅l̥ 8 มิ.ย. 2013 @ 7:16pm
@DrunkenMists: Avid proponent of pixel art, in fact. However, I've also played and completed every game they're mining for content. Seems pretty crass to put so much effort into selling on presumed demographical nostalgia rather than creating something compelling enough to stand on its own. What little originality it does possess is derived from a worthless and decaying subject base. Execution is poor on top of this. Typically these elements, taken together, are easily categorized as shovelware. Hence, PA-branded shovelware: Do we want it?
Rohsiph 8 มิ.ย. 2013 @ 7:29pm
@Vitriol: Ok. I want to see the games that are waaaay better in this genre that you're playing. Please share.
edogg7 9 มิ.ย. 2013 @ 1:38am
keep the good work!! ,it got the final fantasy flaver to it, with some old super nintendo zelda love it!
ได้รับการแก้ไขครั้งสุดท้ายโดย edogg7; 9 มิ.ย. 2013 @ 1:45am
Butternine 9 มิ.ย. 2013 @ 11:20am
About 3 hours in so far and I'm having a blast with it. Great job guys!

Not sure what games Vitriol plays but this is just as unique and entertaining as anything that's out today. I'm not sure how he thinks its supposed to stand out on it's own when it was created to provide closure to the part of the series. Not to mention they did mix the battle system up a bit with the creatures. Maybe he should spend less time trying to sound like an intellectual on the message boards of games he doesn't like and just play the games he likes to play?

I mean, everybody is entitled to their opinion, but only on the internet will you find people that will comment on the things that they dislike in the place where they bought it. It'd be like going into Walmart and proclaiming, "Man, these socks are ugly and lack originality! Whoever created these socks is just cashing in on the need for foot protection. Anybody who buys these socks should be ashamed of themselves. Who here's with me?!"
กำลังแสดง 1-15 จาก 72 ความเห็น
< >
ต่อหน้า: 15 30 50


text:
DeadlyDoRight 2013年10月7日下午5:49
If only it was coop
Too bad that you can't play this online anymore. Also if it was multiplayer and they made it coop it would have been one fantastic game.
it would have been better than LFD,Dead Island,Alien Swarm and most any other coop adventure out there.
The variety of enemies and weapons would have made this a really great game to play.
It would have been more of a success than it was.
正在显示第 1 - 4 条，共 4 条留言
< >
Messiadbunny 2013年10月8日上午6:58
Aww, no multiplayer? At least I know now, that's why I was considering it.

DeadlyDoRight 2013年10月8日下午9:01
Originally it was multiplayer also, but the servers for the game are no longer running. Shame.
fluffymister 2013年11月2日上午1:08
has gameranger picked this for multiplayer?
Fatal 1月11日上午9:56
This is a game that isn't going to appeal to everyone (not even close) so co-op isn't a big deal.
正在显示第 1 - 4 条，共 4 条留言
< >
每页显示数： 15 30 50


text:
This is a concept or project early in development

This item is here to gather feedback from the potential customers and begin building a community. If you like this project, feel free to rate it or favorite it. The voting here serves only to give the developer data and reactions and doesn't work toward getting the game distributed on Steam.

Trouble In The Manor
Dec 31, 2012 @ 3:43pm
Dec 31, 2012 @ 3:44pm
Recent Announcements View All (1)
Trouble In The Manor - Online Multiplayer
Trouble In The Manor -

The game is set in a Spooky Manor in which players will explore.
It will feature two game modes: Survival Single Player mode, and a Clue Multiplayer mode.

Currently you are able to use the following guns:
- AK47
- Assault Rifle
- Laser Gun
- Rocket Launcher
- Sniper Rifle (zoom feature implemented)

Starting outside of the Mansion, players will make their way through hordes of Zombie waves.
Once a wave has been complete, a new area of the map will open up, allowing you explore parts of the house
through each Zombie wave. Once you have made it to the end of the manor, you've unlocked all parts of the house
and you will be teleported back to the beginning where you can continue to fight endless hordes of zombies
until you're out of health.

The game will feature a server list in which players can browse through multiple servers and connect to start playing.
At the beginning of a round, all players will spawn with each other outside of the manor. The server will decide each player
as either an "Innocent", "Bloodhound", or "Murderer".
The main point of this mode is to find out who the Murderers are as to avoid disaster in the manor.

An innocent must steak out Murderers and kill one in order to gain points. Murderers can give themselves away
by simply committing a crime in front of an innocent or leaving behind their DNA on a body that they've left behind.
An innocent can then simply call out the Murderer using the chat system or kill them to gain points.

Bloodhounds play the same role as innocents, with the small added responsibility of using special items from a shop
bloodhounds can access. These items include such things as new weapons, a DNA device to use on bodies and track down murderers,
or even a teleporter to get across the map easily.

The most sought role in the game, a murderer must ensure all innocents and bloodhounds are stalked down and killed
before the round ends. They can do this by using the guns given on the map, or by accessing their special shop
and buying weapons such as a close-range sword which will insta-kill anyone nearby, a teleporter, a disguise to disguise their names,
or even a bomb which can be detonated on-hand or via remote. Murderers must ensure that no one can see them committing their crimes.

This game is clearly inspired by a well known modification on Garry's Mod known as Trouble In Terrorist Town and I thought it would be nice
if it could be its own game in which people can play and have fun with.

I'm hoping to have it released on Windows, Android and iOS.
However I would only like to release it via Steam for Windows, only if this can get greenlighted.
Please post what you think of the concept.
< >
I LICK AFTER '^' Jul 25, 2013 @ 3:37pm
Sounds interesting! :3 It's that kind of game, which i was hoping for, to get on Greenlight!
A game, which was not the same as other games; A game which wasn't that crappy. So..i like the direction the game is going! Keep the good work!


text:
98 ratings
Greyhound bus
Game Content: Miscellaneous
File Size:
66.001 MB
Apr 22, 2013 @ 7:08am
May 4, 2013 @ 8:25am
2 change notes ( view )

Subscribe to download Greyhound bus

The Greyhound bus in L4D2! Blue and red paint over a white body with metal panels on its side and on its doors.
< >
Grindhouse Jul 9 @ 9:02am
All I saw was an outline of a bus & wheels, kind of a hack to see through it & annoying the first time trying to shoot through it. I removed it from the HD texture package I downloaded.
Jules Jun 30 @ 3:22am
jules bump
Frankturbo b1787 Jan 12 @ 8:51am
d*** thanks any way. :(
aaWee  [author] Jan 12 @ 12:50am
i have no time for requests
Frankturbo b1787 Jan 11 @ 10:10pm
nice bus man. hey i got a request IF you feel like it let me know and i will tell you about it. :)
Barbas Jun 5, 2013 @ 6:53am
Isn't that the famous company that provides urine, litter and used needle transporation vehicles?

Awwww, F*** YEAH.
aaWee  [author] May 14, 2013 @ 7:10am
@Joe: sorry, then i don't know what's wrong. Try to resubscribe.
♫Joe (USA)♫ May 13, 2013 @ 9:17pm
I did. The bus was just black.
aaWee  [author] May 13, 2013 @ 11:04am
@Joe: Make sure you don't have any other bus addon beside this.
♫Joe (USA)♫ May 13, 2013 @ 8:17am
Isn't working for me. Steam has been a real bitch latley. Valve needs to pull their shit together.


text:
This game is now available on Steam!

Thanks for your help in getting this game selected for distribution via Steam. More information including a link to the Steam store page can be found below.

La Tale
Sep 27, 2012 @ 3:41pm
Jun 26 @ 2:44pm

View La Tale in the store

Store page
Recent Announcements View All (2)
We Have Released!
Season 2: STORM is here!
  • Completely Revamped Gameplay, everything reworked from the ground up
  • New Class: Soul Breaker, for a total of 35 unique classes
  • Classes Re-imagined for Second and Third Class advancements
  • Enhanced Skills for all classes to challenge boss monsters and opponents
  • Improved Enchanting System with simplified items and interface
  • Free-to-Play, with the friendliest community!
See more details @ Be sure to also check out our trailers and new events! We have tons of new and rare items to give away!

If you're new to La Tale or just haven't played the game in a while, now is the time to check out Season 2: STORM and give La Tale a try today! The wondrous world awaits you! Click here to sign up and play La Tale now![]

Release date: june 2014
La Tale is a free-to-play, fantasy, massively multi-player, online role-playing game (MMORPG), with classic 2D side-scrolling and the friendliest community.

Season 2: STORM, the biggest update to ever hit La Tale, has just launched! This update revamps the entire game, making La Tale like never before. The game now features up to 35 unique character classes with the introduction of the new class: Soul Breaker, enhanced gameplay, easier class change, and much more!

Journey across strange and beautiful lands, full of mystery, sorcery, swords, science, art, music and so much more, as you uncover the mysterious tale of Iris Livier. Let her tale be the start of your fascinating journey, and cross paths with other La Tale players in the friendliest MMORPG ever. Enter the wondrous world and begin your tale now at!

Vote for La Tale to help us get this game on Steam!

For now, you can play this game on OGPlanet by signing up, installing, and playing through this URL: Click to sign up and play La Tale now[]!

Official LaTale site:

***Propz to CookieCola and Zeq for your awesome videos***
Popular Discussions View All (5)
Jun 23 @ 9:52pm
European server
Apr 29 @ 3:07pm
SDGO on Steam/Other OGP Games on Steam when?
May 2 @ 6:31pm
More resolutions please?
Sinon Justiceheart
< >
Asfinks Jun 22 @ 3:49am
Забавная игра будет!
Joseph Teeradech (Th) Jun 20 @ 3:38am
i love this game
when we can access OGP link with Steam acc.???
OGPlanet  [author] Jun 17 @ 4:55pm
We have released! Thanks everyone for your support. If you have any issues, please post in our official steam forums at
laowei Jun 17 @ 4:24pm
achievements plz
grimkori Jun 17 @ 4:00pm
i hope that stupid xtrap error is gone.
LightQc Jun 16 @ 6:57pm
When is the game coming out?
Im really bappy that its coming to steam !
Misty16x Jun 9 @ 7:44pm
Love Love Love me my LT <3
Nonna Jun 8 @ 4:05am
라테일 = 추천
OGPlanet  [author] May 14 @ 10:54am
@sponge7325 Your account should be still active at - if you have issues remembering or accessing your account, send us a message via the helpdesk on our site, and we'll help you get back into the game! We're still working out if the servers for Steam will be the same as the OGPlanet ones, so I recommend you play through OGPlanet so you for sure don't have to start over!


text:
Left 4 Dead 2
Your own custom apocalypse
Discover and download new maps, Add-ons, Mutations and more! Want to try your hand at modding or want to upload your mod to Steam? Click here to learn more.
E5aJ [Fin] Jan 27, 2013 @ 2:02pm
An idea for a campaign: feel free to use
"An American Idol audition day has ended. Four judges (survivors) find themselves alone in the set. WTH has happened?? When wandering in the building they find people acting very strange. They fight their way out the building using guitars as melee weapons they found lying around. Outside, across the street is gunshop. There's a TV set explaing the situation. They grab guns and other stuff and decide to make their way to airport where they should have private plane waiting..." For this to work you would need to create custom skins and sounds/voices. If attempting to use original logos and sounds you would need to ask for permission.
Showing 1-2 of 2 comments
< >
☥Imi-ib☥ 2 Jan 30, 2013 @ 11:53am

Zombie or not- I WOULD LOVE TO LET THAT HO TASTE A BULLET. She work my nervesssssssssssssssssssssssssssssssssssssssss!

I'ma show her multipersonality- two bullets for every one she "claims" to have. Oh, that ho work my nerves.

Biggest Illumanati Puppet. Well, SECOND biggest. Lord knows they wouldn't give HER any real power.
SGT PODDY Jan 31, 2013 @ 12:47pm
i have idea what about the survivors start off on a plane which is in the air , it crashes (as usual) in the desert . The survivors find a shack filled with weapons and supplies they head to a town filled with zombies. There is a police station and someone on the radio telling people taht there is a military warship is being used as a safe point , the survivors are given instructions to go to airfield and find a pilot and a plane (pilots name doesnt matter) . the plane has to be filledwhich triggers a finale . I f they survive they escape on the plane and see it land on the ship 9sunset in background)
Showing 1-2 of 2 comments
< >
Per page: 15 30 50
Date Posted: Jan 27, 2013 @ 2:02pm
Posts: 2


text:
Parents Talk: Speeding Up the Adoption Process

Parents adopting children in England are to be given extra support and a "more active role" in the adoption process. Should the United States do something similar?

Most adoptive parents or those waiting to adopt, will likely tell stories of the long and sometimes difficult process they go through to bring a child home.

According to BBC News, England's government is attempting to speed their own processes up and provide more support for adopting parents.

Government officials want more adoptive parents to come forward to increase the number and speed of adoptions. According to the article, the number of children approved for adoption rose from 3,000 in 2010 to more than 4,000 in 2012, government figures show. But there are still about 4,000 in care waiting to be matched with prospective parents.

In the article, Children's minister Edward Timpson said up to 25,000 people asked about adopting each year, but thousands ended up being deterred by the process and the delays.

In Minnesota, many times training classes are required before a person or couple can even submit an application to adopt. A home study follows and at this point, the process has taken anywhere from four to six months, according to MN Adopt. Then families wait for placement, which has no guaranteed time. The full Minnesota adoption process can be seen here.)

According to the Congressional Coalition on Adoption Institute, 423,000 children are living without permanent families in the United States, with 115,000 of them eligible for adoption.

Do you think the United States government or Minnesota's legislature should take a more active role in streamlining the adoption process? Do you think the current system is necessary to ensure the best fit for a child? Share your thoughts in the comments section below.

Jody December 28, 2012 at 02:00 PM
My daughter was told t0 g0 through foster care to adopt. When shewent to the meeting they said there are NO babies so any toddlers or older be readyfor kicking, fighting, spitting, swearing, constant doctors, etc. Of course, as a young mother want-a-be didn'tgo back. She and her husband want to gointernational but it s so expensive, so we keep praying and telling people if you know of someone that has a baby/child that needs a home,please call...952-432-7785
Betsy Gasior December 29, 2012 at 04:43 PM
I don't know many people that have adopted, so I am largely unaware of what is going on "out there". How awful that American agencies have made it so difficult to adopt so many children that deserve a loving home. I also think it is sad that Russia has adopted their new policy. According to the news reports I've seen, the adoptions already in process may not happen. Many of those parents have established relationships with their children over a period of years (which also makes no sense to me that it should take that long)...how does this benefit those children?
S. B. Simon January 01, 2013 at 05:13 PM
I am the parent in the process of adopting a child domestically. While it is true that the pre-adoptive training paints the waiting children in this state as all out of control and are "special needs", the truth is being in foster care is in and of itself considered by the state to be a special need. Yes, many of the children come with mental health issues; understandably so with the traumatic histories these children have experienced. Compounding that is never having a family to rely on, being moved from place to place, including placements in a juvenile detention center or child shelter, simply because there is nowhere else for the child to go. Right now, there are 355 children in the State of Minnesota, waiting to be adopted. While there are subsidies to assist with adoption one of Minnesota's waiting children; reimbursement of expenses related to the adoption, no agency fees, and services provided to help with the needs of the child, the road to finalization is long, and often times confusing. However, it is such for good reason; to make sure the family is truly a good fit for the child, not the child is a good fit for the parents. I encourage people interested to visit the Minnesota Adoption Resource Network (www.mnadopt.org) to learn about how domestic adoption can be a positive experience for both the child and the parent.
Caitlin Burgess January 02, 2013 at 12:29 AM
Thanks for sharing. Also, there is a direct link to the Minnesota Adoption Resource Network's description of the adoption process in this state above. Click on the hyperlink that reads: The full Minnesota adoption process can be seen here.
Liam Manning March 25, 2013 at 06:47 PM
Thanks for sharing all this. We've been very intrigued with the whole adoption process. I was even thinking of doing it through http://www.achildsdream.org/content/birth_parents/birth_parentscontact.htm. What would you suggest?

More »
Got a question? Something on your mind? Talk to your community, directly.
Note Article
Just a short thought to get the word out quickly about anything in your neighborhood.
Share something with your neighbors.What's on your mind?What's on your mind?Make an announcement, speak your mind, or sell somethingPost something
See more »


text:
View Single Post
Lt. Commander
Join Date: Dec 2007
Posts: 120
# 3
08-01-2010, 08:21 PM
I have no issues with this ability as it currently stands and this is why...

At 50% you should only then be looking at applying your Repairs for Hull and Shield. Pop RSP and then Hazard Emitters / Engineering Team to get your Shields and Hull Back up to strength.

Sounds like you both have issues with your build / game play. The amount of times where people that play PVP hit RSP when 1 side of the shield is down is to common.

Learn to transfer power between shield sides. Hit Evasive Maneuver, to point your shields to the other side of the incomming fire. Pop Aceton Field to reduce damage by 50% on incomming fire from the target hitting you the hardest.

Do anything to keep your shields up without using Major Abilities, Rotate Shield Frequency for example, most of all learn the order to use them in etc.

I personally think that 50% is a good % for this to be activated, its meant to give you a hand not take on the battle for you. Look at players that use Photonic Fleet when do they Pop this ability, when they are about 50%, they do not use it at the start of the fight.

Look at the Keldon NPC when do they use Photonic Fleet with 2 other ships that help out, its about 30%.


text:
View Single Post
Join Date: Jun 2012
Posts: 460
# 5
01-04-2013, 09:33 AM
If anything, I should get an accolade for those times when all five of my officers died on a shoreleave on Risa assignment and when my officer killed himself during a Discipline Crewman assignment.
Joined: January 2010

Fanfiction! ZOMG! Read it now!


text:
Prev Previous Post   Next Post Next
Career Officer
Join Date: Jun 2012
Posts: 802
# 1 Lord-Ice's Suggestion BONANZA!
09-12-2012, 12:20 PM
Ladies and gentlemen, and invited transgendered species, it is my PLEASURE to present?
Some of these are oldies-but-goodies (like my Crafting system), but some of these are brand-spanking new (like the in-detail concept for custom ship interiors). All in all, these are things that I?d LOVE to see in-game. Should any dev be reading this, you have my permission to take as many of these as you like.

Let?s start off with probably my favorite system of all time: My Crafting system. I posted the original one on these forums over a year ago. I even did a mock-up UI for it (even though the slideshow ended up backwards). It allowed a player to craft virtually any non-mission (and, of course, non-Fleet) item in the game, as well as giving players something to do with scrap loot (I went with the old Champs system for ideas ? how you used to be able to tear items apart for components. I always thought that fit better in STO than Champs). All of the details are in the old thread. Give it a read; most of the feedback was pretty good.

Next up is an idea that I only fleshed out today, that ends up giving people quite a few things they?ve asked for ? Custom Ship Interiors. Effectively, what I?m proposing is to allow ANY player to use the Foundry map editor to create their own crew and engineering decks (complete with custom crew uniforms for all you out there who have been begging for it). There would, of course, be Required Rooms ? areas that have to be placed (and can be customized) in your interior before you can ?publish? the interior and use it. These would be:
Bridge (obviously)
Mess Hall/Ten Forward
Main Engineering
Science and Engineering Labs
Captain?s Quarters
Transporter Room (at least 1, can be more)
As well as three TOTALLY new rooms:
Shuttle Bay (with the ability to place shuttles inside if you own the shuttle itself)
Cargo Hold (effectively, on-ship bank)
Astrometrics Lab (Mail/Exchange, and possibly the ability to go to warp from your interior if they ever implement the One Sector to Rule Them All)
With the addition of Required Rooms, this would also give both Foundry authors and Cryptic devs the ability to hook up missions on the interior (or, at least, parts of them). Part of this is already in place ? The KDF mission ?Bringing Down The House? has an optional objective on your interior, and the Romulan FE ?Mine Enemy? has the decryption puzzle in your Ready Room. This would be done via tying the objective to a required Art Asset (i.e., the main console in Astrometrics) to complete an interact. The most fun part of this would be that you could place your BOffs inside the ship by placing special ?Actors? in a room and then selecting which BOff you want it to be via a dropdown menu.
Revamping the interiors would also allow Cryptic to fix a nuisance: When leaving your ship interior, why do you beam out? Where to? Now, you would just fade to black (or, even better, if you?re on your bridge, you do the ?Engage? emote).
Lastly, you would also be able to assign interacts to certain areas to do things like lock a door to prevent NPCs from opening it. I decided to put this here for a good community member named AlchemistiD. As you can see, He does NOT like his gremlins opening his doors on the Defiant. So, now, you get to open and close them via interact if you so choose. Here?s to you, Alch.

Next up is a fan favorite that the devs said they were working on, but has apparently been back-burnered indefinitely. That?s right? One Sector Block to Rule them All (almost). I thought about this? and the code should already be in place to do this. If not, it?s a quick run over to the Champs area to ask for help. If anyone here has played Champs, you know that Millennium City is HUGE. But, it?s also divided up into many sub-areas. Effectively, that would be the system Sector Space would use. Of course, there are a few things that need to be fixed first. Right off the bat, there?s the fact that some Star Clusters are tied into areas that would become occupied. The fix for this is simple, and something that might help Foundry authors a bit: The entrance to each nebula would become a system (like how the non-functional Mutara Nebula in Gamma Orionis is now). This would also allow Foundry authors to tie a map transition to these, for story purposes (one of my delayed projects is supposed to take place in the Arucanis Arm, but you?d have to enter from the Celes system because you can?t hook into a sector border), as WELL as fixing the current issue where some Exploration Clusters (Delta Volanis, Rolor, Arucanis Arm, and Hromi Cluster) occupy the same area on the galaxy map. Gamma Orionis would also have to remain walled off, because of how it?s designed.
The next problem is the big gaps in the map. For instance, the Klingons would be broken and have to go around Regulus to reach the Romulan areas. This would be fixed with more Klingon Imperial sectors (on the Romulan border), with things like Narendra III (where the Enterprise-C was lost) and the Khitomer system (maybe with a memorial for the massacre). This would both flesh out the Klingon Empire, and give some nice background (oh, and the opportunity for much-needed Klingon Content). The next big gap is between Sirius and the Cardassian sectors. Betazed is supposed to be there, so I propose about 5 new sectors there, reaching up from the south of the Neutral Zone to the butt of Alpha Centauri, to allow people to fly straight through. This would, of course, include Betazed and some other systems. Yet another chunk would go north of Beta Ursae, where the Rolor Nebula is now. This would connect Orellius to Sirius by way of this sector and the Betazed Strip. This area (probably Cardassian space) would include the Chin?Toka system (with a nice Dominion War memorial for all the lore fans).

Finally, an addition for the Forums. If you use Twitter, you?ll know that Devs make a lot of posts (well, you WOULD know, if you follow @Sto_DevTracker ? you DO follow that, right?) And, what they don?t post in, they probably read. Well, this system (I like to call it the Dev Poke) would allow a Dev that finds a decent suggestion to send a message to the user (similar to getting reported, but with good side-effects instead of bad). They would be able to ?poke? you to ask if they could use the concept (there?s some legal issue or something with Intellectual Properties and suggestions and whatnot). You say Yes, they can put it into the game. This would also mean the inclusion of a Suggestions forum to post them in. This could even lead to Season 9 being the addition of player suggestions. This game already has the most powerful UGC engine in the MMO market, why not let players suggest new functions? This could even end up expanding and strengthening the community itself ? a worthwhile task, to say the least.

So, with a good chunk of concepts on the table, what do you all think? All feedback welcome. I follow my own topics, so you'll hear from me if you have any questions.
___ |___ _ Fed ____| ____ _KDF __ ____| Rom
Tac_|_Thomas Hale_| __ __Illusion _____| Silence (K)
Eng | ___Antilles _ _| _ Mirror Rygobeth__| N'Vek (F)
Sci _| __ Rygobeth _| _Lukor Son of Q'Tar | Devala (F)

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

All times are GMT -7. The time now is 09:33 PM.