 |
 |
When posting your question please:- Choose the correct forum for your message. Posting a VB.NET question in the C++ forum will end in tears.
- Be specific! Don't ask "can someone send me the code to create an application that does 'X'. Pinpoint exactly what it is you need help with.
- Keep the subject line brief, but descriptive. eg "File Serialization problem"
- Keep the question as brief as possible. If you have to include code, include the smallest snippet of code you can.
- Be careful when including code that you haven't made a typo. Typing mistakes can become the focal point instead of the actual question you asked.
- Do not remove or empty a message if others have replied. Keep the thread intact and available for others to search and read. If your problem was answered then edit your message and add "[Solved]" to the subject line of the original post, and cast an approval vote to the one or several answers that really helped you.
- If you are posting source code with your question, place it inside <pre></pre> tags. We advise you also check the "Encode HTML tags when pasting" checkbox before pasting anything inside the PRE block, and make sure "Ignore HTML tags in this message" check box is unchecked.
- Be courteous and DON'T SHOUT. Everyone here helps because they enjoy helping others, not because it's their job.
- Please do not post links to your question in one forum from another, unrelated forum (such as the lounge). It will be deleted.
- Do not be abusive, offensive, inappropriate or harass anyone on the boards. Doing so will get you kicked off and banned. Play nice.
- If you have a school or university assignment, assume that your teacher or lecturer is also reading these forums.
- No advertising or soliciting.
- We reserve the right to move your posts to a more appropriate forum or to delete anything deemed inappropriate or illegal.
When answering a question please:
- Read the question carefully
- Understand that English isn't everyone's first language so be lenient of bad spelling and grammar
- If a question is poorly phrased then either ask for clarification, ignore it, or mark it down. Insults are not welcome
- If the question is inappropriate then click the 'vote to remove message' button
Insults, slap-downs and sarcasm aren't welcome. Let's work to help developers, not make them feel stupid.
cheers,
Chris Maunder
The Code Project Co-fou
|
|
|
|
 |
How I can check PageRank any websites on my computer using the apache on my computer
|
|
|
|
 |
Hi
I am running OpenSuse
I am have flash drive on my laptop which I would like to read the contents.
I am guessing it's one of the SDXX directories in the /dev directory.
I have tried to mount each and every sda device (I have sda, sda1,sda2,sda3) and none of those seem like the flash drive
When I do a lsusb command I can see the device listed as bus 3 device 3
Any help appreciated
Thanks
|
|
|
|
|
 |
Looks like you are missing the opening double quote before SELECT and a missing space before WHERE . I should go through the syntax for that statement again. You could check the final string by displaying it on the page before you try to execute it.
|
|
|
|
 |
Hi Richard,
Many thanks for your reply.Tried all of your suggestions(and a few more variations)but to no avail.Here is an odd thing I changed the name of the $rs variable to $aaa,but strangely when I get the e Error up still refers to that variable as $rs..this makes me think that the error is still somewhere in the SELECT line.I will keep at it
Again many thanks for your reply
Kind regards
Colin
st
|
|
|
|
 |
Are you sure you saved the modified version of the code before running it? If it still says "$rs" then it must be using the version before you changed the name. It is almost guaranteed that you have some mismatched quotes in your SELECT string.
|
|
|
|
 |
I have a table has two columns one which show a dropdown field for no of rooms (1,2,3 ) and the other which shows the price of the room selected with total nights ( EGP 200 ) i have this code but its not working well, can someone help me? :
>
if (!empty($this->check_in_date) && !empty($this->check_out_date)) {
$room_info = $room_db->getAvailableRooms($room_type_info['id'], $this->post_search_info);
$pprice = $room_info[0]['total_price'];
?>
<!-- prices according to calendar and dates selected by user !-->
<script>
$(document).ready(function() {
$("#target").kendoTooltip({
autoHide: false
});
});
</script>
<!--
translator->translator('hotels_front_page_hotels_check_availability'); ?>
-->
getShortName() . ' ' .''. $this->escape($pprice).''; ?>
<!-- getShortName() . ' ' . $this->escape($room_type_info['basic_price']); ?>
getShortName() . ' ' . $this->price($this->escape($room_type_info['descount_price'])); ?>!-->
} else {
?>
Show prices
}
?>
>
if (!empty($this->check_in_date) && !empty($this->check_out_date)) {
?>
<select name="apartments_no[]" id="apartments_no" class="apartments_no multi-hotel-room">
<option value="0">0</option>
if ($room_info) {
$room_id_value = '';
$room_cnt = 1;
$per_night_price_sum = 0;
//$price = 0;
foreach ($room_info as $room_info_key => $room_info_arr) {
$price_sum = $this->price($this->escape($room_type_info['descount_price']));
$per_night_price_sum += $price_sum;
$selected = ($this->postValues['apartments_no' . $count] && in_array($room_info_arr['room_id'], $this->postValues['apartments_no' . $count]) ) ? 'selected="selected"' : '';
if(!$this->postValues['apartments_no' . $count] && $room_info_key == 1){
$selected = 'selected="selected"';
}
$room_id_value .= (empty($room_id_value)) ? $room_info_arr['room_id'] : ',' . $room_info_arr['room_id'];
$price += $room_info_arr['total_price'];
//$selected =
echo '<option price ="'. $price . '" value="' . $room_id_value . '" ' . $selected . '>' . $room_cnt . '</option>';
$room_cnt++;
}
}
?>">
|
|
|
|
 |
I am new in LAMP. I want to run a simple web app running python using Django and some good interface like mod_wsgi. I have googled a lot but I am not succesful. Please give me step by step process to do it. Please suggest appropriate server.
I am using windows 7.
|
|
|
|
 |
Member 9493720 wrote: Please give me step by step process to do it. No one is likely to do that on a programming forum. You need to find some tutorials and samples for yourself and start studying the systems you want to use.
|
|
|
|
 |
I am looking to build a portfolio of code samples that can show what I can do as a developer. However, I am not sure what types of things I can program. What are some projects that are relatively short to medium that I can build to help build a portfolio of code samples? I know people suggest having something that shows off knowledge in OOP but other than that I'm not sure what I can create. Thanks.
|
|
|
|
 |
Brandi Boseman wrote: I am not sure what types of things I can program.
Brandi Boseman wrote: I'm not sure what I can create.
There seems to be a problem with your approach.
Have you done any coding? Share sample functions. It does not have to be anything big or long. Whoever ends up caring about the portfolio won't go through it in great detail anyway so show that you know the common way of naming variables and functions, that you can use proper looping techniques, that you don't waste lots of processing time, that your code is readable, comments are effective, etc, etc.
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
 |
Yes I have, but the majority of it is either stuff for my day job ( which is owned by them and can't go in a portfolio ) or stupid things that don't show off my skill as a developer. the only think i have added to some code samples are a tic tac toe class which can handle a game of tic tac toe up to 10 squares and a function that will solve a text string equation ( if you put in " ( 5 + 3 ) / 3 - 2 it will give you the right answer. accounts for parentheses, exponentials etc but i feel like those aren't "enought"
|
|
|
|
 |
The first thing anyone will/should care about is your experience. You say you have "skill as a developer" so I assume you have been doing this for a fair while.
Why create a portfolio then?
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
 |
i only ask because for job interviews a lot of employers want to see a code sample, but without any constraint or basis of what type of code sample they want to see i have no clue what to send them. i sent one out and they said my code work looked like i was more suited for a "junior" position, that was a user class which managed users, it had functionality to check to see if a user was logged in, logged out a user, create a new user including generating a password hash, logging in a new user, checking to see if a user was verified etc. standard functions. i used oop principles since that was done for a job that assigned a project to me that specifically said it had to be object oriented, and had member private, with accessor classes for things that needed to be accessed from outside the class.
i've been doing professional web development for 8 years now, my current job we use cakephp framework or wordpress depending on the site. i'm just perplexes as to what would be something good. the feedback i have gotten from my code samples was that i didn't look like i was up to the level they needed, ok, well what type of code sample do you want, what are you looking for, etc? if you give me a task i can do it, but if you say "show me code" i have no clue what to give you. i can show you plenty of code...
|
|
|
|
 |
OK, that makes sense.
1. It may be worth you posting some of the samples you have provided so that people here can provide feedback and perhaps more up to date approaches. I have seen developers that worked 10+ years yet their approach was still juvenile such as not using more modern features of the language.
2. I see your dilemma and perhaps the LAMP world is different than the Microsoft world, but if you have programmed for 8 years I wouldn't care about code samples, I'd want to hear you talk through challenges and projects you have worked on. As a hiring manager, I'd learn much more by listening to you than by looking at code samples.
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
 |
Thanks. I've done that too ( showing it to other coders to get input ) I wish more hiring managers would take your approach, as the random-code-sample is a bit hard
|
|
|
|
 |
Hi,
I am starting with Slideshare and trying to do a basic search using the below code but all I am getting is a blank page. why?
<?
function search($query)
{
$url="http://www.slideshare.net/api/2/search_slideshows";
$api_key="xxxxxxx";
$secret_key = "xxxxxxx";
$hash = hash('sha1',$secret_key.$time);
$lang="en";
$req = $url ."?api_key=".$api_key
."&hash=".$hash
."&q=".$query;
echo $req;
$xml = simplexml_load_file($req)
or die();
var_dump ($xml);
}
$query = "PHP";
echo search($query);
?>
Technology News @ www.JassimRahma.com
|
|
|
|
|
 |
I am going to create a computerized enrollment system for my thesis. Typically, whenever I will use PHP as my programming language, the system about to create is always web-based. But in my case, I am going to use PHP for Intranet only and my adviser told me that it should be client server in terms of getting the records from the database. Is it possible?
|
|
|
|
 |
Yes. You can use PHP in such way (and no need of web for that). Search for PHP database access...
I'm not questioning your powers of observation; I'm merely remarking upon the paradox of asking a masked man who he is. (V)
|
|
|
|
 |
Is it the same just like client server in ASP.Net? I have not yet encountered that kind of scenario. Is there any processes/instructions that I need to follow?
|
|
|
|
 |
On the theoretical level there is no real difference...but in practice there is! The get exact answers you have to read about PHP and database and client-server...a lot!
I'm not questioning your powers of observation; I'm merely remarking upon the paradox of asking a masked man who he is. (V)
|
|
|
|
 |
Its has many Database tables compared with other carts db structure. Its very slow.
To write a magento module and access db, you need to use PHP ORM.
Direct sql queries and magento templates are even more complicated.
I dont understand why Clients prefer magento?
There are alternatives like Prestashop etc.
modified 14-Aug-14 15:03pm.
|
|
|
|
 |
That doesn't look like a question, unless you count the "why clients prefer magento" line, which isn't really something we can answer.
Rants about "why insert technology here sucks" belong in the Lounge.
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|