I have a file with such list:
100
101
102
103
What I want to do is to replace every 0 into A, 1 into C, 2 into G, 3 into T.
Hence we hope to get
CAA
CAC
CAG
CAT
I hope this code explains the problem:
class Foo {
void a() { / *stuff */ }
}
class Bar extends Foo {
void a() { throw new Exception("This is not allowed for Bar"); }
class Baz {
void blah() {
// how to access Foo.a from here?
}
}
}
I know that I may be doing something wrong, because inheritance perhaps shouldn't be used in such way. But it's the easiest way in my situation. And, beside that, I'm just curious. Is it possible?
Maybe it's just too late for me to do this, but I'm trying to replace a character between 2 string with regex in PHP.
Example string:
other | text [tag]text|more text|and more[/tag] end | text
My goal is to replace | with <br/> between [tag] and [/tag].
Tried with this, seems it wasn't that easy though:
/<td>(\|)<td>/gsi
Searched a bit, but couldn't make out an answer with the stuff I found.
Hope you can help, thanks
Hy i have to test if a string begins with 00 or with +
Say i have the string 0090 or +41 if the string begins with 0090 return true, elseif string begins with +90 replace the + with 00 else return false
The last two digits can be from 0-9
How do i do that in php?
I hope i could explain my question clear?
Hi,
I want to write a program that can post data into WordPress using C# via POST method. I have no idea to do that. I hope someone help me some ideas. WordPress have any API support that ?
Thanks !
hello,
I know it's very basic question and hope not so important, but i want to know the answer, please don't suggest only refer links.
we all daily face <input> type tag and their attributes(type, class, id, value, name, size, maxlength, tabindex etc..), i just want to know that
is there any sequence list of attributes in tag or we can use any sequence?
is there any sequence then what it is?
I hope this isn't too difficult, obviously you can call HTML tags such as fieldset, label and legends and also textboxes. However how does one call an asp:textbox, i have tried just textbox, asp:textbox, input.textbox but nothing seems to work. This is something that should be really straight forward to do and I can't waste any more time figuring it out.
Thanks.
Hello everyone
I hope to to drag a text string and its hyperlink from an HTML page to a TEdit.
For example
displays aaa
actual string is aaa
I try to use drag&drop vcl, but founf that it only can catch aaa itself rather than the string and its hyper link.
Welcome any comment
Thanks
interdev
How to write byte by byte to socket in PHP?
For example how can I do something like:
socket_write($socket,$msg.14.56.255.11.7.89.152,strlen($msg)+7);
The pseudo code concatenated digits are actually bytes in dec. Hope you understand me.
Is it possible to create an ISO file of an DVD in C++ using IMAPI2 ?.How ?.Can you give me sample code.I checked in internet for 4 more days.But I couldn't find a sample.Hope that help me.Thanks in advance
I was wondering if its possible to have some kind of SQL error reporting that sends me an email that includes the error and the website that it's been found on.
I'd like to take this precaution because of hosting multiple drupal systems.
There is a PHP error variant:
http://drupal.org/project/php_errors
Hope you guys know a way to become aware of any possible SQL errors by not loggin in to check the error report.
Hi guys,
Just wondering if you could help wanting to produce an activity stream in Java, the idea was to have a JLabel and text area followed by a divider be displayed on a screen and then repeated X amount of times according to what data was in a database.
What I was wondering is how could I possibly repeat the placing the jlabel, text area, and diveder on the screen above the last rendered objects on the fly and all displayed correctly no matter the size of the text area of each set of object sort of like the image below.
Hope I made it clear as I could thanks
I just wonder how array_diff() works.And obviously it couldn't work as follows
function array_diff($arraya, $arrayb)
{
$diffs = array();
foreach ($arraya as $keya => $valuea)
{
foreach ($arrayb as $valueb)
{
if ($valuea == $valueb)
{
break;
}
$diffs[$keya]=$valuea;
}
}
return $diffs;
} //couldn't be worse than this
Hope someone can show me some better solution.
Thanks.
I have two tables in my database.
Comments
CommentsID MembersID CommentsBy CommentsBy CommentsDesc CommentsActive CommentsDateEntered NewsI
News
NewsID MembersID CategoriesID ImagesID ImagesID NewsTitle NewsTitle NewsShortDesc NewsDesc NewsActive
I need to take top 5 commented news (active comments and active news) and list their titles using one query. I hope I made sense. But I am really confused here. Any suggestion appreciated.
Hi,
First of all, i hope i post in the right section. I came across this best media convertor open source software. It works fine and the most convenience thing about this software is the context menu however the context menu isn't working on Windows 7 64bit.
Since i have no knowledge with c++, Can you one here generously help me compile it into 64bit version.
Below are the software I am talking about
Homepage:
htp://www.oxelon.com/media_converter.html
Source:
http://sourceforge.net/projects/oxelonmediaconv/files/oxelonmediaconv/oxelon_source_code/omc_src.zip/download
we have a .net framework application with a vc dll and a vc ocx, and now if we only import one dll ,it is ok, but when we import both, it will pop a messagebox saying: Debug Assertion Failed!
and i studied the child module of our application that import the vc dll, i found after the framework import vc ocx and initialize , then the function LoadLibrary in our module importing the vc dll would return 0, that means memory limited or call improperly, i use getlasterror() the error code is 1114.
so it is very frustrated ,hope someone can help me.
Hi, i've a problem for a table update. follow table structure:
Table1
tableid
...
...
productID_1
productID_2
productID_3
Table2
productID
Total
I've to totalize each product in table2.
For example:
SELECT COUNT(*) as tot, ProductID_1 FROM Table1 GROUP Table1
then the UPDATE table2 SET total =..??? (how can i do) WHERE productID_1 = ....
Hope you can help me.
Thank you
Hello everyone
I hope to move UITableView tiems fromn left to right and reload a new table array.
I know it can done by navigationcontroller.
But if there is a way without navigationcontroller.
Thanks
intterdev
How can I make a link that justs adds or changes 1 GET var while maintaining all others?
I have a page that is created using different GET vars.
So it will be like mypage.php?color=red&size=7&brand=some%20brand
So I want to have a link that sets it to page=2 or size=8. Whats the easiest way to have a link do that without reseting all the other vars?
I hope that makes sense, let me know if I need to further explain anything
I hope the image above can explain what I need. :)
Problem 1: Get the date where it is the first value in the row
Problem 2: Get the date where the value is 100
I would also attach the actual excel file,
but I am limited to posting only 1 link.
Hello everyone
I hope to use the MAC OS's icons at
http://oleb.net/wordpress/wp-content/media/apple-symbols-font-glyphs-table.png
how can I access these icons, export them from MAC system to png files or dynamically access them in cocoa codes ?
Welcome any commnent.
Thank
interdev
Hi everyone:
I want to turn off ASLR on my own PC. But each time I type "sudo echo 0 /proc/sys/kernel/randomize_va_space", the system shows that "Permission denied". How can I make it work? By the way, my OS kernel is 2.6.30.
Hope anyone can give me a hand.
Regards.
Does anyone can tell me where to find the resource just like the following link ?
(But I hope this is for C++ !!)
https://code.google.com/p/googletv-android-samples/source/browse/#git%2FAnymoteLibrary%2Fsrc%2Fcom%2Fexample%2Fgoogle%2Ftv%2Fanymotelibrary%2Fclient
There is a dynamic library :
http://code.google.com/p/google-tv-chrome-extensions/source/browse/AnymoteExample/?r=2048c59701bab6386f7ea8011e4ca342fb1f133a#AnymoteExample%2Fplugins%2Fgtvremote_AnymoteExample.plugin%2FContents%2FMacOS
Unfortunately, the arch of this library is i386.
I want to build this project for the other platform. Orz
Thanks.