- Upvotes Received
- 2
- Posts with Upvotes
- 2
- Upvoting Members
- 2
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
80 Posted Topics
Hi, Recently I started to encounter a new issue with my 3 year old PC. It sometimes turns off randomly, then turns back on after a few seconds. It can happen anytime, even when OS has not booted yet. Sometimes it turns off and on repeatedly, like struggling to keep … | |
I noticed that there is about 15 second delay every time I start a new process. It happens while opening new programs and Chrome tabs as well (since each of them is a new process). This does not happen all the time, it starts randomly and restarting the computer always … | |
Hello, I've encountered this problem with my PC recently. It randomly crashes from time to time (about 0 - 3 times a day). The crash can appear as following - the BSOD, a simple blank black screen, or a black screen that says "a disk read error occurred press ctrl+alt+del … | |
Hi, I have this problem - when I turn on my PC, and also later at random, I get an error message about not being able to connect to the DNS server. It sometimes helps if i type ipconfig /flushdns, however just temporarily. I am using my ISP's DNS server. … | |
Hi, I'm running Windows 7 32 bit version and I've started to encounter this problem recently. After some time of using the computer (random mostly), several applications like Chrome and Windows bases applications (cmd, task manager, windows explorer, etc) starts to run really slow. For example, if I open a … | |
Hello, Is it possible to share cakePHP sessions (stored in the database) across subdomains? This thing - ini_set("session.cookie_domain", ".mydomain.com"); seems not to be working in this case. Thanks ![]() | |
Hi, I know it's possible to add actions for elements that are not in DOM yet, like $(element).live('event',function() { //code here }); Is there any way to execute the code without the event, or give it an event like 'exists' ? Like, when object is added, the function executes automatically, … | |
So, i enabled mod expires to my web page. Here's the code i used: <IfModule mod_expires.c> ExpiresDefault "access plus 2 months" ExpiresByType image/x-icon "access plus 1 month" ExpiresByType image/png "access plus 1 month" ExpiresByType image/jpg "access plus 1 month" ExpiresByType image/gif "access plus 1 month" ExpiresByType image/jpeg "access plus 1 … | |
Hi, I'm currently using this expression to validate at least 2 words, containing letters, "-" and "'". `/^((\b[a-zA-Z-']{2,40}\b)\s*){2,}$/` It works fine until someone enters unicode special characters, like from different languages. I've checked the \p{L} option, but that does not work or I am missing just something. Any help would … | |
Hi, I have a web app which is in the Google marketplace. When user adds the app, it creates account for that user. I also want to import all the other accounts from that domain and as I understand it can be done by accessing the Provisioning API. How do … | |
Hello, It has come to my needs to gather more information about load balancing process and stuff related. So far it's clear that users are distributed to multiple servers depending un their current load and they all run the same app. My question is - how these multiple servers share … ![]() | |
Hi, I have this following code: $('#content-load-target').load(location,function(response, status, xhr) { if (xhr.status != 200) { location.href = '/'; } else { //do something else } }); The response can be either an ajax page or be redirected (if the session has timed out). In case of redirect I want to … | |
Hi, I know it's possible to open a new window with javascript and then target the original one with "opener.". Is it possible to open in a new tab instead and still target the opener? Thanks ![]() | |
Hello, I have a website with an average hourly homepage visit of ~150, however, in the last day it suddenly jumped up to over 1000 visits per hour. Only the homepage is visited. How to determine what is causing the activity and should I be concerned? Thanks | |
Hi, I have an array like this: Array ( [23] => 0 [12] => Array ( [2] => Array ( [66] => 0 [67] => 0 [68] => Array ( [14] => 0 [15] => 0 ) ) [3] => 0 [4] => Array ( [56] => 0 [77] => … | |
Hi, I have the following HTML: <ul> <li> <div>Something</div> <ul> <li> <div>Something</div> <ul> <li> <div>Something</div> //more lists can come </li> <li> <div>Something</div> </li> </ul> </li> <li> <div>Something</div> </li> </ul> </li> <li> <div>Something</div> </li> </ul> The list can continue endlessly and the count of sublist is unknown (user defined). Is there … ![]() | |
Hello, I have a lot of files uploaded with wp-admin in uploads folder. I don't have access to FTP, however, I need to download those files stored in uploads directory. Is there a way of doing it? Like - a wp plugin or something. Thanks | |
Hi, I have the following JS: var event = window.event; if (event.keyCode == 38) { //do something } However, I keep getting the following error - TypeError: event is undefined This happens only on Firefox, for all other browsers this works fine. Thanks | |
Hi, I want to set up pagination in CakePHP 2.0. The base page url is routed to be like this - '/mypage'.However, the paginator sets links to this - '/controller/mypage/page:2'. How do I configure this so the controller name isn't added in the beginning? I prefer URLs like these - … | |
Hi, I have this situation - an user clicks a link in my site. That link sets a session variable and then redirect the user to another page. That another page then redirects the user back to the previous page, but the previously set session variable is gone. How to … ![]() | |
Hi, I have a js script: [CODE]var inputCounter = 0; function addInput(divName){ var newdiv = document.createElement('div'); newdiv.innerHTML = "somefield1: " + "<input type='text' style='width: 250px;' name='f1[]'> somefield2: " + "<input type='text' style='width: 200px;' name='f2[]'>"; document.getElementById(divName).appendChild(newdiv); inputCounter++; }[/CODE] and the data was received by the php script [CODE] $_SESSION["f1"] = $_POST["f1"]; … | |
Hi, I have an array with keys like this: "9.345" "16.765" "8.123" "0" "0.123" How do i sorth them, so the keys looks like this (numerically, descending order): "16.765" "9.345" "8.123" "0.123" "0" Thanks ![]() | |
Hi, I have this problem - some of the websites load really slowly, and when they finish loading, there is no any stylesheet or design, just plain text and links. Most of the websites are fine though. What could cause these few websites to load so slowly and incomplete? On … | |
Hi, I have a site which is listed in another site. I want to check which users comes from that other site by clicking a link, however, that other site seems to be hiding referrer as the HTTP_REFERER appears to be empty. Is there any other way of detectig users … | |
Hi, I have a problem with strtotime displaying months. See the code: print(date('M-d')); //prints May-31 print(date('M-d',strtotime('-1 month'))); //prints May-01 Since i need it to get the previous month, why is the function ignoring the fact that there are 31 days in May? Thanks | |
Hi, I have a HTML structure like this: <div> <div id="a"></div> <div id="b"></div> <div id="c"></div> </div> I know the ID of an element (let's say it's #b), and i need to know which index it has in the parent div. In this case that would be 2. How do i … | |
Hi, I have this following HTML: ... <td> <div style="position: relative; top:0;"></div> <div style="position: relative; top:20px;"></div> <div style="position: relative; top:40px;"></div> </td> ... In this case the top value is counted from each div. I need it so that the top value is counted from <td> top, not the previous div … | |
Hi, I have an array with ID values. Let's say it looks like this - $a = array(23,4,56,21,9); What i need is to select rows with those ID's, but in exact same order as in the array. What would be the best way to do that? If i use MySQL … | |
Hi, I have this expression in my code: if (($a % 0.005) != 0) { ... } Tehnically i'm just checking modulus. However, i get division by zero warning all the time. Why that happens with this expression? The value 0.005 is not zero. The variable $a can get all … | |
Hi, I have a list of elements in my page within a <div> tag. The list looks fine in other browsers, however, in Chrome it is slightly misplaced on load. All elements falls back into correct place if i mouseover them. Also, the misplacement seems to be random, sometimes it's … | |
Hi, There suddenly appeared about 2996 exe files in my windows 7 startup folder. The names seemed random generated, like 0A1RT4.exe.exe or somethign like that. They could be easily removed from safe mode boot. What kind of virus is this? Thanks | |
Hi, I have a lot of files i need to read with PHP script. All of them has the ANSI encoding type and, unfortunately, they contain special characters. Since my page is in UTF8, i need to convert the file content to UTF8 on the fly while reading them. What's … ![]() | |
Hi, I have a form with input type="file". On every browser it works fine, however on IE8 and older it just does not upload anything. If i leave the form empty, all other form data is being passed successfully, but if i select the file, there seems no data passed … | |
Hi, I want to parse all <iframe> tags with DOMDocument: $videos = $doc->getElementsByTagName('iframe'); echo $videos->item(0)->nodeValue; Unfortunately, thin only gets me the value between the opening and closing tag. How to display a full tag with all attrbutes and values with this method? Thanks | |
Hi, I have a PHP acript that generates csv files and then automatically forces downloading them. Before i have added this line - header("Content-type: application/csv; charset=UTF-8");. When opening file in editors like Notepad, every character shows fine, but when importing the csv into applications like MS Excel, it does not … | |
Hi, I ran a speed test for my site with Google Page Speed (and some other tools as well). The Google tool shows that i need to leverage browser caching and the expiration date for cacheable files in my site is currently set to 24h. I did a little bit … | |
Hi, I have 2 models in my cakePHP app - let's say ParentModel and ChildModel. They have hasMany association. The parent db table contains about 4000 records, but the child table about 90000 records. I want to delete related datas from tables by using this: [CODE]$this->ParentModel->deleteAll(array('ParentMode.somefield' => 'x'));[/CODE] Works well … | |
Hi, I have data like this - [CODE] Someting Object ( [_values:protected] => Array ( [key1] => something, [key2] => something else, etc... [/CODE] How do i access that _values:protected part? I tried $name->_values:protected['key1'], but it gives me an error. Thanks ![]() | |
Hi, I'd like to know if there is possible to check in the CakePHP model class if a certain field has validated in the process. An example: 2 fields - field_one and field_two. field_one must not be empty, but field_two must contain a value that matches a regular expression pattern. … | |
Re: Basically you need an SSL sertificate. You can generate your own or buy one. [url]http://slacksite.com/apache/certificate.php[/url] | |
Re: You can use them from URL as $_GET['kPoln'] $_GET['kWsch'] etc.. ![]() | |
Hi, I need to read a profile's wall page and it's posts from facebook. I found this link in the graph page: [url]https://graph.facebook.com/profile/feed?access_token=xxx[/url] It returns just a list of some comments or something. I cannot even find them on the page. How do i properly use it to get the … | |
Hi, I have a page that loads for some time and it would be nice to show some progress. I want it to show messages like "loading..." and "x amount of something loaded so far" during the process, however, it only appears in the end. I have disabled the output … ![]() | |
Hi, So, let's say i have a string "--_some_String_123". What is the correct regular expression pattern to remove those "-" and "_" from the beginning of the string? They only need to be removed from the beginning, so after removal the string looks like this - "some_String_123". There can be … | |
Re: [CODE] SELECT * FROM yourtable ORDER BY date DESC GROUP BY name [/CODE] try this | |
Re: You want to set a menu section as active if a certain page is open? Well, you do know that you need to wrap that jquery part with <script></script> tags, right? Also, check that route var output to see if it's correct. | |
Hi, A little stuck here - i have a file containing info like this: Name: Some Name Email: [email]some@email.com[/email] I'm using file_get_contents to read the file and then i want to get the name. I have it like [CODE]preg_match('/Name:(.*?) Email:/',$filecont,$name);[/CODE] however it returns nothing. Maybe anyone has an idea how … | |
Hi, I'd like some help on this - i have a textarea field, where the user can enter text. The line breaks (\n\r) has to act as real line breaks. So, i've successfully replaced the breaks with the <br /> tag, however, here's the problem - when the user edits … ![]() | |
Hi, I'm using the htc file for IE and round corners. Everything works nice, however, there is a strange issue - the behaviour misplaces the background of the element. The content of the element stays in place, but the background along with the rounded corners appears somewhere else - like … | |
Re: Check what values did the include insert. You can do it with any normal browser (like firebug plugin for firefox). Also could be that you have opened the PHP part with <? instead of <?php |
The End.