Lounge<C++>

Today we're daydreaming about C++26 reflection
Jun 15, 2015 14:45
I use write syscall to write to file descriptor. I found out that write also can write only part of the data and does not guarantee that all the buffer wrote to the file descriptor.
Their is a flag or something that make write to write all the data?? Thanks
May 29, 2015 03:01
thanks!
May 29, 2015 02:57
what is the -lm for in g++ compiler ?

g++ -Wall -lm -c file.cpp

Thanks
May 13, 2015 12:31
but I dont understand why it's tell that their is an error
May 13, 2015 12:31
I think that it's finish without an error
May 13, 2015 12:30
@khajvah pthread_join always return 1! I dont know why.

void* threadFunc(void* param){
}
pthread_t newThread;
pthread_create(newthread,threadFunc,nullptr,nullptr);
k=pthread_join(newThread);
so in this case k is always 1. but join has to return 0 when it's success and !=0 in error.
May 13, 2015 12:22
I try to join thread by pthread_join(thread). but in any case I the join return the value 1 in any case also if the function that the thread work on is empty.
According to the man files it have to return 0 in success but it return only 1!
how can I find the problem?? thanks..
May 10, 2015 00:15
Ok thanks. so I understand that I must lock the map! thanks
May 10, 2015 00:14
@rightfold if I create a cont_iterator. the values will change if the map changes?
May 10, 2015 00:12
If I have 2 threads and Map. One write to the map. And the second iterate on the map.
how can I do it thread safe?
their is a way to receive an iterator of the map that I can iterate on the values and dont care about the changes of the map?
May 9, 2015 12:33
@milleniumbug their is an option to push and pop from a map??
May 9, 2015 12:28
not searching for it but use a key to find this data
May 9, 2015 12:28
I want to make a queue and also be able to find a data in the queue.
May 9, 2015 12:26
I search for a std structure that I can use as map queue or ordered map.
I have to go to a node in the queue and I dont want to search every time for the data.
their is a structure that can do this?
Or I have to implement it?
Thanks!
Apr 10, 2015 23:21
You are right!
Apr 10, 2015 23:19
Ok thanks. I tried it and it and the pointers was NULL also for malloc.. anyway thanks
Apr 10, 2015 23:17
@sehe Ok thanks
Apr 10, 2015 23:16
@sehe thanks but I write in C :( thanks anyway
Apr 10, 2015 23:13
I want to allocate memory for array of pointers. my question is - if I use malloc of the pointers will be NULL at the beginning? or I need to use calloc for this?
Thanks!!
 

C

C stands for Control.
May 13, 2015 12:14
I try to join thread by pthread_join(thread). but in any case I the join return the value 1 in any case also if the function that the thread work on is empty.
According to the man files it have to return 0 in success but it return only 1!
how can I find the problem?? thanks..
Apr 10, 2015 23:53
@PeterVaro thanks!
Apr 10, 2015 23:12
helloc all;
Apr 10, 2015 23:12
helloc all;

I want to allocate memory for array of pointers. my question is - if I use malloc of the pointers will be NULL at the beginning? or I need to use calloc for this?
Thanks!
Apr 10, 2015 23:09
I want to allocate memory for array of pointers. my question is - if I use malloc of the pointers will be NULL at the beginning? or I need to use calloc for this?
Thanks!
 

HTML / CSS / WebDesign

This room is now defunct. RIP.
Apr 30, 2015 18:57
what is the right way to do this?
Apr 30, 2015 18:57
I to make radio button and I want to put the radio button in the left of the text.
But If I try to do it
<label>
text
<input type="radio" name="semester" id="r2" value="r2">
</label>
this is not work well..
Apr 30, 2015 15:07
I didnt find in this pag
Apr 30, 2015 15:07
So I can I do this?
Apr 30, 2015 15:05
thanks
Apr 30, 2015 15:05
How can I set a title to select tag ?
I use the simplest http://www.w3schools.com/tags/tag_select.asp
I want that at the begining no the first value will select. that will be a title in the box..
Apr 30, 2015 14:12
i use bootstrap. How can I make all the dropdowns all the same size?
Apr 30, 2015 13:00
How can I change bootstrap carusle indicators from right to left? and not left to right?
Apr 25, 2015 06:12
Yes I fount only sandbox
Apr 25, 2015 06:03
Their is a way to block all the images in iframe?
I dont want that the browser will load it at all.
Thanks
 

CSS & SVG Shapes and Designs

Here we're all about making the most out of CSS, SVG, creating...
Apr 30, 2015 14:10
i use bootstrap. How can I make all the dropdowns all the same size?
Apr 30, 2015 11:33
I try to rotate an div with this
.rotate_div {
-webkit-transform: rotate(90deg);
-moz-transform: rotate(90deg);
-o-transform: rotate(90deg);
-ms-transform: rotate(90deg);
transform: rotate(90deg);

}
this is work but all the div go down.. how can I make it upper in the page?
 

PHP

Support group for those afflicted with PHP. Don't ask to ask, ...
Apr 30, 2015 11:13
I tried header("Content-Type: text/html;charset=Windows-1255");
but it dont work. I have to change it in the browser
Apr 30, 2015 11:07
thanks
Apr 30, 2015 11:07
How can I set the encode of php file to windows-1255?
Apr 30, 2015 10:59
I think that I succes to put the headers but it make all the http request to the proxy www.exmple.com and not for www.exmple.com/proxy.php
Apr 30, 2015 10:57
I use this script to make cross domain proxy. abdulqabiz.com/blog/archives/…

I want to add a header for cross domain origan what I need to add?
Thanks
Apr 30, 2015 10:50
@peeHaa I think that it dont work
Apr 30, 2015 10:44
I use this script to make cross domain proxy. http://www.abdulqabiz.com/blog/archives/2007/05/31/php-proxy-script-for-cross-domain-requests/

I want to add a header for cross domain origan what I need to add?
Thanks
Apr 29, 2015 20:26
5 dollars..
Apr 29, 2015 20:25
Hello, I have json file on the server that look like this . {{"name":"jow","count":"5"},{"name":"jey","count":"7"}....}
and I want to create a php file that if I go into www.exm.com/index.php?name:jow
that count will go +1. How can I do it the quick way?

Thanks!
Apr 25, 2015 07:49
@PeeHaa Thanks!!!!
Apr 25, 2015 07:42
So I have to add header in the php file?
Access-Control-Allow-Origin:
Apr 25, 2015 07:33
I try to do cross site ajax. I use this script http://www.abdulqabiz.com/blog/archives/2007/05/31/php-proxy-script-for-cross-domain-requests/
But I want to enable JSONP that I can do normal ajax from the site. How can I do this?
Or maybe their is another better script that do this?
Thanks
 

Java, Spring,JPA, PHP, jQuery & Javas

This room is for Java, ,Spring Framework, JPA, Javascript, jQu...
Apr 30, 2015 11:05
?
Apr 30, 2015 11:05
How can I set the encode of php file to windows-1255