Why are you working where you are right now? Specifically, how did you go from offer to acceptance? I have found that it is pretty difficult to figure out how to analyze a new company and I'm looking for some advice. My current choice was heavily influenced by a former mentor of mine. Yet, I'll probably need to be my own man soon enough...
So, what did it for you?
Hello
I'm creating an dynamic image, which creates headers on my page using PHPs GD-library. The problem is, that I need a line-wrapping system. It's not a problem itself, but first I need to get the width (in pixels) of current character.
I'm pretty curious about this, is there any way? Or do I need to manually specify width of every abc?
Martti Laine
Hi,
I have a very basic doubt regarding cloud computing that is catching up pretty fast these days. To my understanding, cloud computing is a paradigm in which companies put up their data and applications on somebody else's machines aka 'The Cloud'. I want to know just how secure is it to put up my data on some third party machines, especially if my data contains private details. In particular, how can an enterprise trust the cloud computing service providers in this data privacy aspect?
Thanks,
rakesh.
Hey,
Does a direct way to do this exists?
if element in aList:
#get the element from the list
I'm thinking something like this:
aList = [ ([1,2,3],4) , ([5,6,7],8) ]
element = [5,6,7]
if element in aList
#print the 8
i'm trying to do something pretty simple:
line = "name : bob"
k, v = line.lower().split(':')
k = k.strip()
v = v.strip()
is there a way to combine this into one line somehow? i found myself writing this over and over again when making parsers, and sometimes this involves way more than just two variables.
i know i can use regexp, but this is simple enough to not really have to require it...
I have a Drupal module, that I want to present in a clean page - with no headers, menus, footer ect. I think all I need is a version of page.tpl.php that contains HTML page headers and <?php print $content ?> How can I point my module to such a page?
Are there any free vector icons (as in, suitable for use in an open source project using WPF) for basic desktop program toolbar buttons like Back, Forward, Print, Save etc.?
I noticed most 3d voxel models are actually pretty low resolution, but then are rendered all smoothed out with some sort of interpolation.
Given its ray traced, what is the algorithm used to render it smoothly? Could anybody suggest a book on the topic?
By default, when you print a web page, the page title and and URL are printed at the top of the page, and likewise the date and time are printed at the bottom.
It is possible to remove this additional as you are printing through the PAGE SETUP menu (under FILE in Internet Exp)
Does anyone know of a way of doing this via CSS or javascript?
I am currently watching the 80 minute ASP.NET MVC introduction. Automatically generating views from a model is pretty neat, but it seems to me that that the automatically generated views could be much better. For a start, instead of inputing dates with text boxes, there could be a date control. Additionally, number inputs could be verified client side. There are probably other improvements that could be made as well. Is it possible to automatically generate better views?
How in Makefile export variable first then make another variable's expansion?
somevar := apple
export somevar
update = $(shell perl -e 'print "$$ENV{somevar}"')
all:
@echo $(update)
For some reason the expansion takes place first, then export. As a result the output is empty.
I just "finished" expanding my Palindrome Tester, made in C#. To allow for phrases I added a simple regex match for all non-alphanumeric characters. At the end of the program it states " is(n't) a palindrome." But now with the regex it prints the no spaces/punctuation version of it.
I would like to be able to print the original user input. How do I do that?
Here is my program: http://gist.github.com/384565
Hi All
I have a MainMenu in my app and I would like to have little icons relevant to the Item in each menu. But the MainMenu control does not support this.
I would use the MenuStrip control, though that is a pretty ugly option in my opinion.
Does anybody have any suggestions? Are there any free/open source alt's out there, or would it be easy/possible to implement that feature into the existing MainMenu control?
Thanks
What command can I use to print out the commit id of HEAD?
This is what I'm doing by hand:
$ cat .git/HEAD
ref: refs/heads/v3.3
$ cat .git/refs/heads/v3.3
6050732e725c68b83c35c873ff8808dff1c406e1
But I need a script that can reliably pipe the output of some command to a text file such that the text file contains exactly the commit id of HEAD (nothing more or less, and not just a ref). Can anyone help?
Just was wondering if all the web development languages such as PHP, python, asp.net had pretty much the same functions. And choosing which language to use is just a matter of preference
Hi,
Im trying to load a remote image into a pdf generated by tcpdf however I can't seem to get it to work?
The rest of the pdf loads fine and it looks like to trying to retrieve the image however it just does print to the page?
The code I am using is:
$pdf->Image("http://media.domain.com/logo.jpg", 0, 0, 100, 150, 'JPEG', '', 'T', true, 72,'','','','','','','');
Any help on this would be a massive help,
Thanks,
$(function(){
$.ajax({
url:'http://api.twitter.com/1/statuses/user_timeline.json?screen_name=user_name&callback=?',
//dataType:'json',
success:function(data){$('body').append('the data is' +data);}
});
});
the above code with dataType line prints out [objects] while with the dataType line commented it prints out nothing ...how can i get it to print the json output from the server rather then the javascript object?
I want to "stringify" a number and keep leading zeros. Unlike this question:
http://stackoverflow.com/questions/885401/print-trailing-zeros-in-a-qstring
I also need this in hex. By code now uses this, which is not enough:
QString::number(myNumber,16).toUpper()
I am trying to deploy Pinax bundle of Django framework + and selected applications.
Here is my apache config:
WSGIDaemonProcess ptest python-path=/home/pinax-env/lib/python2.5/site-packages
WSGIProcessGroup ptest
WSGIScriptAlias / /home/ptest/deploy/pinax.wsgi
When I restart apache I get the following error:
Invalid option to WSGI daemon process definition
Any ideas what is wrong? I am pretty sure my virtual environment at /home/pinax-env/ works.
Is any setup required for daemon process outside of apache config?
Whenever I try to open a project (csproj) that's downloaded from the internet, most of the times, I get the "The project type is not supported by this installation"
It appears that my Visual Studio installation is not corrupted (I can pretty much do everything with it other than open these csproj files)
What may be causing this?
If you go to "Control Panel\Hardware and Sound\Devices and Printers" in Windows 7 (and i assume vista) you will see some nice pretty pictures of printers.
See image below
Is it possible to get access to these images through .net?
For example to display them on a windows form?
What if I want to do something with my formset other than immediately saving it?
How can I do this?
for form in vehicles_formset.forms:
listing.id = None
listing.vehicle_year = form.cleaned_data['year']
listing.vehicle_make = form.cleaned_data['make']
listing.vehicle_model = form.cleaned_data['model']
listing.vin = form.cleaned_data['vin']
listing.vehicle_runs = form.cleaned_data['runs']
listing.vehicle_convertible = form.cleaned_data['convertible']
listing.vehicle_modified = form.cleaned_data['modified']
listing.save()
(Thus creating multiple listings) Apparently cleaned_data does not exist. There's a bunch of stuff in the data dict like form-0-year but it's pretty useless to me like that.
I have a menu set up that has about 20 menu items in a circle. When you mouse over each item, a title comes up. The only problem is that because of the depth order, it's hidden behind the other menu items. Is there a way to bring this item to the front when moused over? I'm pretty actionscript illiterate so any help would be awesome.
Im really annoyed with Internet Explorer.I designed a site using css. The really annoying part is the cross browser issues..
The site works fine in all versions of FireFox and Chrome but when it comes to internet explorer.
IE5 - The complete site is messed up with the alignments
IE6 - Major Alignment problems.
IE7 and 8 Works pretty good.
Can someone please suggest some good methods to get rid of the cross browser issues with IE??