im trying to interface a Gramin usb GPS to get the coordinates in a visual basic project, but i dont have an idea how to accomplish this, anyone point me out in the right direction please?
Is there a way to access ruby variables in sass or do i have to make a custom function for it?
What im trying to do is to generate a stylesheet for each user so in the controller, i do something like:
def show
respond_to do |format|
format.css{render :partial => "styles"}
end
end
then in the view name _styles.haml i do this:
:sass
#header
:background url(user.banner.url)
is this possible at all?
hi all
Histogram equalization is simple with histeq function but when it comes local hist. eq., im supposed to use a neighbourhood and move it along the image matrix and do it locally at each iteration. I wonder how I can implement it with Matlab, is it possible if i use histeq for each neighbourhood or is there any other predefined m-function for this operation.
Hi,
Im trying to find a way to plot a truss in matlab, i can do it by using an adjacancy matrix and the gplot function, but its very long winded approach especially if there are a lot of nodes connected to one another. Is there a faster way to do this?
I'm new to matlab and the programming world any help would be really appreciated.
JC
i am submitting a from using jQuery ajax, and server is returning json response. but instead of the script, parsing the json result, the browser is prompting me to download the json response.
I have had this problem before, where i forgot to return false at the end of the event handler. But this time im clueless why this is happening.
anyone has experienced this problem..
thanks
Im building an automatic refreshing comment section for my website using jQuery .load. So I am using a javascript 'setTimeout' timer to check for new comments.
But after doing some stuff like changing comment pages or deleting (all using ajax), a few old timers keep running, even though I used clearTimeout before loading new ajax content.
Is there some way to clear ALL javascript timers when I load new ajax content?
Hi
this is probably something really simple but I cant see what!
Any images I have in a masterpage aint showing in child pages,
all i get is the box with the red cross in it.
Dont think Ive done anything different from usual and its not something thats
happened in other sites so im kinda scratchin my head with it.
Any ideas appreciated!
thanks
DD
im trying to embed flash in my program by placing flash.ocx in my app's folder without having to register it. i found DirectCom.dll and with this code i can show the right version of flash.
but how do i show it on the form and load the movie?
Private Declare Function GetInstanceOld Lib "DirectCom" Alias "GETINSTANCE" (FName As String, ClassName As String) As Object
Dim ShockwaveFlash1 As Object
Set ShockwaveFlash1 = GetInstanceEx(StrPtr(App.Path & "\" & "flash.ocx"), StrPtr("ShockwaveFlash"), True)
MsgBox ShockwaveFlash1.FlashVersion
I have a script im writing. Here is whats happening. There is a while loop. In the while loop is a variable which is constant to X. How do i make X change from line one, line two, etc for each cycle of the while loop and pull X from a .txt file. Everything is in root. Thanks
Hi all,
I was working on a application with Zend Framework and PDO_MYSQL Adapter.
But my client server doesnt support PDO_MYSQL
I changed the adapter to Mysqli and im getting
Invalid bind-variable name
error.
How to resolve it thanks in advance.
Regards
Nizam
So, Im a beginning C# programmer. I know basic syntax and simple things like if statements and loops(methods and classes too). I've only used console apps right now havent bothered with windows forms yet.
So any simple app ideas that introduce new things important for C# programming.
Also, NO tutorials. I want to make all by myself.
I'm a seasoned PHP programmer and I really like the way it works and find it very fun to work with (performance could be improved and some functions renamed, but nothing too serious).
However, I took a java seminar and now Im very interested in using GWT for upcomming projects, although I think the learning curve can be steep.
Should I really go through with this change (PHP JAVA)? Where to begin?
hi all,
i've been reinstalling my oracle and somehow when im trying to start them, it says that apphelp.dll is missing. when i lookup in c:/window/systems32 the apphelp.dll was there. i also download new from internet and try to replace them in case it crash but it said that i cannot delete the file coz it's still running.
my question is, if i was doing the right thing by replacing the apphelp.dll can solve my problem, how can i stop this apphelp.dll?
thanks
Hello,
I am a seasoned Delphi developer and would like to create something like seamless terminal services where an application is executed on a server but appears on the the desktop of the client.
To someone working on the server i don't want them to see the remote application running (except if they looked in at the list of running processes).
Im lost as to how to go about this, where to start, how to get an application to render to a surface other than the servers desktop.
Any suggestions would be most appreciated.
Hello,
I'm basically looking to simply print out each of the allowed values in a CCK field..
i know the allowed values are stored inside a text field within the table: 'content_node_field'.
the values are then stored within 'global_settings'
I'm looking to somehow print out each individual allowed value using a PHP loop.
however with all values being stored within one text field.. im finding it hard to print out each value individually.
Im going through the different options of creating a custom UINavigationBar and since my app is iOS 5+, i am using this code:
// Set the background image all UINavigationBars
[[UINavigationBar appearance] setBackgroundImage:NavigationPortraitBackground
forBarMetrics:UIBarMetricsDefault];
Now i want a custom image button on the very right side and am a bit lost. Should I go another way, subclass UINavigationBar and add a button to it or would there be an easier way?
int userHP = 100;
int enemyHP = rand() % ((userHP - 50) - (userHP - 75)) + 1;
okay, for some reason this doesnt seem to work right, im trying to get 50 -25 hp for enemys.
also id rather it be a percentage... like
int enemyHP = rand() % ((userHP / 50%) - (userHP / 75%)) + 1;
but id like to stick with integers and not mess with floats or doubles... can someone help me?
Hey guys, was wondering how do i use the NSXML parser.
so lets say given i have a simple xml file with elements like
1/1/1000
14:15:16
How could i use the NSXMLParser to parse the XML File(Its on locally btw, desktop), check through each element and store each of them in an array either to be displayed/used later?
I was looking through some documentation about it and i absolutely have no idea on how to use the parser
i know that there are 3 methods(or more ,please correct me if im wrong) that can be overridden
-..etc didStartElement
-..etc didEndElement
-..etc foundCharacters
i have the following code:
QueryPerformanceCounter(&timeStart);
winMain::render(); //do stuff
QueryPerformanceCounter(&timeEnd);
numCounts = ( timeEnd.QuadPart - timeStart.QuadPart);
All the 3 variables are declared as LARGE_INTEGER, the code should work since im following a book example, but i get:
error C2679: '=' binary no operator found which takes a right-hand operand of type LONGLONG
it might be '_LARGE_INTEGER &_LARGE_INTEGER::operator =(const _LARGE_INTEGER &)'
1 durante la ricerca di corrispondenza con l'elenco di argomenti '(LARGE_INTEGER, LONGLONG)'
ello all
im new to php and server scripting ( coming from the java/cpp background )
my question is , if i like to be able to build some kind of single tone cache that will hold me data in memory in all the web application
life , something that when i start the web server it will start main cache
that will server the web application not inside sessions static cache
like singletone map in c++/java that that leaves all the time
what are my options ?
hi implementing an wcf service that executes scripts (C# code) saved in a specific folder.
but i have a problem it crashes in all pcs except the pc that im developing in all are the same edition of win7 . How ican see why it's crashing ?
the WCf service is hosted in a windows service
I would like to include libQtGui.so.4 libQtNetwork.so.4 and libQtCore.so.4 in the same directory as where my app resides. How would I make Qt understand this? y purpose is to have a standalone app that uses shared libraries
update: im gonna try to first remove them with QT-=gui etc and seeif I can add mine back after
I want to make it so that anytime the db is queried for an sfGuardUserProfile it is autmoatically joined and hydrated with its related sfGuardUser.
If i was using propel i would normally override the doSelectStmt method of the sfGuardUserProfilePeer class to inspect the Criteria and modify it as necessary as well as modifying the hydrate method of the sfGuardUserProfile class. Im not sure how to go about doing this in Doctrine though.