faressoft

1

votes
0

answer
95

views

Spy on process.stdout and process.stdin in node.js

Is it possible to capture everything my app is outputting process.stdout and process.stderr and taking process.stdin into a file without affecting the output or input (without affecting or redirecting the output or input and keeping everything as is before adding this spy code).
faressoft
1

votes
0

answer
406

views

What is the internal buffer size for “fs.createReadStream”

What is the internal buffer size for 'fs.createReadStream' ? From the stream's documentation, it is mentioned that the fs.createReadStream uses an internal buffer that is accessible via readable._readableState.buffer From the stream's documentation, it is mentioned that the default highWaterMark is...
faressoft
1

votes
0

answer
42

views

Does a while loop is required inside readable event for Node.js streams?

Event: Readable The 'readable' event is emitted when there is data available to be read from the stream Method: Read The readable.read() method pulls some data out of the internal buffer and returns it About the size argument If the size argument is not specified, all of the data contained in the in...
faressoft
1

votes
2

answer
706

views
1

votes
3

answer
346

views

why $(window['iframeName'].document.body).html() doesn't work when i change .attr('src')

Why doesn't $(window['iframeName'].document.body).html() ...work when i change .attr('src') When i set the src attribute of iframe to any url when i creating the page, this code $(window['iframeName'].document.body).html() ...will work. But when i change the src attribute by .attr('src','www.googl...
faressoft
1

votes
1

answer
369

views

Are there any way to use custom font file in my site?

I can use @font-face but it does not work in all browsers. Are there any way to use custom font file in my site ?
faressoft
0

votes
0

answer
7

views

What is the best practice for introducing v2 of a RESTful API with unchanged endpoints?

In case I have a breaking change with one endpoint only and I need to introduce /v2/... of this endpoint. Should I keep the prefix /v1/ for all other unchanged endpoints ? Let's say that the current endpoints are: /v1/endpoint1 /v1/endpoint2 /v1/endpoint3 /v1/endpoint3 I need to make a breaking chan...
faressoft
1

votes
3

answer
153

views

How can I match all images without thumb image using regexp

How can I match all images without thumb image using regexp ? hi.gif thumb.gif hello.gif Result should be : hi.gif hello.gif I am using .+(gif|GIF|jpg|JPG) to match all images
faressoft
1

votes
4

answer
635

views

How to send the header to the client before execute the php scripts

How to send the header to the client before execute the php scripts ? My script take many time to finish and the client don't receive anything through this period.
faressoft
1

votes
2

answer
102

views

Can we use process.hrtime() as UUID in node.js?

Can we use process.hrtime() as universal unique id within the current process ? var uuid = parseInt(process.hrtime().join(''));
faressoft
1

votes
2

answer
0

views

How to check the current keyboard's language using vb6?

How to check the current keyboard's language using vb6 ? IF ('Is it the English language') Then Msgbox 'EN' End IF
faressoft
1

votes
3

answer
0

views

How to Get a html page content using Inet in vb6 and put the content in a TextBox?

How to Get a html page content using Inet in vb6 and put the content in a TextBox ?
faressoft
1

votes
5

answer
3.3k

views

How to execute a php script from another?

How to execute a php script from another ? I want to execute 3 php scripts from my php file without waiting for the 3 scripts to finish. In other words, the 3 php files need to be executed all at once (parallel) instead of one-by-one (sequentiell). The 3 scripts are in the same folder of my main php...
faressoft
1

votes
1

answer
114

views

Does JavaScript create a new execution context when executing a block?

Does JavaScript create a new execution context when executing a block to associate the its lexical environment with it.
faressoft
1

votes
1

answer
1.5k

views
18

votes
1

answer
22.7k

views

How to rearrange elements using jQuery?

How to rearrange elements using jQuery ? Orginal Code : 1 2 3 4 5 After Rearrange (put p3 in p2's place) 1 3 2 4 5
faressoft
2

votes
2

answer
590

views

how to change height of div to covered the text area (CSS)

Orginal CSS Code http://www.faressoft.org/BlueCristalTheme/postView.php Result should be
faressoft
19

votes
6

answer
78.9k

views

How to search text using php if ($text contains “World”)

How to search text using php? Something like: Except replacing if ($text contains 'World') { with a working condition.
faressoft
5

votes
3

answer
586

views

Is setTimeout a part of JavaScript it self or it is just an api that the browser provides?

Is setTimeout a part of JavaScript it self or it is just an api that the browser provides ? Is it a part of ES ?
faressoft
2

votes
3

answer
868

views

how to get style=“i want the css code” using regexp (javascript)

var text = '..hellohello...'; or var text = '..hellohello...'; result: array[0] = 'color:red;'; array[1] = 'color:blue; font-size:1em;';
faressoft
6

votes
4

answer
1.7k

views

Does @font-face work in all browsers?

Does @font-face work in all browsers ? How can i use @font-face?
faressoft
21

votes
2

answer
8.5k

views
21

votes
4

answer
39.8k

views

What does “DoEvents” do in vb6?

What does 'DoEvents' do in vb6 ? Why do I get the error message 'Out of stack space' ? What does it mean ?
faressoft
3

votes
5

answer
66

views

How to match any thing dosen't contain a specific word using RegExp

How to match any thing dosen't contain a specific word using RegExp Ex: Match any string doesn't contain 'aabbcc' bbbaaaassdd // Match this aabbaabbccaass // Reject this
faressoft
4

votes
1

answer
322

views

Why elements move when i hovered on anything (Only With IE6)

Take a look : http://www.youtube.com/watch?v=uSmqTdQK3Tk http://www.faressoft.org/BlueCristalTheme/
faressoft
4

votes
1

answer
5.7k

views

How can i Match arabic letters using regexp in php

How can i Match arabic letters with regexp in php My Code $name = $_GET('name'); if (arabic letters only and spaces) // using regexp
faressoft
2

votes
4

answer
446

views

Why do designers use sIFR if they can use @font-face?

Why do designers use sIFR if they can use @font-face ? What is wrong with @font-face ? @font-face { font-family: 'Hacen Tehran_eot'; src: url('Hacen Tehran.eot'); } @font-face { font-family: 'Hacen Tehran_ttf'; src: url('Hacen Tehran.ttf'); } p { font-family:'Hacen Tehran_eot', 'Hacen Tehran_ttf', s...
faressoft
11

votes
4

answer
42.1k

views

How to check if text1 contains text2 using vb6?

How to check if text1 contains text2 using vb6 ? Dim text1 as string Dim text2 as string text1 = 'hello world I am Anas' text2 = 'Anas' if (check if text2 is in text1) 'the result should be true or false
faressoft
5

votes
9

answer
15.6k

views
2

votes
1

answer
271

views

How to deep copy an object in javascript as object not as array

How to deep copy an object in javascript as object not as array var x = {attr1: 'value', attr2: 'value'}; var y = $.extend(true, [], x); var z = $.extend(true, [], x); alert($.type(x)); // object alert($.type(y)); // array [ why not object too ] alert($.type(z)); // array [ why not object too ]
faressoft
2

votes
4

answer
2.2k

views

How can I know if google spiders or another spiders visit my page?

How can I know if google spiders or another spiders visit my page ?
faressoft
4

votes
3

answer
17k

views
2

votes
2

answer
152

views

Why must the base class object be a reference to call the derived virtual function?

Why must the base class object be a reference to call the derived virtual function ? #include using namespace std; class A { public: virtual void print() { cout
faressoft
2

votes
2

answer
2.8k

views
2

votes
4

answer
87

views

How to combine select distinct and order by a non-selected attribute or any alternative way?

How to combine select distinct and order by a non-selected attribute or any alternative way? I have a table called message +----+------+-----------+-------------+ | id | body | sender_id | receiver_id | +----+------+-----------+-------------+ | 10 | ... | 1 | 2 | | 28 | ... |...
faressoft
2

votes
2

answer
446

views

How to push the footer to the bottom of the screen? [duplicate]

Possible Duplicates: How to align footer (div) to the bottom of the page? http://www.google.com/#q=bottom+footer+site:stackoverflow.com How to push the footer to the bottom of the page ? I tried many ways but nothing works :) My Html . . . . . . http://www.doturbo.com/test/404.html http://www.doturb...
faressoft
2

votes
3

answer
145

views

How to extract a text using regex?

What is the problem with my code var str = '[356] Hello World'; var patt = new RegExp('(?!\[)\d+(?
faressoft
6

votes
5

answer
21.3k

views

Can I create iphone app (IOS) using web's languages ( HTML - CSS - jQuery )?

Can I create iphone app (IOS) using web's languages ( HTML - CSS - jQuery ) ? How can I star that ?
faressoft
6

votes
2

answer
6.2k

views

What is difference between Command$ and Command in VB 6?

What is difference between Command$ and Command in VB 6? MsgBox Command$ MsgBox Command
faressoft
3

votes
4

answer
947

views

how to split <p><span>Hello</span></p> to <span>Hello</span> using javascript

how to split Hello to Hello using javascript var text = 'Hello'; remember:I don't know what contain , I don't know if has any attribute or not I found the answer ! var patt=/^(.*)$/i; var result=patt.exec(text); alert(result[1]); thank's ring0 & w3schools http://www.w3schools.com/jsref/jsref_obj_r...
faressoft

View additional