built-in

Excel built-in dialogs

Does anybody know how to call the import data built-in dialog excel from a macro (vba). I've tried Application.Dialogs.Item(...).Show but I can´t find the right dialog. Thanks in advance. ...

cd doesn't work when redirecting output?

Here's a puzzler: can anyone explain why cd fails when the output is redirected to a pipe? E.g.: james@machine:~$ cd /tmp # fine, no problem james@machine:~$ cd /tmp | grep 'foo' # doesn't work james@machine:~$ cd /tmp | tee -a output.log # doesn't work james@machine:~$ cd /tmp >out.log ...

Reuse built-in WPF styles

How can you access WPF's built-in styles/templates? For example I'm trying to move the NavigationWindow's chrome to the bottom of the window. I've seen Microsoft's NavigationWindow template example but it is quite verbose and doesn't reuse the default navigation chrome. I've also tried looking at the tree inside Snoop. All the chrome ...

why __builtins__ both module and dict

I am using built-in module to insert few instances , so they can be accessed globally for debugging purpose, but problem with __builtins__ module is that it is a module in main script and is a dict in modules, but as my script depending on cases can be main script or module, I have to do this if isinstance(__builtins__, dict): __bui...

Where can I find a Python lib documentation??!!

Hello again. Am looking for a full and official Python standard lib reference. I can't seem to find proper documentation for Python's built-in library anywhere, similar to javadocs. Perhaps I'm not looking hard enough. Thanks ...

How to disable a built-in command in vim

In vim, when I hit :wq it is almost always an accident that occurred when attempting to input :w. I would like to disable :wq. The closest I found is cmap, but it has some odd behavior. If I do something like :cmap wq w I can no longer even input :wq; it just remaps the keystroke sequence wq to w in command mode. Now I cannot, for...

.NET Framework at Windows 7

What version of .NET Framework is built-in for Windows 7? ...

Default list of Django built-in middleware

Django comes with a list of built-in middleware, but if one wants to use all (or most) of them, he has to work through tons of docs in order to get the right sorting in the settings.py file. Is there an optimal default order of all built-in Django 1.1 middleware classes? I.e., something to copy'n'paste into settings.py: MIDDLEWARE_CLAS...

What why is 'dir()' named 'dir' in python?

In Python there is a built-in function called dir. This is used to get a list of all the attributes for an object. I understand what it does, but I am confused about why it is called dir. How is this name related to getting the attributes from an object? ...

How to access a builtin module in Python when there is a local module with the same name?

How can a built-in module (say math) be accessed when a file prog.py is placed in the same directory as a local module with the same name (math.py)? I'm asking this question because I would like to create a package uncertainties that one can use as import uncertainties from uncertainties.math import * Thus, there is a local math modu...

Can't call all() built-in function in IronPython

I'm using the same test code in cPython and IronPython, in cPython it works but I'm getting "name all is not defined" in IronPython in asp.net . I wonder if I have to import some module to use it in IronPython or it's just not available? lista = ['a','b'] listados = ['a','b','c'] aca = all(value in listados for value in lista) ...

Is it OK to raise a built-in exception, but with a different message, in Python?

Is it OK to raise a built-in exception with a custom text? or to raise a built-in warning also with custom text? The documentation reads: exception ValueError: Raised when a built-in operation or function receives an argument (…) Is it implied that only built-in operations should raise a ValueError exception? In practice, I unde...

Actionscript one way encryption

Hi all. Is there a built in method in Actionscript 3 that allows you to create a hash of a string. Like MD5 and SHA1. Thanks. ...

What does "< <(cmd args)" mean in the shell?

When looping recursively through folders with files containing spaces the shell script I use is of this form, copied from the internet: while IFS= read -r -d $'\0' file; do dosomethingwith "$file" # do something with each file done < <(find /bar -name *foo* -print0) I think I understand the IFS bit, but I don't un...

What is the simplest way to download file in PHP

Hi all, I need to download an image from some URL to my server. However, my server's config disallowed me to do it this way: getimagesize( $file ); Because, it generate error: Warning: getimagesize() [function.getimagesize]: URL file-access is disabled in the server configuration in somefile.php on line 10 So, is there another wa...

Adding an existing site column to a custom list

I think I'm going mad - this seemed like an easy thing to do but I can't find any info on it at all. I have created a Custom List and added 4 columns to it. Created By and Modified By are already in the list but hidden from the view. I want to add a Date Modified column (which is a built in field) to this Custom List. How do I do thi...

Simplified iphone In-app store implementation for built-in product features

This question is for those familiar with implementing the iphone in-app store functionality. The app I'm building has only built-in features that are unlocked when features are purchased. Further, any modifications or additions to store items will require an app update. Also, it is only in English so has no localized languages for t...

Overriding Built-in Classes (Python)

How can I view and override the full definition for built in classes? I have seen the library docs but am looking for something more. For e.g. is it possible to override the Array Class such that the base index starts from 1 instead of 0, or to override .sort() of list to a sorting algorithm of my own liking? ...

Python del() built-in can't be used in assignment?

I noticed a problem when I was trying to use del in a lambda to thin out a list of threads to just those running: map(lambda x: del(x) if not x.isAlive() else x, self.threads) Ignore for a second that this doesn't do anything, I'm just fooling around with map, reduce, and lambda. This fails with a syntax error at del(x). With some m...

Groovy built-in to split an array into equal sized subarrays?

If I have this: def array = [1,2,3,4,5,6] Is there some built-in which allows me to do this ( or something similar ): array.split(2) and get: [[1,2],[3,4],[5,6]] ? ...