c_str()
Why does it come up? Things like ifstream are initialized with char* file names, not std::string.
c_str()
import dbi
import odbc
query = "SELECT * FROM default_table";
conn=odbc.odbc("odbc_data_source_admin_name");
cursor = conn.cursor();
cursor.execute(query);
print (cursor.fetchall());
"Sculley believed in keeping people happy and worrying about relationships. Steve didn't give a shit about that. But he did care about the product in a way that Sculley never could, and he was able to avoid having too many bozos working at Apple by insulting anyone who wasn't an A player."
action-"select_auction.php"What surprises me is the fact that this worked correctly for when I was at select_auction.php. I guess the default behavior for HTML is rather tolerant (redirect confused posts to self) which makes it hard to find bugs!
CC=g++
CFLAGS=-c -Wall
LDFLAGS=
SOURCES=main.cpp hello.cpp factorial.cpp
OBJECTS=$(SOURCES:.cpp=.o)
EXECUTABLE=hello
all: $(SOURCES) $(EXECUTABLE)
$(EXECUTABLE): $(OBJECTS)
$(CC) $(LDFLAGS) $(OBJECTS) -o $@
.cpp.o:
$(CC) $(CFLAGS) $< -o $@
Towards Good Programming Style in C
Major takeaways on variable:
The start up genome Report -interesting findings
After interviewing 650 early Internet startups a group of incredibly smart people based on empirical information summarize what makes a successful internet startup
1.Founders that learn are more successful-Startups that have helpful mentors, track metrics effectively, and learn from startup thought leaders raise7x more money and have 3.5x better user growth.
2. Startups that pivot once or twice times raise 2.5x more money have 3.6xbetter user growth, and are 52% less likely to scale prematurely than startups that pivot more than 2 times or not at all.
3. Many investors invest 2-3x more capital than necessary in startups that haven’t reached problem solution fit yet. They also over-invest in solo founder sand founding teams without technical cofounders despite indicators that show that these teams have a much lower probability of success.
4. Investors who provide hands-on help have little or no effect on the company's operational performance.But the right mentors significantly influence a company’s performance and ability to raise money. (However, this does not mean that investors don’t have a significant effect on valuations and M&A)
5. Solo founders take 3.6x longer to reach scale stage compared to a founding team of 2 and they are 2.3x less likely to pivot.
6. Business-heavy founding teams are 6.2x more likely to successfully scale with sales driven startups than with product centric startups.
7. Technical-heavy founding teams are 3.3x more likely to successfully scale with product-centric startups with no network effects than with product-centric startups that have network effects.
8. Balanced teams with one technical founder and one business founder raise 30% more money , have 2.9x more user growth and are 19% less likely to scale prematurely than technical or business-heavy founding teams.
9. Most successful founders are driven by impact rather than experience or money.
10. Founders overestimate the value of IP before product market fit by 255%.
11. Startups need 2-3 times longer to validate their market than most founders expect. This underestimation creates the pressure to scale prematurely
.
12. Startups that haven’t raised money over-estimate their market size by 100x and often misinterpret their market as new.
13. Premature scaling is the most common reason for startups to perform worse. They tend to lose the battle early on by getting ahead of themselves.
14.B2C vs. B2B is not a meaningful segmentation of Internet startups anymore because the Internet has changed the rules of business
Noam Zur
Sales Mentor - Customer development for startups
4 months ago
“In my long political career, most of the mistakes I made, I made when I was too tired, because I tried too hard and worked too hard,” he told Rao. “You make better decisions when you're not too tired. So that would be my only advice.”[1]
Date = Now()
countdown = Date - 20
...
Date = Date - 20
Sub Something()
If Application.WorksheetFunction.CountIf(Range(Cells(5, 5), Cells(lastRow, 8)), "#N/A Requesting Data...") > 0 Then
Application.OnTime Now + TimeValue("00:00:30"), "Something"
Exit Sub
End If
End Sub
You're 22 right now. You don't want to be married for another 10 years at least. Marrying early is right for some people. But remember, I told you, don't marry early. And I know in ten years you will not have listened and I will punch you in the face for not doing so. But also, never do something you'll regret. If she's the right one, well then...
"It's like something clicked
one year to excise the bulls***tery from my life
i challenge you to the same"
Follow the following instruction in both local and remote computers.
Go to Start->Control Panel->Administrative Tools->Services. Enable and start the following services in the order shown below:
1. Network DDE DSDM 2. Network DDE 3. ClipBook
If you want to see the clipboard action in live:
You can go to Start->Run and type clipbrd and click OK to run clip board viewer. You will be shown current clipboard objects in this viewer.
Now you can use standard copy/paste menu options of the applications in both the computers to exchange the data.
>>> data = melt(factor.data, measure.vars=c("variable_one", "variable_two", "variable_three"))
>>> length(factor.data$val)
85
>>> length(melted.data$val)
340
process.open <- function(filename) {
return(read.csv(file=filename, head=TRUE, sep=",", dec="."))
}
filename <- "z1_output_quint.csv"
output <- "z1_output_quint_panel.pdf"
factor.data <- process.open(filename)
factor.data$date <- as.Date(as.character(factor.data$date), format="%Y%m%d")
factor.data$val <- factor.data$value
factor.data$value <- NULL
vars = c("val", "momentum", "size")
vars_2 = c("dividend_yield", "profitability", "growth")
vars_3 = c("earnings_variability", "trading_activity", "volatility", "leverage")
pdf(output)
data = melt(factor.data, measure.vars=vars)
ggplot(data, aes(date)) + geom_hline(yintercept=0)+
geom_line(aes(y=value))+
facet_grid(variable ~ .)
data = melt(factor.data, measure.vars=vars_2)
ggplot(data, aes(date)) + geom_hline(yintercept=0)+
geom_line(aes(y=value))+
facet_grid(variable ~ .)
data = melt(factor.data, measure.vars=vars_3)
ggplot(data, aes(date)) + geom_hline(yintercept=0)+
geom_line(aes(y=value))+
facet_grid(variable ~ .)
dev.off()
>>> x = [1,2,3]
>>> y = [4,5,6]
>>> x.append(y)
>>> x
[1, 2, 3, [4, 5, 6]]
>>> x.remove(y)
>>> x
[1, 2, 3]
>>> x.extend(y)
>>> x
[1, 2, 3, 4, 5, 6]
>>>
P_TOTAL_RETURNC(0/0/-2,0/0/-1) rather than P_TOTAL_RETURNC(0/-2/0,0/-1/0)
class TestNormalizeFunction(unittest.TestCase):
def setUp(self):
## Setup for weight test
self.dateList2 = [1,1,1,2,2,2]
self.countryList2 = ["us","us","mx","us","us","mx"]
self.list2 = [1.,3.,3.,1.,3.,3.] ## <--- NOT THE SAME AS [1,3,3,1,3,3]!
def test_weights (self):
self.assertEqual(process.calculateWeights(
self.dateList2, self.countryList2, self.list2),
[self.list2[0] / sum(self.list2[:2]),
self.list2[1] / sum(self.list2[:2]),
1.,
self.list2[3] / sum(self.list2[3:5]),
self.list2[4] / sum(self.list2[3:5]),
1.])
if __name__ == "__main__":
unittest.main()
"The most powerful statistical techniques cannot make short histories reveal once-in-a-lifetime events." (Jorion, Chapter 5)