In C++ it's recommended to have const-correctness everywhere. But since in .Net world, the string content cannot be changed, (new string will be created), do I still write String^ const?
One of the sites i visit has an annoying habit of naming all their files showimage.php. When i save the image or file it saves as a .php so i cannot open the file. The worse part is, there is a &ext=zip&more=blah in the url.
Is it possible to use greasemonkey to rename the file ext so it isnt php? (maybe injecting a content disposition header?)
I need to make article that cannot be edited, but it can be saved as a new version and only the newest version is shown to users. How should I implement this kind of database design?
hi,
I did several websites with Drupal, and now the core is updated and I cannot come back to my customers to update previous installation. I was wondering how risky is to not update drupal core to the last version and how web developers should deal with websites management.
ps. My customers do not have any computer skills.
thanks
stored_name_t scan_construct_struct(void)
{ stored_name_t stn; int i=0;
scanf("%c %lf %lf",&(stn.name)
,&(stn.(the_lower_limit))
,&(stn.(the_upper_limit)));
for(i=0; (scanf("%s", stn.(numbers[i])))!=0; ++i)
;
return stn;
}
dene.c:37: error: expected identifier before ‘(’ token
and
there is an one more error but I cannot see
Hi,
Just wondering, if I install a Windows service from 64-bit process (service code embedded in the process), is the service itself Win32 service or can services be 64-bit as well?
I need to know this since my service would inject code to Win32-process, so due to WOW64 restrictions the service-process itself cannot be 64-bit.
Best regards,
nhaa123
Maybe this cannot be done, but please help or suggest how this can be achieved without writing something to disk.
Lets suppose there are two string values that I want to share between two independent applications.
You are welcome to provide code sample in any programming language.
The browser renders my changes properly for that function, but I cannot see the source when I use the
"view source" menu item. How can I see the changed source HTML?
I converted all mysql tables to utf-8_unicode and started using mysql_set_charset('utf8'); function.
But after this, some characters like S, Ö started looking like Ö , Åž
How can i replace this kinda letters in mysql with UTF-8 format ?
shortly, can i find a list of all these kinda characters to replace ?
EDIT:
He is explaining about this issue in this article actually but i cannot understand it properly acutally lol
http://www.oreillynet.com/onlamp/blog/2006/01/turning_mysql_data_in_latin1_t.html
After reading a question on @private I understand how that works. However, since all variables default to @protected and you cannot really access a variable without defining an accessor, what exactly does @public do? When would you use it?
Hello,
I'm having a hard time trying to replace this weird right single quote character. I'm using str_replace like this:
str_replace("’", '\u1234', $string);
It looks like I cannot figure out what character the quote really is. Even when I copy paste it directly from PHPMyAdmin it still doesn't work. Do I have to escape it somehow?
I would like to design a progress bar, without using an image (eg animated gif...).
Can this be done with just html css and jquery?
trying to be creative here :)
Update:
the progress percentage cannot be determined, so it has to be a loop
Hi All
I have an array:
String[] ay = {
"blah",
"blah number 2"
"etc" };
... But now I want to add to this array at a later time, but I see no option to do so. How can this be done? I keep getting a message saying that the String cannot be converted to String[].
Thank you
defined variable:
LinkedList list1=new LinkedList();
Object get() in list1 obtains a node of list1
Object remove() in list1 deletes a node of list1
count() is length of list1
for(int i=1;i<list1.count();i++){
if(list1.get(i).startsWith('"',0)) //Error here
list1.remove(i);
}
Error: cannot find symbol
symbol: method charAt(int)
location: class Object
how to fix this problem?
I would like to delete the node in list1 which starts with (").
I have seen some form of this some time ago, but I cannot recall what it was called, and therefore have no clue on how to implement something like this:
SomeMoneyFormat f = "€ 5,00";
Which calls some overload function that can parse the string into a SomeMoneyFormat object.
I just wanted to develop a translation app in a Django projects which enables registered users with certain permissions to translate every single message it appears in latest version.
My question is, what character set should I use for database tables in this translation app? Looks like some european language characters cannot be stored in UTF-8?
Hello,
I'm having a hard time trying to replace this weird right single quote character. I'm using str_replace like this:
str_replace("’", '\u1234', $string);
It looks like I cannot figure out what character the quote really is. Even when I copy paste it directly from PHPMyAdmin it still doesn't work. Do I have to escape it somehow?
I created an Area in my application named Admin. It's pretty basic, looks like this:
Areas
Admin
Controllers
CompaniesController.cs
Models
Views
Companies
Index.aspx
AdminAreaRegistration.cs
When I try to view my Index page by going to /Admin/Companies, I get a "The resource cannot be found" message. I find it weird that I don't get any sort of error message.
I'm not sure what's going on here, has anyone come across this?
What do I need to put in a php code so that the user cannot access it even if he specified the correct url for the page they are trying to access. And redirect it to the logon page. I'm really having difficulty in this matter, everytime I click back button on the browser the user can still access the page
MessageBox.Show((some_string.Length).ToString);
i am getting two errors for this:
Error 1 The best overloaded method match for 'System.Windows.Forms.MessageBox.Show(string)'
Error 2 Argument '1': cannot convert from 'method group' to 'string'
can someone tell me how to do this correctly?
We have been having problems with ghost updates in our DB (SQL Server 2005) fields are changeing and we cannot find the routine that is updating. Is there a way using an update trigger (Or any other way) to tell what caused the update?
I cannot find how I'm supposed to handle file opening in my program. For example if the user does Open With ... myprogram.exe then how do I handle that and do something with it. which WM_Message is sent?
Thanks
I can't seem to get my <div> height in IE (7) to be shorter than 20px:
<div style="background: green; height: 1px;">
</div>
Using the above code (both with and without html and body tags) the height of the div cannot seem to drop below a certain value (I think it is 20px). Any ideas?
hi,
I'm having this issue on my website in IE (6,7,8):
‘nodeType’ is null or not an object
The error refers to "f.nodeType" property. Basically f is undefined, so the issue is before, but I cannot fix it.
Could you give me some help ? www.donatellabernardi.ch/drupal
Thanks