Notice: Constant DIR_FS_CATALOG already defined
I've already commented out display_errors in php.ini,but is not working.
How do I make PHP not output such things to browsers?
If i have a function api that expects a 14 digit input and returns a 6 digit output. I basically define the input as a const char *. would that be the correct and safe thing to do?
also why would I not want to just do char * which I could but it seems more prudent to use const char * in that case especially since its an api that i am providing. so for different input values I generate 6 digit codes.
Open App.Path & "\Folder\" & str(0) For Output
Seems to get a path not found however if directly before that I do
MsgBox App.Path & "\Folder\" & str(0)
It Provides the correct directory/filename that I want
and if I replace that string with the direct path in quotes it works fine however that won't be very good for other users of my app :( Anyone know why this doesn't work?
I am having string called '200_CFL_2010'. I wish to get the characters between _'s. I want the output as 'CFL'. I have to achieve it through SQL. Any idea please?
I have a list of sales people and a list of their sale revenues in two separate columns. How do I use an advanced filter or other sorting means to find the max of the sale revenue column and then have the formula output be the corresponding sales person?
I have the following code, which just print the key/value pairs in a dict (the pairs are sorted by keys):
for word, count in sorted(count_words(filename).items()):
print word, count
However, calling iteritems() instead of items() produces the same output
for word, count in sorted(count_words(filename).iteritems()):
print word, count
Now, which one should I choose in this situation? I consulted the Python tutorial but it doesn't really answer my question.
Hello,
I am tryin to Replace the start of line with a "(". However when i use replace all i'm not able to do so.
For eg:
432425\n
4254645\n
w4546746\n
46457367\n
4765756\n
I want the output as using Replace All
So i use the ^ symbol with Regular Expression Selected and Replace All.
Using only Replace works fine.
(432425\n
(4254645\n
(w4546746\n
(46457367\n
(4765756\n
I already created a wordpress widget for adding some featured from admin panel.I need to redirect to another page from this widget.But,when i am try to use header() method which shows a warning some thing like header already send by output....an do on.Is there any other method to redirect from wordpress widget?Please help me
I'm looking for some resources that demonstrate good graphic design for generated (PHP/HTML/CSS) reports.
The website I'm designing is essentially a long test. Everything is finished except the report generation, and this part needs to look good!
I'd appreciate any advice/resources you can point me to! I know this isn't directly programming related, but my purposes do encompass coding and output.
I want to create an array of numbers: 10, 9,8...to 1. But when I echo $numbers, I get "Array" as the output as to the numbers.
There is probably a simple thing I missed, can you please tell me. thanks!
$numbers=array();
for ($i=10; $i>0; $i--){
array_push($numbers, $i);
}
echo $numbers;
I have a table with the following columns and data
Category Item Price Tax
A I1 1.00 .01
A I2 2.22 .02
B I3 3.33 0.3
I want to group on Category and have the details below such as:
Category/Item Price Tax
A
I1 1.00 .01
I2 2.22 .02
B
I3 3.33 .03
I want the category to have its own row then the detail rows below with the item in the same column as the Category.
The output that is desired is:
Category - Item | Price | Tax
A | |
I1 | 1.00 | .01
I2 | 2.22 | .02
B | |
I3 | 3.33 | .03
I'm using the smartif tag from this snippet (I'm holding on with regards to upgrading to 1.2) in my template for a certain boolean field like so:
{% if payment.extends_membership == "True" %}
{% trans "Yes" %}
{% else %}
{% trans "No" %}
{% endif %}
But whatever the value of extends_membership I get only No as the output. What could be the problem?
How to test whether a node contains particular string or character using C# code.
example:
<abc>
<foo>data testing</foo>
<foo>test data</foo>
<bar>data value</bar>
</abc>
Now I need to test the particular node value has the string "testing" ?
The output would be "foo[1]"
echo date("W",strtotime('2010-01-01'));
This outputs 53. I would expect it to output 1. Can anyone else confirm this behavior, or maybe explain why? I couldn't find a bug report on it.
Hi all,
I wonder if there is a software that can help us determine all possible origins of a function call.
For example:
/* in file f1.c */
int f1() {
x_func();
}
/* in file f2.c */
int f2() {
x_func();
}
If we want to trace the origin of all function calls to x_func(), the output will be:
f1.c:f1()
f2.c:f2()
This is very useful when reading the source code.
All answers are appreciated. Thank in advance :D
I want to write a program to implement an array-based stack, which accept integer numbers entered by the user.the program will then identify any occurrences of a given value from user and remove the repeated values from the stack,(using Java programming language).
I just need your help of writing (removing values method)
e.g.
input:6 2 3 4 3 8
output:6 2 4 8
So I want to redirect all stderr to a file, which is also being used by my logger for the entire time the application (game) is running.
The follow redirect it away from the console, but it never appears in my file, and using fclose after the game loop is over doesnt actually do anything, where it would normally would.
freopen(Logger::logFile.c_str(),"a",stderr);
Any help would be great on how to get stderr to output to the text file, in a game loop.
Hi,
I need a help on getting primary key values repeated times from the xml.Here is the xml file.
the required output is
KeycolumnName,Columnname
customer_id,customer_id
customer_id,customer_name
customer_id,customer_address
Can anyone help me on this?
Hi Guys,
I'm building a part of a system where the user can define "views" from a mysql database.
I want some way of generating simple HTML tables/reports from the data, but not just plain output of sql queries- simple joins probably isn't enough.
Any ideas?
input
23 3 4 4 42 n 23 0 9 9 n n n 3 9 9 x
//according to input,i should create int pointer arrays. pointer arrays starting from 1 (that is initial arrays is arrays[1].when program sees n ,it must be jumb to arrays 2
expected output
arrays[1] 3 4 5 42
arrays[2] 23 0 9 9
arrays[5] 3 9 9
x is stopper
n is comman to create new pointer array
i am new in this site
anyone help me how can i write
Just using it as a method parameter is fine but what about an easy way to use it in strings?
For instance say I have this:
11 void myTest()
12 {
13 if(!testCondition)
14 logError("testcondition failed");
15 }
And I want the output to be:
"myTest line 14: testcondition failed"
How can I write logError? Does it have to be some monstrosity of a macro?
Hi, I am writing a function like this.
func :: IO()
func = putStr print "func = putStr print"
I know it is incorrect but the idea is I want the putStr applied onto the string then print applied onto the same string "fun = .." so that the output would be:
func = putStr print "func = putStr print"
which is the same as my function definition. Thanks
If you have 2 cross classifying variables you can use rowSums and colSums to produce margin totals on an xtabs output. But how can it be done if you have 3 classifying variables (ie margin totals in each sub table)?